Guest User

2311

a guest
Aug 29th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.51 KB | None | 0 0
  1. import uiScriptLocale
  2. import app
  3.  
  4. ROOT_PATH = "d:/ymir work/ui/public/"
  5.  
  6. TEMPORARY_X = +13
  7. TEXT_TEMPORARY_X = -10
  8. BUTTON_TEMPORARY_X = 5
  9. PVP_X = -10
  10.  
  11. if app.ENABLE_MULTI_LANGUAGE_SYSTEM:
  12. MULTI_LANGUAGE_WINDOW_Y = 445
  13.  
  14. window = {
  15. "name" : "SystemOptionDialog",
  16. "style" : ("movable", "float",),
  17.  
  18. "x" : 0,
  19. "y" : 0,
  20.  
  21. "width" : 305,
  22. "height" : 300,
  23.  
  24. "children" :
  25. (
  26. {
  27. "name" : "board",
  28. "type" : "board",
  29.  
  30. "x" : 0,
  31. "y" : 0,
  32.  
  33. "width" : 305,
  34. "height" : 300,
  35.  
  36. "children" :
  37. (
  38. ## Title
  39. {
  40. "name" : "titlebar",
  41. "type" : "titlebar",
  42. "style" : ("attach",),
  43.  
  44. "x" : 8,
  45. "y" : 8,
  46.  
  47. "width" : 284,
  48. "color" : "gray",
  49.  
  50. "children" :
  51. (
  52. {
  53. "name":"titlename", "type":"text", "x":0, "y":3,
  54. "horizontal_align":"center", "text_horizontal_align":"center",
  55. "text": uiScriptLocale.SYSTEMOPTION_TITLE,
  56. },
  57. ),
  58. },
  59.  
  60.  
  61. ## Music
  62. {
  63. "name" : "music_name",
  64. "type" : "text",
  65.  
  66. "x" : 30,
  67. "y" : 75,
  68.  
  69. "text" : uiScriptLocale.OPTION_MUSIC,
  70. },
  71.  
  72. {
  73. "name" : "music_volume_controller",
  74. "type" : "sliderbar",
  75.  
  76. "x" : 110,
  77. "y" : 75,
  78. },
  79.  
  80. {
  81. "name" : "bgm_button",
  82. "type" : "button",
  83.  
  84. "x" : 20,
  85. "y" : 100,
  86.  
  87. "text" : uiScriptLocale.OPTION_MUSIC_CHANGE,
  88.  
  89. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  90. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  91. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  92. },
  93.  
  94. {
  95. "name" : "bgm_file",
  96. "type" : "text",
  97.  
  98. "x" : 100,
  99. "y" : 102,
  100.  
  101. "text" : uiScriptLocale.OPTION_MUSIC_DEFAULT_THEMA,
  102. },
  103.  
  104. ## Sound
  105. {
  106. "name" : "sound_name",
  107. "type" : "text",
  108.  
  109. "x" : 30,
  110. "y" : 50,
  111.  
  112. "text" : uiScriptLocale.OPTION_SOUND,
  113. },
  114.  
  115. {
  116. "name" : "sound_volume_controller",
  117. "type" : "sliderbar",
  118.  
  119. "x" : 110,
  120. "y" : 50,
  121. },
  122.  
  123. ## 카메라
  124. {
  125. "name" : "camera_mode",
  126. "type" : "text",
  127.  
  128. "x" : 40 + TEXT_TEMPORARY_X,
  129. "y" : 135+2,
  130.  
  131. "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE,
  132. },
  133.  
  134. {
  135. "name" : "camera_short",
  136. "type" : "radio_button",
  137.  
  138. "x" : 110,
  139. "y" : 135,
  140.  
  141. "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE_SHORT,
  142.  
  143. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  144. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  145. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  146. },
  147.  
  148. {
  149. "name" : "camera_long",
  150. "type" : "radio_button",
  151.  
  152. "x" : 110+70,
  153. "y" : 135,
  154.  
  155. "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE_LONG,
  156.  
  157. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  158. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  159. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  160. },
  161.  
  162. ## 안개
  163. {
  164. "name" : "fog_mode",
  165. "type" : "text",
  166.  
  167. "x" : 30,
  168. "y" : 160+2,
  169.  
  170. "text" : uiScriptLocale.OPTION_FOG,
  171. },
  172.  
  173. {
  174. "name" : "fog_level0",
  175. "type" : "radio_button",
  176.  
  177. "x" : 110,
  178. "y" : 160,
  179.  
  180. "text" : uiScriptLocale.OPTION_FOG_DENSE,
  181.  
  182. "default_image" : ROOT_PATH + "small_Button_01.sub",
  183. "over_image" : ROOT_PATH + "small_Button_02.sub",
  184. "down_image" : ROOT_PATH + "small_Button_03.sub",
  185. },
  186.  
  187. {
  188. "name" : "fog_level1",
  189. "type" : "radio_button",
  190.  
  191. "x" : 110+50,
  192. "y" : 160,
  193.  
  194. "text" : uiScriptLocale.OPTION_FOG_MIDDLE,
  195.  
  196. "default_image" : ROOT_PATH + "small_Button_01.sub",
  197. "over_image" : ROOT_PATH + "small_Button_02.sub",
  198. "down_image" : ROOT_PATH + "small_Button_03.sub",
  199. },
  200.  
  201. {
  202. "name" : "fog_level2",
  203. "type" : "radio_button",
  204.  
  205. "x" : 110 + 100,
  206. "y" : 160,
  207.  
  208. "text" : uiScriptLocale.OPTION_FOG_LIGHT,
  209.  
  210. "default_image" : ROOT_PATH + "small_Button_01.sub",
  211. "over_image" : ROOT_PATH + "small_Button_02.sub",
  212. "down_image" : ROOT_PATH + "small_Button_03.sub",
  213. },
  214.  
  215. ## 타일 가속
  216. {
  217. "name" : "tiling_mode",
  218. "type" : "text",
  219.  
  220. "x" : 40 + TEXT_TEMPORARY_X,
  221. "y" : 185+2,
  222.  
  223. "text" : uiScriptLocale.OPTION_TILING,
  224. },
  225.  
  226. {
  227. "name" : "tiling_cpu",
  228. "type" : "radio_button",
  229.  
  230. "x" : 110,
  231. "y" : 185,
  232.  
  233. "text" : uiScriptLocale.OPTION_TILING_CPU,
  234.  
  235. "default_image" : ROOT_PATH + "small_Button_01.sub",
  236. "over_image" : ROOT_PATH + "small_Button_02.sub",
  237. "down_image" : ROOT_PATH + "small_Button_03.sub",
  238. },
  239.  
  240. {
  241. "name" : "tiling_gpu",
  242. "type" : "radio_button",
  243.  
  244. "x" : 110+50,
  245. "y" : 185,
  246.  
  247. "text" : uiScriptLocale.OPTION_TILING_GPU,
  248.  
  249. "default_image" : ROOT_PATH + "small_Button_01.sub",
  250. "over_image" : ROOT_PATH + "small_Button_02.sub",
  251. "down_image" : ROOT_PATH + "small_Button_03.sub",
  252. },
  253.  
  254. {
  255. "name" : "tiling_apply",
  256. "type" : "button",
  257.  
  258. "x" : 110+100,
  259. "y" : 185,
  260.  
  261. "text" : uiScriptLocale.OPTION_TILING_APPLY,
  262.  
  263. "default_image" : ROOT_PATH + "middle_Button_01.sub",
  264. "over_image" : ROOT_PATH + "middle_Button_02.sub",
  265. "down_image" : ROOT_PATH + "middle_Button_03.sub",
  266. },
  267. { # Causta principala cred..
  268. "name" : "language_change_window",
  269. "type" : "window",
  270.  
  271. "x" : 0,
  272. "y" : MULTI_LANGUAGE_WINDOW_Y,
  273. "width" : 10,
  274. "height" : 22 + 20,
  275.  
  276. "children" :
  277. (
  278. { # Text cu limba.
  279. "name" : "language_select_text",
  280. "type" : "text",
  281.  
  282. "x" : 30,
  283. "y" : -230,
  284.  
  285. "text" : uiScriptLocale.OPTION_LANGUAGE_SELECT,
  286. },
  287. ),
  288. },
  289. { # Fundal negru pentru casuta cu limba.
  290. "name" : "language_select_img",
  291. "type" : "image",
  292. "x" : 40 + TEXT_TEMPORARY_X,
  293. "y" : 235+2,
  294. "image" : "d:/ymir work/ui/quest_re/button_one.sub",
  295. },
  296. { # Text din casuta neagra cu limba de ales.
  297. "name" : "cur_language_text_window",
  298. "type" : "window",
  299.  
  300. "x" : 40 + TEXT_TEMPORARY_X,
  301. "y" : 235+1,
  302. "width" : 210 - 16,
  303. "height" : 16,
  304.  
  305. "children" :
  306. (
  307. { "name" : "cur_language_text", "type" : "text", "x" : 0, "y" : 0, "text" : "-", "all_align" : "center"},
  308. ),
  309. },
  310. {
  311. "name" : "language_select_button",
  312. "type" : "button",
  313.  
  314. "x" : 40 + TEXT_TEMPORARY_X,
  315. "y" : 500,
  316.  
  317. "default_image" : "d:/ymir work/ui/game/party_match/arrow_default.sub",
  318. "over_image" : "d:/ymir work/ui/game/party_match/arrow_over.sub",
  319. "down_image" : "d:/ymir work/ui/game/party_match/arrow_down.sub",
  320. },
  321. { # Button ok pentru schimbare limba.
  322. "name" : "language_change_button",
  323. "type" : "button",
  324.  
  325. "x" : 40 + TEXT_TEMPORARY_X + 210 + 10,
  326. "y" : 235+1,
  327.  
  328. "text" : uiScriptLocale.OPTION_LANGUAGE_CHANGE,
  329.  
  330. "default_image" : ROOT_PATH + "small_Button_01.sub",
  331. "over_image" : ROOT_PATH + "small_Button_02.sub",
  332. "down_image" : ROOT_PATH + "small_Button_03.sub",
  333. "disable_image" : ROOT_PATH + "small_Button_03.sub",
  334. },
  335. {
  336. "name" : "language_select_pivot_window",
  337. "type" : "window",
  338.  
  339. "x" : 0 + 10,
  340. "y" : 0 + 32,
  341. "width" : 210,
  342. "height" : 0,
  343. },
  344. {
  345. "name" : "mouse_over_image",
  346. "type" : "expanded_image",
  347. "style" : ("not_pick",),
  348. "x" : 0 + 10,
  349. "y" : 0 + 32,
  350. "image" : "d:/ymir work/ui/quest_re/button_over.sub",
  351. },
  352. ),
  353. },
  354. ),
  355. }
  356.  
Advertisement
Add Comment
Please, Sign In to add comment