1InventoryItem < Item
2 $on:
3 image-source: /images/ui/item-blessed
4
5HeadSlot < InventoryItem
6 id: slot1
7 image-source: /images/game/slots/head
8 &position: {x=65535, y=1, z=0}
9 $on:
10 image-source: /images/game/slots/head-blessed
11
12BodySlot < InventoryItem
13 id: slot4
14 image-source: /images/game/slots/body
15 &position: {x=65535, y=4, z=0}
16 $on:
17 image-source: /images/game/slots/body-blessed
18
19LegSlot < InventoryItem
20 id: slot7
21 image-source: /images/game/slots/legs
22 &position: {x=65535, y=7, z=0}
23 $on:
24 image-source: /images/game/slots/legs-blessed
25
26FeetSlot < InventoryItem
27 id: slot8
28 image-source: /images/game/slots/feet
29 &position: {x=65535, y=8, z=0}
30 $on:
31 image-source: /images/game/slots/feet-blessed
32
33NeckSlot < InventoryItem
34 id: slot2
35 image-source: /images/game/slots/neck
36 &position: {x=65535, y=2, z=0}
37 $on:
38 image-source: /images/game/slots/neck-blessed
39
40LeftSlot < InventoryItem
41 id: slot6
42 image-source: /images/game/slots/left-hand
43 &position: {x=65535, y=6, z=0}
44 $on:
45 image-source: /images/game/slots/left-hand-blessed
46
47FingerSlot < InventoryItem
48 id: slot9
49 image-source: /images/game/slots/finger
50 &position: {x=65535, y=9, z=0}
51 $on:
52 image-source: /images/game/slots/finger-blessed
53
54BackSlot < InventoryItem
55 id: slot3
56 image-source: /images/game/slots/back
57 &position: {x=65535, y=3, z=0}
58 $on:
59 image-source: /images/game/slots/back-blessed
60
61RightSlot < InventoryItem
62 id: slot5
63 image-source: /images/game/slots/right-hand
64 &position: {x=65535, y=5, z=0}
65 $on:
66 image-source: /images/game/slots/right-hand-blessed
67
68AmmoSlot < InventoryItem
69 id: slot10
70 image-source: /images/game/slots/ammo
71 &position: {x=65535, y=10, z=0}
72 $on:
73 image-source: /images/game/slots/ammo-blessed
74
75PurseButton < UIButton
76 id: purseButton
77 size: 34 12
78 !tooltip: tr('Open purse')
79 icon-source: /images/game/slots/purse
80 icon-clip: 0 0 34 12
81
82 $on:
83 icon-clip: 0 12 34 12
84
85 $pressed:
86 icon-clip: 0 12 34 12
87
88CombatBox < UICheckBox
89 size: 20 20
90 image-clip: 0 0 20 20
91 margin-left: 4
92
93 $checked:
94 image-clip: 0 20 20 20
95
96
97InventoryButton < Button
98 font: verdana-11px-antialised
99 height: 18
100 margin-top: 2
101 text-align: center
102
103SoulCapLabel < GameLabel
104 text-align: center
105 color: #FFFFFF
106 font: cipsoftFont
107 margin-top: 4
108 text-offset: 0 3
109 width: 36
110 height: 20
111 icon-source: /images/game/slots/soulcap
112
113FightOffensiveBox < CombatBox
114 image-source: /images/game/combatmodes/fightoffensive
115FightBalancedBox < CombatBox
116 image-source: /images/game/combatmodes/fightbalanced
117FightDefensiveBox < CombatBox
118 image-source: /images/game/combatmodes/fightdefensive
119ChaseModeBox < CombatBox
120 image-source: /images/game/combatmodes/chasemode
121SafeFightBox < CombatBox
122 image-source: /images/game/combatmodes/safefight
123
124MountButton < CombatBox
125 image-source: /images/game/combatmodes/mount
126
127InventoryWindow < MiniWindow
128 icon: /images/topbuttons/inventory
129 height: 200
130 id: inventoryWindow
131 @onClose: modules.game_inventory.onMiniWindowClose()
132 &save: true
133 &autoOpen: 3
134
135 MiniWindowContents
136 anchors.left: parent.left
137
138 Panel
139 id: inventoryPanel
140 margin-right: 63
141 margin-top: 2
142 anchors.fill: parent
143
144 HeadSlot
145 anchors.top: parent.top
146 anchors.horizontalCenter: parent.horizontalCenter
147 margin-top: 3
148
149 BodySlot
150 anchors.top: prev.bottom
151 anchors.horizontalCenter: prev.horizontalCenter
152 margin-top: 3
153
154 LegSlot
155 anchors.top: prev.bottom
156 anchors.horizontalCenter: prev.horizontalCenter
157 margin-top: 3
158
159 FeetSlot
160 anchors.top: prev.bottom
161 anchors.horizontalCenter: prev.horizontalCenter
162 margin-top: 3
163
164 NeckSlot
165 anchors.top: slot1.top
166 anchors.right: slot1.left
167 margin-top: 13
168 margin-right: 5
169
170 LeftSlot
171 anchors.top: prev.bottom
172 anchors.horizontalCenter: prev.horizontalCenter
173 margin-top: 3
174
175 FingerSlot
176 anchors.top: prev.bottom
177 anchors.horizontalCenter: prev.horizontalCenter
178 margin-top: 3
179
180 BackSlot
181 anchors.top: slot1.top
182 anchors.left: slot1.right
183 margin-top: 13
184 margin-left: 5
185
186 RightSlot
187 anchors.top: prev.bottom
188 anchors.horizontalCenter: prev.horizontalCenter
189 margin-top: 3
190
191 AmmoSlot
192 anchors.top: prev.bottom
193 anchors.horizontalCenter: prev.horizontalCenter
194 margin-top: 3
195
196 SoulCapLabel
197 id: soulLabel
198 anchors.top: slot10.bottom
199 anchors.horizontalCenter: slot10.horizontalCenter
200
201 SoulCapLabel
202 id: capLabel
203 anchors.top: slot9.bottom
204 anchors.horizontalCenter: slot9.horizontalCenter
205
206 PurseButton
207 anchors.left: slot3.left
208 anchors.bottom: slot3.top
209 margin-bottom: 3
210
211 Panel
212 id: conditionPanel
213 layout:
214 type: horizontalBox
215 height: 22
216 padding: 2
217 anchors.top: slot8.bottom
218 anchors.left: slot6.left
219 anchors.right: slot5.right
220 margin-top: 4
221 border-width: 1
222 border-color: #00000077
223 background-color: #ffffff22
224
225 Panel
226 margin-top: 5
227 anchors.fill: parent
228 anchors.left: prev.right
229
230 FightOffensiveBox
231 id: fightOffensiveBox
232 anchors.left: parent.left
233 anchors.top: parent.top
234 margin-left: 8
235
236 ChaseModeBox
237 id: chaseModeBox
238 anchors.left: prev.right
239 anchors.top: parent.top
240
241 FightBalancedBox
242 id: fightBalancedBox
243 margin-top: 22
244 anchors.left: parent.left
245 anchors.top: parent.top
246 margin-left: 8
247
248 SafeFightBox
249 id: safeFightBox
250 margin-top: 22
251 anchors.left: prev.right
252 anchors.top: parent.top
253
254 FightDefensiveBox
255 id: fightDefensiveBox
256 margin-top: 44
257 anchors.left: parent.left
258 anchors.top: parent.top
259 margin-left: 8
260
261 MountButton
262 id: mountButton
263 margin-top: 44
264 anchors.left: prev.right
265 anchors.top: parent.top
266
267 Panel
268 id: buttonsPanel
269 margin-top: 4
270 margin-right: 5
271 anchors.fill: parent
272 anchors.top: prev.bottom
273 layout:
274 type: verticalBox
275
276 UIButton
277 id: buttonPvp
278 height: 20
279 icon: /images/game/combatmodes/pvp
280 icon-clip: 0 0 42 20
281
282 $on:
283 icon-clip: 0 20 42 20
284
285 InventoryButton
286 !text: tr('Stop')
287 @onClick: g_game.stop(); g_game.cancelAttackAndFollow()
288
289 InventoryButton
290 !text: tr('Options')
291 @onClick: modules.client_options.toggle()
292
293 InventoryButton
294 !text: tr('Hotkeys')
295 @onClick: modules.game_hotkeys.toggle()
296
297 InventoryButton
298 !text: tr('Logout')
299 @onClick: modules.game_interface.tryLogout()
300