Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.17 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. GET_IMAGE_BUTTON = "locale/ro/ui/button_inventory/"
  5.  
  6. position_button_1_x = 10
  7. position_button_1_y = 10
  8. position_button_2_x = 10
  9. position_button_2_y = 42
  10. position_button_3_x = 10
  11. position_button_3_y = 72
  12. position_button_4_x = 10
  13. position_button_4_y = 102
  14. position_button_5_x = 10
  15. position_button_5_y = 134
  16. position_button_6_x = 10
  17. position_button_6_y = 166
  18.  
  19. EQUIPMENT_START_INDEX = 180
  20. LOCALE_PATH = "locale/ro/ui/inventory_button/"
  21.  
  22. window = {
  23. "name" : "InventoryWindow",
  24.  
  25. ## 600 - (width + 오른쪽으로 부터 띄우기 24 px) 568
  26. "x" : SCREEN_WIDTH - 180,
  27. "y" : SCREEN_HEIGHT - 37 - 610,
  28.  
  29. "style" : ("movable", "float",),
  30.  
  31. "width" : 176,
  32. "height" : 568,
  33.  
  34. "children" :
  35. (
  36. {
  37. "name" : "board",
  38. "type" : "board",
  39. "style" : ("attach",),
  40.  
  41. "x" : 0,
  42. "y" : +15,
  43. "vertical_align":"center",
  44.  
  45. "width" : 40,
  46. "height" : 210,
  47.  
  48. "children" :
  49. (
  50. {
  51. "name" : "Button_Function_1",
  52. "type" : "button",
  53.  
  54. "x" : position_button_1_x,
  55. "y" : position_button_1_y,
  56.  
  57. "tooltip_text" : "Switchbot",
  58.  
  59. "default_image" : GET_IMAGE_BUTTON + "swichboot.tga",
  60. "over_image" : GET_IMAGE_BUTTON + "swichboot.tga",
  61. "down_image" : GET_IMAGE_BUTTON + "swichboot.tga",
  62. },
  63. {
  64. "name" : "Button_Function_2",
  65. "type" : "button",
  66.  
  67. "x" : position_button_2_x,
  68. "y" : position_button_2_y,
  69.  
  70. "tooltip_text" : "Switchbot2",
  71.  
  72. "default_image" : GET_IMAGE_BUTTON + "number_x2_01.tga",
  73. "over_image" : GET_IMAGE_BUTTON + "number_x2_02.tga",
  74. "down_image" : GET_IMAGE_BUTTON + "number_x2_03.tga",
  75. },
  76. {
  77. "name" : "Button_Function_3",
  78. "type" : "button",
  79.  
  80. "x" : position_button_3_x,
  81. "y" : position_button_3_y,
  82.  
  83. "tooltip_text" : "Switchbot3",
  84.  
  85. "default_image" : GET_IMAGE_BUTTON + "number_x3_01.tga",
  86. "over_image" : GET_IMAGE_BUTTON + "number_x3_02.tga",
  87. "down_image" : GET_IMAGE_BUTTON + "number_x3_03.tga",
  88. },
  89. {
  90. "name" : "Button_Function_4",
  91. "type" : "button",
  92.  
  93. "x" : position_button_4_x,
  94. "y" : position_button_4_y,
  95.  
  96. "tooltip_text" : "Switchbot4",
  97.  
  98. "default_image" : GET_IMAGE_BUTTON + "number_x4_01.tga",
  99. "over_image" : GET_IMAGE_BUTTON + "number_x4_02.tga",
  100. "down_image" : GET_IMAGE_BUTTON + "number_x4_03.tga",
  101. },
  102. {
  103. "name" : "Button_Function_5",
  104. "type" : "button",
  105.  
  106. "x" : position_button_5_x,
  107. "y" : position_button_5_y,
  108.  
  109. "tooltip_text" : "Switchbot5",
  110.  
  111. "default_image" : GET_IMAGE_BUTTON + "number_x5_01.tga",
  112. "over_image" : GET_IMAGE_BUTTON + "number_x5_02.tga",
  113. "down_image" : GET_IMAGE_BUTTON + "number_x5_03.tga",
  114. },
  115. {
  116. "name" : "Button_Function_6",
  117. "type" : "button",
  118.  
  119. "x" : position_button_6_x,
  120. "y" : position_button_6_y,
  121.  
  122. "tooltip_text" : "Switchbot6",
  123.  
  124. "default_image" : GET_IMAGE_BUTTON + "number_x6_01.tga",
  125. "over_image" : GET_IMAGE_BUTTON + "number_x6_02.tga",
  126. "down_image" : GET_IMAGE_BUTTON + "number_x6_03.tga",
  127. },
  128. ),
  129. },
  130. ## Inventory, Equipment Slots
  131. {
  132. "name" : "board",
  133. "type" : "board",
  134. "style" : ("attach",),
  135.  
  136. "x" : 0,
  137. "y" : 0,
  138.  
  139. "width" : 176,
  140. "height" : 568,
  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. "x" : 10,
  166. "y" : 33,
  167. "image" : "d:/ymir work/ui/equipment_bg_wit_pet1.png",
  168. "children" :
  169. (
  170. {
  171. "name" : "EquipmentSlot",
  172. "type" : "slot",
  173.  
  174. "x" : 3,
  175. "y" : 3,
  176.  
  177. "width" : 150,
  178. "height" : 217,
  179.  
  180. "slot" : (
  181. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  182. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  183. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  184. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  185. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  186. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  187. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  188. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  189. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  190. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  191. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  192. {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  193. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  194. {"index":item.EQUIPMENT_PET , "x":75, "y":106, "width":32, "height":32},
  195. {"index":item.EQUIPMENT_TITLE , "x":0, "y":180, "width":32, "height":32},
  196. {"index":item.EQUIPMENT_BUFF , "x":38, "y":180, "width":32, "height":32},
  197. ),
  198. },
  199. {
  200. "name" : "OFFButton",
  201. "type" : "button",
  202.  
  203. # "x" : 77,
  204. # "y" : 110,
  205. "x" : 116,
  206. "y" : 145,
  207.  
  208. "tooltip_text" : "Magazin Privat",
  209.  
  210. "default_image" : LOCALE_PATH+"private_button_01.tga",
  211. "over_image" : LOCALE_PATH+"private_button_02.tga",
  212. "down_image" : LOCALE_PATH+"private_button_01.tga",
  213. },
  214. {
  215. "name" : "SWITCHButton",
  216. "type" : "button",
  217.  
  218. "x" : 76,
  219. "y" : 180,
  220.  
  221. "tooltip_text" : "Depozit Special",
  222.  
  223. "default_image" : LOCALE_PATH+"depozit_special_2.png",
  224. "over_image" : LOCALE_PATH+"depozit_special.png",
  225. "down_image" : LOCALE_PATH+"depozit_special_2.png",
  226. },
  227. {
  228. "name" : "INFOCHESTButton",
  229. "type" : "button",
  230.  
  231. "x" : 114,
  232. "y" : 180,
  233.  
  234. "tooltip_text" : "Meniu",
  235.  
  236. "default_image" : LOCALE_PATH+"mcard_button_01.png",
  237. "over_image" : LOCALE_PATH+"mcard_button_02.png",
  238. "down_image" : LOCALE_PATH+"mcard_button_01.png",
  239. },
  240. ## CostumeButton
  241. {
  242. "name" : "CostumeButton",
  243. "type" : "button",
  244.  
  245. "x" : 78,
  246. "y" : 5,
  247.  
  248. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  249.  
  250. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  251. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  252. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  253. },
  254. {
  255. "name" : "Equipment_Tab_01",
  256. "type" : "radio_button",
  257.  
  258. "x" : 86,
  259. # "y" : 161,
  260. "y" : 215,
  261.  
  262. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  263. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  264. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  265.  
  266. "children" :
  267. (
  268. {
  269. "name" : "Equipment_Tab_01_Print",
  270. "type" : "text",
  271.  
  272. "x" : 0,
  273. "y" : 0,
  274.  
  275. "all_align" : "center",
  276.  
  277. "text" : "I",
  278. },
  279. ),
  280. },
  281. {
  282. "name" : "Equipment_Tab_02",
  283. "type" : "radio_button",
  284.  
  285. "x" : 86 + 32,
  286. "y" : 215,
  287.  
  288. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  289. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  290. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  291.  
  292. "children" :
  293. (
  294. {
  295. "name" : "Equipment_Tab_02_Print",
  296. "type" : "text",
  297.  
  298. "x" : 0,
  299. "y" : 0,
  300.  
  301. "all_align" : "center",
  302.  
  303. "text" : "II",
  304. },
  305. ),
  306. },
  307.  
  308. ),
  309. },
  310.  
  311. {
  312. "name" : "Inventory_Tab_01",
  313. "type" : "radio_button",
  314. "x" : 10,
  315. "y" : 33 + 215,
  316. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  317. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  318. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  319. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  320. "children" :
  321. (
  322. {
  323. "name" : "Inventory_Tab_01_Print",
  324. "type" : "text",
  325. "x" : 0,
  326. "y" : 0,
  327. "all_align" : "center",
  328. "text" : "I",
  329. },
  330. ),
  331. },
  332. {
  333. "name" : "Inventory_Tab_02",
  334. "type" : "radio_button",
  335. "x" : 10 + 39,
  336. "y" : 33 + 215,
  337. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  338. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  339. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  340. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  341. "children" :
  342. (
  343. {
  344. "name" : "Inventory_Tab_02_Print",
  345. "type" : "text",
  346. "x" : 0,
  347. "y" : 0,
  348. "all_align" : "center",
  349. "text" : "II",
  350. },
  351. ),
  352. },
  353. {
  354. "name" : "Inventory_Tab_03",
  355. "type" : "radio_button",
  356. "x" : 10 + 39 + 39,
  357. "y" : 33 + 215,
  358. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  359. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  360. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  361. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  362. "children" :
  363. (
  364. {
  365. "name" : "Inventory_Tab_03_Print",
  366. "type" : "text",
  367. "x" : 0,
  368. "y" : 0,
  369. "all_align" : "center",
  370. "text" : "III",
  371. },
  372. ),
  373. },
  374. {
  375. "name" : "Inventory_Tab_04",
  376. "type" : "radio_button",
  377. "x" : 10 + 39 + 39 + 39,
  378. "y" : 33 + 215,
  379. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  380. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  381. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  382. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  383. "children" :
  384. (
  385. {
  386. "name" : "Inventory_Tab_04_Print",
  387. "type" : "text",
  388. "x" : 0,
  389. "y" : 0,
  390. "all_align" : "center",
  391. "text" : "IV",
  392. },
  393. ),
  394. },
  395. ## Item Slot
  396. {
  397. "name" : "ItemSlot",
  398. "type" : "grid_table",
  399.  
  400. "x" : 8,
  401. "y" : 266,
  402.  
  403. "start_index" : 0,
  404. "x_count" : 5,
  405. "y_count" : 9,
  406. "x_step" : 32,
  407. "y_step" : 32,
  408.  
  409. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  410. },
  411. ),
  412. },
  413. ),
  414. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement