Guest User

Untitled

a guest
Feb 8th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.92 KB | None | 0 0
  1. import uiScriptLocale
  2. import app
  3.  
  4. ROOT_PATH = "d:/ymir work/ui/public/"
  5. LOCALE_PATH = uiScriptLocale.SELECT_PATH
  6.  
  7. BOARD_X = SCREEN_WIDTH * (65) / 800
  8. BOARD_Y = SCREEN_HEIGHT * (220) / 600
  9.  
  10. BOARD_ITEM_ADD_POSITION = -40
  11.  
  12. if app.ENABLE_WOLFMAN_CHARACTER:
  13. window = {
  14. "name" : "SelectCharacterWindow",
  15.  
  16. "x" : 0,
  17. "y" : 0,
  18.  
  19. "width" : SCREEN_WIDTH,
  20. "height" : SCREEN_HEIGHT,
  21.  
  22. "children" :
  23. (
  24. ## Board
  25. {
  26. "name" : "BackGround", "type" : "expanded_image", "x" : 0, "y" : 0,
  27. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  28. "image" : "locale/de/ui/select.sub",
  29.  
  30. },
  31. ## Name
  32. {
  33. "name" : "name_warrior",
  34. "type" : "image",
  35.  
  36. "x" : BOARD_X - 27,
  37. "y" : BOARD_Y - 174 + 25,
  38.  
  39. "image" : LOCALE_PATH+"name_warrior.sub",
  40. },
  41. {
  42. "name" : "name_assassin",
  43. "type" : "image",
  44.  
  45. "x" : BOARD_X - 27,
  46. "y" : BOARD_Y - 174 + 25,
  47.  
  48. "image" : LOCALE_PATH+"name_assassin.sub",
  49. },
  50. {
  51. "name" : "name_sura",
  52. "type" : "image",
  53.  
  54. "x" : BOARD_X - 27,
  55. "y" : BOARD_Y - 174 + 25,
  56.  
  57. "image" : LOCALE_PATH+"name_sura.sub",
  58. },
  59. {
  60. "name" : "name_shaman",
  61. "type" : "image",
  62.  
  63. "x" : BOARD_X - 27,
  64. "y" : BOARD_Y - 174 + 25,
  65.  
  66. "image" : LOCALE_PATH+"name_shaman.sub",
  67. },
  68. {
  69. "name" : "name_wolfman",
  70. "type" : "image",
  71.  
  72. "x" : BOARD_X - 27,
  73. "y" : BOARD_Y - 174 + 25,
  74.  
  75. "image" : LOCALE_PATH+"name_wolfman.sub",
  76. },
  77.  
  78.  
  79. ## Character Board
  80. {
  81. "name" : "character_board",
  82. "type" : "thinboard",
  83.  
  84. "x" : BOARD_X,
  85. "y" : BOARD_Y,
  86.  
  87. "width" : 208,
  88. "height" : 363 + BOARD_ITEM_ADD_POSITION,
  89.  
  90. "children" :
  91. (
  92.  
  93. ## Empire Flag
  94. {
  95. "name" : "EmpireFlag_A",
  96. "type" : "expanded_image",
  97.  
  98. "x" : 21,
  99. "y" : 12,
  100. "x_scale" : 0.5,
  101. "y_scale" : 0.5,
  102.  
  103. "image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
  104. },
  105. {
  106. "name" : "EmpireFlag_B",
  107. "type" : "expanded_image",
  108.  
  109. "x" : 21,
  110. "y" : 12,
  111. "x_scale" : 0.5,
  112. "y_scale" : 0.5,
  113.  
  114. "image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
  115. },
  116. {
  117. "name" : "EmpireFlag_C",
  118. "type" : "expanded_image",
  119.  
  120. "x" : 21,
  121. "y" : 12,
  122. "x_scale" : 0.5,
  123. "y_scale" : 0.5,
  124.  
  125. "image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
  126. },
  127.  
  128. {
  129. "name" : "EmpireNameSlot",
  130. "type" : "image",
  131.  
  132. "x" : 100,
  133. "y" : 12,
  134.  
  135. "image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
  136.  
  137. "children" :
  138. (
  139. {
  140. "name" : "EmpireName",
  141. "type" : "text",
  142.  
  143. "x" : 0,
  144. "y" : 0,
  145.  
  146. "text" : uiScriptLocale.SELECT_EMPIRE_NAME,
  147.  
  148. "all_align" : "center",
  149. },
  150. ),
  151. },
  152.  
  153. {
  154. "name" : "GuildNameSlot",
  155. "type" : "image",
  156.  
  157. "x" : 100,
  158. "y" : 33,
  159.  
  160. "image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
  161.  
  162. "children" :
  163. (
  164. {
  165. "name" : "GuildName",
  166. "type" : "text",
  167.  
  168. "x" : 0,
  169. "y" : 0,
  170.  
  171. "text" : uiScriptLocale.SELECT_NO_GUILD,
  172.  
  173. "all_align" : "center",
  174. },
  175. ),
  176. },
  177.  
  178. {
  179. "name" : "character_name",
  180. "type" : "text",
  181.  
  182. "x" : 17,
  183. "y" : 124 - 21 + BOARD_ITEM_ADD_POSITION,
  184.  
  185. "text" : uiScriptLocale.SELECT_NAME,
  186.  
  187. "children" :
  188. (
  189. {
  190. "name" : "character_name_slot",
  191. "type" : "image",
  192.  
  193. "x" : 43,
  194. "y" : -2,
  195.  
  196. "image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
  197. },
  198. {
  199. "name" : "character_name_value",
  200. "type" : "text",
  201.  
  202. "x" : 43 + 130/2,
  203. "y" : 0,
  204.  
  205. "text" : "",
  206.  
  207. "text_horizontal_align" : "center",
  208. },
  209. ),
  210. },
  211. {
  212. "name" : "character_level",
  213. "type" : "text",
  214.  
  215. "x" : 17,
  216. "y" : 50 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  217.  
  218. "text" : uiScriptLocale.SELECT_LEVEL,
  219.  
  220. "children" :
  221. (
  222. {
  223. "name" : "character_level_slot",
  224. "type" : "image",
  225.  
  226. "x" : 43,
  227. "y" : -2,
  228.  
  229. "image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
  230. },
  231. {
  232. "name" : "character_level_value",
  233. "type" : "text",
  234.  
  235. "x" : 43 + 130/2,
  236. "y" : 0,
  237.  
  238. "text" : "",
  239.  
  240. "text_horizontal_align" : "center",
  241. },
  242. ),
  243. },
  244. {
  245. "name" : "character_play_time",
  246. "type" : "text",
  247.  
  248. "x" : 17,
  249. "y" : 76 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  250.  
  251. "text" : uiScriptLocale.SELECT_PLAYTIME,
  252.  
  253. "children" :
  254. (
  255. {
  256. "name" : "character_play_time_slot",
  257. "type" : "image",
  258.  
  259. "x" : 83,
  260. "y" : -2,
  261.  
  262. "image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
  263. },
  264. {
  265. "name" : "character_play_time_value",
  266. "type" : "text",
  267.  
  268. "x" : 83 + 91/2,
  269. "y" : 0,
  270.  
  271. "text" : "",
  272.  
  273. "text_horizontal_align" : "center",
  274. },
  275. ),
  276. },
  277. {
  278. "name" : "character_hth",
  279. "type" : "text",
  280.  
  281. "x" : 17,
  282. "y" : 102 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  283.  
  284. "text" : uiScriptLocale.SELECT_HP,
  285.  
  286. "children" :
  287. (
  288. {
  289. "name" : "gauge_hth",
  290. "type" : "gauge",
  291.  
  292. "x" : 30,
  293. "y" : 4,
  294.  
  295. "width" : 100,
  296. "color" : "red",
  297. },
  298. {
  299. "name" : "character_hth_slot",
  300. "type" : "image",
  301.  
  302. "x" : 134,
  303. "y" : -2,
  304.  
  305. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  306. },
  307. {
  308. "name" : "character_hth_value",
  309. "type" : "text",
  310.  
  311. "x" : 134 + 39/2,
  312. "y" : 0,
  313.  
  314. "text" : "",
  315.  
  316. "text_horizontal_align" : "center",
  317. },
  318. ),
  319. },
  320. {
  321. "name" : "character_int",
  322. "type" : "text",
  323.  
  324. "x" : 17,
  325. "y" : 128 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  326.  
  327. "text" : uiScriptLocale.SELECT_SP,
  328.  
  329. "children" :
  330. (
  331. {
  332. "name" : "gauge_int",
  333. "type" : "gauge",
  334.  
  335. "x" : 30,
  336. "y" : 4,
  337.  
  338. "width" : 100,
  339. "color" : "pink",
  340. },
  341. {
  342. "name" : "character_int_slot",
  343. "type" : "image",
  344.  
  345. "x" : 134,
  346. "y" : -2,
  347.  
  348. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  349. },
  350. {
  351. "name" : "character_int_value",
  352. "type" : "text",
  353.  
  354. "x" : 134 + 39/2,
  355. "y" : 0,
  356.  
  357. "text" : "",
  358.  
  359. "text_horizontal_align" : "center",
  360. },
  361. ),
  362. },
  363. {
  364. "name" : "character_str",
  365. "type" : "text",
  366.  
  367. "x" : 17,
  368. "y" : 154 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  369.  
  370. "text" : uiScriptLocale.SELECT_ATT_GRADE,
  371.  
  372. "children" :
  373. (
  374. {
  375. "name" : "gauge_str",
  376. "type" : "gauge",
  377.  
  378. "x" : 30,
  379. "y" : 4,
  380.  
  381. "width" : 100,
  382. "color" : "purple",
  383. },
  384. {
  385. "name" : "character_str_slot",
  386. "type" : "image",
  387.  
  388. "x" : 134,
  389. "y" : -2,
  390.  
  391. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  392. },
  393. {
  394. "name" : "character_str_value",
  395. "type" : "text",
  396.  
  397. "x" : 134 + 39/2,
  398. "y" : 0,
  399.  
  400. "text" : "",
  401.  
  402. "text_horizontal_align" : "center",
  403. },
  404. ),
  405. },
  406. {
  407. "name" : "character_dex",
  408. "type" : "text",
  409.  
  410. "x" : 17,
  411. "y" : 180 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  412.  
  413. "text" : uiScriptLocale.SELECT_DEX_GRADE,
  414.  
  415. "children" :
  416. (
  417. {
  418. "name" : "gauge_dex",
  419. "type" : "gauge",
  420.  
  421. "x" : 30,
  422. "y" : 4,
  423.  
  424. "width" : 100,
  425. "color" : "blue",
  426. },
  427. {
  428. "name" : "character_dex_slot",
  429. "type" : "image",
  430.  
  431. "x" : 134,
  432. "y" : -2,
  433.  
  434. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  435. },
  436. {
  437. "name" : "character_dex_value",
  438. "type" : "text",
  439.  
  440. "x" : 134 + 39/2,
  441. "y" : 0,
  442.  
  443. "text" : "",
  444.  
  445. "text_horizontal_align" : "center",
  446. },
  447. ),
  448. },
  449.  
  450. ## Buttons
  451. {
  452. "name" : "start_button",
  453. "type" : "button",
  454.  
  455. "x" : 14,
  456. "y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  457.  
  458. "text" : uiScriptLocale.SELECT_SELECT,
  459. "text_height" : 6,
  460.  
  461. "default_image" : ROOT_PATH + "XLarge_Button_01.sub",
  462. "over_image" : ROOT_PATH + "XLarge_Button_02.sub",
  463. "down_image" : ROOT_PATH + "XLarge_Button_03.sub",
  464. },
  465. {
  466. "name" : "create_button",
  467. "type" : "button",
  468.  
  469. "x" : 14,
  470. "y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  471.  
  472. "text" : uiScriptLocale.SELECT_CREATE,
  473. "text_height" : 6,
  474.  
  475. "default_image" : ROOT_PATH + "XLarge_Button_01.sub",
  476. "over_image" : ROOT_PATH + "XLarge_Button_02.sub",
  477. "down_image" : ROOT_PATH + "XLarge_Button_03.sub",
  478. },
  479. {
  480. "name" : "exit_button",
  481. "type" : "button",
  482.  
  483. "x" : 105,
  484. "y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  485.  
  486. "text" : uiScriptLocale.SELECT_EXIT,
  487.  
  488. "default_image" : ROOT_PATH + "Large_Button_01.sub",
  489. "over_image" : ROOT_PATH + "Large_Button_02.sub",
  490. "down_image" : ROOT_PATH + "Large_Button_03.sub",
  491. },
  492. {
  493. "name" : "delete_button",
  494. "type" : "button",
  495.  
  496. "x" : 14,
  497. "y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  498.  
  499. "text" : uiScriptLocale.SELECT_DELETE,
  500.  
  501. "default_image" : ROOT_PATH + "Large_Button_01.sub",
  502. "over_image" : ROOT_PATH + "Large_Button_02.sub",
  503. "down_image" : ROOT_PATH + "Large_Button_03.sub",
  504. },
  505. ),
  506. },
  507.  
  508. ## Buttons
  509. {
  510. "name" : "left_button",
  511. "type" : "button",
  512.  
  513. "x" : SCREEN_WIDTH * (450 - 22*3) / 800,
  514. "y" : SCREEN_HEIGHT * (505) / 600,
  515.  
  516. "default_image" : "d:/ymir work/ui/intro/select/dragon_left_button_01.sub",
  517. "over_image" : "d:/ymir work/ui/intro/select/dragon_left_button_02.sub",
  518. "down_image" : "d:/ymir work/ui/intro/select/dragon_left_button_03.sub",
  519. },
  520. {
  521. "name" : "right_button",
  522. "type" : "button",
  523.  
  524. "x" : SCREEN_WIDTH * (580 - 22) / 800,
  525. "y" : SCREEN_HEIGHT * (505) / 600,
  526.  
  527. "default_image" : "d:/ymir work/ui/intro/select/dragon_right_button_01.sub",
  528. "over_image" : "d:/ymir work/ui/intro/select/dragon_right_button_02.sub",
  529. "down_image" : "d:/ymir work/ui/intro/select/dragon_right_button_03.sub",
  530. },
  531.  
  532.  
  533. ),
  534. }
  535. else:
  536. window = {
  537. "name" : "SelectCharacterWindow",
  538.  
  539. "x" : 0,
  540. "y" : 0,
  541.  
  542. "width" : SCREEN_WIDTH,
  543. "height" : SCREEN_HEIGHT,
  544.  
  545. "children" :
  546. (
  547. ## Board
  548. {
  549. "name" : "BackGround", "type" : "expanded_image", "x" : 0, "y" : 0,
  550. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  551. "image" : "locale/de/ui/select.sub",
  552. },
  553. ## Name
  554. {
  555. "name" : "name_warrior",
  556. "type" : "image",
  557.  
  558. "x" : BOARD_X - 27,
  559. "y" : BOARD_Y - 174 + 25,
  560.  
  561. "image" : LOCALE_PATH+"name_warrior.sub",
  562. },
  563. {
  564. "name" : "name_assassin",
  565. "type" : "image",
  566.  
  567. "x" : BOARD_X - 27,
  568. "y" : BOARD_Y - 174 + 25,
  569.  
  570. "image" : LOCALE_PATH+"name_assassin.sub",
  571. },
  572. {
  573. "name" : "name_sura",
  574. "type" : "image",
  575.  
  576. "x" : BOARD_X - 27,
  577. "y" : BOARD_Y - 174 + 25,
  578.  
  579. "image" : LOCALE_PATH+"name_sura.sub",
  580. },
  581. {
  582. "name" : "name_shaman",
  583. "type" : "image",
  584.  
  585. "x" : BOARD_X - 27,
  586. "y" : BOARD_Y - 174 + 25,
  587.  
  588. "image" : LOCALE_PATH+"name_shaman.sub",
  589. },
  590.  
  591.  
  592. ## Character Board
  593. {
  594. "name" : "character_board",
  595. "type" : "thinboard",
  596.  
  597. "x" : BOARD_X,
  598. "y" : BOARD_Y,
  599.  
  600. "width" : 208,
  601. "height" : 363 + BOARD_ITEM_ADD_POSITION,
  602.  
  603. "children" :
  604. (
  605.  
  606. ## Empire Flag
  607. {
  608. "name" : "EmpireFlag_A",
  609. "type" : "expanded_image",
  610.  
  611. "x" : 21,
  612. "y" : 12,
  613. "x_scale" : 0.5,
  614. "y_scale" : 0.5,
  615.  
  616. "image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
  617. },
  618. {
  619. "name" : "EmpireFlag_B",
  620. "type" : "expanded_image",
  621.  
  622. "x" : 21,
  623. "y" : 12,
  624. "x_scale" : 0.5,
  625. "y_scale" : 0.5,
  626.  
  627. "image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
  628. },
  629. {
  630. "name" : "EmpireFlag_C",
  631. "type" : "expanded_image",
  632.  
  633. "x" : 21,
  634. "y" : 12,
  635. "x_scale" : 0.5,
  636. "y_scale" : 0.5,
  637.  
  638. "image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
  639. },
  640.  
  641. {
  642. "name" : "EmpireNameSlot",
  643. "type" : "image",
  644.  
  645. "x" : 100,
  646. "y" : 12,
  647.  
  648. "image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
  649.  
  650. "children" :
  651. (
  652. {
  653. "name" : "EmpireName",
  654. "type" : "text",
  655.  
  656. "x" : 0,
  657. "y" : 0,
  658.  
  659. "text" : uiScriptLocale.SELECT_EMPIRE_NAME,
  660.  
  661. "all_align" : "center",
  662. },
  663. ),
  664. },
  665.  
  666. {
  667. "name" : "GuildNameSlot",
  668. "type" : "image",
  669.  
  670. "x" : 100,
  671. "y" : 33,
  672.  
  673. "image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
  674.  
  675. "children" :
  676. (
  677. {
  678. "name" : "GuildName",
  679. "type" : "text",
  680.  
  681. "x" : 0,
  682. "y" : 0,
  683.  
  684. "text" : uiScriptLocale.SELECT_NO_GUILD,
  685.  
  686. "all_align" : "center",
  687. },
  688. ),
  689. },
  690.  
  691. {
  692. "name" : "character_name",
  693. "type" : "text",
  694.  
  695. "x" : 17,
  696. "y" : 124 - 21 + BOARD_ITEM_ADD_POSITION,
  697.  
  698. "text" : uiScriptLocale.SELECT_NAME,
  699.  
  700. "children" :
  701. (
  702. {
  703. "name" : "character_name_slot",
  704. "type" : "image",
  705.  
  706. "x" : 43,
  707. "y" : -2,
  708.  
  709. "image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
  710. },
  711. {
  712. "name" : "character_name_value",
  713. "type" : "text",
  714.  
  715. "x" : 43 + 130/2,
  716. "y" : 0,
  717.  
  718. "text" : "",
  719.  
  720. "text_horizontal_align" : "center",
  721. },
  722. ),
  723. },
  724. {
  725. "name" : "character_level",
  726. "type" : "text",
  727.  
  728. "x" : 17,
  729. "y" : 50 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  730.  
  731. "text" : uiScriptLocale.SELECT_LEVEL,
  732.  
  733. "children" :
  734. (
  735. {
  736. "name" : "character_level_slot",
  737. "type" : "image",
  738.  
  739. "x" : 43,
  740. "y" : -2,
  741.  
  742. "image" : "d:/ymir work/ui/public/Parameter_Slot_05.sub",
  743. },
  744. {
  745. "name" : "character_level_value",
  746. "type" : "text",
  747.  
  748. "x" : 43 + 130/2,
  749. "y" : 0,
  750.  
  751. "text" : "",
  752.  
  753. "text_horizontal_align" : "center",
  754. },
  755. ),
  756. },
  757. {
  758. "name" : "character_play_time",
  759. "type" : "text",
  760.  
  761. "x" : 17,
  762. "y" : 76 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  763.  
  764. "text" : uiScriptLocale.SELECT_PLAYTIME,
  765.  
  766. "children" :
  767. (
  768. {
  769. "name" : "character_play_time_slot",
  770. "type" : "image",
  771.  
  772. "x" : 83,
  773. "y" : -2,
  774.  
  775. "image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
  776. },
  777. {
  778. "name" : "character_play_time_value",
  779. "type" : "text",
  780.  
  781. "x" : 83 + 91/2,
  782. "y" : 0,
  783.  
  784. "text" : "",
  785.  
  786. "text_horizontal_align" : "center",
  787. },
  788. ),
  789. },
  790. {
  791. "name" : "character_hth",
  792. "type" : "text",
  793.  
  794. "x" : 17,
  795. "y" : 102 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  796.  
  797. "text" : uiScriptLocale.SELECT_HP,
  798.  
  799. "children" :
  800. (
  801. {
  802. "name" : "gauge_hth",
  803. "type" : "gauge",
  804.  
  805. "x" : 30,
  806. "y" : 4,
  807.  
  808. "width" : 100,
  809. "color" : "red",
  810. },
  811. {
  812. "name" : "character_hth_slot",
  813. "type" : "image",
  814.  
  815. "x" : 134,
  816. "y" : -2,
  817.  
  818. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  819. },
  820. {
  821. "name" : "character_hth_value",
  822. "type" : "text",
  823.  
  824. "x" : 134 + 39/2,
  825. "y" : 0,
  826.  
  827. "text" : "",
  828.  
  829. "text_horizontal_align" : "center",
  830. },
  831. ),
  832. },
  833. {
  834. "name" : "character_int",
  835. "type" : "text",
  836.  
  837. "x" : 17,
  838. "y" : 128 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  839.  
  840. "text" : uiScriptLocale.SELECT_SP,
  841.  
  842. "children" :
  843. (
  844. {
  845. "name" : "gauge_int",
  846. "type" : "gauge",
  847.  
  848. "x" : 30,
  849. "y" : 4,
  850.  
  851. "width" : 100,
  852. "color" : "pink",
  853. },
  854. {
  855. "name" : "character_int_slot",
  856. "type" : "image",
  857.  
  858. "x" : 134,
  859. "y" : -2,
  860.  
  861. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  862. },
  863. {
  864. "name" : "character_int_value",
  865. "type" : "text",
  866.  
  867. "x" : 134 + 39/2,
  868. "y" : 0,
  869.  
  870. "text" : "",
  871.  
  872. "text_horizontal_align" : "center",
  873. },
  874. ),
  875. },
  876. {
  877. "name" : "character_str",
  878. "type" : "text",
  879.  
  880. "x" : 17,
  881. "y" : 154 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  882.  
  883. "text" : uiScriptLocale.SELECT_ATT_GRADE,
  884.  
  885. "children" :
  886. (
  887. {
  888. "name" : "gauge_str",
  889. "type" : "gauge",
  890.  
  891. "x" : 30,
  892. "y" : 4,
  893.  
  894. "width" : 100,
  895. "color" : "purple",
  896. },
  897. {
  898. "name" : "character_str_slot",
  899. "type" : "image",
  900.  
  901. "x" : 134,
  902. "y" : -2,
  903.  
  904. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  905. },
  906. {
  907. "name" : "character_str_value",
  908. "type" : "text",
  909.  
  910. "x" : 134 + 39/2,
  911. "y" : 0,
  912.  
  913. "text" : "",
  914.  
  915. "text_horizontal_align" : "center",
  916. },
  917. ),
  918. },
  919. {
  920. "name" : "character_dex",
  921. "type" : "text",
  922.  
  923. "x" : 17,
  924. "y" : 180 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  925.  
  926. "text" : uiScriptLocale.SELECT_DEX_GRADE,
  927.  
  928. "children" :
  929. (
  930. {
  931. "name" : "gauge_dex",
  932. "type" : "gauge",
  933.  
  934. "x" : 30,
  935. "y" : 4,
  936.  
  937. "width" : 100,
  938. "color" : "blue",
  939. },
  940. {
  941. "name" : "character_dex_slot",
  942. "type" : "image",
  943.  
  944. "x" : 134,
  945. "y" : -2,
  946.  
  947. "image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  948. },
  949. {
  950. "name" : "character_dex_value",
  951. "type" : "text",
  952.  
  953. "x" : 134 + 39/2,
  954. "y" : 0,
  955.  
  956. "text" : "",
  957.  
  958. "text_horizontal_align" : "center",
  959. },
  960. ),
  961. },
  962.  
  963. ## Buttons
  964. {
  965. "name" : "start_button",
  966. "type" : "button",
  967.  
  968. "x" : 14,
  969. "y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  970.  
  971. "text" : uiScriptLocale.SELECT_SELECT,
  972. "text_height" : 6,
  973.  
  974. "default_image" : ROOT_PATH + "XLarge_Button_01.sub",
  975. "over_image" : ROOT_PATH + "XLarge_Button_02.sub",
  976. "down_image" : ROOT_PATH + "XLarge_Button_03.sub",
  977. },
  978. {
  979. "name" : "create_button",
  980. "type" : "button",
  981.  
  982. "x" : 14,
  983. "y" : 210 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  984.  
  985. "text" : uiScriptLocale.SELECT_CREATE,
  986. "text_height" : 6,
  987.  
  988. "default_image" : ROOT_PATH + "XLarge_Button_01.sub",
  989. "over_image" : ROOT_PATH + "XLarge_Button_02.sub",
  990. "down_image" : ROOT_PATH + "XLarge_Button_03.sub",
  991. },
  992. {
  993. "name" : "exit_button",
  994. "type" : "button",
  995.  
  996. "x" : 105,
  997. "y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  998.  
  999. "text" : uiScriptLocale.SELECT_EXIT,
  1000.  
  1001. "default_image" : ROOT_PATH + "Large_Button_01.sub",
  1002. "over_image" : ROOT_PATH + "Large_Button_02.sub",
  1003. "down_image" : ROOT_PATH + "Large_Button_03.sub",
  1004. },
  1005. {
  1006. "name" : "delete_button",
  1007. "type" : "button",
  1008.  
  1009. "x" : 14,
  1010. "y" : 245 + 100 - 21 + BOARD_ITEM_ADD_POSITION,
  1011.  
  1012. "text" : uiScriptLocale.SELECT_DELETE,
  1013.  
  1014. "default_image" : ROOT_PATH + "Large_Button_01.sub",
  1015. "over_image" : ROOT_PATH + "Large_Button_02.sub",
  1016. "down_image" : ROOT_PATH + "Large_Button_03.sub",
  1017. },
  1018. ),
  1019. },
  1020.  
  1021. ## Buttons
  1022. {
  1023. "name" : "left_button",
  1024. "type" : "button",
  1025.  
  1026. "x" : SCREEN_WIDTH * (450 - 22*3) / 800,
  1027. "y" : SCREEN_HEIGHT * (505) / 600,
  1028.  
  1029. "default_image" : "d:/ymir work/ui/intro/select/dragon_left_button_01.sub",
  1030. "over_image" : "d:/ymir work/ui/intro/select/dragon_left_button_02.sub",
  1031. "down_image" : "d:/ymir work/ui/intro/select/dragon_left_button_03.sub",
  1032. },
  1033. {
  1034. "name" : "right_button",
  1035. "type" : "button",
  1036.  
  1037. "x" : SCREEN_WIDTH * (580 - 22) / 800,
  1038. "y" : SCREEN_HEIGHT * (505) / 600,
  1039.  
  1040. "default_image" : "d:/ymir work/ui/intro/select/dragon_right_button_01.sub",
  1041. "over_image" : "d:/ymir work/ui/intro/select/dragon_right_button_02.sub",
  1042. "down_image" : "d:/ymir work/ui/intro/select/dragon_right_button_03.sub",
  1043. },
  1044.  
  1045.  
  1046. ),
  1047. }
Advertisement
Add Comment
Please, Sign In to add comment