Guest User

Untitled

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