Guest User

Untitled

a guest
Feb 29th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.76 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¢¬¡ÍAEA¢¬¡¤I ¨¬IAI ¢Òc¢¯i¡¾a 24 px)
  10. "x" : SCREEN_WIDTH - 176,
  11. "y" : SCREEN_HEIGHT - 37 - 589,
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 176,
  16. "height" : 589,
  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" : 176,
  30. "height" : 589,
  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" : 161,
  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_with_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_RING1, "x":2, "y":106, "width":32, "height":32},
  88. {"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  89. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  90. ),
  91. },
  92. ## Dragon Soul Button
  93. {
  94. "name" : "DSSButton",
  95. "type" : "button",
  96.  
  97. "x" : 114,
  98. "y" : 107,
  99.  
  100. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  101.  
  102. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  103. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  104. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  105. },
  106. ## Offline Shop Button
  107. {
  108. "name" : "OfflineShopButton",
  109. "type" : "button",
  110.  
  111. "x" : 118,
  112. "y" : 148,
  113.  
  114. "tooltip_text" : uiScriptLocale.TASKBAR_OFFLINE_SHOP,
  115.  
  116. "default_image" : "locale/ro/offlineshop/boton1.tga",
  117. "over_image" : "locale/ro/offlineshop/boton2.tga",
  118. "down_image" : "locale/ro/offlineshop/boton1.tga",
  119. },
  120. ## CostumeButton
  121. {
  122. "name" : "CostumeButton",
  123. "type" : "button",
  124.  
  125. "x" : 78,
  126. "y" : 5,
  127.  
  128. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  129.  
  130. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  131. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  132. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  133. },
  134. {
  135. "name" : "Equipment_Tab_01",
  136. "type" : "radio_button",
  137.  
  138. "x" : 86,
  139. "y" : 161,
  140.  
  141. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  142. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  143. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  144.  
  145. "children" :
  146. (
  147. {
  148. "name" : "Equipment_Tab_01_Print",
  149. "type" : "text",
  150.  
  151. "x" : 0,
  152. "y" : 0,
  153.  
  154. "all_align" : "center",
  155.  
  156. "text" : "I",
  157. },
  158. ),
  159. },
  160. {
  161. "name" : "Equipment_Tab_02",
  162. "type" : "radio_button",
  163.  
  164. "x" : 86 + 32,
  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_02_Print",
  175. "type" : "text",
  176.  
  177. "x" : 0,
  178. "y" : 0,
  179.  
  180. "all_align" : "center",
  181.  
  182. "text" : "II",
  183. },
  184. ),
  185. },
  186. {
  187. "name" : "Equipment_Tab_03",
  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_03_Print",
  201. "type" : "text",
  202.  
  203. "x" : 0,
  204. "y" : 0,
  205.  
  206. "all_align" : "center",
  207.  
  208. "text" : "III",
  209. },
  210. ),
  211. },
  212. {
  213. "name" : "Equipment_Tab_04",
  214. "type" : "radio_button",
  215.  
  216. "x" : 86 + 32,
  217. "y" : 161,
  218.  
  219. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  220. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  221. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  222.  
  223. "children" :
  224. (
  225. {
  226. "name" : "Equipment_Tab_04_Print",
  227. "type" : "text",
  228.  
  229. "x" : 0,
  230. "y" : 0,
  231.  
  232. "all_align" : "center",
  233.  
  234. "text" : "IV",
  235. },
  236. ),
  237. },
  238.  
  239. ),
  240. },
  241. {
  242. "name" : "Inventory_Tab_01",
  243. "type" : "radio_button",
  244.  
  245. "x" : 11,
  246. "y" : 33 + 191,
  247.  
  248. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  249. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  250. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  251. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  252.  
  253. "children" :
  254. (
  255. {
  256. "name" : "Inventory_Tab_01_Print",
  257. "type" : "text",
  258.  
  259. "x" : 0,
  260. "y" : 0,
  261.  
  262. "all_align" : "center",
  263.  
  264. "text" : "I",
  265. },
  266. ),
  267. },
  268. {
  269. "name" : "Inventory_Tab_02",
  270. "type" : "radio_button",
  271.  
  272. "x" : 13 + 37,
  273. "y" : 33 + 191,
  274.  
  275. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  276. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  277. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  278. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  279.  
  280. "children" :
  281. (
  282. {
  283. "name" : "Inventory_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. "name" : "Inventory_Tab_03",
  297. "type" : "radio_button",
  298.  
  299. "x" : 13 + 77,
  300. "y" : 33 + 191,
  301.  
  302. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  303. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  304. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  305. "tooltip_text" : "3.Inventar",
  306.  
  307. "children" :
  308. (
  309. {
  310. "name" : "Inventory_Tab_03_Print",
  311. "type" : "text",
  312.  
  313. "x" : 0,
  314. "y" : 0,
  315.  
  316. "all_align" : "center",
  317.  
  318. "text" : "III",
  319. },
  320. ),
  321. },
  322. {
  323. "name" : "Inventory_Tab_04",
  324. "type" : "radio_button",
  325.  
  326. "x" : 14 + 116,
  327. "y" : 33 + 191,
  328.  
  329. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  330. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  331. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  332. "tooltip_text" : "4.Inventar",
  333.  
  334. "children" :
  335. (
  336. {
  337. "name" : "Inventory_Tab_04_Print",
  338. "type" : "text",
  339.  
  340. "x" : 0,
  341. "y" : 0,
  342.  
  343. "all_align" : "center",
  344.  
  345. "text" : "IV",
  346. },
  347. ),
  348. },
  349.  
  350. ## Item Slot
  351. {
  352. "name" : "ItemSlot",
  353. "type" : "grid_table",
  354.  
  355. "x" : 8,
  356. "y" : 246,
  357.  
  358. "start_index" : 0,
  359. "x_count" : 5,
  360. "y_count" : 9,
  361. "x_step" : 32,
  362. "y_step" : 32,
  363.  
  364. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  365. },
  366.  
  367. ## Borar Items Slot
  368. {
  369. "name" : "BorrarItems",
  370. "type" : "image",
  371.  
  372. "x" : 13,
  373. "y" : 538,
  374.  
  375. "image" : "locale/ro/ui/inventar/borrar_items.tga",
  376.  
  377. "children" :
  378. (
  379. {
  380. "name" : "BorrarSlot",
  381. "type" : "slot",
  382.  
  383. "x" : 0,
  384. "y" : 0,
  385.  
  386. "width" : 32,
  387. "height" : 32,
  388.  
  389. "slot" : (
  390. {"index":0, "x":0, "y":0, "width":32, "height":32},
  391. ),
  392. },
  393. ),
  394. },
  395.  
  396. ## Print
  397. {
  398. "name":"Money_Slot",
  399. "type":"button",
  400.  
  401. "x":50,
  402. "y":50,
  403.  
  404. #"horizontal_align":"center",
  405. "vertical_align":"bottom",
  406.  
  407. "default_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  408. "over_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  409. "down_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  410.  
  411. "children" :
  412. (
  413. {
  414. "name" : "Money",
  415. "type" : "text",
  416.  
  417. "x" : 3,
  418. "y" : 3,
  419.  
  420. "horizontal_align" : "right",
  421. "text_horizontal_align" : "right",
  422.  
  423. "text" : "123456789",
  424. },
  425. ),
  426. },
  427. {
  428. "name":"Premium_Slot",
  429. "type":"button",
  430.  
  431. "x":50,
  432. "y":30,
  433.  
  434. #"horizontal_align":"center",
  435. "vertical_align":"bottom",
  436.  
  437. "default_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  438. "over_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  439. "down_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  440.  
  441. "children" :
  442. (
  443. {
  444. "name" : "Premium",
  445. "type" : "text",
  446.  
  447. "x" : 3,
  448. "y" : 3,
  449.  
  450. "horizontal_align" : "right",
  451. "text_horizontal_align" : "right",
  452.  
  453. "text" : "123456789",
  454. },
  455. ),
  456. },
  457.  
  458. ),
  459. },
  460. ),
  461. }
Advertisement
Add Comment
Please, Sign In to add comment