-
Notifications
You must be signed in to change notification settings - Fork 11
/
Inventory.tscn
274 lines (247 loc) · 6.21 KB
/
Inventory.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Inventory.gd" type="Script" id=1]
[ext_resource path="res://Tooltip.gd" type="Script" id=2]
[ext_resource path="res://images/tooltip.png" type="Texture" id=3]
[ext_resource path="res://CharacterPanel.gd" type="Script" id=4]
[ext_resource path="res://DraggableBar.gd" type="Script" id=5]
[ext_resource path="res://ItemSlot.gd" type="Script" id=6]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.203922, 0.203922, 0.203922, 1 )
[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0.203922, 0.203922, 0.203922, 1 )
[node name="Node" type="Node"]
[node name="CharacterPanel" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -279.0
margin_top = -95.5
margin_right = -99.0002
margin_bottom = 81.5
mouse_filter = 1
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TopBar" type="Panel" parent="CharacterPanel"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -94.0
margin_right = 94.0
margin_bottom = 20.0
custom_styles/panel = SubResource( 1 )
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="CharacterPanel/TopBar"]
anchor_right = 1.0
anchor_bottom = 1.0
text = "Character Panel"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Left" type="GridContainer" parent="CharacterPanel"]
margin_left = 4.0
margin_top = 24.0
margin_right = 38.0
margin_bottom = 172.0
custom_constants/vseparation = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SlotHelmet" type="Panel" parent="CharacterPanel/Left"]
margin_right = 34.0
margin_bottom = 34.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 1
[node name="SlotNeck" type="Panel" parent="CharacterPanel/Left"]
margin_top = 38.0
margin_right = 34.0
margin_bottom = 72.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 4
[node name="SlotArmor" type="Panel" parent="CharacterPanel/Left"]
margin_top = 76.0
margin_right = 34.0
margin_bottom = 110.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 2
[node name="SlotFeet" type="Panel" parent="CharacterPanel/Left"]
margin_top = 114.0
margin_right = 34.0
margin_bottom = 148.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 3
[node name="Right" type="GridContainer" parent="CharacterPanel"]
margin_left = 142.451
margin_top = 24.0
margin_right = 176.451
margin_bottom = 172.0
custom_constants/vseparation = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SlotRing" type="Panel" parent="CharacterPanel/Right"]
margin_right = 34.0
margin_bottom = 34.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 5
[node name="SlotRing2" type="Panel" parent="CharacterPanel/Right"]
margin_top = 38.0
margin_right = 34.0
margin_bottom = 72.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 6
[node name="SlotLHand" type="Panel" parent="CharacterPanel/Right"]
margin_top = 76.0
margin_right = 34.0
margin_bottom = 110.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 7
[node name="SlotRHand" type="Panel" parent="CharacterPanel/Right"]
margin_top = 114.0
margin_right = 34.0
margin_bottom = 148.0
rect_min_size = Vector2( 34, 34 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
slotType = 8
[node name="Inventory" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = 154.0
margin_top = -104.0
margin_right = 343.0
margin_bottom = 128.0
mouse_filter = 1
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TopBar" type="Panel" parent="Inventory"]
anchor_left = -0.023
anchor_right = 1.023
anchor_bottom = 0.109
margin_left = 0.00200033
margin_right = -0.0019989
margin_bottom = 0.0719986
mouse_filter = 1
custom_styles/panel = SubResource( 2 )
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Inventory/TopBar"]
anchor_right = 1.0
anchor_bottom = 1.0
text = "Inventory"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SlotsContainer" type="ScrollContainer" parent="Inventory"]
anchor_right = 1.0
anchor_bottom = 0.887
margin_left = 3.0
margin_top = 28.0
margin_right = -3.0
margin_bottom = 0.215988
scroll_horizontal_enabled = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Slots" type="GridContainer" parent="Inventory/SlotsContainer"]
custom_constants/vseparation = 1
custom_constants/hseparation = 1
columns = 5
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SortRarityButton" type="Button" parent="Inventory"]
margin_left = 0.739502
margin_top = 210.26
margin_right = 96.7395
margin_bottom = 230.26
text = "Sort by Rarity"
[node name="Tooltip" type="NinePatchRect" parent="."]
visible = false
margin_left = 535.0
margin_top = 235.0
margin_right = 663.0
margin_bottom = 363.0
texture = ExtResource( 3 )
patch_margin_left = 4
patch_margin_top = 4
patch_margin_right = 4
patch_margin_bottom = 4
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Item Name" type="Label" parent="Tooltip"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -59.0
margin_top = 8.0
margin_right = 59.0
margin_bottom = 23.0
text = "Item Name"
align = 1
[node name="Item Value" type="Label" parent="Tooltip"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -59.0
margin_top = 31.5323
margin_right = 59.0
margin_bottom = 46.5323
text = "Value: 0"
[node name="AddItemButton" type="Button" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -46.0
margin_top = 29.0
margin_right = 46.0
margin_bottom = 62.0
text = "Add Item"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Inventory/SortRarityButton" to="Inventory" method="_on_SortRarityButton_pressed"]
[connection signal="pressed" from="AddItemButton" to="Inventory" method="_on_AddItemButton_pressed"]