Advertisement
Guest User

Untitled

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