Advertisement
Guest User

tedesd

a guest
Mar 10th, 2020
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.55 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3. import app
  4. import constInfo
  5.  
  6. import player
  7. EQUIPMENT_START_INDEX = player.EQUIPMENT_SLOT_START
  8.  
  9. window = {
  10. "name" : "InventoryWindow",
  11.  
  12. ## 600 - [width + 오른쪽으로 부터 띄우기 24 px)
  13. "x" : SCREEN_WIDTH - 215,
  14. "y" : SCREEN_HEIGHT - 37 - 585,
  15.  
  16. "style" : ["movable", "float",],
  17.  
  18. "width" : 211,
  19. "height" : 585,
  20.  
  21. "children" :
  22. [
  23. {
  24. "name" : "buttonboard",
  25. "type" : "board",
  26. "style" : ("attach",),
  27. "x" : 0,
  28. "y" : 50,
  29. "width" : 50,
  30. "height" : 261+35,##menu yukseklik
  31. "children" :
  32. [
  33. {
  34. "name" : "BossMgr",
  35. "type" : "button",
  36. "x" : 7,
  37. "y" : 9,
  38. "default_image" : "d:/ymir work/ui/game/special_board/bosstakip.png",
  39. "over_image" : "d:/ymir work/ui/game/special_board/bosstakip2.png",
  40. "down_image" : "d:/ymir work/ui/game/special_board/bosstakip3.png",
  41. },
  42. {
  43. "name" : "ShopMgr",
  44. "type" : "button",
  45. "x" : 7,
  46. "y" : 9+35,
  47. "default_image" : "d:/ymir work/ui/game/special_board/offshop.png",
  48. "over_image" : "d:/ymir work/ui/game/special_board/offshop2.png",
  49. "down_image" : "d:/ymir work/ui/game/special_board/offshop3.png",
  50. },
  51. {
  52. "name" : "AuctionMgr",
  53. "type" : "button",
  54. "x" : 7,
  55. "y" : 9+35+35,
  56. "default_image" : "d:/ymir work/ui/game/special_board/ticcami.png",
  57. "over_image" : "d:/ymir work/ui/game/special_board/ticcami2.png",
  58. "down_image" : "d:/ymir work/ui/game/special_board/ticcami3.png",
  59. },
  60. {
  61. "name" : "BioMgr",
  62. "type" : "button",
  63. "x" : 7,
  64. "y" : 9+35+35+35,
  65. "default_image" : "d:/ymir work/ui/game/special_board/biyo.png",
  66. "over_image" : "d:/ymir work/ui/game/special_board/biyo2.png",
  67. "down_image" : "d:/ymir work/ui/game/special_board/biyo3.png",
  68. },
  69. {
  70. "name" : "RangeNpcMgr",
  71. "type" : "button",
  72. "x" : 7,
  73. "y" : 9+35+35+35+35,
  74. "default_image" : "d:/ymir work/ui/game/special_board/uzaktanmarket.png",
  75. "over_image" : "d:/ymir work/ui/game/special_board/uzaktanmarket2.png",
  76. "down_image" : "d:/ymir work/ui/game/special_board/uzaktanmarket3.png",
  77. },
  78. {
  79. "name" : "PolyMgr",
  80. "type" : "button",
  81. "x" : 7,
  82. "y" : 9+35+35+35+35+35,
  83. "default_image" : "d:/ymir work/ui/shop/new_button.tga",
  84. "over_image" : "d:/ymir work/ui/shop/new_button2.tga",
  85. "down_image" : "d:/ymir work/ui/shop/new_button3.tga",
  86. },
  87. {
  88. "name" : "PolyExitMgr",
  89. "type" : "button",
  90. "x" : 7,
  91. "y" : 9+35+35+35+35+35+35,
  92. "default_image" : "d:/ymir work/ui/shop/new_button.tga",
  93. "over_image" : "d:/ymir work/ui/shop/new_button2.tga",
  94. "down_image" : "d:/ymir work/ui/shop/new_button3.tga",
  95. },
  96. {
  97. "name" : "LocalizationMgr",
  98. "type" : "button",
  99. "x" : 7,
  100. "y" : 9+35+35+35+35+35+35+35,
  101. "default_image" : "d:/ymir work/ui/shop/new_button.tga",
  102. "over_image" : "d:/ymir work/ui/shop/new_button2.tga",
  103. "down_image" : "d:/ymir work/ui/shop/new_button3.tga",
  104. },
  105. ],
  106. },
  107. ## Inventory, Equipment Slots
  108. {
  109. "name" : "board",
  110. "type" : "board",
  111. "style" : ["attach",],
  112.  
  113. "x" : 35,
  114. "y" : 0,
  115.  
  116. "width" : 176,
  117. "height" : 585,
  118.  
  119. "children" :
  120. [
  121. ## Title
  122. {
  123. "name" : "TitleBar",
  124. "type" : "titlebar",
  125. "style" : ["attach",],
  126.  
  127. "x" : -2,
  128. "y" : -6,
  129.  
  130. "width" : 182,
  131. "color" : "yellow",
  132.  
  133. "children" :
  134. [
  135. { "name":"TitleName", "type":"text", "x":84, "y":16, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  136. ],
  137. },
  138.  
  139. ## Equipment Slot
  140. {
  141. "name" : "Equipment_Base",
  142. "type" : "image",
  143.  
  144. "x" : 10,
  145. "y" : 33,
  146.  
  147. "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  148.  
  149. "children" :
  150. [
  151.  
  152. {
  153. "name" : "EquipmentSlot",
  154. "type" : "slot",
  155.  
  156. "x" : 3,
  157. "y" : 3,
  158.  
  159. "width" : 150,
  160. "height" : 182,
  161.  
  162. "slot" : [
  163. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  164. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  165. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  166. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  167. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  168. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":84, "width":32, "height":32},
  169. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":52, "width":32, "height":32},
  170. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":113, "width":32, "height":32},
  171. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":113, "width":32, "height":32},
  172. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  173. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  174. ## 새 반지1
  175. ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  176. ## 새 반지2
  177. ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  178. ## 새 벨트
  179. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  180. ],
  181. },
  182. ## Dragon Soul Button
  183. {
  184. "name" : "DSSButton",
  185. "type" : "button",
  186.  
  187. "x" : 2,
  188. "y" : 107,
  189.  
  190. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  191.  
  192. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  193. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  194. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  195. },
  196. ## MallButton
  197. {
  198. "name" : "MallButton",
  199. "type" : "button",
  200.  
  201. "x" : 118,
  202. "y" : 148,
  203.  
  204. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  205.  
  206. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  207. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  208. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  209. },
  210. ## CostumeButton
  211. {
  212. "name" : "CostumeButton",
  213. "type" : "button",
  214.  
  215. "x" : 78,
  216. "y" : 5,
  217.  
  218. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  219.  
  220. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  221. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  222. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  223. },
  224. {
  225. "name" : "Equipment_Tab_01",
  226. "type" : "radio_button",
  227.  
  228. "x" : 86,
  229. "y" : 161,
  230.  
  231. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  232. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  233. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  234.  
  235. "children" :
  236. [
  237. {
  238. "name" : "Equipment_Tab_01_Print",
  239. "type" : "text",
  240.  
  241. "x" : 0,
  242. "y" : 0,
  243.  
  244. "all_align" : "center",
  245.  
  246. "text" : "I",
  247. },
  248. ],
  249. },
  250. {
  251. "name" : "Equipment_Tab_02",
  252. "type" : "radio_button",
  253.  
  254. "x" : 86 + 32,
  255. "y" : 161,
  256.  
  257. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  258. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  259. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  260.  
  261. "children" :
  262. [
  263. {
  264. "name" : "Equipment_Tab_02_Print",
  265. "type" : "text",
  266.  
  267. "x" : 0,
  268. "y" : 0,
  269.  
  270. "all_align" : "center",
  271.  
  272. "text" : "II",
  273. },
  274. ],
  275. },
  276.  
  277. ],
  278. },
  279.  
  280. ## Item Slot
  281. {
  282. "name" : "ItemSlot",
  283. "type" : "grid_table",
  284.  
  285. "x" : 8,
  286. "y" : 246,
  287.  
  288. "start_index" : 0,
  289. "x_count" : 5,
  290. "y_count" : 9,
  291. "x_step" : 32,
  292. "y_step" : 32,
  293.  
  294. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  295. },
  296.  
  297. ## Print
  298. {
  299. "name":"Money_Slot",
  300. "type":"button",
  301.  
  302. "x":8,
  303. "y":48,
  304.  
  305. "horizontal_align":"center",
  306. "vertical_align":"bottom",
  307.  
  308. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  309. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  310. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  311.  
  312. "children" :
  313. [
  314. {
  315. "name":"Money_Icon",
  316. "type":"image",
  317.  
  318. "x":-18,
  319. "y":2,
  320.  
  321. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  322. },
  323.  
  324. {
  325. "name" : "Money",
  326. "type" : "text",
  327.  
  328. "x" : 3,
  329. "y" : 3,
  330.  
  331. "horizontal_align" : "right",
  332. "text_horizontal_align" : "right",
  333.  
  334. "text" : "123456789",
  335. },
  336. ],
  337. },
  338.  
  339. {
  340. "name":"Achievement_Slot",
  341. "type":"button",
  342.  
  343. "x":8,
  344. "y":28,
  345.  
  346. "horizontal_align":"center",
  347. "vertical_align":"bottom",
  348.  
  349. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  350. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  351. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  352.  
  353. "children" :
  354. [
  355. {
  356. "name":"Achievement_Icon",
  357. "type":"image",
  358.  
  359. "x":-18,
  360. "y":3,
  361.  
  362. "image":"d:/ymir work/ui/game/mythsia/bpicon.tga",
  363. },
  364.  
  365. {
  366. "name" : "Achievement",
  367. "type" : "text",
  368.  
  369. "x" : 3,
  370. "y" : 3,
  371.  
  372. "horizontal_align" : "right",
  373. "text_horizontal_align" : "right",
  374.  
  375. "text" : "123456789",
  376. },
  377. ],
  378. },
  379. ],
  380. },
  381. ],
  382. }
  383.  
  384. if app.ENABLE_NEXT_PREV_INVENTORY_PAGE:
  385. window["children"][1]["children"] = window["children"][1]["children"] + [
  386. ## Page
  387. {
  388. "name" : "PrevPage",
  389. "type" : "radio_button",
  390.  
  391. "x" : 10,
  392. "y" : 33 + 191,
  393.  
  394. "width" : 61,
  395. "height" : 21,
  396.  
  397. "text" : uiScriptLocale.PREV,
  398.  
  399. "default_image" : "d:/ymir work/ui/public/small_button_01.tga",
  400. "over_image" : "d:/ymir work/ui/public/small_button_02.tga",
  401. "down_image" : "d:/ymir work/ui/public/small_button_03.tga",
  402. },
  403.  
  404. {
  405. "name" : "page_slot",
  406. "type" : "image",
  407.  
  408. "x" : 10 + 47,
  409. "y" : 33 + 191,
  410.  
  411. "image" : "d:/ymir work/ui/public/Parameter_Slot_02.sub",
  412.  
  413. "children" :
  414. [
  415. {
  416. "name" : "page_value",
  417. "type" : "text",
  418.  
  419. "x" : 30,
  420. "y" : 2,
  421.  
  422. "text" : "I",
  423. "text_horizontal_align":"center"
  424.  
  425. },
  426. ],
  427. },
  428.  
  429. {
  430. "name" : "NextPage",
  431. "type" : "radio_button",
  432.  
  433. "x" : 10 + 114,
  434. "y" : 33 + 191,
  435.  
  436. "width" : 61,
  437. "height" : 21,
  438.  
  439. "text" : uiScriptLocale.NEXT,
  440.  
  441. "default_image" : "d:/ymir work/ui/public/small_button_01.tga",
  442. "over_image" : "d:/ymir work/ui/public/small_button_02.tga",
  443. "down_image" : "d:/ymir work/ui/public/small_button_03.tga",
  444. },
  445. ]
  446. else:
  447. window["children"][1]["children"] = window["children"][1]["children"] + [
  448. {
  449. "name" : "Inventory_Tab_01",
  450. "type" : "radio_button",
  451.  
  452. "x" : 10,
  453. "y" : 33 + 188,
  454.  
  455. "default_image" : "d:/ymir work/ui/game/inventory/inventory_tab_1_button/1.tga",
  456. "over_image" : "d:/ymir work/ui/game/inventory/inventory_tab_1_button/2.tga",
  457. "down_image" : "d:/ymir work/ui/game/inventory/inventory_tab_1_button/3.tga",
  458. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  459. },
  460. {
  461. "name" : "Inventory_Tab_02",
  462. "type" : "radio_button",
  463.  
  464. #"x" : 10 + 78,
  465. "x" : 10 + 39,
  466. "y" : 33 + 188,
  467.  
  468. "default_image" : "d:/ymir work/ui/game/inventory/inventory_tab_2_button/1.tga",
  469. "over_image" : "d:/ymir work/ui/game/inventory/inventory_tab_2_button/2.tga",
  470. "down_image" : "d:/ymir work/ui/game/inventory/inventory_tab_2_button/3.tga",
  471. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  472. },
  473.  
  474. {
  475. "name" : "Inventory_Tab_03",
  476. "type" : "radio_button",
  477.  
  478. "x" : 10 + 39 + 39,
  479. "y" : 33 + 188,
  480.  
  481. "default_image" : "d:/ymir work/ui/game/inventory/inventory_tab_3_button/1.tga",
  482. "over_image" : "d:/ymir work/ui/game/inventory/inventory_tab_3_button/2.tga",
  483. "down_image" : "d:/ymir work/ui/game/inventory/inventory_tab_3_button/3.tga",
  484. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  485. },
  486.  
  487. {
  488. "name" : "Inventory_Tab_04",
  489. "type" : "radio_button",
  490.  
  491. "x" : 10 + 39 + 39 + 39,
  492. "y" : 33 + 188,
  493.  
  494. "default_image" : "d:/ymir work/ui/game/inventory/inventory_tab_4_button/1.tga",
  495. "over_image" : "d:/ymir work/ui/game/inventory/inventory_tab_4_button/2.tga",
  496. "down_image" : "d:/ymir work/ui/game/inventory/inventory_tab_4_button/3.tga",
  497. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  498. },
  499. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement