Guest User

Untitled

a guest
Oct 25th, 2017
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.04 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 + 오른쪽으로 부터 띄우기 24 px)
  10. "x" : SCREEN_WIDTH - 212,
  11. "y" : SCREEN_HEIGHT - 37 - 562,
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 176,
  16. "height" : 544,
  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" : 544,
  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. {
  93. "name" : "DSSButton",
  94. "type" : "button",
  95.  
  96. "x" : 114,
  97. "y" : 110,
  98.  
  99. #"tooltip_text" : "Panou Teleportare",
  100.  
  101. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  102. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  103. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  104. },
  105. ## MallButton
  106. {
  107. "name" : "MallButton",
  108. "type" : "button",
  109.  
  110. "x" : 118,
  111. "y" : 148,
  112.  
  113. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  114.  
  115. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  116. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  117. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  118. },
  119. ## CostumeButton
  120. {
  121. "name" : "CostumeButton",
  122. "type" : "button",
  123.  
  124. "x" : 78,
  125. "y" : 5,
  126.  
  127. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  128.  
  129. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  130. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  131. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  132. },
  133. {
  134. "name" : "Equipment_Tab_01",
  135. "type" : "radio_button",
  136.  
  137. "x" : 86,
  138. "y" : 161,
  139.  
  140. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  141. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  142. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  143.  
  144. "children" :
  145. (
  146. {
  147. "name" : "Equipment_Tab_01_Print",
  148. "type" : "text",
  149.  
  150. "x" : 0,
  151. "y" : 0,
  152.  
  153. "all_align" : "center",
  154.  
  155. "text" : "I",
  156. },
  157. ),
  158. },
  159. {
  160. "name" : "Equipment_Tab_02",
  161. "type" : "radio_button",
  162.  
  163. "x" : 86 + 32,
  164. "y" : 161,
  165.  
  166. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  167. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  168. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  169.  
  170. "children" :
  171. (
  172. {
  173. "name" : "Equipment_Tab_02_Print",
  174. "type" : "text",
  175.  
  176. "x" : 0,
  177. "y" : 0,
  178.  
  179. "all_align" : "center",
  180.  
  181. "text" : "II",
  182. },
  183. ),
  184. },
  185.  
  186. ),
  187. },
  188.  
  189. {
  190. "name" : "Inventory_Tab_01",
  191. "type" : "radio_button",
  192. "x" : 10,
  193. "y" : 33 + 191,
  194. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  195. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  196. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  197. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  198. "children" :
  199. (
  200. {
  201. "name" : "Inventory_Tab_01_Print",
  202. "type" : "text",
  203. "x" : 0,
  204. "y" : 0,
  205. "all_align" : "center",
  206. "text" : "I",
  207. },
  208. ),
  209. },
  210. {
  211. "name" : "Inventory_Tab_02",
  212. "type" : "radio_button",
  213. "x" : 10 + 39,
  214. "y" : 33 + 191,
  215. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  216. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  217. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  218. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  219. "children" :
  220. (
  221. {
  222. "name" : "Inventory_Tab_02_Print",
  223. "type" : "text",
  224. "x" : 0,
  225. "y" : 0,
  226. "all_align" : "center",
  227. "text" : "II",
  228. },
  229. ),
  230. },
  231. {
  232. "name" : "Inventory_Tab_03",
  233. "type" : "radio_button",
  234. "x" : 10 + 39 + 39,
  235. "y" : 33 + 191,
  236. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  237. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  238. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  239. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  240. "children" :
  241. (
  242. {
  243. "name" : "Inventory_Tab_03_Print",
  244. "type" : "text",
  245. "x" : 0,
  246. "y" : 0,
  247. "all_align" : "center",
  248. "text" : "III",
  249. },
  250. ),
  251. },
  252. {
  253. "name" : "Inventory_Tab_04",
  254. "type" : "radio_button",
  255. "x" : 10 + 39 + 39 + 39,
  256. "y" : 33 + 191,
  257. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  258. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  259. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  260. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  261. "children" :
  262. (
  263. {
  264. "name" : "Inventory_Tab_04_Print",
  265. "type" : "text",
  266. "x" : 0,
  267. "y" : 0,
  268. "all_align" : "center",
  269. "text" : "IV",
  270. },
  271. ),
  272. },
  273.  
  274.  
  275.  
  276. ## Item Slot
  277. {
  278. "name" : "ItemSlot",
  279. "type" : "grid_table",
  280.  
  281. "x" : 8,
  282. "y" : 246,
  283.  
  284. "start_index" : 0,
  285. "x_count" : 5,
  286. "y_count" : 9,
  287. "x_step" : 32,
  288. "y_step" : 32,
  289.  
  290. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  291. },
  292.  
  293. #inventory_expansion
  294. {
  295. "name":"engel_01_open",
  296. "type":"button",
  297. "vertical_align":"bottom",
  298.  
  299. "x":8,
  300. "y":299,
  301.  
  302. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  303. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  304. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  305. },
  306. {
  307. "name":"engel_01_close",
  308. "type":"image",
  309. "vertical_align":"bottom",
  310.  
  311. "x":8,
  312. "y":299,
  313.  
  314. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  315. },
  316. {
  317. "name":"engel_02_open",
  318. "type":"button",
  319. "vertical_align":"bottom",
  320.  
  321. "x":8,
  322. "y":299 - 32,
  323.  
  324. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  325. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  326. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  327. },
  328. {
  329. "name":"engel_02_close",
  330. "type":"image",
  331. "vertical_align":"bottom",
  332.  
  333. "x":8,
  334. "y":299 - 32,
  335.  
  336. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  337. },
  338. {
  339. "name":"engel_03_open",
  340. "type":"button",
  341. "vertical_align":"bottom",
  342.  
  343. "x":8,
  344. "y":299 - 64,
  345.  
  346. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  347. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  348. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  349. },
  350. {
  351. "name":"engel_03_close",
  352. "type":"image",
  353. "vertical_align":"bottom",
  354.  
  355. "x":8,
  356. "y":299 - 64,
  357.  
  358. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  359. },
  360. {
  361. "name":"engel_04_open",
  362. "type":"button",
  363. "vertical_align":"bottom",
  364.  
  365. "x":8,
  366. "y":299 - 96,
  367.  
  368. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  369. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  370. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  371. },
  372. {
  373. "name":"engel_04_close",
  374. "type":"image",
  375. "vertical_align":"bottom",
  376.  
  377. "x":8,
  378. "y":299 - 96,
  379.  
  380. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  381. },
  382. {
  383. "name":"engel_05_open",
  384. "type":"button",
  385. "vertical_align":"bottom",
  386.  
  387. "x":8,
  388. "y":299 - 128,
  389.  
  390. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  391. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  392. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  393. },
  394. {
  395. "name":"engel_05_close",
  396. "type":"image",
  397. "vertical_align":"bottom",
  398.  
  399. "x":8,
  400. "y":299 - 128,
  401.  
  402. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  403. },
  404. {
  405. "name":"engel_06_open",
  406. "type":"button",
  407. "vertical_align":"bottom",
  408.  
  409. "x":8,
  410. "y":299 - 160,
  411.  
  412. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  413. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  414. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  415. },
  416. {
  417. "name":"engel_06_close",
  418. "type":"image",
  419. "vertical_align":"bottom",
  420.  
  421. "x":8,
  422. "y":299 - 160,
  423.  
  424. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  425. },
  426. {
  427. "name":"engel_07_open",
  428. "type":"button",
  429. "vertical_align":"bottom",
  430.  
  431. "x":8,
  432. "y":299 - 192,
  433.  
  434. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  435. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  436. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  437. },
  438. {
  439. "name":"engel_07_close",
  440. "type":"image",
  441. "vertical_align":"bottom",
  442.  
  443. "x":8,
  444. "y":299 - 192,
  445.  
  446. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  447. },
  448. {
  449. "name":"engel_08_open",
  450. "type":"button",
  451. "vertical_align":"bottom",
  452.  
  453. "x":8,
  454. "y":299 - 224,
  455.  
  456. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  457. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  458. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  459. },
  460. {
  461. "name":"engel_08_close",
  462. "type":"image",
  463. "vertical_align":"bottom",
  464.  
  465. "x":8,
  466. "y":299 - 224,
  467.  
  468. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  469. },
  470. {
  471. "name":"engel_09_open",
  472. "type":"button",
  473. "vertical_align":"bottom",
  474.  
  475. "x":8,
  476. "y":299 - 256,
  477.  
  478. "default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  479. "over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  480. "down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
  481. },
  482. {
  483. "name":"engel_09_close",
  484. "type":"image",
  485. "vertical_align":"bottom",
  486.  
  487. "x":8,
  488. "y":299 - 256,
  489.  
  490. "image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
  491. },
  492. ),
  493. },
  494. ),
  495. }
Advertisement
Add Comment
Please, Sign In to add comment