[gd_scene load_steps=4 format=3 uid="uid://dggjyxoa33r7y"]

[ext_resource type="Script" uid="uid://cpiucydmov1qj" path="res://scripts/item_display_window.gd" id="1_n2g4t"]
[ext_resource type="Texture2D" uid="uid://cjjtgrr56guj0" path="res://graphics/ui/item-slot.png" id="2_dxjvd"]
[ext_resource type="Texture2D" uid="uid://clrvwaqb61lpv" path="res://graphics/items/pitchfork.png" id="3_tsl8r"]

[node name="Item Display Window" type="Popup"]
oversampling_override = 1.0
size = Vector2i(300, 400)
visible = true
always_on_top = true
script = ExtResource("1_n2g4t")

[node name="Panel" type="PanelContainer" parent="."]
custom_minimum_size = Vector2(300, 300)
anchors_preset = -1
offset_right = 300.0
offset_bottom = 300.0

[node name="MarginContainer" type="MarginContainer" parent="Panel"]
layout_mode = 2
theme_override_constants/margin_left = 2
theme_override_constants/margin_top = 2
theme_override_constants/margin_right = 0
theme_override_constants/margin_bottom = 0

[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
layout_mode = 2

[node name="ColorRect" type="ColorRect" parent="Panel/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
color = Color(0.2558804, 0.37977988, 0.7036519, 1)

[node name="Button" type="Button" parent="Panel/MarginContainer/VBoxContainer/ColorRect"]
custom_minimum_size = Vector2(30, 0)
layout_mode = 0
offset_left = 268.0
offset_right = 298.0
offset_bottom = 31.0
text = "X"

[node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
layout_mode = 2

[node name="MarginContainer" type="CenterContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2

[node name="SlotBox" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
texture = ExtResource("2_dxjvd")

[node name="Image" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
texture = ExtResource("3_tsl8r")
stretch_mode = 3

[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 0

[node name="ItemName" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "ITEM NAME"

[node name="ItemType" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "ITEM TYPE"

[node name="ItemGrade" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "ITEM GRADE"

[node name="PrimaryStat" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Primary Stat Goes Here"

[node name="SecondaryStats" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 60)
layout_mode = 2
text = "Secondary Stats Go Here"

[node name="HSeparator" type="HSeparator" parent="Panel/MarginContainer/VBoxContainer"]
layout_mode = 2

[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5

[node name="Brief" type="Label" parent="Panel/MarginContainer/VBoxContainer/MarginContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 150)
layout_mode = 2
text = "Brief Description Goes Here"
autowrap_mode = 2

[connection signal="gui_input" from="Panel/MarginContainer/VBoxContainer/ColorRect" to="." method="_on_drag_region_gui_input"]
