Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.73 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3. import uiToolTip
  4. import uisupportsystem
  5.  
  6. EQUIPMENT_START_INDEX = 180
  7.  
  8. window = {
  9. "name" : "InventoryWindow",
  10.  
  11. ## 600 - (width + ????? ?? ??? 24 px)
  12. "x" : SCREEN_WIDTH - 210,
  13. "y" : SCREEN_HEIGHT - 37 - 580,
  14.  
  15. "style" : ("movable", "float",),
  16.  
  17. "width" : 210,
  18. "height" : 580,
  19.  
  20. "children" :
  21. (
  22. ## Inventory, Equipment Slots
  23. {
  24. "name" : "board",
  25. "type" : "board",
  26. "style" : ("attach",),
  27.  
  28. "x" : 0,
  29. "y" : 0,
  30.  
  31. "width" : 210,
  32. "height" : 580,
  33.  
  34. "children" :
  35. (
  36. ## Vezi bonusurile
  37. {
  38. "name" : "Alaska_py",
  39. "type" : "button",
  40. "x" : 168,
  41. "y" : 37,
  42. "default_image" : "d:/ymir work/ui/game/1.tga",
  43. "over_image" : "d:/ymir work/ui/game/1.tga",
  44. "down_image" : "d:/ymir work/ui/game/1_1.tga",
  45. },
  46. ## Switchbot
  47. {
  48. "name" : "Titan_py",
  49. "type" : "button",
  50. "x" : 168, ##aici modifici tu pozitia butonului
  51. "y" : 74, ##la fel ca mai sus
  52. "default_image" : "d:/ymir work/ui/game/2.tga",
  53. "over_image" : "d:/ymir work/ui/game/2.tga",
  54. "down_image" : "d:/ymir work/ui/game/2_1.tga",
  55. },
  56. ## Noapte Zi
  57. {
  58. "name" : "noaptezi",
  59. "type" : "button",
  60. "x" : 168 ,
  61. "y" : 111,
  62. "default_image" : "d:/ymir work/ui/game/3.tga",
  63. "over_image" : "d:/ymir work/ui/game/3.tga",
  64. "down_image" : "d:/ymir work/ui/game/3_1.tga",
  65. },
  66. ## Inel Teleport
  67. {
  68. "name" : "Telep",
  69. "type" : "button",
  70. "x" : 168,
  71. "y" : 148,
  72. "default_image" : "d:/ymir work/ui/game/4.tga",
  73. "over_image" : "d:/ymir work/ui/game/4.tga",
  74. "down_image" : "d:/ymir work/ui/game/4_1.tga",
  75. },
  76.  
  77. ## Shop-Offline
  78. {
  79. "name" : "offlineshop",
  80. "type" : "button",
  81. "x" : 168,
  82. "y" : 185,
  83. "default_image" : "d:/ymir work/ui/game/shop.tga",
  84. "over_image" : "d:/ymir work/ui/game/shop.tga",
  85. "down_image" : "d:/ymir work/ui/game/shop_1.tga",
  86. },
  87.  
  88. ## Shaman
  89. {
  90. "name" : "supportpg",
  91. "type" : "button",
  92. "x" : 168,
  93. "y" : 222,
  94. "default_image" : "d:/ymir work/ui/game/shaman.tga",
  95. "over_image" : "d:/ymir work/ui/game/shaman.tga",
  96. "down_image" : "d:/ymir work/ui/game/shaman_1.tga",
  97. },
  98.  
  99. ## Title
  100. {
  101. "name" : "TitleBar",
  102. "type" : "titlebar",
  103. "style" : ("attach",),
  104.  
  105. "x" : 8,
  106. "y" : 7,
  107.  
  108. "width" : 161,
  109. "color" : "yellow",
  110.  
  111. "children" :
  112. (
  113. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  114. ),
  115. },
  116.  
  117. ## Equipment Slot
  118. {
  119. "name" : "Equipment_Base",
  120. "type" : "image",
  121.  
  122. "x" : 10,
  123. "y" : 33,
  124.  
  125. "image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",
  126.  
  127. "children" :
  128. (
  129.  
  130. {
  131. "name" : "EquipmentSlot",
  132. "type" : "slot",
  133.  
  134. "x" : 3,
  135. "y" : 3,
  136.  
  137. "width" : 150,
  138. "height" : 182,
  139.  
  140. "slot" : (
  141. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  142. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  143. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  144. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  145. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  146. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  147. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  148. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  149. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  150. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  151. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  152. ## ? ??1
  153. {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  154. ## ? ??2
  155. {"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  156. ## ? ??
  157. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  158. ),
  159. },
  160.  
  161.  
  162.  
  163. ## Lock Button
  164. {
  165. "name" : "InventoryLockBtn",
  166. "type" : "button",
  167.  
  168. "x" : 118,
  169. "y" : 107,
  170.  
  171. "tooltip_text" : uiScriptLocale.INVENTORY_BUTTON_UNLOCK,
  172.  
  173. "default_image" : "locale/ro/ui/inventory_button/inventory_button_open_01.tga",
  174. "over_image" : "locale/ro/ui/inventory_button/inventory_button_open_02.tga",
  175. "down_image" : "locale/ro/ui/inventory_button/inventory_button_open_03.tga",
  176. },
  177. ## Unlock Button
  178. {
  179. "name" : "InventoryUnlockBtn",
  180. "type" : "button",
  181.  
  182. "x" : 118,
  183. "y" : 107,
  184.  
  185. "tooltip_text" : uiScriptLocale.INVENTORY_BUTTON_LOCK,
  186.  
  187. "default_image" : "locale/ro/ui/inventory_button/inventory_button_close_01.tga",
  188. "over_image" : "locale/ro/ui/inventory_button/inventory_button_close_02.tga",
  189. "down_image" : "locale/ro/ui/inventory_button/inventory_button_close_03.tga",
  190. },
  191.  
  192. ## MallButton
  193. {
  194. "name" : "MallButton",
  195. "type" : "button",
  196.  
  197. "x" : 118,
  198. "y" : 148,
  199.  
  200. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  201.  
  202. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  203. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  204. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  205. },
  206. ## CostumeButton
  207. {
  208. "name" : "CostumeButton",
  209. "type" : "button",
  210.  
  211. "x" : 78,
  212. "y" : 5,
  213.  
  214. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  215.  
  216. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  217. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  218. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  219. },
  220. {
  221. "name" : "Equipment_Tab_01",
  222. "type" : "radio_button",
  223.  
  224. "x" : 86,
  225. "y" : 161,
  226.  
  227. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  228. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  229. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  230.  
  231. "children" :
  232. (
  233. {
  234. "name" : "Equipment_Tab_01_Print",
  235. "type" : "text",
  236.  
  237. "x" : 0,
  238. "y" : 0,
  239.  
  240. "all_align" : "center",
  241.  
  242. "text" : "I",
  243. },
  244. ),
  245. },
  246. {
  247. "name" : "Equipment_Tab_02",
  248. "type" : "radio_button",
  249.  
  250. "x" : 86 + 32,
  251. "y" : 161,
  252.  
  253. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  254. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  255. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  256.  
  257. "children" :
  258. (
  259. {
  260. "name" : "Equipment_Tab_02_Print",
  261. "type" : "text",
  262.  
  263. "x" : 0,
  264. "y" : 0,
  265.  
  266. "all_align" : "center",
  267.  
  268. "text" : "II",
  269. },
  270. ),
  271. },
  272.  
  273. ),
  274. },
  275.  
  276. {
  277. "name" : "Inventory_Tab_01",
  278. "type" : "radio_button",
  279.  
  280. "x" : 10,
  281. "y" : 33 + 189,
  282.  
  283. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  284. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  285. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  286. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  287.  
  288. "children" :
  289. (
  290. {
  291. "name" : "Inventory_Tab_01_Print",
  292. "type" : "text",
  293.  
  294. "x" : 0,
  295. "y" : 0,
  296.  
  297. "all_align" : "center",
  298.  
  299. "text" : "I",
  300. },
  301. ),
  302. },
  303. {
  304. "name" : "Inventory_Tab_02",
  305. "type" : "radio_button",
  306.  
  307. "x" : 10 + 78,
  308. "y" : 33 + 189,
  309.  
  310. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  311. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  312. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  313. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  314.  
  315. "children" :
  316. (
  317. {
  318. "name" : "Inventory_Tab_02_Print",
  319. "type" : "text",
  320.  
  321. "x" : 0,
  322. "y" : 0,
  323.  
  324. "all_align" : "center",
  325.  
  326. "text" : "II",
  327. },
  328. ),
  329. },
  330. {
  331. "name" : "Inventory_Tab_03",
  332. "type" : "radio_button",
  333.  
  334. "x" : 10,
  335. "y" : 33 + 210,
  336.  
  337. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  338. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  339. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  340. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  341.  
  342. "children" :
  343. (
  344. {
  345. "name" : "Inventory_Tab_03_Print",
  346. "type" : "text",
  347.  
  348. "x" : 0,
  349. "y" : 0,
  350.  
  351. "all_align" : "center",
  352.  
  353. "text" : "III",
  354. },
  355. ),
  356. },
  357. {
  358. "name" : "Inventory_Tab_04",
  359. "type" : "radio_button",
  360.  
  361. "x" : 10 + 78,
  362. "y" : 33 + 210,
  363.  
  364. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  365. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  366. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  367. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  368.  
  369. "children" :
  370. (
  371. {
  372. "name" : "Inventory_Tab_04_Print",
  373. "type" : "text",
  374.  
  375. "x" : 0,
  376. "y" : 0,
  377.  
  378. "all_align" : "center",
  379.  
  380. "text" : "IV",
  381. },
  382. ),
  383. },
  384.  
  385. ## Item Slot
  386. {
  387. "name" : "ItemSlot",
  388. "type" : "grid_table",
  389.  
  390. "x" : 8,
  391. "y" : 264,
  392.  
  393. "start_index" : 0,
  394. "x_count" : 5,
  395. "y_count" : 9,
  396. "x_step" : 32,
  397. "y_step" : 32,
  398.  
  399. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  400. },
  401.  
  402. ## Print
  403. {
  404. "name":"Money_Icon",
  405. "type":"image",
  406. "vertical_align":"bottom",
  407.  
  408. "x":59,
  409. "y":26,
  410.  
  411. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  412. "tooltip_text" : "Yang",
  413. },
  414. {
  415. "name":"Money_Slot",
  416. "type":"button",
  417.  
  418. "x":75,
  419. "y":28,
  420.  
  421. "vertical_align":"bottom",
  422.  
  423. "default_image" : "d:/ymir work/ui/yang.tga",
  424. "over_image" : "d:/ymir work/ui/yang.tga",
  425. "down_image" : "d:/ymir work/ui/yang.tga",
  426. "tooltip_text" : "Yang",
  427.  
  428. "children" :
  429. (
  430. {
  431. "name" : "Money",
  432. "type" : "text",
  433.  
  434. "x" : 3,
  435. "y" : 3,
  436.  
  437. "horizontal_align" : "right",
  438. "text_horizontal_align" : "right",
  439.  
  440. "text" : "123456789",
  441. },
  442. ),
  443. },
  444. {
  445. "name":"Gaya_Icon",
  446. "type":"image",
  447. "vertical_align":"bottom",
  448.  
  449. "x":9,
  450. "y":26,
  451.  
  452. "image":"d:/ymir work/ui/gemshop/gemshop_gemicon.sub",
  453. "tooltip_text" : "Gaya",
  454. },
  455. {
  456. "name":"Gaya_Slot",
  457. "type":"button",
  458.  
  459. "x":28,
  460. "y":28,
  461.  
  462. "vertical_align":"bottom",
  463.  
  464. "default_image" : "d:/ymir work/ui/ptc.tga",
  465. "over_image" : "d:/ymir work/ui/ptc.tga",
  466. "down_image" : "d:/ymir work/ui/ptc.tga",
  467. "tooltip_text" : "Gaya",
  468.  
  469. "children" :
  470. (
  471. {
  472. "name" : "Gaya",
  473. "type" : "text",
  474.  
  475. "x" : 3,
  476. "y" : 3,
  477.  
  478. "horizontal_align" : "right",
  479. "text_horizontal_align" : "right",
  480.  
  481. "text" : "1234",
  482. },
  483. ),
  484. },
  485.  
  486. ),
  487. },
  488. ),
  489. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement