1. import uiScriptLocale
  2. ROOT_PATH = "d:/ymir work/ui/public/"
  3. TEMPORARY_X = +13
  4. BUTTON_TEMPORARY_X = 5
  5. PVP_X = -10
  6. LINE_LABEL_X = 30
  7. LINE_DATA_X = 90
  8. LINE_STEP = 0
  9. SMALL_BUTTON_WIDTH = 45
  10. MIDDLE_BUTTON_WIDTH = 65
  11. window = {
  12. "name" : "GameOptionDialog",
  13. "style" : ("movable", "float",),
  14. "x" : 0,
  15. "y" : 0,
  16. "width" : 300,
  17. #clever
  18. "height" : 27*11+8,
  19. "children" :
  20. (
  21. {
  22. "name" : "board",
  23. "type" : "board",
  24. "x" : 0,
  25. "y" : 0,
  26. "width" : 300,
  27. "height" : 27*11+8,
  28. "children" :
  29. (
  30. ## Title
  31. {
  32. "name" : "titlebar",
  33. "type" : "titlebar",
  34. "style" : ("attach",),
  35. "x" : 8,
  36. "y" : 8,
  37. "width" : 284,
  38. "color" : "gray",
  39. "children" :
  40. (
  41. { "name":"titlename", "type":"text", "x":0, "y":3,
  42. "text" : uiScriptLocale.GAMEOPTION_TITLE,
  43. "horizontal_align":"center", "text_horizontal_align":"center" },
  44. ),
  45. },
  46. ## 이름색
  47. {
  48. "name" : "name_color",
  49. "type" : "text",
  50. "x" : LINE_LABEL_X,
  51. "y" : 40+2,
  52. "text" : uiScriptLocale.OPTION_NAME_COLOR,
  53. },
  54. {
  55. "name" : "name_color_normal",
  56. "type" : "radio_button",
  57. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
  58. "y" : 40,
  59. "text" : uiScriptLocale.OPTION_NAME_COLOR_NORMAL,
  60. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  61. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  62. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  63. },
  64. {
  65. "name" : "name_color_empire",
  66. "type" : "radio_button",
  67. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
  68. "y" : 40,
  69. "text" : uiScriptLocale.OPTION_NAME_COLOR_EMPIRE,
  70. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  71. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  72. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  73. },
  74. ## 타겟창
  75. {
  76. "name" : "target_board",
  77. "type" : "text",
  78. "x" : LINE_LABEL_X,
  79. "y" : 65+2,
  80. "text" : uiScriptLocale.OPTION_TARGET_BOARD,
  81. },
  82. {
  83. "name" : "target_board_no_view",
  84. "type" : "radio_button",
  85. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
  86. "y" : 65,
  87. "text" : uiScriptLocale.OPTION_TARGET_BOARD_NO_VIEW,
  88. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  89. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  90. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  91. },
  92. {
  93. "name" : "target_board_view",
  94. "type" : "radio_button",
  95. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
  96. "y" : 65,
  97. "text" : uiScriptLocale.OPTION_TARGET_BOARD_VIEW,
  98. "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  99. "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  100. "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  101. },
  102. ## PvP Mode
  103. {
  104. "name" : "pvp_mode",
  105. "type" : "text",
  106. "x" : LINE_LABEL_X,
  107. "y" : 90+2,
  108. "text" : uiScriptLocale.OPTION_PVPMODE,
  109. },
  110. {
  111. "name" : "pvp_peace",
  112. "type" : "radio_button",
  113. "x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*0,
  114. "y" : 90,
  115. "text" : uiScriptLocale.OPTION_PVPMODE_PEACE,
  116. "tooltip_text" : uiScriptLocale.OPTION_PVPMODE_PEACE_TOOLTIP,
  117. "default_image" : ROOT_PATH + "small_Button_01.sub",
  118. "over_image" : ROOT_PATH + "small_Button_02.sub",
  119. "down_image" : ROOT_PATH + "small_Button_03.sub",
  120. },
  121. {
  122. "name" : "pvp_revenge",
  123. "type" : "radio_button",
  124. "x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*1,
  125. "y" : 90,
  126. "text" : uiScriptLocale.OPTION_PVPMODE_REVENGE,
  127. "tooltip_text" : uiScriptLocale.OPTION_PVPMODE_REVENGE_TOOLTIP,
  128. "default_image" : ROOT_PATH + "small_Button_01.sub",
  129. "over_image" : ROOT_PATH + "small_Button_02.sub",
  130. "down_image" : ROOT_PATH + "small_Button_03.sub",
  131. },
  132. {
  133. "name" : "pvp_guild",
  134. "type" : "radio_button",
  135. "x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*2,
  136. "y" : 90,
  137. "text" : uiScriptLocale.OPTION_PVPMODE_GUILD,
  138. "tooltip_text" : uiScriptLocale.OPTION_PVPMODE_GUILD_TOOLTIP,
  139. "default_image" : ROOT_PATH + "small_Button_01.sub",
  140. "over_image" : ROOT_PATH + "small_Button_02.sub",
  141. "down_image" : ROOT_PATH + "small_Button_03.sub",
  142. },
  143. {
  144. "name" : "pvp_free",
  145. "type" : "radio_button",
  146. "x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*3,
  147. "y" : 90,
  148. "text" : uiScriptLocale.OPTION_PVPMODE_FREE,
  149. "tooltip_text" : uiScriptLocale.OPTION_PVPMODE_FREE_TOOLTIP,
  150. "default_image" : ROOT_PATH + "small_Button_01.sub",
  151. "over_image" : ROOT_PATH + "small_Button_02.sub",
  152. "down_image" : ROOT_PATH + "small_Button_03.sub",
  153. },
  154. ## Block
  155. {
  156. "name" : "block",
  157. "type" : "text",
  158. "x" : LINE_LABEL_X,
  159. "y" : 115+2,
  160. "text" : uiScriptLocale.OPTION_BLOCK,
  161. },
  162. {
  163. "name" : "block_exchange_button",
  164. "type" : "toggle_button",
  165. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
  166. "y" : 115,
  167. "text" : uiScriptLocale.OPTION_BLOCK_EXCHANGE,
  168. "default_image" : ROOT_PATH + "middle_button_01.sub",
  169. "over_image" : ROOT_PATH + "middle_button_02.sub",
  170. "down_image" : ROOT_PATH + "middle_button_03.sub",
  171. },
  172. {
  173. "name" : "block_party_button",
  174. "type" : "toggle_button",
  175. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
  176. "y" : 115,
  177. "text" : uiScriptLocale.OPTION_BLOCK_PARTY,
  178. "default_image" : ROOT_PATH + "middle_button_01.sub",
  179. "over_image" : ROOT_PATH + "middle_button_02.sub",
  180. "down_image" : ROOT_PATH + "middle_button_03.sub",
  181. },
  182. {
  183. "name" : "block_guild_button",
  184. "type" : "toggle_button",
  185. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*2,
  186. "y" : 115,
  187. "text" : uiScriptLocale.OPTION_BLOCK_GUILD,
  188. "default_image" : ROOT_PATH + "middle_button_01.sub",
  189. "over_image" : ROOT_PATH + "middle_button_02.sub",
  190. "down_image" : ROOT_PATH + "middle_button_03.sub",
  191. },
  192. {
  193. "name" : "block_whisper_button",
  194. "type" : "toggle_button",
  195. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
  196. "y" : 140,
  197. "text" : uiScriptLocale.OPTION_BLOCK_WHISPER,
  198. "default_image" : ROOT_PATH + "middle_button_01.sub",
  199. "over_image" : ROOT_PATH + "middle_button_02.sub",
  200. "down_image" : ROOT_PATH + "middle_button_03.sub",
  201. },
  202. {
  203. "name" : "block_friend_button",
  204. "type" : "toggle_button",
  205. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
  206. "y" : 140,
  207. "text" : uiScriptLocale.OPTION_BLOCK_FRIEND,
  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. "name" : "block_party_request_button",
  214. "type" : "toggle_button",
  215. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*2,
  216. "y" : 140,
  217. "text" : uiScriptLocale.OPTION_BLOCK_PARTY_REQUEST,
  218. "default_image" : ROOT_PATH + "middle_button_01.sub",
  219. "over_image" : ROOT_PATH + "middle_button_02.sub",
  220. "down_image" : ROOT_PATH + "middle_button_03.sub",
  221. },
  222. ## Chat
  223. {
  224. "name" : "chat",
  225. "type" : "text",
  226. "x" : LINE_LABEL_X,
  227. "y" : 165+2,
  228. "text" : uiScriptLocale.OPTION_VIEW_CHAT,
  229. },
  230. {
  231. "name" : "view_chat_on_button",
  232. "type" : "radio_button",
  233. "x" : LINE_DATA_X,
  234. "y" : 165,
  235. "text" : uiScriptLocale.OPTION_VIEW_CHAT_ON,
  236. "default_image" : ROOT_PATH + "middle_button_01.sub",
  237. "over_image" : ROOT_PATH + "middle_button_02.sub",
  238. "down_image" : ROOT_PATH + "middle_button_03.sub",
  239. },
  240. {
  241. "name" : "view_chat_off_button",
  242. "type" : "radio_button",
  243. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
  244. "y" : 165,
  245. "text" : uiScriptLocale.OPTION_VIEW_CHAT_OFF,
  246. "default_image" : ROOT_PATH + "middle_button_01.sub",
  247. "over_image" : ROOT_PATH + "middle_button_02.sub",
  248. "down_image" : ROOT_PATH + "middle_button_03.sub",
  249. },
  250. ## Always Show Name
  251. {
  252. "name" : "always_show_name",
  253. "type" : "text",
  254. "x" : LINE_LABEL_X,
  255. "y" : 190+2,
  256. "text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME,
  257. },
  258. {
  259. "name" : "always_show_name_on_button",
  260. "type" : "radio_button",
  261. "x" : LINE_DATA_X,
  262. "y" : 190,
  263. "text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME_ON,
  264. "default_image" : ROOT_PATH + "middle_button_01.sub",
  265. "over_image" : ROOT_PATH + "middle_button_02.sub",
  266. "down_image" : ROOT_PATH + "middle_button_03.sub",
  267. },
  268. {
  269. "name" : "always_show_name_off_button",
  270. "type" : "radio_button",
  271. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
  272. "y" : 190,
  273. "text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME_OFF,
  274. "default_image" : ROOT_PATH + "middle_button_01.sub",
  275. "over_image" : ROOT_PATH + "middle_button_02.sub",
  276. "down_image" : ROOT_PATH + "middle_button_03.sub",
  277. },
  278. ## Effect On/Off
  279. {
  280. "name" : "effect_on_off",
  281. "type" : "text",
  282. "x" : LINE_LABEL_X,
  283. "y" : 215+2,
  284. "text" : uiScriptLocale.OPTION_EFFECT,
  285. },
  286. {
  287. "name" : "show_damage_on_button",
  288. "type" : "radio_button",
  289. "x" : LINE_DATA_X,
  290. "y" : 215,
  291. "text" : uiScriptLocale.OPTION_VIEW_CHAT_ON,
  292. "default_image" : ROOT_PATH + "middle_button_01.sub",
  293. "over_image" : ROOT_PATH + "middle_button_02.sub",
  294. "down_image" : ROOT_PATH + "middle_button_03.sub",
  295. },
  296. {
  297. "name" : "show_damage_off_button",
  298. "type" : "radio_button",
  299. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
  300. "y" : 215,
  301. "text" : uiScriptLocale.OPTION_VIEW_CHAT_OFF,
  302. "default_image" : ROOT_PATH + "middle_button_01.sub",
  303. "over_image" : ROOT_PATH + "middle_button_02.sub",
  304. "down_image" : ROOT_PATH + "middle_button_03.sub",
  305. },
  306. ## 판매문구
  307. {
  308. "name" : "salestext_on_off",
  309. "type" : "text",
  310. "x" : LINE_LABEL_X,
  311. "y" : 240+2,
  312. "text" : uiScriptLocale.OPTION_SALESTEXT,
  313. },
  314. {
  315. "name" : "salestext_on_button",
  316. "type" : "radio_button",
  317. "x" : LINE_DATA_X,
  318. "y" : 240,
  319. "text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON,
  320. "default_image" : ROOT_PATH + "middle_button_01.sub",
  321. "over_image" : ROOT_PATH + "middle_button_02.sub",
  322. "down_image" : ROOT_PATH + "middle_button_03.sub",
  323. },
  324. {
  325. "name" : "salestext_off_button",
  326. "type" : "radio_button",
  327. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
  328. "y" : 240,
  329. "text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,
  330. "default_image" : ROOT_PATH + "middle_button_01.sub",
  331. "over_image" : ROOT_PATH + "middle_button_02.sub",
  332. "down_image" : ROOT_PATH + "middle_button_03.sub",
  333. },
  334. #####CleverBot
  335. {
  336. "name" : "clevertext_on_off",
  337. "type" : "text",
  338. "x" : LINE_LABEL_X,
  339. "y" : 265,
  340. "text" : "CleverBot",
  341. },
  342. {
  343. "name" : "clevertext_on_button",
  344. "type" : "button",
  345. "x" : LINE_DATA_X,
  346. "y" : 265,
  347. "text" : "ON",
  348. "default_image" : ROOT_PATH + "middle_button_01.sub",
  349. "over_image" : ROOT_PATH + "middle_button_02.sub",
  350. "down_image" : ROOT_PATH + "middle_button_03.sub",
  351. },
  352. {
  353. "name" : "clevertext_off_button",
  354. "type" : "button",
  355. "x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
  356. "y" : 265,
  357. "text" : "OFF",
  358. "default_image" : ROOT_PATH + "middle_button_01.sub",
  359. "over_image" : ROOT_PATH + "middle_button_02.sub",
  360. "down_image" : ROOT_PATH + "middle_button_03.sub",
  361. },
  362. ),
  363. },
  364. ),
  365. }
Comments powered by Disqus