Guest User

Untitled

a guest
Jun 19th, 2025
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.28 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. ROOT_PATH = "d:/ymir work/ui/public/"
  4. LOCALE_PATH = uiScriptLocale.SELECT_PATH
  5. JEX_RESOURCE_IMGS = "locale/ro/ui/interface_alexu_works/selecteaza_caracter/"
  6. ALEXU = "locale/ro/ui/interface_alexu_works/interfata_alexu/select_caracter/"
  7.  
  8. BOARD_X = SCREEN_WIDTH * (65) / 800
  9. BOARD_Y = SCREEN_HEIGHT * (220) / 600
  10.  
  11. BOARD_ITEM_ADD_POSITION = -40
  12.  
  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) / 1280.0,
  28. "y_scale" : float(SCREEN_HEIGHT) / 720.0,
  29. "image" : "locale/ro/ui/interface_alexu_works/selecteaza_caracter/bg.tga",
  30. },
  31. ## Nume
  32. {
  33. "name" : "name_warrior",
  34. "type" : "image",
  35.  
  36. "x" :(SCREEN_WIDTH / 2) + (180),
  37. "y" : BOARD_Y + 100,
  38.  
  39. "image" : JEX_RESOURCE_IMGS+"g.tga",
  40. },
  41. {
  42. "name" : "name_assassin",
  43. "type" : "image",
  44.  
  45. "x" :(SCREEN_WIDTH / 2) + (180),
  46. "y" : BOARD_Y + 100,
  47.  
  48. "image" : JEX_RESOURCE_IMGS+"n.tga",
  49. },
  50. {
  51. "name" : "name_sura",
  52. "type" : "image",
  53.  
  54. "x" :(SCREEN_WIDTH / 2) + (180),
  55. "y" : BOARD_Y + 100,
  56.  
  57. "image" : JEX_RESOURCE_IMGS+"s.tga",
  58. },
  59. {
  60. "name" : "name_shaman",
  61. "type" : "image",
  62.  
  63. "x" :(SCREEN_WIDTH / 2) + (180),
  64. "y" : BOARD_Y + 100,
  65.  
  66. "image" : JEX_RESOURCE_IMGS+"c.tga",
  67. },
  68.  
  69. {
  70. "name" : "start_button",
  71. "type" : "button",
  72.  
  73. "x" : -413,
  74. "y" : 290,
  75. "horizontal_align" : "center",
  76. "vertical_align" : "center",
  77.  
  78. #"text" : "",
  79. #"text_height" : 6,
  80.  
  81. "default_image" : JEX_RESOURCE_IMGS + "start.tga",
  82. "over_image" : JEX_RESOURCE_IMGS + "start1.tga",
  83. "down_image" : JEX_RESOURCE_IMGS + "start2.tga",
  84. },
  85. {
  86. "name" : "create_button",
  87. "type" : "button",
  88.  
  89. "x" : 400,
  90. "y" : 685,
  91. "horizontal_align" : "center",
  92.  
  93.  
  94. #"text" : uiScriptLocale.SELECT_CREATE,
  95. #"text_height" : 6,
  96.  
  97. "default_image" : JEX_RESOURCE_IMGS + "create.tga",
  98. "over_image" : JEX_RESOURCE_IMGS + "create2.tga",
  99. "down_image" : JEX_RESOURCE_IMGS + "create1.tga",
  100. },
  101. ## Butoane
  102. {
  103. "name" : "exit_button",
  104. "type" : "button",
  105.  
  106. "x" : 500,
  107. "y" : 685,
  108. "horizontal_align" : "center",
  109.  
  110. #"text" : uiScriptLocale.SELECT_EXIT,
  111.  
  112. "default_image" : JEX_RESOURCE_IMGS + "close.tga",
  113. "over_image" : JEX_RESOURCE_IMGS + "close1.tga",
  114. "down_image" : JEX_RESOURCE_IMGS + "close2.tga",
  115. },
  116. {
  117. "name" : "delete_button",
  118. "type" : "button",
  119.  
  120. "x" : 600,
  121. "y" : 685,
  122. "horizontal_align" : "center",
  123.  
  124. #"text" : uiScriptLocale.SELECT_DELETE,
  125.  
  126. "default_image" : JEX_RESOURCE_IMGS + "delete.tga",
  127. "over_image" : JEX_RESOURCE_IMGS + "delete1.tga",
  128. "down_image" : JEX_RESOURCE_IMGS + "delete2.tga",
  129. },
  130. {
  131. "name" : "alexu_detalii",
  132. "type" : "image",
  133.  
  134. "x" : -100,
  135. "y" : -30,
  136.  
  137. "horizontal_align" : "center",
  138. "vertical_align" : "center",
  139.  
  140. #"text" : uiScriptLocale.SELECT_DELETE,
  141.  
  142. "image" : JEX_RESOURCE_IMGS + "alexu.tga",
  143. },
  144. {
  145. "name" : "alexu_select_char",
  146. "type" : "text",
  147.  
  148. "x" : -480,
  149. "y" : -315,
  150.  
  151. "horizontal_align" : "center",
  152. "vertical_align" : "center",
  153.  
  154. "fontname" : "Tahoma:23",
  155.  
  156. "text" : "Selectare Character",
  157.  
  158. },
  159. ## Caracter Board
  160. {
  161. "name" : "character_board",
  162. "type" : "image",
  163.  
  164. "x" : -407,
  165. "y" : -25,
  166. "horizontal_align" : "center",
  167. "vertical_align" : "center",
  168.  
  169. "image" : JEX_RESOURCE_IMGS + "select.tga",
  170.  
  171. "children" :
  172. (
  173.  
  174. ## Steaguri regate
  175. {
  176. "name" : "EmpireFlag_A",
  177. "type" : "image",
  178.  
  179. "x" : 95,
  180. "y" : 80,
  181. #"x_scale" : 0.9,
  182. #"y_scale" : 0.9,
  183.  
  184. "image" : JEX_RESOURCE_IMGS + "hypnos.tga",
  185. },
  186.  
  187. {
  188. "name" : "EmpireFlag_C",
  189. "type" : "image",
  190.  
  191. "x" : 95,
  192. "y" : 80,
  193. #"x_scale" : 0.9,
  194. #"y_scale" : 0.9,
  195.  
  196. "image" : JEX_RESOURCE_IMGS + "hyperion.tga",
  197. },
  198.  
  199. {
  200. "name" : "EmpireNameSlot",
  201. "type" : "image",
  202.  
  203. "x" : 162,
  204. "y" : 166,
  205.  
  206.  
  207.  
  208. "children" :
  209. (
  210. {
  211. "name" : "EmpireName",
  212. "type" : "text",
  213.  
  214. "x" : 0,
  215. "y" : 0,
  216.  
  217. "text" : uiScriptLocale.SELECT_EMPIRE_NAME,
  218.  
  219. "all_align" : "center",
  220. },
  221. ),
  222. },
  223.  
  224. {
  225. "name" : "GuildNameSlot",
  226. "type" : "text",
  227.  
  228. "x" : 170,
  229. "y" : 340,
  230.  
  231. "text" : "",
  232.  
  233. "children" :
  234. (
  235. {
  236. "name" : "GuildName_slot",
  237. "type" : "image",
  238.  
  239. "x" : 43,
  240. "y" : -2,
  241.  
  242. },
  243. {
  244. "name" : "GuildName",
  245. "type" : "text",
  246.  
  247. "x" : 0,
  248. "y" : 0,
  249.  
  250. "fontname" : "Tahoma:23",
  251.  
  252. "text" : uiScriptLocale.SELECT_NO_GUILD,
  253.  
  254. "all_align" : "center",
  255. },
  256. ),
  257. },
  258.  
  259. {
  260. "name" : "character_name",
  261. "type" : "text",
  262.  
  263. "x" : 70,
  264. "y" : 200,
  265.  
  266. "text" : "|cffff0000",
  267.  
  268. "children" :
  269. (
  270. {
  271. "name" : "character_name_slot",
  272. "type" : "image",
  273.  
  274. "x" : 43,
  275. "y" : -2,
  276.  
  277. },
  278. {
  279. "name" : "character_name_value",
  280. "type" : "text",
  281.  
  282. "x" : 36 + 130/2,
  283. "y" : 0,
  284.  
  285. "fontname" : "Tahoma:23",
  286.  
  287. "text" : "|cffff0000",
  288.  
  289. "text_horizontal_align" : "center",
  290. },
  291. ),
  292. },
  293. {
  294. "name" : "character_level",
  295. "type" : "text",
  296.  
  297. "x" : 90,
  298. "y" : 240,
  299.  
  300. "text" : "",
  301.  
  302. "children" :
  303. (
  304. {
  305. "name" : "character_level_slot",
  306. "type" : "image",
  307.  
  308. "x" : 43,
  309. "y" : -2,
  310. },
  311. {
  312. "name" : "alexu_kyoura",
  313. "type" : "text",
  314.  
  315. "x" : 36 + 65/2,
  316. "y" : 0,
  317.  
  318. "fontname" : "Tahoma:19",
  319.  
  320. "text" : "Nivel ",
  321.  
  322. "text_horizontal_align" : "center",
  323. },
  324. {
  325. "name" : "character_level_value",
  326. "type" : "text",
  327.  
  328. "x" : 36 + 130/2,
  329. "y" : 0,
  330.  
  331. "fontname" : "Tahoma:19",
  332.  
  333. "text" : "Nivel : ",
  334.  
  335. "text_horizontal_align" : "center",
  336. },
  337. ),
  338. },
  339. {
  340. "name" : "character_play_time",
  341. "type" : "text",
  342.  
  343. "x" : 30,
  344. "y" : 290,
  345.  
  346. "text" : "",
  347.  
  348. "children" :
  349. (
  350. {
  351. "name" : "character_play_time_slot",
  352. "type" : "image",
  353.  
  354. "x" : 83,
  355. "y" : -2,
  356.  
  357.  
  358. },
  359. {
  360. "name" : "alexu_kyoura",
  361. "type" : "text",
  362.  
  363. "x" : 96 + 85/2,
  364. "y" : -25,
  365.  
  366. "fontname" : "Tahoma:19",
  367.  
  368. "text" : "Minute Jucate",
  369.  
  370. "text_horizontal_align" : "center",
  371. },
  372. {
  373. "name" : "character_play_time_value",
  374. "type" : "text",
  375.  
  376. "x" : 96 + 90/2,
  377. "y" : 0,
  378.  
  379. "fontname" : "Tahoma:19",
  380.  
  381. "text" : "",
  382.  
  383. "text_horizontal_align" : "center",
  384. },
  385. ),
  386. },
  387. {
  388. "name" : "character_hth",
  389. "type" : "text",
  390.  
  391. "x" : 340,
  392. "y" : 75,
  393.  
  394. "text" : "",
  395.  
  396. "children" :
  397. (
  398. {
  399. "name" : "gauge_hth",
  400. "type" : "gauge",
  401.  
  402. "x" : 16,
  403. "y" : 4,
  404.  
  405. "width" : 100,
  406. "color" : "red",
  407. },
  408. {
  409. "name" : "character_hth_slot",
  410. "type" : "image",
  411.  
  412. "x" : 134,
  413. "y" : -2,
  414.  
  415. #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  416. },
  417. {
  418. "name" : "character_hth_value",
  419. "type" : "text",
  420.  
  421. "x" : 9999,
  422. "y" : 9999,
  423.  
  424. "text" : "",
  425.  
  426. "text_horizontal_align" : "center",
  427. },
  428. ),
  429. },
  430. {
  431. "name" : "character_int",
  432. "type" : "text",
  433.  
  434. "x" : 340,
  435. "y" : 120,
  436.  
  437. "text" : "",
  438.  
  439. "children" :
  440. (
  441. {
  442. "name" : "gauge_int",
  443. "type" : "gauge",
  444.  
  445. "x" : 16,
  446. "y" : 4,
  447.  
  448. "width" : 100,
  449. "color" : "pink",
  450. },
  451. {
  452. "name" : "character_int_slot",
  453. "type" : "image",
  454.  
  455. "x" : 134,
  456. "y" : -2,
  457.  
  458. #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  459. },
  460. {
  461. "name" : "character_int_value",
  462. "type" : "text",
  463.  
  464. "x" : 9999,
  465. "y" : 9999,
  466.  
  467. "text" : "",
  468.  
  469. "text_horizontal_align" : "center",
  470. },
  471. ),
  472. },
  473. {
  474. "name" : "character_str",
  475. "type" : "text",
  476.  
  477. "x" : 340,
  478. "y" : 165,
  479.  
  480. "text" : "",
  481.  
  482. "children" :
  483. (
  484. {
  485. "name" : "gauge_str",
  486. "type" : "gauge",
  487.  
  488. "x" : 16,
  489. "y" : 4,
  490.  
  491. "width" : 100,
  492. "color" : "purple",
  493. },
  494. {
  495. "name" : "character_str_slot",
  496. "type" : "image",
  497.  
  498. "x" : 134,
  499. "y" : -2,
  500.  
  501. #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  502. },
  503. {
  504. "name" : "character_str_value",
  505. "type" : "text",
  506.  
  507. "x" : 9999,
  508. "y" : 9999,
  509.  
  510. "text" : "",
  511.  
  512. "text_horizontal_align" : "center",
  513. },
  514. ),
  515. },
  516. {
  517. "name" : "character_dex",
  518. "type" : "text",
  519.  
  520. "x" : 340,
  521. "y" : 215,
  522.  
  523. "text" : "",
  524.  
  525. "children" :
  526. (
  527. {
  528. "name" : "gauge_dex",
  529. "type" : "gauge",
  530.  
  531. "x" : 16,
  532. "y" : 4,
  533.  
  534. "width" : 100,
  535. "color" : "blue",
  536. },
  537. {
  538. "name" : "character_dex_slot",
  539. "type" : "image",
  540.  
  541. "x" : 134,
  542. "y" : -2,
  543.  
  544. #"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
  545. },
  546. {
  547. "name" : "character_dex_value",
  548. "type" : "text",
  549.  
  550. "x" : 9999,
  551. "y" : 9999,
  552.  
  553. "text" : "",
  554.  
  555. "text_horizontal_align" : "center",
  556. },
  557. ),
  558. },
  559. ),
  560. },
  561.  
  562. ## Butoane
  563. {
  564. "name" : "left_button",
  565. "type" : "button",
  566.  
  567. "x" : SCREEN_WIDTH * (450 - 22*3) / 950,
  568. "y" : SCREEN_HEIGHT * (505) / 700,
  569.  
  570. "default_image" : ALEXU + "left.tga",
  571. "over_image" : ALEXU + "left.tga",
  572. "down_image" : ALEXU + "left.tga",
  573. },
  574. {
  575. "name" : "right_button",
  576. "type" : "button",
  577.  
  578. "x" : SCREEN_WIDTH * (580 - 22) / 845,
  579. "y" : SCREEN_HEIGHT * (505) / 700,
  580.  
  581. "default_image" : ALEXU + "right.tga",
  582. "over_image" : ALEXU + "right.tga",
  583. "down_image" : ALEXU + "right.tga",
  584. },
  585.  
  586. ),
  587. }
  588.  
Advertisement
Add Comment
Please, Sign In to add comment