Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import uiScriptLocale
  2. import item
  3.  
  4. EQUIPMENT_START_INDEX = 225
  5.  
  6. window = {
  7. "name" : "InventoryWindow",
  8.  
  9. ## 600 - (width + żŔ¸ĄÂĘŔ¸·Î şÎĹÍ ¶çżě±â 24 px)
  10. "x" : SCREEN_WIDTH - 213,
  11. "y" : SCREEN_HEIGHT - 37 - (590+22),
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 176 + 37+50,
  16. "height" : 566+22,
  17.  
  18. "children" :
  19. (
  20. {
  21. "name" : "shaggy_board",
  22. "type" : "board",
  23. "style" : ("attach",),
  24.  
  25. "x" : 0,
  26. "y" : 32,
  27.  
  28. "width" : 47,
  29. "height" : 313,
  30.  
  31. "children" :
  32. (
  33.  
  34. ## Kostiumy
  35. {
  36. "name" : "CostumeButton",
  37. "type" : "button",
  38.  
  39. "x" : 5,
  40. "y" : 7,
  41.  
  42. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  43.  
  44. "default_image" : "d:/ymir work/ui/game/kostiumy/kostiumy_01.tga",
  45. "over_image" : "d:/ymir work/ui/game/kostiumy/kostiumy_02.tga",
  46. "down_image" : "d:/ymir work/ui/game/kostiumy/kostiumy_03.tga",
  47. },
  48.  
  49. ## Teleportacja
  50. {
  51. "name" : "TeleButton",
  52. "type" : "button",
  53.  
  54. "x" : 5,
  55. "y" : 40,
  56.  
  57. "tooltip_text" : "Teleportacja",
  58.  
  59. "default_image" : "d:/ymir work/ui/game/teleportacja/teleportacja_01.tga",
  60. "over_image" : "d:/ymir work/ui/game/teleportacja/teleportacja_02.tga",
  61. "down_image" : "d:/ymir work/ui/game/teleportacja/teleportacja_03.tga",
  62. },
  63.  
  64. ## Kosz
  65. {
  66. "name" : "kosz",
  67. "type" : "button",
  68.  
  69. "x" : 5,
  70. "y" : 73,
  71.  
  72. "tooltip_text" : "Kosz",
  73.  
  74. "default_image" : "d:/ymir work/ui/game/kosz/kosz_01.tga",
  75. "over_image" : "d:/ymir work/ui/game/kosz/kosz_02.tga",
  76. "down_image" : "d:/ymir work/ui/game/kosz/kosz_03.tga",
  77. },
  78.  
  79. ## AntyExp
  80. {
  81. "name" : "AntyExp",
  82. "type" : "button",
  83.  
  84. "x" : 5,
  85. "y" : 106,
  86.  
  87. "tooltip_text" : "Anty Exp",
  88.  
  89. "default_image" : "d:/ymir work/ui/game/anty_exp/anty_exp_01.tga",
  90. "over_image" : "d:/ymir work/ui/game/anty_exp/anty_exp_02.tga",
  91. "down_image" : "d:/ymir work/ui/game/anty_exp/anty_exp_03.tga",
  92. },
  93.  
  94. ## Magazyn
  95. {
  96. "name" : "DozorcaButton",
  97. "type" : "button",
  98.  
  99. "x" : 5,
  100. "y" : 139,
  101.  
  102. "tooltip_text" : "Magazyn",
  103.  
  104. "default_image" : "d:/ymir work/ui/game/magazyn_dozorca/magazyn_dozorca_01.tga",
  105. "over_image" : "d:/ymir work/ui/game/magazyn_dozorca/magazyn_dozorca_02.tga",
  106. "down_image" : "d:/ymir work/ui/game/magazyn_dozorca/magazyn_dozorca_03.tga",
  107. },
  108.  
  109. ## Polimorfia
  110. {
  111. "name" : "PolimorfiaButton",
  112. "type" : "button",
  113.  
  114. "x" : 5,
  115. "y" : 172,
  116.  
  117. "tooltip_text" : "Usuń Poli",
  118.  
  119. "default_image" : "d:/ymir work/ui/game/polimorfia/polimorfia_01.tga",
  120. "over_image" : "d:/ymir work/ui/game/polimorfia/polimorfia_02.tga",
  121. "down_image" : "d:/ymir work/ui/game/polimorfia/polimorfia_03.tga",
  122. },
  123.  
  124. ## BonusButton
  125. {
  126. "name" : "OknoBonus",
  127. "type" : "button",
  128.  
  129. "x" : 5,
  130. "y" : 205,
  131.  
  132. "tooltip_text" : "Bonusy",
  133.  
  134. "default_image" : "d:/ymir work/ui/game/zakladka_bonus/zakladka_bonus_01.tga",
  135. "over_image" : "d:/ymir work/ui/game/zakladka_bonus/zakladka_bonus_02.tga",
  136. "down_image" : "d:/ymir work/ui/game/zakladka_bonus/zakladka_bonus_03.tga",
  137. },
  138.  
  139. ## Zmiana EQ
  140. {
  141. "name" : "EqButton",
  142. "type" : "button",
  143.  
  144. "x" : 5,
  145. "y" : 238,
  146.  
  147. "tooltip_text" : "Zmiana EQ",
  148.  
  149. "default_image" : "d:/ymir work/ui/game/zmiana_eq/zmiana_eq_01.tga",
  150. "over_image" : "d:/ymir work/ui/game/zmiana_eq/zmiana_eq_02.tga",
  151. "down_image" : "d:/ymir work/ui/game/zmiana_eq/zmiana_eq_03.tga",
  152. },
  153.  
  154. ## ItemShop
  155. {
  156. "name" : "MallButton",
  157. "type" : "button",
  158.  
  159. "x" : 5,
  160. "y" : 271,
  161.  
  162. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  163.  
  164. "default_image" : "d:/ymir work/ui/game/item_shop/item_shop_01.tga",
  165. "over_image" : "d:/ymir work/ui/game/item_shop/item_shop_02.tga",
  166. "down_image" : "d:/ymir work/ui/game/item_shop/item_shop_03.tga",
  167. },
  168. ),
  169. },
  170.  
  171. {
  172. "name" : "board",
  173. "type" : "board",
  174. "style" : ("attach",),
  175.  
  176. "x" : 37,
  177. "y" : 0,
  178.  
  179. "width" : 176,
  180. "height" : 590+22,
  181.  
  182. "children" :
  183. (
  184.  
  185. ## Title
  186. {
  187. "name" : "TitleBar",
  188. "type" : "titlebar",
  189. "style" : ("attach",),
  190.  
  191. "x" : 8,
  192. "y" : 7,
  193.  
  194. "width" : 161,
  195. "color" : "yellow",
  196.  
  197. "children" :
  198. (
  199. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  200. ),
  201. },
  202.  
  203. ## Equipment Slot
  204. {
  205. "name" : "Equipment_Base",
  206. "type" : "image",
  207.  
  208. "x" : 10,
  209. "y" : 33,
  210.  
  211. "image" : "locale/pl/ui/equipment_bg_with_ring.tga",
  212.  
  213. "children" :
  214. (
  215.  
  216. {
  217. "name" : "EquipmentSlot",
  218. "type" : "slot",
  219.  
  220. "x" : 3,
  221. "y" : 3,
  222.  
  223. "width" : 150,
  224. "height" : 182,
  225.  
  226. "slot" : (
  227. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  228. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  229. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  230. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  231. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  232. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  233. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  234. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  235. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  236. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  237. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  238. {"index":EQUIPMENT_START_INDEX+24, "x":75, "y":106, "width":32, "height":32},
  239. {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  240. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  241. ),
  242. },
  243. {
  244. "name" : "Equipment_Tab_01",
  245. "type" : "radio_button",
  246.  
  247. "x" : 86,
  248. "y" : 161,
  249.  
  250. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  251. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  252. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  253.  
  254. "children" :
  255. (
  256. {
  257. "name" : "Equipment_Tab_01_Print",
  258. "type" : "text",
  259.  
  260. "x" : 0,
  261. "y" : 0,
  262.  
  263. "all_align" : "center",
  264.  
  265. "text" : "I",
  266. },
  267. ),
  268. },
  269. {
  270. "name" : "Equipment_Tab_02",
  271. "type" : "radio_button",
  272.  
  273. "x" : 86 + 32,
  274. "y" : 161,
  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.  
  280. "children" :
  281. (
  282. {
  283. "name" : "Equipment_Tab_02_Print",
  284. "type" : "text",
  285.  
  286. "x" : 0,
  287. "y" : 0,
  288.  
  289. "all_align" : "center",
  290.  
  291. "text" : "II",
  292. },
  293. ),
  294. },
  295.  
  296. ),
  297. },
  298.  
  299. {
  300. "name" : "Inventory_Tab_01",
  301. "type" : "radio_button",
  302.  
  303. "x" : 7,
  304. "y" : 33 + 191,
  305.  
  306. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  307. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  308. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  309. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  310.  
  311. "children" :
  312. (
  313. {
  314. "name" : "Inventory_Tab_01_Print",
  315. "type" : "text",
  316.  
  317. "x" : 0,
  318. "y" : 0,
  319.  
  320. "all_align" : "center",
  321.  
  322. "text" : "I",
  323. },
  324. ),
  325. },
  326. {
  327. "name" : "Inventory_Tab_02",
  328. "type" : "radio_button",
  329.  
  330. "x" : 7 + 32,
  331. "y" : 33 + 191,
  332.  
  333. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  334. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  335. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  336. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  337.  
  338. "children" :
  339. (
  340. {
  341. "name" : "Inventory_Tab_02_Print",
  342. "type" : "text",
  343.  
  344. "x" : 0,
  345. "y" : 0,
  346.  
  347. "all_align" : "center",
  348.  
  349. "text" : "II",
  350. },
  351. ),
  352. },
  353. {
  354. "name" : "Inventory_Tab_03",
  355. "type" : "radio_button",
  356.  
  357. "x" : 7 + 32*2,
  358. "y" : 33 + 191,
  359.  
  360. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  361. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  362. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  363. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  364.  
  365. "children" :
  366. (
  367. {
  368. "name" : "Inventory_Tab_03_Print",
  369. "type" : "text",
  370.  
  371. "x" : 0,
  372. "y" : 0,
  373.  
  374. "all_align" : "center",
  375.  
  376. "text" : "III",
  377. },
  378. ),
  379. },
  380. {
  381. "name" : "Inventory_Tab_04",
  382. "type" : "radio_button",
  383.  
  384. "x" : 7 + 32*3,
  385. "y" : 33 + 191,
  386.  
  387. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  388. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  389. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  390. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  391.  
  392. "children" :
  393. (
  394. {
  395. "name" : "Inventory_Tab_04_Print",
  396. "type" : "text",
  397.  
  398. "x" : 0,
  399. "y" : 0,
  400.  
  401. "all_align" : "center",
  402.  
  403. "text" : "IV",
  404. },
  405. ),
  406. },
  407. {
  408. "name" : "Inventory_Tab_05",
  409. "type" : "radio_button",
  410.  
  411. "x" : 7 + 32*4,
  412. "y" : 33 + 191,
  413.  
  414. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  415. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  416. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  417. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_5,
  418.  
  419. "children" :
  420. (
  421. {
  422. "name" : "Inventory_Tab_05_Print",
  423. "type" : "text",
  424.  
  425. "x" : 0,
  426. "y" : 0,
  427.  
  428. "all_align" : "center",
  429.  
  430. "text" : "V",
  431. },
  432. ),
  433. },
  434.  
  435. ## Item Slot
  436. {
  437. "name" : "ItemSlot",
  438. "type" : "grid_table",
  439.  
  440. "x" : 8,
  441. "y" : 246,
  442.  
  443. "start_index" : 0,
  444. "x_count" : 5,
  445. "y_count" : 9,
  446. "x_step" : 32,
  447. "y_step" : 32,
  448.  
  449. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  450. },
  451.  
  452. ## Print
  453. {
  454. "name":"Money_Slot",
  455. "type":"button",
  456.  
  457. "x":8,
  458. "y":28,
  459.  
  460. "horizontal_align":"center",
  461. "vertical_align":"bottom",
  462.  
  463. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  464. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  465. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  466.  
  467. "children" :
  468. (
  469. {
  470. "name":"Money_Icon",
  471. "type":"image",
  472.  
  473. "x":-18,
  474. "y":2,
  475.  
  476. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  477. },
  478.  
  479. {
  480. "name" : "Money",
  481. "type" : "text",
  482.  
  483. "x" : 3,
  484. "y" : 3,
  485.  
  486. "horizontal_align" : "right",
  487. "text_horizontal_align" : "right",
  488.  
  489. "text" : "123456789",
  490. },
  491. ),
  492. },
  493. {
  494. "name":"PR_Slot",
  495. "type":"button",
  496.  
  497. "x":8,
  498. "y":50,
  499.  
  500. "horizontal_align":"center",
  501. "vertical_align":"bottom",
  502.  
  503. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  504. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  505. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  506.  
  507. "children" :
  508. (
  509. {
  510. "name":"PR_Icon",
  511. "type":"image",
  512.  
  513. "x":-18,
  514. "y":2,
  515.  
  516. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  517. },
  518.  
  519. {
  520. "name" : "PR_much",
  521. "type" : "text",
  522.  
  523. "x" : 3,
  524. "y" : 3,
  525.  
  526. "horizontal_align" : "right",
  527. "text_horizontal_align" : "right",
  528.  
  529. "text" : "0 PR",
  530. },
  531. ),
  532. },
  533. {
  534. "name":"AP_Slot",
  535. "type":"button",
  536.  
  537. "x":8,
  538. "y":72,
  539.  
  540. "horizontal_align":"center",
  541. "vertical_align":"bottom",
  542.  
  543. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  544. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  545. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  546.  
  547. "children" :
  548. (
  549. {
  550. "name":"AP_Icon",
  551. "type":"image",
  552.  
  553. "x":-18,
  554. "y":2,
  555.  
  556. "image":"d:/ymir work/ui/game/osiagniecia/icon_achiev.tga",
  557. },
  558.  
  559. {
  560. "name" : "AP_much",
  561. "type" : "text",
  562.  
  563. "x" : 3,
  564. "y" : 3,
  565.  
  566. "horizontal_align" : "right",
  567. "text_horizontal_align" : "right",
  568.  
  569. "text" : "123456789",
  570. },
  571. ),
  572. },
  573. ),
  574. },
  575. ),
  576. }
Advertisement
RAW Paste Data Copied
Advertisement