2019-12-20 14:28:26 +01:00
|
|
|
[gd_scene load_steps=6 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://ui/theme/ui_theme.tres" type="Theme" id=1]
|
|
|
|
[ext_resource path="res://ui/bags/InventoryGUI.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://ui/bags/BagEntry.tscn" type="PackedScene" id=3]
|
|
|
|
[ext_resource path="res://ui/bags/EquipmentSlot.tscn" type="PackedScene" id=4]
|
2020-07-08 23:25:40 +02:00
|
|
|
[ext_resource path="res://ui/bags/ItemTooltip.tscn" type="PackedScene" id=5]
|
2019-12-20 14:28:26 +01:00
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Inventory" type="Control"]
|
2019-12-20 14:28:26 +01:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2021-02-21 17:39:36 +01:00
|
|
|
mouse_filter = 2
|
2019-12-20 14:28:26 +01:00
|
|
|
theme = ExtResource( 1 )
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
inventory_item_scene = ExtResource( 3 )
|
2021-02-21 17:39:36 +01:00
|
|
|
inventory_item_container_path = NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2/VBoxContainer/ScrollContainer/GridContainer")
|
|
|
|
item_tooltip_path = NodePath("ItemTooltip")
|
|
|
|
inventory_slots = [ NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer/Head"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer2/Neck"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer2/Shoulder"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer3/Chest"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer2/Hands"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer4/Belt"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer5/Legs"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer5/Feet"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer3/Ring1"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer3/Ring2"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer4/Trinket1"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer4/Trinket2"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer6/PanelContainer/HBoxContainer/MainHand"), NodePath("PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer6/PanelContainer/HBoxContainer/OffHand") ]
|
|
|
|
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="."]
|
|
|
|
margin_left = 103.0
|
|
|
|
margin_top = 37.0
|
|
|
|
margin_right = 692.0
|
|
|
|
margin_bottom = 527.0
|
2019-12-20 14:28:26 +01:00
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 4.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 585.0
|
|
|
|
margin_bottom = 486.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
|
|
|
margin_right = 581.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_bottom = 26.0
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="BagName" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_top = 5.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 547.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 6
|
|
|
|
text = "Inventory"
|
|
|
|
align = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="CloseButton" type="Button" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
|
|
|
margin_left = 551.0
|
|
|
|
margin_right = 581.0
|
|
|
|
margin_bottom = 26.5702
|
2019-12-20 14:28:26 +01:00
|
|
|
rect_min_size = Vector2( 30, 20 )
|
|
|
|
text = "X"
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer3" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_top = 34.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 581.0
|
|
|
|
margin_bottom = 482.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 227.96
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 448.0
|
2019-12-20 14:28:26 +01:00
|
|
|
rect_min_size = Vector2( 227.96, 0 )
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 4.0
|
|
|
|
margin_right = 223.96
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 444.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
custom_constants/separation = 10
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer"]
|
|
|
|
margin_top = 41.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 219.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 91.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Head" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer"]
|
|
|
|
margin_top = 101.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 219.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 151.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Shoulder" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer2" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 30.0
|
|
|
|
margin_right = 80.0
|
|
|
|
text = "sh"
|
|
|
|
equip_slot = 2
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Neck" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer2" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
text = "Neck"
|
|
|
|
equip_slot = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Hands" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer2" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 138.0
|
|
|
|
margin_right = 188.0
|
|
|
|
text = "Hands"
|
|
|
|
equip_slot = 4
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer3" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer"]
|
|
|
|
margin_top = 161.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 219.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 211.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Ring1" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer3" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 30.0
|
|
|
|
margin_right = 80.0
|
|
|
|
text = "Ring"
|
|
|
|
equip_slot = 8
|
|
|
|
texture_path = NodePath("../Ring1/MarginContainer/TextureRect")
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Chest" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer3" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
text = "Chest"
|
|
|
|
equip_slot = 3
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Ring2" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer3" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 138.0
|
|
|
|
margin_right = 188.0
|
|
|
|
text = "Ring"
|
|
|
|
equip_slot = 9
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer4" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer"]
|
|
|
|
margin_top = 221.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 219.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 271.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Trinket1" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer4" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 30.0
|
|
|
|
margin_right = 80.0
|
|
|
|
text = "Tr"
|
|
|
|
equip_slot = 10
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Belt" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer4" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
text = "Belt"
|
|
|
|
equip_slot = 5
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Trinket2" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer4" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 138.0
|
|
|
|
margin_right = 188.0
|
|
|
|
text = "Tr"
|
|
|
|
equip_slot = 11
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer5" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer"]
|
|
|
|
margin_top = 281.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 219.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 331.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Legs" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer5" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 57.0
|
|
|
|
margin_right = 107.0
|
|
|
|
text = "Legs"
|
|
|
|
equip_slot = 6
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Feet" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer5" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 111.0
|
|
|
|
margin_right = 161.0
|
|
|
|
text = "Feet"
|
|
|
|
equip_slot = 7
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer6" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer"]
|
|
|
|
margin_top = 341.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_right = 219.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_bottom = 399.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer6"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 53.0
|
|
|
|
margin_right = 165.0
|
|
|
|
margin_bottom = 58.0
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer6/PanelContainer"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 4.0
|
|
|
|
margin_right = 108.0
|
|
|
|
margin_bottom = 54.0
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="MainHand" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer6/PanelContainer/HBoxContainer" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 0.0
|
|
|
|
margin_right = 50.0
|
|
|
|
text = "MH"
|
|
|
|
equip_slot = 12
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="OffHand" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer/VBoxContainer/HBoxContainer6/PanelContainer/HBoxContainer" instance=ExtResource( 4 )]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 54.0
|
|
|
|
margin_right = 104.0
|
|
|
|
text = "OH"
|
|
|
|
equip_slot = 13
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="PanelContainer2" type="PanelContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 231.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 581.0
|
|
|
|
margin_bottom = 448.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 4.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 346.0
|
|
|
|
margin_bottom = 444.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2/VBoxContainer"]
|
|
|
|
margin_right = 342.0
|
|
|
|
margin_bottom = 406.0
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
scroll_horizontal_enabled = false
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="GridContainer" type="GridContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2/VBoxContainer/ScrollContainer"]
|
2019-12-20 14:28:26 +01:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
custom_constants/vseparation = 5
|
|
|
|
custom_constants/hseparation = 5
|
|
|
|
columns = 6
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2/VBoxContainer"]
|
|
|
|
margin_top = 414.0
|
|
|
|
margin_right = 342.0
|
|
|
|
margin_bottom = 440.0
|
2019-12-20 14:28:26 +01:00
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2/VBoxContainer/HBoxContainer2"]
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_top = 5.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 308.0
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "190 "
|
|
|
|
align = 2
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="ResizeButton" type="Button" parent="PanelContainer/VBoxContainer/HBoxContainer3/PanelContainer2/VBoxContainer/HBoxContainer2"]
|
|
|
|
margin_left = 312.0
|
|
|
|
margin_right = 342.0
|
|
|
|
margin_bottom = 26.5702
|
2019-12-20 14:28:26 +01:00
|
|
|
rect_min_size = Vector2( 30, 20 )
|
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[node name="ItemTooltip" parent="." instance=ExtResource( 5 )]
|
|
|
|
toplevel = false
|
2019-12-20 14:28:26 +01:00
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 4.0
|
2021-02-21 17:39:36 +01:00
|
|
|
margin_right = 299.0
|
|
|
|
margin_bottom = 227.0
|
2019-12-20 14:28:26 +01:00
|
|
|
|
2021-02-21 17:39:36 +01:00
|
|
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/HBoxContainer/CloseButton" to="." method="hide"]
|