No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

inventory.otui 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. InventoryItem < Item
  2. $on:
  3. image-source: /images/ui/item-blessed
  4. HeadSlot < InventoryItem
  5. id: slot1
  6. image-source: /images/game/slots/head
  7. &position: {x=65535, y=1, z=0}
  8. $on:
  9. image-source: /images/game/slots/head-blessed
  10. BodySlot < InventoryItem
  11. id: slot4
  12. image-source: /images/game/slots/body
  13. &position: {x=65535, y=4, z=0}
  14. $on:
  15. image-source: /images/game/slots/body-blessed
  16. LegSlot < InventoryItem
  17. id: slot7
  18. image-source: /images/game/slots/legs
  19. &position: {x=65535, y=7, z=0}
  20. $on:
  21. image-source: /images/game/slots/legs-blessed
  22. FeetSlot < InventoryItem
  23. id: slot8
  24. image-source: /images/game/slots/feet
  25. &position: {x=65535, y=8, z=0}
  26. $on:
  27. image-source: /images/game/slots/feet-blessed
  28. NeckSlot < InventoryItem
  29. id: slot2
  30. image-source: /images/game/slots/neck
  31. &position: {x=65535, y=2, z=0}
  32. $on:
  33. image-source: /images/game/slots/neck-blessed
  34. LeftSlot < InventoryItem
  35. id: slot6
  36. image-source: /images/game/slots/left-hand
  37. &position: {x=65535, y=6, z=0}
  38. $on:
  39. image-source: /images/game/slots/left-hand-blessed
  40. FingerSlot < InventoryItem
  41. id: slot9
  42. image-source: /images/game/slots/finger
  43. &position: {x=65535, y=9, z=0}
  44. $on:
  45. image-source: /images/game/slots/finger-blessed
  46. BackSlot < InventoryItem
  47. id: slot3
  48. image-source: /images/game/slots/back
  49. &position: {x=65535, y=3, z=0}
  50. $on:
  51. image-source: /images/game/slots/back-blessed
  52. RightSlot < InventoryItem
  53. id: slot5
  54. image-source: /images/game/slots/right-hand
  55. &position: {x=65535, y=5, z=0}
  56. $on:
  57. image-source: /images/game/slots/right-hand-blessed
  58. AmmoSlot < InventoryItem
  59. id: slot10
  60. image-source: /images/game/slots/ammo
  61. &position: {x=65535, y=10, z=0}
  62. $on:
  63. image-source: /images/game/slots/ammo-blessed
  64. PurseButton < Button
  65. id: purseButton
  66. size: 26 26
  67. !tooltip: tr('Open purse')
  68. icon-source: /images/game/slots/purse
  69. icon-size: 24 24
  70. icon-offset: 1 1
  71. MiniWindow
  72. id: inventoryWindow
  73. !text: tr('Inventory')
  74. icon: /images/topbuttons/inventory
  75. height: 175
  76. @onClose: modules.game_inventory.onMiniWindowClose()
  77. &save: true
  78. MiniWindowContents
  79. HeadSlot
  80. anchors.top: parent.top
  81. anchors.horizontalCenter: parent.horizontalCenter
  82. margin-top: 3
  83. BodySlot
  84. anchors.top: prev.bottom
  85. anchors.horizontalCenter: prev.horizontalCenter
  86. margin-top: 3
  87. LegSlot
  88. anchors.top: prev.bottom
  89. anchors.horizontalCenter: prev.horizontalCenter
  90. margin-top: 3
  91. FeetSlot
  92. anchors.top: prev.bottom
  93. anchors.horizontalCenter: prev.horizontalCenter
  94. margin-top: 3
  95. NeckSlot
  96. anchors.top: slot1.top
  97. anchors.right: slot1.left
  98. margin-top: 10
  99. margin-right: 5
  100. LeftSlot
  101. anchors.top: prev.bottom
  102. anchors.horizontalCenter: prev.horizontalCenter
  103. margin-top: 3
  104. FingerSlot
  105. anchors.top: prev.bottom
  106. anchors.horizontalCenter: prev.horizontalCenter
  107. margin-top: 3
  108. BackSlot
  109. anchors.top: slot1.top
  110. anchors.left: slot1.right
  111. margin-top: 10
  112. margin-left: 5
  113. RightSlot
  114. anchors.top: prev.bottom
  115. anchors.horizontalCenter: prev.horizontalCenter
  116. margin-top: 3
  117. AmmoSlot
  118. anchors.top: prev.bottom
  119. anchors.horizontalCenter: prev.horizontalCenter
  120. margin-top: 3
  121. PurseButton
  122. margin-top: 3
  123. anchors.top: prev.bottom
  124. anchors.horizontalCenter: prev.horizontalCenter