Advertisement
Guest User

inventorywindow

a guest
Jun 29th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.56 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 + ¡Ë?A¡Ë¡þ¢®IAEA¡Ë¡þ¢®¢´I ¡§¡þIAI ¡ËOc¡Ë?i¢®¨úa 24 px)
  10. "x" : SCREEN_WIDTH - 210,
  11. "y" : SCREEN_HEIGHT - 37 - 571,
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 210,
  16. "height" : 576,
  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" : 576,
  31.  
  32. "children" :
  33. (
  34. ## Title
  35. {
  36. "name" : "TitleBar",
  37. "type" : "titlebar",
  38. "style" : ("attach",),
  39.  
  40. "x" : 8,
  41. "y" : 7,
  42.  
  43. "width" : 200,
  44. "color" : "yellow",
  45.  
  46. "children" :
  47. (
  48. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  49. ),
  50. },
  51.  
  52. ## Equipment Slot
  53. {
  54. "name" : "Equipment_Base",
  55. "type" : "image",
  56.  
  57. "x" : 10,
  58. "y" : 33,
  59.  
  60. "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  61.  
  62. "children" :
  63. (
  64.  
  65. {
  66. "name" : "EquipmentSlot",
  67. "type" : "slot",
  68.  
  69. "x" : 3,
  70. "y" : 3,
  71.  
  72. "width" : 150,
  73. "height" : 182,
  74.  
  75. "slot" : (
  76. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  77. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  78. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  79. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  80. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  81. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  82. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  83. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  84. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  85. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  86. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  87. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  88. ),
  89. },
  90. ## Dragon Soul Button
  91. {
  92. "name" : "DSSButton",
  93. "type" : "button",
  94.  
  95. "x" : 114,
  96. "y" : 107,
  97.  
  98. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  99.  
  100. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  101. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  102. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  103. },
  104. ## Offline Shop Button
  105. {
  106. "name" : "OfflineShopButton",
  107. "type" : "button",
  108.  
  109. "x" : 77,
  110. "y" : 109,
  111.  
  112. "tooltip_text" : uiScriptLocale.TASKBAR_OFFLINE_SHOP,
  113.  
  114. "default_image" : "locale/es/offlineshop/boton1.tga",
  115. "over_image" : "locale/es/offlineshop/boton2.tga",
  116. "down_image" : "locale/es/offlineshop/boton1.tga",
  117. },
  118. ## MallButton
  119. {
  120. "name" : "MallButton",
  121. "type" : "button",
  122.  
  123. "x" : 118,
  124. "y" : 148,
  125.  
  126. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  127.  
  128. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  129. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  130. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  131. },
  132. {
  133. "name" : "BancaYang",
  134. "type" : "button",
  135.  
  136. "x" : 3,
  137. "y" : 109,
  138.  
  139. "tooltip_text" : "Banca Yang",
  140.  
  141. "default_image" : "locale/es/ui/banca_buton1.tga",
  142. "over_image" : "locale/es/ui/banca_buton2.tga",
  143. "down_image" : "locale/es/ui/banca_buton2.tga",
  144. },
  145.  
  146. ## CostumeButton
  147. {
  148. "name" : "CostumeButton",
  149. "type" : "button",
  150.  
  151. "x" : 78,
  152. "y" : 5,
  153.  
  154. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  155.  
  156. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  157. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  158. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  159. },
  160. {
  161. "name" : "Equipment_Tab_01",
  162. "type" : "radio_button",
  163.  
  164. "x" : 86,
  165. "y" : 161,
  166.  
  167. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  168. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  169. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  170.  
  171. "children" :
  172. (
  173. {
  174. "name" : "Equipment_Tab_01_Print",
  175. "type" : "text",
  176.  
  177. "x" : 0,
  178. "y" : 0,
  179.  
  180. "all_align" : "center",
  181.  
  182. "text" : "I",
  183. },
  184. ),
  185. },
  186. {
  187. "name" : "Equipment_Tab_02",
  188. "type" : "radio_button",
  189.  
  190. "x" : 86 + 32,
  191. "y" : 161,
  192.  
  193. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  194. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  195. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  196.  
  197. "children" :
  198. (
  199. {
  200. "name" : "Equipment_Tab_02_Print",
  201. "type" : "text",
  202.  
  203. "x" : 0,
  204. "y" : 0,
  205.  
  206. "all_align" : "center",
  207.  
  208. "text" : "II",
  209. },
  210. ),
  211. },
  212.  
  213. ),
  214. },
  215. {
  216. "name" : "Inventory_Tab_01",
  217. "type" : "radio_button",
  218.  
  219. "x" : 11,
  220. "y" : 33 + 191,
  221.  
  222. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  223. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  224. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  225. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  226.  
  227. "children" :
  228. (
  229. {
  230. "name" : "Inventory_Tab_01_Print",
  231. "type" : "text",
  232.  
  233. "x" : 0,
  234. "y" : 0,
  235.  
  236. "all_align" : "center",
  237.  
  238. "text" : "I",
  239. },
  240. ),
  241. },
  242. {
  243. "name" : "Inventory_Tab_02",
  244. "type" : "radio_button",
  245.  
  246. "x" : 13 + 37,
  247. "y" : 33 + 191,
  248.  
  249. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  250. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  251. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  252. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  253.  
  254. "children" :
  255. (
  256. {
  257. "name" : "Inventory_Tab_02_Print",
  258. "type" : "text",
  259.  
  260. "x" : 0,
  261. "y" : 0,
  262.  
  263. "all_align" : "center",
  264.  
  265. "text" : "II",
  266. },
  267. ),
  268. },
  269. {
  270. "name" : "Inventory_Tab_03",
  271. "type" : "radio_button",
  272.  
  273. "x" : 13 + 77,
  274. "y" : 33 + 191,
  275.  
  276. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  277. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  278. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  279. "tooltip_text" : "3.Inventar",
  280.  
  281. "children" :
  282. (
  283. {
  284. "name" : "Inventory_Tab_03_Print",
  285. "type" : "text",
  286.  
  287. "x" : 0,
  288. "y" : 0,
  289.  
  290. "all_align" : "center",
  291.  
  292. "text" : "III",
  293. },
  294. ),
  295. },
  296. {
  297. "name" : "Inventory_Tab_04",
  298. "type" : "radio_button",
  299.  
  300. "x" : 14 + 116,
  301. "y" : 33 + 191,
  302.  
  303. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  304. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  305. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  306. "tooltip_text" : "4.Inventar",
  307.  
  308. "children" :
  309. (
  310. {
  311. "name" : "Inventory_Tab_04_Print",
  312. "type" : "text",
  313.  
  314. "x" : 0,
  315. "y" : 0,
  316.  
  317. "all_align" : "center",
  318.  
  319. "text" : "IV",
  320. },
  321. ),
  322. },
  323.  
  324. ## Item Slot
  325. {
  326. "name" : "ItemSlot",
  327. "type" : "grid_table",
  328.  
  329. "x" : 8,
  330. "y" : 246,
  331.  
  332. "start_index" : 0,
  333. "x_count" : 5,
  334. "y_count" : 9,
  335. "x_step" : 32,
  336. "y_step" : 32,
  337.  
  338. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  339. },
  340.  
  341. ## Print
  342. {
  343. "name" : "Switchbot",
  344. "type" : "button",
  345.  
  346. "x" : 169,
  347. "y" : 37,
  348.  
  349. "tooltip_text" : "Schimba bonus",
  350.  
  351. "default_image" : "locale/es/ui/switcher1.tga",
  352. "over_image" : "locale/es/ui/switcher2.tga",
  353. "down_image" : "locale/es/ui/switcher2.tga",
  354. },
  355. {
  356. "name" : "antiexp_index",
  357. "type" : "button",
  358.  
  359. "x" : 169,
  360. "y" : 74,
  361.  
  362. "tooltip_text" : "Anti Experienta",
  363.  
  364. "default_image" : "locale/es/ui/inelexp1.tga",
  365. "over_image" : "locale/es/ui/inelexp2.tga",
  366. "down_image" : "locale/es/ui/inelexp2.tga",
  367. },
  368. {
  369. "name" : "teleporter_index",
  370. "type" : "button",
  371.  
  372. "x" : 169,
  373. "y" : 111,
  374.  
  375. "tooltip_text" : "Teleportare",
  376.  
  377. "default_image" : "locale/es/ui/teleport1.tga",
  378. "over_image" : "locale/es/ui/teleport2.tga",
  379. "down_image" : "locale/es/ui/teleport2.tga",
  380. },
  381. {
  382. "name" : "depozit_index",
  383. "type" : "button",
  384.  
  385. "x" : 169,
  386. "y" : 148,
  387.  
  388. "tooltip_text" : "Depozit",
  389.  
  390. "default_image" : "locale/es/ui/depozit1.tga",
  391. "over_image" : "locale/es/ui/depozit2.tga",
  392. "down_image" : "locale/es/ui/depozit2.tga",
  393. },
  394. {
  395. "name" : "tombola_button",
  396. "type" : "button",
  397.  
  398. "x" : 169,
  399. "y" : 185,
  400.  
  401. "tooltip_text" : "Tombola",
  402.  
  403. "default_image" : "locale/es/ui/buton_tombola1.tga",
  404. "over_image" : "locale/es/ui/buton_tombola2.tga",
  405. "down_image" : "locale/es/ui/buton_tombola2.tga",
  406. },
  407. {
  408.  
  409. "name":"Money_Slot",
  410.  
  411. "type":"button",
  412.  
  413.  
  414.  
  415. "x":19,
  416.  
  417. "y":28+14,
  418.  
  419.  
  420.  
  421. "horizontal_align":"center",
  422.  
  423. "vertical_align":"bottom",
  424.  
  425.  
  426.  
  427. "default_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
  428.  
  429. "over_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
  430.  
  431. "down_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
  432.  
  433.  
  434.  
  435. "children" :
  436.  
  437. (
  438.  
  439. {
  440.  
  441. "name":"Money_Icon",
  442.  
  443. "type":"image",
  444.  
  445.  
  446.  
  447. "x":-14,
  448.  
  449. "y":2,
  450.  
  451.  
  452.  
  453. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  454.  
  455. },
  456.  
  457.  
  458.  
  459. {
  460.  
  461. "name" : "Money",
  462.  
  463. "type" : "text",
  464.  
  465.  
  466.  
  467. "x" : 3,
  468.  
  469. "y" : 3,
  470.  
  471.  
  472.  
  473. "horizontal_align" : "right",
  474.  
  475. "text_horizontal_align" : "right",
  476.  
  477.  
  478.  
  479. "text" : "123456789",
  480. },
  481. ),
  482. },
  483. {
  484.  
  485. "name":"Pct_Slot",
  486.  
  487. "type":"button",
  488.  
  489.  
  490.  
  491. "x":-65,
  492.  
  493. "y":28+14,
  494.  
  495.  
  496.  
  497. "horizontal_align":"center",
  498.  
  499. "vertical_align":"bottom",
  500.  
  501.  
  502.  
  503. "default_image" : "d:/ymir work/ui/public/parameter_slot_01.sub",
  504.  
  505. "over_image" : "d:/ymir work/ui/public/parameter_slot_01.sub",
  506.  
  507. "down_image" : "d:/ymir work/ui/public/parameter_slot_01.sub",
  508.  
  509.  
  510.  
  511. "children" :
  512.  
  513. (
  514.  
  515. {
  516.  
  517. "name":"Pct_Icon",
  518.  
  519. "type":"image",
  520.  
  521.  
  522.  
  523. "x":-14,
  524.  
  525. "y":2,
  526.  
  527.  
  528.  
  529. "image" : "locale/es/ui/puncte.sub",
  530.  
  531. },
  532.  
  533.  
  534.  
  535. {
  536.  
  537. "name" : "Pct",
  538.  
  539. "type" : "text",
  540.  
  541.  
  542.  
  543. "x" : 3,
  544.  
  545. "y" : 3,
  546.  
  547.  
  548.  
  549. "horizontal_align" : "right",
  550.  
  551. "text_horizontal_align" : "right",
  552.  
  553.  
  554.  
  555. "text" : "123456789 PCT",
  556. },
  557. ),
  558. },
  559. {
  560.  
  561. "name":"Banca_Slot",
  562.  
  563. "type":"button",
  564.  
  565.  
  566.  
  567. "x":-14,
  568.  
  569. "y":25,
  570.  
  571.  
  572.  
  573. "horizontal_align":"center",
  574.  
  575. "vertical_align":"bottom",
  576.  
  577.  
  578.  
  579. "default_image" : "locale/es/ui/banca.sub",
  580.  
  581. "over_image" : "locale/es/ui/banca.sub",
  582.  
  583. "down_image" : "locale/es/ui/banca.sub",
  584.  
  585.  
  586.  
  587. "children" :
  588.  
  589. (
  590.  
  591. {
  592.  
  593. "name":"Banca_Icon",
  594.  
  595. "type":"image",
  596.  
  597.  
  598.  
  599. "x":-14,
  600.  
  601. "y":2,
  602.  
  603.  
  604.  
  605. "image":"locale/es/ui/banca_sign.sub",
  606.  
  607. },
  608.  
  609.  
  610.  
  611. {
  612.  
  613. "name" : "Banca",
  614.  
  615. "type" : "text",
  616.  
  617.  
  618.  
  619. "x" : 3,
  620.  
  621. "y" : 3,
  622.  
  623.  
  624.  
  625. "horizontal_align" : "right",
  626.  
  627. "text_horizontal_align" : "right",
  628.  
  629.  
  630.  
  631. "text" : "123456789 Yang in Banca",
  632. },
  633. ),
  634. },
  635. ),
  636. },
  637. ),
  638. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement