Guest User

Untitled

a guest
Feb 3rd, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.73 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 - 176,
  11. "y" : SCREEN_HEIGHT - 37 - 565 - 20,
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 176,
  16. "height" : 565,
  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" : 565 + 20,
  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_without_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. ## 새 반지1
  88. ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  89. ## 새 반지2
  90. ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  91. ## 새 벨트
  92. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  93. ),
  94. },
  95. ## Dragon Soul Button
  96. {
  97. "name" : "DSSButton",
  98. "type" : "button",
  99.  
  100. "x" : 114,
  101. "y" : 107,
  102.  
  103. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  104.  
  105. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  106. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  107. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  108. },
  109. ## MallButton
  110. {
  111. "name" : "MallButton",
  112. "type" : "button",
  113.  
  114. "x" : 118,
  115. "y" : 148,
  116.  
  117. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  118.  
  119. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  120. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  121. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  122. },
  123. ## CostumeButton
  124. {
  125. "name" : "CostumeButton",
  126. "type" : "button",
  127.  
  128. "x" : 78,
  129. "y" : 5,
  130.  
  131. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  132.  
  133. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  134. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  135. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  136. },
  137. {
  138. "name" : "Equipment_Tab_01",
  139. "type" : "radio_button",
  140.  
  141. "x" : 86,
  142. "y" : 161,
  143.  
  144. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  145. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  146. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  147.  
  148. "children" :
  149. (
  150. {
  151. "name" : "Equipment_Tab_01_Print",
  152. "type" : "text",
  153.  
  154. "x" : 0,
  155. "y" : 0,
  156.  
  157. "all_align" : "center",
  158.  
  159. "text" : "I",
  160. },
  161. ),
  162. },
  163. {
  164. "name" : "Equipment_Tab_02",
  165. "type" : "radio_button",
  166.  
  167. "x" : 86 + 32,
  168. "y" : 161,
  169.  
  170. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  171. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  172. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  173.  
  174. "children" :
  175. (
  176. {
  177. "name" : "Equipment_Tab_02_Print",
  178. "type" : "text",
  179.  
  180. "x" : 0,
  181. "y" : 0,
  182.  
  183. "all_align" : "center",
  184.  
  185. "text" : "II",
  186. },
  187. ),
  188. },
  189.  
  190. ),
  191. },
  192.  
  193. {
  194. "name" : "Inventory_Tab_01",
  195. "type" : "radio_button",
  196.  
  197. "x" : 10,
  198. "y" : 33 + 191,
  199.  
  200. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  201. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  202. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  203. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  204.  
  205. "children" :
  206. (
  207. {
  208. "name" : "Inventory_Tab_01_Print",
  209. "type" : "text",
  210.  
  211. "x" : 0,
  212. "y" : 0,
  213.  
  214. "all_align" : "center",
  215.  
  216. "text" : "I",
  217. },
  218. ),
  219. },
  220. {
  221. "name" : "Inventory_Tab_02",
  222. "type" : "radio_button",
  223.  
  224. "x" : 10 + 78,
  225. "y" : 33 + 191,
  226.  
  227. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  228. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  229. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  230. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  231.  
  232. "children" :
  233. (
  234. {
  235. "name" : "Inventory_Tab_02_Print",
  236. "type" : "text",
  237.  
  238. "x" : 0,
  239. "y" : 0,
  240.  
  241. "all_align" : "center",
  242.  
  243. "text" : "II",
  244. },
  245. ),
  246. },
  247. {
  248. "name" : "Inventory_Tab_03",
  249. "type" : "radio_button",
  250.  
  251. "x" : 10,
  252. "y" : 33 + 191 + 20,
  253.  
  254. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  255. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  256. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  257. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  258.  
  259. "children" :
  260. (
  261. {
  262. "name" : "Inventory_Tab_03_Print",
  263. "type" : "text",
  264.  
  265. "x" : 0,
  266. "y" : 0,
  267.  
  268. "all_align" : "center",
  269.  
  270. "text" : "III",
  271. },
  272. ),
  273. },
  274. {
  275. "name" : "Inventory_Tab_04",
  276. "type" : "radio_button",
  277.  
  278. "x" : 10 + 78,
  279. "y" : 33 + 191 + 20,
  280.  
  281. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  282. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  283. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  284. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  285.  
  286. "children" :
  287. (
  288. {
  289. "name" : "Inventory_Tab_04_Print",
  290. "type" : "text",
  291.  
  292. "x" : 0,
  293. "y" : 0,
  294.  
  295. "all_align" : "center",
  296.  
  297. "text" : "IV",
  298. },
  299. ),
  300. },
  301.  
  302. ## Item Slot
  303. {
  304. "name" : "ItemSlot",
  305. "type" : "grid_table",
  306.  
  307. "x" : 8,
  308. "y" : 246 + 20,
  309.  
  310. "start_index" : 0,
  311. "x_count" : 5,
  312. "y_count" : 9,
  313. "x_step" : 32,
  314. "y_step" : 32,
  315.  
  316. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  317. },
  318.  
  319. ## Print
  320. {
  321. "name":"Money_Slot",
  322. "type":"button",
  323.  
  324. "x":8,
  325. "y":28,
  326.  
  327. "horizontal_align":"center",
  328. "vertical_align":"bottom",
  329.  
  330. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  331. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  332. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  333.  
  334. "children" :
  335. (
  336. {
  337. "name":"Money_Icon",
  338. "type":"image",
  339.  
  340. "x":-18,
  341. "y":2,
  342.  
  343. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  344. },
  345.  
  346. {
  347. "name" : "Money",
  348. "type" : "text",
  349.  
  350. "x" : 3,
  351. "y" : 3,
  352.  
  353. "horizontal_align" : "right",
  354. "text_horizontal_align" : "right",
  355.  
  356. "text" : "123456789",
  357. },
  358. ),
  359. },
  360.  
  361. ),
  362. },
  363. ),
  364. }
Advertisement
Add Comment
Please, Sign In to add comment