Guest User

Untitled

a guest
Jun 14th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.42 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3. import app
  4.  
  5. import player
  6. EQUIPMENT_START_INDEX = player.EQUIPMENT_SLOT_START
  7.  
  8. if app.ENABLE_EXTEND_INVEN_SYSTEM and app.ENABLE_CHEQUE_SYSTEM:
  9. window = {
  10. "name" : "InventoryWindow",
  11.  
  12. ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  13. "x" : SCREEN_WIDTH - 176,
  14. "y" : SCREEN_HEIGHT - 37 - 565,
  15.  
  16. "style" : ("movable", "float",),
  17.  
  18. "width" : 176,
  19. "height" : 565,
  20.  
  21. "children" :
  22. (
  23. ## Inventory, Equipment Slots
  24. {
  25. "name" : "board",
  26. "type" : "board",
  27. "style" : ("attach",),
  28.  
  29. "x" : 0,
  30. "y" : 0,
  31.  
  32. "width" : 176,
  33. "height" : 565,
  34.  
  35. "children" :
  36. (
  37. ## Title
  38. {
  39. "name" : "TitleBar",
  40. "type" : "titlebar",
  41. "style" : ("attach",),
  42.  
  43. "x" : 8,
  44. "y" : 7,
  45.  
  46. "width" : 161,
  47. "color" : "yellow",
  48.  
  49. "children" :
  50. (
  51. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  52. ),
  53. },
  54.  
  55. ## Equipment Slot
  56. {
  57. "name" : "Equipment_Base",
  58. "type" : "image",
  59.  
  60. "x" : 10,
  61. "y" : 33,
  62.  
  63. "image" : "d:/ymir work/ui/equipment_bg_with_pet.tga",
  64.  
  65. "children" :
  66. (
  67.  
  68. {
  69. "name" : "EquipmentSlot",
  70. "type" : "slot",
  71.  
  72. "x" : 3,
  73. "y" : 3,
  74.  
  75. "width" : 150,
  76. "height" : 182,
  77.  
  78. "slot" : (
  79. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  80. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  81. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  82. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  83. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  84. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  85. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  86. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  87. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  88. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  89. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  90. ## 새 반지1
  91. ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  92. ## 새 반지2
  93. ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  94. ## 새 벨트
  95. {"index":item.EQUIPMENT_PET , "x":3, "y":105, "width":32, "height":32},
  96. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  97. ),
  98. },
  99. ## Dragon Soul Button
  100. {
  101. "name" : "DSSButton",
  102. "type" : "button",
  103.  
  104. "x" : 114,
  105. "y" : 107,
  106.  
  107. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  108.  
  109. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  110. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  111. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  112. },
  113. ## MallButton
  114. {
  115. "name" : "MallButton",
  116. "type" : "button",
  117.  
  118. "x" : 118,
  119. "y" : 148,
  120.  
  121. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  122.  
  123. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  124. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  125. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  126. },
  127. ## CostumeButton
  128. {
  129. "name" : "CostumeButton",
  130. "type" : "button",
  131.  
  132. "x" : 78,
  133. "y" : 5,
  134.  
  135. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  136.  
  137. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  138. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  139. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  140. },
  141. {
  142. "name" : "Equipment_Tab_01",
  143. "type" : "radio_button",
  144.  
  145. "x" : 86,
  146. "y" : 161,
  147.  
  148. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  149. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  150. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  151.  
  152. "children" :
  153. (
  154. {
  155. "name" : "Equipment_Tab_01_Print",
  156. "type" : "text",
  157.  
  158. "x" : 0,
  159. "y" : 0,
  160.  
  161. "all_align" : "center",
  162.  
  163. "text" : "I",
  164. },
  165. ),
  166. },
  167. {
  168. "name" : "Equipment_Tab_02",
  169. "type" : "radio_button",
  170.  
  171. "x" : 86 + 32,
  172. "y" : 161,
  173.  
  174. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  175. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  176. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  177.  
  178. "children" :
  179. (
  180. {
  181. "name" : "Equipment_Tab_02_Print",
  182. "type" : "text",
  183.  
  184. "x" : 0,
  185. "y" : 0,
  186.  
  187. "all_align" : "center",
  188.  
  189. "text" : "II",
  190. },
  191. ),
  192. },
  193.  
  194. ),
  195. },
  196.  
  197. {
  198. "name" : "Inventory_Tab_01",
  199. "type" : "radio_button",
  200.  
  201. "x" : 10,
  202. "y" : 33 + 191,
  203.  
  204. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  205. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  206. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  207. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  208.  
  209. "children" :
  210. (
  211. {
  212. "name" : "Inventory_Tab_01_Print",
  213. "type" : "text",
  214.  
  215. "x" : 0,
  216. "y" : 0,
  217.  
  218. "all_align" : "center",
  219.  
  220. "text" : "I",
  221. },
  222. ),
  223. },
  224. {
  225. "name" : "Inventory_Tab_02",
  226. "type" : "radio_button",
  227.  
  228. #"x" : 10 + 78,
  229. "x" : 10 + 39,
  230. "y" : 33 + 191,
  231.  
  232. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  233. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  234. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  235. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  236.  
  237. "children" :
  238. (
  239. {
  240. "name" : "Inventory_Tab_02_Print",
  241. "type" : "text",
  242.  
  243. "x" : 0,
  244. "y" : 0,
  245.  
  246. "all_align" : "center",
  247.  
  248. "text" : "II",
  249. },
  250. ),
  251. },
  252.  
  253. {
  254. "name" : "Inventory_Tab_03",
  255. "type" : "radio_button",
  256.  
  257. "x" : 10 + 39 + 39,
  258. "y" : 33 + 191,
  259.  
  260. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  261. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  262. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  263. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  264.  
  265. "children" :
  266. (
  267. {
  268. "name" : "Inventory_Tab_03_Print",
  269. "type" : "text",
  270.  
  271. "x" : 0,
  272. "y" : 0,
  273.  
  274. "all_align" : "center",
  275.  
  276. "text" : "III",
  277. },
  278. ),
  279. },
  280.  
  281. {
  282. "name" : "Inventory_Tab_04",
  283. "type" : "radio_button",
  284.  
  285. "x" : 10 + 39 + 39 + 39,
  286. "y" : 33 + 191,
  287.  
  288. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  289. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  290. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  291. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  292.  
  293. "children" :
  294. (
  295. {
  296. "name" : "Inventory_Tab_04_Print",
  297. "type" : "text",
  298.  
  299. "x" : 0,
  300. "y" : 0,
  301.  
  302. "all_align" : "center",
  303.  
  304. "text" : "IV",
  305. },
  306. ),
  307. },
  308.  
  309. ## Item Slot
  310. {
  311. "name" : "ItemSlot",
  312. "type" : "grid_table",
  313.  
  314. "x" : 8,
  315. "y" : 246,
  316.  
  317. "start_index" : 0,
  318. "x_count" : 5,
  319. "y_count" : 9,
  320. "x_step" : 32,
  321. "y_step" : 32,
  322.  
  323. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  324. },
  325.  
  326. ## Print
  327. {
  328. "name":"Money_Icon",
  329. "type":"image",
  330. "vertical_align":"bottom",
  331.  
  332. "x":57,
  333. "y":26,
  334.  
  335. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  336. },
  337. {
  338. "name":"Money_Slot",
  339. "type":"button",
  340.  
  341. "x":75,
  342. "y":28,
  343.  
  344. #"horizontal_align":"center",
  345. "vertical_align":"bottom",
  346.  
  347. "default_image" : "d:/ymir work/ui/public/gold_slot.sub",
  348. "over_image" : "d:/ymir work/ui/public/gold_slot.sub",
  349. "down_image" : "d:/ymir work/ui/public/gold_slot.sub",
  350.  
  351. "children" :
  352. (
  353. {
  354. "name" : "Money",
  355. "type" : "text",
  356.  
  357. "x" : 3,
  358. "y" : 3,
  359.  
  360. "horizontal_align" : "right",
  361. "text_horizontal_align" : "right",
  362.  
  363. "text" : "123456789",
  364. },
  365. ),
  366. },
  367. {
  368. "name":"Cheque_Icon",
  369. "type":"image",
  370. "vertical_align":"bottom",
  371.  
  372. "x":10,
  373. "y":26,
  374.  
  375. "image":"d:/ymir work/ui/game/windows/cheque_icon.sub",
  376. },
  377. {
  378. "name":"Cheque_Slot",
  379. "type":"button",
  380.  
  381. "x":28,
  382. "y":28,
  383.  
  384. #"horizontal_align":"center",
  385. "vertical_align":"bottom",
  386.  
  387. "default_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  388. "over_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  389. "down_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  390.  
  391. "children" :
  392. (
  393. {
  394. "name" : "Cheque",
  395. "type" : "text",
  396.  
  397. "x" : 3,
  398. "y" : 3,
  399.  
  400. "horizontal_align" : "right",
  401. "text_horizontal_align" : "right",
  402.  
  403. "text" : "99",
  404. },
  405. ),
  406. },
  407. ),
  408. },
  409. ),
  410. }
  411. elif app.ENABLE_EXTEND_INVEN_SYSTEM and not app.ENABLE_CHEQUE_SYSTEM:
  412. window = {
  413. "name" : "InventoryWindow",
  414.  
  415. ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  416. "x" : SCREEN_WIDTH - 176,
  417. "y" : SCREEN_HEIGHT - 37 - 565,
  418.  
  419. "style" : ("movable", "float",),
  420.  
  421. "width" : 176,
  422. "height" : 565,
  423.  
  424. "children" :
  425. (
  426. ## Inventory, Equipment Slots
  427. {
  428. "name" : "board",
  429. "type" : "board",
  430. "style" : ("attach",),
  431.  
  432. "x" : 0,
  433. "y" : 0,
  434.  
  435. "width" : 176,
  436. "height" : 565,
  437.  
  438. "children" :
  439. (
  440. ## Title
  441. {
  442. "name" : "TitleBar",
  443. "type" : "titlebar",
  444. "style" : ("attach",),
  445.  
  446. "x" : 8,
  447. "y" : 7,
  448.  
  449. "width" : 161,
  450. "color" : "yellow",
  451.  
  452. "children" :
  453. (
  454. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  455. ),
  456. },
  457.  
  458. ## Equipment Slot
  459. {
  460. "name" : "Equipment_Base",
  461. "type" : "image",
  462.  
  463. "x" : 10,
  464. "y" : 33,
  465.  
  466. "image" : "d:/ymir work/ui/equipment_bg_with_pet.tga",
  467.  
  468. "children" :
  469. (
  470.  
  471. {
  472. "name" : "EquipmentSlot",
  473. "type" : "slot",
  474.  
  475. "x" : 3,
  476. "y" : 3,
  477.  
  478. "width" : 150,
  479. "height" : 182,
  480.  
  481. "slot" : (
  482. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  483. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  484. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  485. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  486. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  487. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  488. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  489. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  490. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  491. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  492. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  493. ## 새 반지1
  494. ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  495. ## 새 반지2
  496. ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  497. ## 새 벨트
  498. {"index":item.EQUIPMENT_PET , "x":3, "y":105, "width":32, "height":32},
  499. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  500. ),
  501. },
  502. ## Dragon Soul Button
  503. {
  504. "name" : "DSSButton",
  505. "type" : "button",
  506.  
  507. "x" : 114,
  508. "y" : 107,
  509.  
  510. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  511.  
  512. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  513. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  514. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  515. },
  516. ## MallButton
  517. {
  518. "name" : "MallButton",
  519. "type" : "button",
  520.  
  521. "x" : 118,
  522. "y" : 148,
  523.  
  524. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  525.  
  526. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  527. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  528. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  529. },
  530. ## CostumeButton
  531. {
  532. "name" : "CostumeButton",
  533. "type" : "button",
  534.  
  535. "x" : 78,
  536. "y" : 5,
  537.  
  538. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  539.  
  540. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  541. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  542. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  543. },
  544. {
  545. "name" : "Equipment_Tab_01",
  546. "type" : "radio_button",
  547.  
  548. "x" : 86,
  549. "y" : 161,
  550.  
  551. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  552. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  553. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  554.  
  555. "children" :
  556. (
  557. {
  558. "name" : "Equipment_Tab_01_Print",
  559. "type" : "text",
  560.  
  561. "x" : 0,
  562. "y" : 0,
  563.  
  564. "all_align" : "center",
  565.  
  566. "text" : "I",
  567. },
  568. ),
  569. },
  570. {
  571. "name" : "Equipment_Tab_02",
  572. "type" : "radio_button",
  573.  
  574. "x" : 86 + 32,
  575. "y" : 161,
  576.  
  577. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  578. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  579. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  580.  
  581. "children" :
  582. (
  583. {
  584. "name" : "Equipment_Tab_02_Print",
  585. "type" : "text",
  586.  
  587. "x" : 0,
  588. "y" : 0,
  589.  
  590. "all_align" : "center",
  591.  
  592. "text" : "II",
  593. },
  594. ),
  595. },
  596.  
  597. ),
  598. },
  599.  
  600. {
  601. "name" : "Inventory_Tab_01",
  602. "type" : "radio_button",
  603.  
  604. "x" : 10,
  605. "y" : 33 + 191,
  606.  
  607. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  608. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  609. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  610. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  611.  
  612. "children" :
  613. (
  614. {
  615. "name" : "Inventory_Tab_01_Print",
  616. "type" : "text",
  617.  
  618. "x" : 0,
  619. "y" : 0,
  620.  
  621. "all_align" : "center",
  622.  
  623. "text" : "I",
  624. },
  625. ),
  626. },
  627. {
  628. "name" : "Inventory_Tab_02",
  629. "type" : "radio_button",
  630.  
  631. #"x" : 10 + 78,
  632. "x" : 10 + 39,
  633. "y" : 33 + 191,
  634.  
  635. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  636. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  637. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  638. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  639.  
  640. "children" :
  641. (
  642. {
  643. "name" : "Inventory_Tab_02_Print",
  644. "type" : "text",
  645.  
  646. "x" : 0,
  647. "y" : 0,
  648.  
  649. "all_align" : "center",
  650.  
  651. "text" : "II",
  652. },
  653. ),
  654. },
  655.  
  656. {
  657. "name" : "Inventory_Tab_03",
  658. "type" : "radio_button",
  659.  
  660. "x" : 10 + 39 + 39,
  661. "y" : 33 + 191,
  662.  
  663. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  664. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  665. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  666. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  667.  
  668. "children" :
  669. (
  670. {
  671. "name" : "Inventory_Tab_03_Print",
  672. "type" : "text",
  673.  
  674. "x" : 0,
  675. "y" : 0,
  676.  
  677. "all_align" : "center",
  678.  
  679. "text" : "III",
  680. },
  681. ),
  682. },
  683.  
  684. {
  685. "name" : "Inventory_Tab_04",
  686. "type" : "radio_button",
  687.  
  688. "x" : 10 + 39 + 39 + 39,
  689. "y" : 33 + 191,
  690.  
  691. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  692. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  693. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  694. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  695.  
  696. "children" :
  697. (
  698. {
  699. "name" : "Inventory_Tab_04_Print",
  700. "type" : "text",
  701.  
  702. "x" : 0,
  703. "y" : 0,
  704.  
  705. "all_align" : "center",
  706.  
  707. "text" : "IV",
  708. },
  709. ),
  710. },
  711.  
  712. ## Item Slot
  713. {
  714. "name" : "ItemSlot",
  715. "type" : "grid_table",
  716.  
  717. "x" : 8,
  718. "y" : 246,
  719.  
  720. "start_index" : 0,
  721. "x_count" : 5,
  722. "y_count" : 9,
  723. "x_step" : 32,
  724. "y_step" : 32,
  725.  
  726. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  727. },
  728.  
  729. ## Print
  730. {
  731. "name":"Money_Slot",
  732. "type":"button",
  733.  
  734. "x":8,
  735. "y":28,
  736.  
  737. "horizontal_align":"center",
  738. "vertical_align":"bottom",
  739.  
  740. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  741. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  742. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  743.  
  744. "children" :
  745. (
  746. {
  747. "name":"Money_Icon",
  748. "type":"image",
  749.  
  750. "x":-18,
  751. "y":2,
  752.  
  753. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  754. },
  755.  
  756. {
  757. "name" : "Money",
  758. "type" : "text",
  759.  
  760. "x" : 3,
  761. "y" : 3,
  762.  
  763. "horizontal_align" : "right",
  764. "text_horizontal_align" : "right",
  765.  
  766. "text" : "123456789",
  767. },
  768. ),
  769. },
  770.  
  771. ),
  772. },
  773. ),
  774. }
  775. elif not app.ENABLE_EXTEND_INVEN_SYSTEM and app.ENABLE_CHEQUE_SYSTEM:
  776. window = {
  777. "name" : "InventoryWindow",
  778.  
  779. ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  780. "x" : SCREEN_WIDTH - 176,
  781. "y" : SCREEN_HEIGHT - 37 - 565,
  782.  
  783. "style" : ("movable", "float",),
  784.  
  785. "width" : 176,
  786. "height" : 565,
  787.  
  788. "children" :
  789. (
  790. ## Inventory, Equipment Slots
  791. {
  792. "name" : "board",
  793. "type" : "board",
  794. "style" : ("attach",),
  795.  
  796. "x" : 0,
  797. "y" : 0,
  798.  
  799. "width" : 176,
  800. "height" : 565,
  801.  
  802. "children" :
  803. (
  804. ## Title
  805. {
  806. "name" : "TitleBar",
  807. "type" : "titlebar",
  808. "style" : ("attach",),
  809.  
  810. "x" : 8,
  811. "y" : 7,
  812.  
  813. "width" : 161,
  814. "color" : "yellow",
  815.  
  816. "children" :
  817. (
  818. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  819. ),
  820. },
  821.  
  822. ## Equipment Slot
  823. {
  824. "name" : "Equipment_Base",
  825. "type" : "image",
  826.  
  827. "x" : 10,
  828. "y" : 33,
  829.  
  830. "image" : "d:/ymir work/ui/equipment_bg_with_pet.tga",
  831.  
  832. "children" :
  833. (
  834.  
  835. {
  836. "name" : "EquipmentSlot",
  837. "type" : "slot",
  838.  
  839. "x" : 3,
  840. "y" : 3,
  841.  
  842. "width" : 150,
  843. "height" : 182,
  844.  
  845. "slot" : (
  846. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  847. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  848. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  849. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  850. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  851. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  852. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  853. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  854. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  855. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  856. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  857. ## 새 반지1
  858. ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  859. ## 새 반지2
  860. ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  861. ## 새 벨트
  862. {"index":item.EQUIPMENT_PET , "x":3, "y":105, "width":32, "height":32},
  863. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  864. ),
  865. },
  866. ## Dragon Soul Button
  867. {
  868. "name" : "DSSButton",
  869. "type" : "button",
  870.  
  871. "x" : 114,
  872. "y" : 107,
  873.  
  874. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  875.  
  876. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  877. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  878. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  879. },
  880. ## MallButton
  881. {
  882. "name" : "MallButton",
  883. "type" : "button",
  884.  
  885. "x" : 118,
  886. "y" : 148,
  887.  
  888. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  889.  
  890. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  891. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  892. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  893. },
  894. ## CostumeButton
  895. {
  896. "name" : "CostumeButton",
  897. "type" : "button",
  898.  
  899. "x" : 78,
  900. "y" : 5,
  901.  
  902. "tooltip_text" : "Costume",
  903.  
  904. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  905. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  906. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  907. },
  908. {
  909. "name" : "Equipment_Tab_01",
  910. "type" : "radio_button",
  911.  
  912. "x" : 86,
  913. "y" : 161,
  914.  
  915. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  916. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  917. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  918.  
  919. "children" :
  920. (
  921. {
  922. "name" : "Equipment_Tab_01_Print",
  923. "type" : "text",
  924.  
  925. "x" : 0,
  926. "y" : 0,
  927.  
  928. "all_align" : "center",
  929.  
  930. "text" : "I",
  931. },
  932. ),
  933. },
  934. {
  935. "name" : "Equipment_Tab_02",
  936. "type" : "radio_button",
  937.  
  938. "x" : 86 + 32,
  939. "y" : 161,
  940.  
  941. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  942. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  943. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  944.  
  945. "children" :
  946. (
  947. {
  948. "name" : "Equipment_Tab_02_Print",
  949. "type" : "text",
  950.  
  951. "x" : 0,
  952. "y" : 0,
  953.  
  954. "all_align" : "center",
  955.  
  956. "text" : "II",
  957. },
  958. ),
  959. },
  960.  
  961. ),
  962. },
  963.  
  964. {
  965. "name" : "Inventory_Tab_01",
  966. "type" : "radio_button",
  967.  
  968. "x" : 10,
  969. "y" : 33 + 191,
  970.  
  971. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  972. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  973. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  974. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  975.  
  976. "children" :
  977. (
  978. {
  979. "name" : "Inventory_Tab_01_Print",
  980. "type" : "text",
  981.  
  982. "x" : 0,
  983. "y" : 0,
  984.  
  985. "all_align" : "center",
  986.  
  987. "text" : "I",
  988. },
  989. ),
  990. },
  991. {
  992. "name" : "Inventory_Tab_02",
  993. "type" : "radio_button",
  994.  
  995. "x" : 10 + 78,
  996. "y" : 33 + 191,
  997.  
  998. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  999. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  1000. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  1001. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  1002.  
  1003. "children" :
  1004. (
  1005. {
  1006. "name" : "Inventory_Tab_02_Print",
  1007. "type" : "text",
  1008.  
  1009. "x" : 0,
  1010. "y" : 0,
  1011.  
  1012. "all_align" : "center",
  1013.  
  1014. "text" : "II",
  1015. },
  1016. ),
  1017. },
  1018.  
  1019. ## Item Slot
  1020. {
  1021. "name" : "ItemSlot",
  1022. "type" : "grid_table",
  1023.  
  1024. "x" : 8,
  1025. "y" : 246,
  1026.  
  1027. "start_index" : 0,
  1028. "x_count" : 5,
  1029. "y_count" : 9,
  1030. "x_step" : 32,
  1031. "y_step" : 32,
  1032.  
  1033. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  1034. },
  1035.  
  1036. ## Print
  1037. {
  1038. "name":"Money_Icon",
  1039. "type":"image",
  1040. "vertical_align":"bottom",
  1041.  
  1042. "x":57,
  1043. "y":26,
  1044.  
  1045. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  1046. },
  1047. {
  1048. "name":"Money_Slot",
  1049. "type":"button",
  1050.  
  1051. "x":75,
  1052. "y":28,
  1053.  
  1054. #"horizontal_align":"center",
  1055. "vertical_align":"bottom",
  1056.  
  1057. "default_image" : "d:/ymir work/ui/public/gold_slot.sub",
  1058. "over_image" : "d:/ymir work/ui/public/gold_slot.sub",
  1059. "down_image" : "d:/ymir work/ui/public/gold_slot.sub",
  1060.  
  1061. "children" :
  1062. (
  1063. {
  1064. "name" : "Money",
  1065. "type" : "text",
  1066.  
  1067. "x" : 3,
  1068. "y" : 3,
  1069.  
  1070. "horizontal_align" : "right",
  1071. "text_horizontal_align" : "right",
  1072.  
  1073. "text" : "123456789",
  1074. },
  1075. ),
  1076. },
  1077. {
  1078. "name":"Cheque_Icon",
  1079. "type":"image",
  1080. "vertical_align":"bottom",
  1081.  
  1082. "x":10,
  1083. "y":26,
  1084.  
  1085. "image":"d:/ymir work/ui/game/windows/cheque_icon.sub",
  1086. },
  1087. {
  1088. "name":"Cheque_Slot",
  1089. "type":"button",
  1090.  
  1091. "x":28,
  1092. "y":28,
  1093.  
  1094. #"horizontal_align":"center",
  1095. "vertical_align":"bottom",
  1096.  
  1097. "default_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  1098. "over_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  1099. "down_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  1100.  
  1101. "children" :
  1102. (
  1103. {
  1104. "name" : "Cheque",
  1105. "type" : "text",
  1106.  
  1107. "x" : 3,
  1108. "y" : 3,
  1109.  
  1110. "horizontal_align" : "right",
  1111. "text_horizontal_align" : "right",
  1112.  
  1113. "text" : "99",
  1114. },
  1115. ),
  1116. },
  1117. ),
  1118. },
  1119. ),
  1120. }
  1121. else:
  1122. window = {
  1123. "name" : "InventoryWindow",
  1124.  
  1125. ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  1126. "x" : SCREEN_WIDTH - 176,
  1127. "y" : SCREEN_HEIGHT - 37 - 565,
  1128.  
  1129. "style" : ("movable", "float",),
  1130.  
  1131. "width" : 176,
  1132. "height" : 565,
  1133.  
  1134. "children" :
  1135. (
  1136. ## Inventory, Equipment Slots
  1137. {
  1138. "name" : "board",
  1139. "type" : "board",
  1140. "style" : ("attach",),
  1141.  
  1142. "x" : 0,
  1143. "y" : 0,
  1144.  
  1145. "width" : 176,
  1146. "height" : 565,
  1147.  
  1148. "children" :
  1149. (
  1150. ## Title
  1151. {
  1152. "name" : "TitleBar",
  1153. "type" : "titlebar",
  1154. "style" : ("attach",),
  1155.  
  1156. "x" : 8,
  1157. "y" : 7,
  1158.  
  1159. "width" : 161,
  1160. "color" : "yellow",
  1161.  
  1162. "children" :
  1163. (
  1164. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  1165. ),
  1166. },
  1167.  
  1168. ## Equipment Slot
  1169. {
  1170. "name" : "Equipment_Base",
  1171. "type" : "image",
  1172.  
  1173. "x" : 10,
  1174. "y" : 33,
  1175.  
  1176. "image" : "d:/ymir work/ui/equipment_bg_with_pet.tga",
  1177.  
  1178. "children" :
  1179. (
  1180.  
  1181. {
  1182. "name" : "EquipmentSlot",
  1183. "type" : "slot",
  1184.  
  1185. "x" : 3,
  1186. "y" : 3,
  1187.  
  1188. "width" : 150,
  1189. "height" : 182,
  1190.  
  1191. "slot" : (
  1192. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  1193. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  1194. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  1195. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  1196. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  1197. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  1198. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  1199. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  1200. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  1201. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  1202. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  1203. ## 새 반지1
  1204. ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  1205. ## 새 반지2
  1206. ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  1207. ## 새 벨트
  1208. {"index":item.EQUIPMENT_PET , "x":3, "y":105, "width":32, "height":32},
  1209. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  1210. ),
  1211. },
  1212. ## Dragon Soul Button
  1213. {
  1214. "name" : "DSSButton",
  1215. "type" : "button",
  1216.  
  1217. "x" : 114,
  1218. "y" : 107,
  1219.  
  1220. "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  1221.  
  1222. "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  1223. "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  1224. "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  1225. },
  1226. ## MallButton
  1227. {
  1228. "name" : "MallButton",
  1229. "type" : "button",
  1230.  
  1231. "x" : 118,
  1232. "y" : 148,
  1233.  
  1234. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  1235.  
  1236. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  1237. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  1238. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  1239. },
  1240. ## CostumeButton
  1241. {
  1242. "name" : "CostumeButton",
  1243. "type" : "button",
  1244.  
  1245. "x" : 78,
  1246. "y" : 5,
  1247.  
  1248. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  1249.  
  1250. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  1251. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  1252. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  1253. },
  1254. {
  1255. "name" : "Equipment_Tab_01",
  1256. "type" : "radio_button",
  1257.  
  1258. "x" : 86,
  1259. "y" : 161,
  1260.  
  1261. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  1262. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  1263. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  1264.  
  1265. "children" :
  1266. (
  1267. {
  1268. "name" : "Equipment_Tab_01_Print",
  1269. "type" : "text",
  1270.  
  1271. "x" : 0,
  1272. "y" : 0,
  1273.  
  1274. "all_align" : "center",
  1275.  
  1276. "text" : "I",
  1277. },
  1278. ),
  1279. },
  1280. {
  1281. "name" : "Equipment_Tab_02",
  1282. "type" : "radio_button",
  1283.  
  1284. "x" : 86 + 32,
  1285. "y" : 161,
  1286.  
  1287. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  1288. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  1289. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  1290.  
  1291. "children" :
  1292. (
  1293. {
  1294. "name" : "Equipment_Tab_02_Print",
  1295. "type" : "text",
  1296.  
  1297. "x" : 0,
  1298. "y" : 0,
  1299.  
  1300. "all_align" : "center",
  1301.  
  1302. "text" : "II",
  1303. },
  1304. ),
  1305. },
  1306.  
  1307. ),
  1308. },
  1309.  
  1310. {
  1311. "name" : "Inventory_Tab_01",
  1312. "type" : "radio_button",
  1313.  
  1314. "x" : 10,
  1315. "y" : 33 + 191,
  1316.  
  1317. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  1318. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  1319. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  1320. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  1321.  
  1322. "children" :
  1323. (
  1324. {
  1325. "name" : "Inventory_Tab_01_Print",
  1326. "type" : "text",
  1327.  
  1328. "x" : 0,
  1329. "y" : 0,
  1330.  
  1331. "all_align" : "center",
  1332.  
  1333. "text" : "I",
  1334. },
  1335. ),
  1336. },
  1337. {
  1338. "name" : "Inventory_Tab_02",
  1339. "type" : "radio_button",
  1340.  
  1341. "x" : 10 + 78,
  1342. "y" : 33 + 191,
  1343.  
  1344. "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  1345. "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  1346. "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  1347. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  1348.  
  1349. "children" :
  1350. (
  1351. {
  1352. "name" : "Inventory_Tab_02_Print",
  1353. "type" : "text",
  1354.  
  1355. "x" : 0,
  1356. "y" : 0,
  1357.  
  1358. "all_align" : "center",
  1359.  
  1360. "text" : "II",
  1361. },
  1362. ),
  1363. },
  1364.  
  1365. ## Item Slot
  1366. {
  1367. "name" : "ItemSlot",
  1368. "type" : "grid_table",
  1369.  
  1370. "x" : 8,
  1371. "y" : 246,
  1372.  
  1373. "start_index" : 0,
  1374. "x_count" : 5,
  1375. "y_count" : 9,
  1376. "x_step" : 32,
  1377. "y_step" : 32,
  1378.  
  1379. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  1380. },
  1381.  
  1382. ## Print
  1383. {
  1384. "name":"Money_Slot",
  1385. "type":"button",
  1386.  
  1387. "x":8,
  1388. "y":28,
  1389.  
  1390. "horizontal_align":"center",
  1391. "vertical_align":"bottom",
  1392.  
  1393. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  1394. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  1395. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  1396.  
  1397. "children" :
  1398. (
  1399. {
  1400. "name":"Money_Icon",
  1401. "type":"image",
  1402.  
  1403. "x":-18,
  1404. "y":2,
  1405.  
  1406. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  1407. },
  1408.  
  1409. {
  1410. "name" : "Money",
  1411. "type" : "text",
  1412.  
  1413. "x" : 3,
  1414. "y" : 3,
  1415.  
  1416. "horizontal_align" : "right",
  1417. "text_horizontal_align" : "right",
  1418.  
  1419. "text" : "123456789",
  1420. },
  1421. ),
  1422. },
  1423.  
  1424. ),
  1425. },
  1426. ),
  1427. }
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433. import app
  1434. import utils
  1435.  
  1436. if app.ENABLE_CHEQUE_SYSTEM:
  1437. toadd = (
  1438. {
  1439. "name":"Cheque_Icon",
  1440. "type":"image",
  1441. "vertical_align":"bottom",
  1442.  
  1443. "x":10,
  1444. "y":26,
  1445.  
  1446. "image":"d:/ymir work/ui/game/windows/cheque_icon.sub",
  1447. },
  1448. {
  1449. "name":"Cheque_Slot",
  1450. "type":"button",
  1451.  
  1452. "x":28,
  1453. "y":28,
  1454.  
  1455. #"horizontal_align":"center",
  1456. "vertical_align":"bottom",
  1457.  
  1458. "default_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  1459. "over_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  1460. "down_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  1461.  
  1462. "children" :
  1463. (
  1464. {
  1465. "name" : "Cheque",
  1466. "type" : "text",
  1467.  
  1468. "x" : 3,
  1469. "y" : 3,
  1470.  
  1471. "horizontal_align" : "right",
  1472. "text_horizontal_align" : "right",
  1473.  
  1474. "text" : "99",
  1475. },
  1476. ),
  1477. },
  1478. )
  1479.  
  1480.  
  1481. board = utils.GetElementDictByName(window , "board")
  1482. board['children'] += toadd
Add Comment
Please, Sign In to add comment