Guest User

uiscript.ui

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