Guest User

1

a guest
Mar 8th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. EQUIPMENT_START_INDEX = 180
  5.  
  6. window = {
  7. "name" : "InventoryWindow",
  8.  
  9. ## 600 - (width + ????? ?? ??? 24 px)
  10. "x" : SCREEN_WIDTH - 176,
  11. "y" : SCREEN_HEIGHT - 37 - 565,
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 176,
  16. "height" : 565,
  17.  
  18. "children" :
  19. (
  20. {
  21. "name" : "board",
  22. "type" : "board",
  23. "style" : ("attach",),
  24.  
  25. "x" : 0,
  26. "y" : 0,
  27.  
  28. "width" : 176,
  29. "height" : 565,
  30.  
  31. "children" :
  32. (
  33. ## Title
  34. {
  35. "name" : "TitleBar",
  36. "type" : "titlebar",
  37. "style" : ("attach",),
  38.  
  39. "x" : 8,
  40. "y" : 7,
  41.  
  42. "width" : 161,
  43. "color" : "yellow",
  44.  
  45. "children" :
  46. (
  47. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  48. ),
  49. },
  50.  
  51. ## Equipment Slot
  52. {
  53. "name" : "Equipment_Base",
  54. "type" : "image",
  55.  
  56. "x" : 10,
  57. "y" : 33,
  58.  
  59. "image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",
  60.  
  61. "children" :
  62. (
  63.  
  64. {
  65. "name" : "EquipmentSlot",
  66. "type" : "slot",
  67.  
  68. "x" : 3,
  69. "y" : 3,
  70.  
  71. "width" : 150,
  72. "height" : 182,
  73.  
  74. "slot" : (
  75. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  76. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  77. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  78. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  79. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  80. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  81. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  82. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  83. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  84. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  85. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  86. {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  87. {"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  88. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  89. ),
  90. },
  91. ## Dragon Soul Button
  92. {
  93. "name" : "DSSButton",
  94. "type" : "button",
  95.  
  96. "x" : 114,
  97. "y" : 107,
  98.  
  99. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  100.  
  101. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  102. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  103. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  104. },
  105. ## MallButton
  106. {
  107. "name" : "MallButton",
  108. "type" : "button",
  109.  
  110. "x" : 118,
  111. "y" : 148,
  112.  
  113. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  114.  
  115. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  116. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  117. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  118. },
  119. ## CostumeButton
  120. {
  121. "name" : "CostumeButton",
  122. "type" : "button",
  123.  
  124. "x" : 77,
  125. "y" : 4,
  126.  
  127. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  128.  
  129. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  130. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  131. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  132. },
  133. {
  134. "name" : "Equipment_Tab_01",
  135. "type" : "radio_button",
  136.  
  137. "x" : 86,
  138. "y" : 161,
  139.  
  140. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  141. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  142. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  143.  
  144. "children" :
  145. (
  146. {
  147. "name" : "Equipment_Tab_01_Print",
  148. "type" : "text",
  149.  
  150. "x" : 0,
  151. "y" : 0,
  152.  
  153. "all_align" : "center",
  154.  
  155. "text" : "I",
  156. },
  157. ),
  158. },
  159. {
  160. "name" : "Equipment_Tab_02",
  161. "type" : "radio_button",
  162.  
  163. "x" : 86 + 32,
  164. "y" : 161,
  165.  
  166. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  167. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  168. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  169.  
  170. "children" :
  171. (
  172. {
  173. "name" : "Equipment_Tab_02_Print",
  174. "type" : "text",
  175.  
  176. "x" : 0,
  177. "y" : 0,
  178.  
  179. "all_align" : "center",
  180.  
  181. "text" : "II",
  182. },
  183. ),
  184. },
  185.  
  186. ),
  187. },
  188.  
  189. {
  190. "name" : "Inventory_Tab_01",
  191. "type" : "radio_button",
  192.  
  193. "x" : 10,
  194. "y" : 33 + 191,
  195.  
  196. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  197. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  198. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  199. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  200.  
  201. "children" :
  202. (
  203. {
  204. "name" : "Inventory_Tab_01_Print",
  205. "type" : "text",
  206.  
  207. "x" : 0,
  208. "y" : 0,
  209.  
  210. "all_align" : "center",
  211.  
  212. "text" : "I",
  213. },
  214. ),
  215. },
  216. {
  217. "name" : "Inventory_Tab_02",
  218. "type" : "radio_button",
  219.  
  220. #"x" : 10 + 78,
  221. "x" : 10 + 39,
  222. "y" : 33 + 191,
  223.  
  224. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  225. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  226. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  227. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  228.  
  229. "children" :
  230. (
  231. {
  232. "name" : "Inventory_Tab_02_Print",
  233. "type" : "text",
  234.  
  235. "x" : 0,
  236. "y" : 0,
  237.  
  238. "all_align" : "center",
  239.  
  240. "text" : "II",
  241. },
  242. ),
  243. },
  244.  
  245. {
  246. "name" : "Inventory_Tab_03",
  247. "type" : "radio_button",
  248.  
  249. "x" : 10 + 39 + 39,
  250. "y" : 33 + 191,
  251.  
  252. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  253. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  254. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  255. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  256.  
  257. "children" :
  258. (
  259. {
  260. "name" : "Inventory_Tab_03_Print",
  261. "type" : "text",
  262.  
  263. "x" : 0,
  264. "y" : 0,
  265.  
  266. "all_align" : "center",
  267.  
  268. "text" : "III",
  269. },
  270. ),
  271. },
  272.  
  273. {
  274. "name" : "Inventory_Tab_04",
  275. "type" : "radio_button",
  276.  
  277. "x" : 10 + 39 + 39 + 39,
  278. "y" : 33 + 191,
  279.  
  280. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  281. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  282. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  283. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  284.  
  285. "children" :
  286. (
  287. {
  288. "name" : "Inventory_Tab_04_Print",
  289. "type" : "text",
  290.  
  291. "x" : 0,
  292. "y" : 0,
  293.  
  294. "all_align" : "center",
  295.  
  296. "text" : "IV",
  297. },
  298. ),
  299. },
  300.  
  301. ## Item Slot
  302. {
  303. "name" : "ItemSlot",
  304. "type" : "grid_table",
  305.  
  306. "x" : 8,
  307. "y" : 246,
  308.  
  309. "start_index" : 0,
  310. "x_count" : 5,
  311. "y_count" : 9,
  312. "x_step" : 32,
  313. "y_step" : 32,
  314.  
  315. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  316. },
  317. ## Print
  318. {
  319. "name":"Money_Slot",
  320. "type":"button",
  321.  
  322. "x":8,
  323. "y":28,
  324.  
  325. "horizontal_align":"center",
  326. "vertical_align":"bottom",
  327.  
  328. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  329. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  330. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  331.  
  332. "children" :
  333. (
  334. {
  335. "name":"Money_Icon",
  336. "type":"image",
  337.  
  338. "x":-18,
  339. "y":2,
  340.  
  341. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  342. },
  343.  
  344. {
  345. "name" : "Money",
  346. "type" : "text",
  347.  
  348. "x" : 3,
  349. "y" : 3,
  350.  
  351. "horizontal_align" : "right",
  352. "text_horizontal_align" : "right",
  353.  
  354. "text" : "123456789",
  355. },
  356. ),
  357. },
  358.  
  359. ),
  360. },
  361. ),
  362. }
  363.  
Advertisement
Add Comment
Please, Sign In to add comment