Guest User

Untitled

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