1. import uiScriptLocale
  2. import app
  3. ROOT_PATH = "d:/ymir work/ui/public/"
  4. TEMPORARY_X = +13
  5. TEXT_TEMPORARY_X = -10
  6. BUTTON_TEMPORARY_X = 5
  7. PVP_X = -10
  8. if app.ENABLE_GRAPHIC_ON_OFF:
  9. GRAPHIC_ON_OFF_WINDOW_Y = 320
  10. window = {
  11. "name" : "SystemOptionDialog",
  12. "style" : ("movable", "float",),
  13. "x" : 0,
  14. "y" : 0,
  15. "width" : 300,
  16. "height" : 250,
  17. "children" :
  18. (
  19. {
  20. "name" : "board",
  21. "type" : "board",
  22. "x" : 0,
  23. "y" : 0,
  24. "width" : 300,
  25. "height" : 250,
  26. "children" :
  27. (
  28. ## Title
  29. {
  30. "name" : "titlebar",
  31. "type" : "titlebar",
  32. "style" : ("attach",),
  33. "x" : 8,
  34. "y" : 8,
  35. "width" : 284,
  36. "color" : "gray",
  37. "children" :
  38. (
  39. {
  40. "name":"titlename", "type":"text", "x":0, "y":3,
  41. "horizontal_align":"center", "text_horizontal_align":"center",
  42. "text": uiScriptLocale.SYSTEMOPTION_TITLE,
  43. },
  44. ),
  45. },
  46. ## Music
  47. {
  48. "name" : "music_name",
  49. "type" : "text",
  50. "x" : 30,
  51. "y" : 75,
  52. "text" : uiScriptLocale.OPTION_MUSIC,
  53. },
  54. {
  55. "name" : "music_volume_controller",
  56. "type" : "sliderbar",
  57. "x" : 110,
  58. "y" : 75,
  59. },
  60. {
  61. "name" : "bgm_button",
  62. "type" : "button",
  63. "x" : 20,
  64. "y" : 100+20+5,
  65. "text" : uiScriptLocale.OPTION_MUSIC_CHANGE,
  66. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  67. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  68. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  69. },
  70. {
  71. "name" : "bgm_file",
  72. "type" : "text",
  73. "x" : 100,
  74. "y" : 102+20+5,
  75. "text" : uiScriptLocale.OPTION_MUSIC_DEFAULT_THEMA,
  76. },
  77. ## Sound
  78. {
  79. "name" : "sound_name",
  80. "type" : "text",
  81. "x" : 30,
  82. "y" : 50,
  83. "text" : uiScriptLocale.OPTION_SOUND,
  84. },
  85. {
  86. "name" : "sound_volume_controller",
  87. "type" : "sliderbar",
  88. "x" : 110,
  89. "y" : 50,
  90. },
  91. ## Ä«¸Þ¶ó
  92. {
  93. "name" : "camera_mode",
  94. "type" : "text",
  95. "x" : 40 + TEXT_TEMPORARY_X,
  96. "y" : 135+2+20,
  97. "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE,
  98. },
  99. {
  100. "name" : "camera_short",
  101. "type" : "radio_button",
  102. "x" : 110,
  103. "y" : 135+20,
  104. "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE_SHORT,
  105. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  106. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  107. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  108. },
  109. {
  110. "name" : "camera_long",
  111. "type" : "radio_button",
  112. "x" : 110+70,
  113. "y" : 135+20,
  114. "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE_LONG,
  115. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  116. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  117. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  118. },
  119. ## ¾È°³
  120. {
  121. "name" : "fog_mode",
  122. "type" : "text",
  123. "x" : 30,
  124. "y" : 160+2+20,
  125. "text" : uiScriptLocale.OPTION_FOG,
  126. },
  127. {
  128. "name" : "fog_level0",
  129. "type" : "radio_button",
  130. "x" : 110,
  131. "y" : 160+20,
  132. "text" : uiScriptLocale.OPTION_FOG_DENSE,
  133. "default_image" : ROOT_PATH + "small_Button_01.sub",
  134. "over_image" : ROOT_PATH + "small_Button_02.sub",
  135. "down_image" : ROOT_PATH + "small_Button_03.sub",
  136. },
  137. {
  138. "name" : "fog_level1",
  139. "type" : "radio_button",
  140. "x" : 110+50,
  141. "y" : 160+20,
  142. "text" : uiScriptLocale.OPTION_FOG_MIDDLE,
  143. "default_image" : ROOT_PATH + "small_Button_01.sub",
  144. "over_image" : ROOT_PATH + "small_Button_02.sub",
  145. "down_image" : ROOT_PATH + "small_Button_03.sub",
  146. },
  147. {
  148. "name" : "fog_level2",
  149. "type" : "radio_button",
  150. "x" : 110 + 100,
  151. "y" : 160+20,
  152. "text" : uiScriptLocale.OPTION_FOG_LIGHT,
  153. "default_image" : ROOT_PATH + "small_Button_01.sub",
  154. "over_image" : ROOT_PATH + "small_Button_02.sub",
  155. "down_image" : ROOT_PATH + "small_Button_03.sub",
  156. },
  157. ## ŸÀÏ °¡¼Ó
  158. {
  159. "name" : "tiling_mode",
  160. "type" : "text",
  161. "x" : 40 + TEXT_TEMPORARY_X,
  162. "y" : 185+2+20,
  163. "text" : uiScriptLocale.OPTION_TILING,
  164. },
  165. {
  166. "name" : "tiling_cpu",
  167. "type" : "radio_button",
  168. "x" : 110,
  169. "y" : 185+20,
  170. "text" : uiScriptLocale.OPTION_TILING_CPU,
  171. "default_image" : ROOT_PATH + "small_Button_01.sub",
  172. "over_image" : ROOT_PATH + "small_Button_02.sub",
  173. "down_image" : ROOT_PATH + "small_Button_03.sub",
  174. },
  175. {
  176. "name" : "tiling_gpu",
  177. "type" : "radio_button",
  178. "x" : 110+50,
  179. "y" : 185+20,
  180. "text" : uiScriptLocale.OPTION_TILING_GPU,
  181. "default_image" : ROOT_PATH + "small_Button_01.sub",
  182. "over_image" : ROOT_PATH + "small_Button_02.sub",
  183. "down_image" : ROOT_PATH + "small_Button_03.sub",
  184. },
  185. {
  186. "name" : "tiling_apply",
  187. "type" : "button",
  188. "x" : 110+100,
  189. "y" : 185+20,
  190. "text" : uiScriptLocale.OPTION_TILING_APPLY,
  191. "default_image" : ROOT_PATH + "middle_Button_01.sub",
  192. "over_image" : ROOT_PATH + "middle_Button_02.sub",
  193. "down_image" : ROOT_PATH + "middle_Button_03.sub",
  194. },
  195. # {
  196. # "name" : "exp_block",
  197. # "type" : "text",
  198. # "x" : 40 + TEXT_TEMPORARY_X,
  199. # "y" : 210+2+20,
  200. # "text" : uiScriptLocale.EXP_BLOCK_TEXT,
  201. # },
  202. # {
  203. # "name" : "exp_block_apply",
  204. # "type" : "button",
  205. # "x" : 110,
  206. # "y" : 210+20,
  207. # "text" : uiScriptLocale.EXP_BLOCK_BUTTON,
  208. # "default_image" : ROOT_PATH + "middle_Button_01.sub",
  209. # "over_image" : ROOT_PATH + "middle_Button_02.sub",
  210. # "down_image" : ROOT_PATH + "middle_Button_03.sub",
  211. # },
  212. ## ±×¸²ÀÚ
  213. {
  214. "name" : "shadow_mode",
  215. "type" : "text",
  216. "x" : 30,
  217. "y" : 100,
  218. "text" : uiScriptLocale.OPTION_SHADOW,
  219. },
  220. {
  221. "name" : "shadow_bar",
  222. "type" : "sliderbar",
  223. "x" : 110,
  224. "y" : 100,
  225. },
  226. ),
  227. },
  228. ),
  229. }
  230. if app.ENABLE_GRAPHIC_ON_OFF:
  231. window["height"] = window["height"] + 135
  232. window["children"][0]["height"] = window["children"][0]["height"] + 135
  233. window["children"][0]["children"] = window["children"][0]["children"] + [
  234. {
  235. "name" : "graphic_on_off_window",
  236. "type" : "window",
  237. "x" : 0,
  238. "y" : GRAPHIC_ON_OFF_WINDOW_Y,
  239. "width" : 305,
  240. "height" : 135,
  241. "children" :
  242. [
  243. ## ±×·¡ÇÈ ON/OFF: EFFECT
  244. {
  245. "name" : "effect_level",
  246. "type" : "text",
  247. "x" : 40 + TEXT_TEMPORARY_X,
  248. "y" : 0+2,
  249. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL,
  250. },
  251. {
  252. "name" : "effect_level1",
  253. "type" : "radio_button",
  254. "x" : 112,
  255. "y" : 0,
  256. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL1,
  257. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL1_TOOLTIP,
  258. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  259. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  260. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  261. },
  262. {
  263. "name" : "effect_level2",
  264. "type" : "radio_button",
  265. "x" : 112 + 20,
  266. "y" : 0,
  267. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL2,
  268. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL2_TOOLTIP,
  269. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  270. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  271. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  272. },
  273. {
  274. "name" : "effect_level3",
  275. "type" : "radio_button",
  276. "x" : 112 + 40,
  277. "y" : 0,
  278. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL3,
  279. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL3_TOOLTIP,
  280. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  281. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  282. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  283. },
  284. {
  285. "name" : "effect_level4",
  286. "type" : "radio_button",
  287. "x" : 112 + 60,
  288. "y" : 0,
  289. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL4,
  290. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL4_TOOLTIP,
  291. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  292. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  293. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  294. },
  295. {
  296. "name" : "effect_level5",
  297. "type" : "radio_button",
  298. "x" : 112 + 80,
  299. "y" : 0,
  300. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL5,
  301. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_EFFECT_LEVEL5_TOOLTIP,
  302. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  303. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  304. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  305. },
  306. {
  307. "name" : "effect_apply",
  308. "type" : "button",
  309. "x" : 110+105,
  310. "y" : 0,
  311. "text" : uiScriptLocale.GRAPHICONOFF_EFFECT_APPLY,
  312. "default_image" : ROOT_PATH + "middle_Button_01.sub",
  313. "over_image" : ROOT_PATH + "middle_Button_02.sub",
  314. "down_image" : ROOT_PATH + "middle_Button_03.sub",
  315. },
  316. ## ±×·¡ÇÈ ON/OFF: °³ÀλóÁ¡
  317. {
  318. "name" : "privateShop_level",
  319. "type" : "text",
  320. "x" : 40 + TEXT_TEMPORARY_X,
  321. "y" : 25+2,
  322. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL,
  323. },
  324. {
  325. "name" : "privateShop_level1",
  326. "type" : "radio_button",
  327. "x" : 112,
  328. "y" : 25,
  329. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL1,
  330. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL1_TOOLTIP,
  331. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  332. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  333. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  334. },
  335. {
  336. "name" : "privateShop_level2",
  337. "type" : "radio_button",
  338. "x" : 112 + 20,
  339. "y" : 25,
  340. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL2,
  341. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL2_TOOLTIP,
  342. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  343. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  344. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  345. },
  346. {
  347. "name" : "privateShop_level3",
  348. "type" : "radio_button",
  349. "x" : 112 + 40,
  350. "y" : 25,
  351. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL3,
  352. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL3_TOOLTIP,
  353. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  354. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  355. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  356. },
  357. {
  358. "name" : "privateShop_level4",
  359. "type" : "radio_button",
  360. "x" : 112 + 60,
  361. "y" : 25,
  362. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL4,
  363. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL4_TOOLTIP,
  364. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  365. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  366. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  367. },
  368. {
  369. "name" : "privateShop_level5",
  370. "type" : "radio_button",
  371. "x" : 112 + 80,
  372. "y" : 25,
  373. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL5,
  374. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_LEVEL5_TOOLTIP,
  375. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  376. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  377. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  378. },
  379. {
  380. "name" : "privateShop_apply",
  381. "type" : "button",
  382. "x" : 110+105,
  383. "y" : 25,
  384. "text" : uiScriptLocale.GRAPHICONOFF_PRIVATE_SHOP_APPLY,
  385. "default_image" : ROOT_PATH + "middle_Button_01.sub",
  386. "over_image" : ROOT_PATH + "middle_Button_02.sub",
  387. "down_image" : ROOT_PATH + "middle_Button_03.sub",
  388. },
  389. ## ±×·¡ÇÈ ON/OFF: Drop Item
  390. {
  391. "name" : "dropItem_level",
  392. "type" : "text",
  393. "x" : 40 + TEXT_TEMPORARY_X,
  394. "y" : 50+2,
  395. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL,
  396. },
  397. {
  398. "name" : "dropItem_level1",
  399. "type" : "radio_button",
  400. "x" : 112,
  401. "y" : 50,
  402. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL1,
  403. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL1_TOOLTIP,
  404. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  405. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  406. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  407. },
  408. {
  409. "name" : "dropItem_level2",
  410. "type" : "radio_button",
  411. "x" : 112 + 20,
  412. "y" : 50,
  413. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL2,
  414. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL2_TOOLTIP,
  415. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  416. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  417. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  418. },
  419. {
  420. "name" : "dropItem_level3",
  421. "type" : "radio_button",
  422. "x" : 112 + 40,
  423. "y" : 50,
  424. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL3,
  425. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL3_TOOLTIP,
  426. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  427. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  428. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  429. },
  430. {
  431. "name" : "dropItem_level4",
  432. "type" : "radio_button",
  433. "x" : 112 + 60,
  434. "y" : 50,
  435. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL4,
  436. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL4_TOOLTIP,
  437. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  438. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  439. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  440. },
  441. {
  442. "name" : "dropItem_level5",
  443. "type" : "radio_button",
  444. "x" : 112 + 80,
  445. "y" : 50,
  446. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL5,
  447. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_LEVEL5_TOOLTIP,
  448. "default_image" : ROOT_PATH + "minimize_empty_button_01.sub",
  449. "over_image" : ROOT_PATH + "minimize_empty_button_02.sub",
  450. "down_image" : ROOT_PATH + "minimize_empty_button_03.sub",
  451. },
  452. {
  453. "name" : "dropItem_apply",
  454. "type" : "button",
  455. "x" : 110+105,
  456. "y" : 50,
  457. "text" : uiScriptLocale.GRAPHICONOFF_DROP_ITEM_APPLY,
  458. "default_image" : ROOT_PATH + "middle_Button_01.sub",
  459. "over_image" : ROOT_PATH + "middle_Button_02.sub",
  460. "down_image" : ROOT_PATH + "middle_Button_03.sub",
  461. },
  462. ## ±×·¡ÇÈ ON/OFF: Æê
  463. {
  464. "name" : "pet_status",
  465. "type" : "text",
  466. "x" : 40 + TEXT_TEMPORARY_X,
  467. "y" : 75+2,
  468. "text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS,
  469. },
  470. {
  471. "name" : "pet_on",
  472. "type" : "radio_button",
  473. "x" : 110,
  474. "y" : 75,
  475. "text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_ON,
  476. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_ON_TOOLTIP,
  477. "default_image" : ROOT_PATH + "small_Button_01.sub",
  478. "over_image" : ROOT_PATH + "small_Button_02.sub",
  479. "down_image" : ROOT_PATH + "small_Button_03.sub",
  480. },
  481. {
  482. "name" : "pet_off",
  483. "type" : "radio_button",
  484. "x" : 110 + 50,
  485. "y" : 75,
  486. "text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_OFF,
  487. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_PET_STATUS_OFF_TOOLTIP,
  488. "default_image" : ROOT_PATH + "small_Button_01.sub",
  489. "over_image" : ROOT_PATH + "small_Button_02.sub",
  490. "down_image" : ROOT_PATH + "small_Button_03.sub",
  491. },
  492. ## ±×·¡ÇÈ ON/OFF: NPC Name
  493. {
  494. "name" : "npcName_status",
  495. "type" : "text",
  496. "x" : 40 + TEXT_TEMPORARY_X,
  497. "y" : 100+2,
  498. "text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS,
  499. },
  500. {
  501. "name" : "npcName_on",
  502. "type" : "radio_button",
  503. "x" : 110,
  504. "y" : 100,
  505. "text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_ON,
  506. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_ON_TOOLTIP,
  507. "default_image" : ROOT_PATH + "small_Button_01.sub",
  508. "over_image" : ROOT_PATH + "small_Button_02.sub",
  509. "down_image" : ROOT_PATH + "small_Button_03.sub",
  510. },
  511. {
  512. "name" : "npcName_off",
  513. "type" : "radio_button",
  514. "x" : 110 + 50,
  515. "y" : 100,
  516. "text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_OFF,
  517. "tooltip_text" : uiScriptLocale.GRAPHICONOFF_NPC_NAME_STATUS_OFF_TOOLTIP,
  518. "default_image" : ROOT_PATH + "small_Button_01.sub",
  519. "over_image" : ROOT_PATH + "small_Button_02.sub",
  520. "down_image" : ROOT_PATH + "small_Button_03.sub",
  521. },
  522. ],
  523. },]