elws

beltinventorywindw

Nov 6th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. EQUIPMENT_START_INDEX = 90
  5. BUTTON_ROOT = "d:/ymir work/ui/public/"
  6.  
  7. window = {
  8. "name" : "BeltInventoryWindow",
  9.  
  10. ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  11. "x" : SCREEN_WIDTH - 176 - 148,
  12. "y" : SCREEN_HEIGHT - 37 - 565 + 209 + 32,
  13. # "x" : -148,
  14. # "y" : 241,
  15. "width" : 148,
  16. "height" : 169,
  17.  
  18. "type" : "image",
  19. "image" : "d:/ymir work/ui/game/belt_inventory/bg.tga",
  20.  
  21.  
  22. "children" :
  23. (
  24. ## Expand Buttons
  25. {
  26. "name" : "ExpandBtn",
  27. "type" : "button",
  28.  
  29. "x" : 2,
  30. "y" : 15,
  31.  
  32. "default_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_normal.tga",
  33. "over_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_over.tga",
  34. "down_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_down.tga",
  35. "disable_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_disabled.tga",
  36. },
  37.  
  38.  
  39. ## Belt Inventory Layer (include minimize button)
  40. {
  41. "name" : "BeltInventoryLayer",
  42. # "type" : "board",
  43. # "style" : ("attach", "float"),
  44.  
  45. "x" : 5,
  46. "y" : 0,
  47.  
  48. "width" : 148,
  49. "height" : 169,
  50.  
  51. "children" :
  52. (
  53. ## Minimize Button
  54. {
  55. "name" : "MinimizeBtn",
  56. "type" : "button",
  57.  
  58. "x" : 2,
  59. "y" : 15,
  60.  
  61. "width" : 10,
  62.  
  63. "default_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_normal.tga",
  64. "over_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_over.tga",
  65. "down_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_down.tga",
  66. "disable_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_disabled.tga",
  67. },
  68.  
  69. ## Real Belt Inventory Board
  70. {
  71. "name" : "BeltInventoryBoard",
  72. "type" : "board",
  73. "style" : ("attach", "float"),
  74.  
  75. "x" : 10,
  76. "y" : 0,
  77.  
  78. "width" : 138,
  79. "height" : 169,
  80.  
  81. "children" :
  82. (
  83. ## Belt Inventory Slots
  84. {
  85. "name" : "BeltInventorySlot",
  86. "type" : "grid_table",
  87.  
  88. "x" : 5,
  89. "y" : 5,
  90.  
  91. "start_index" : item.BELT_INVENTORY_SLOT_START,
  92. "x_count" : 4,
  93. "y_count" : 4,
  94. "x_step" : 32,
  95. "y_step" : 32,
  96.  
  97. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  98. },
  99. ##activateall
  100. {
  101. "name" : "UseBeltItemsButton",
  102. "type" : "button",
  103. "x" : 0,
  104. "y" : 138,
  105. "horizontal_align" : "center",
  106. "default_image" : BUTTON_ROOT + "AcceptButton00.sub",
  107. "over_image" : BUTTON_ROOT + "AcceptButton01.sub",
  108. "down_image" : BUTTON_ROOT + "AcceptButton02.sub",
  109. },
  110. ),
  111. },
  112. )
  113. },
  114.  
  115. ),
  116. }
Add Comment
Please, Sign In to add comment