1. import uiScriptLocale
  2. import localeInfo
  3. LOCALE_PATH = uiScriptLocale.LOGIN_PATH
  4. #SERVER_BOARD_HEIGHT = 180 + 390
  5. #SERVER_LIST_HEIGHT = 171 + 350
  6. SERVER_BOARD_HEIGHT = 220 + 100
  7. SERVER_LIST_HEIGHT = 171 + 100
  8. SERVER_BOARD_WEIGHT = 375
  9. window = {
  10. "name" : "LoginWindow",
  11. "sytle" : ("movable",),
  12. "x" : 0,
  13. "y" : 0,
  14. "width" : SCREEN_WIDTH,
  15. "height" : SCREEN_HEIGHT,
  16. "children" :
  17. (
  18. ## Board
  19. {
  20. "name" : "bg1", "type" : "expanded_image", "x" : 0, "y" : 0,
  21. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  22. "image" : "locale/es/ui/login/serverlist.sub",
  23. },
  24. {
  25. "name" : "bg2", "type" : "expanded_image", "x" : 0, "y" : 0,
  26. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  27. "image" : "locale/es/ui/login/login.sub",
  28. },
  29. ## VirtualKeyboard
  30. {
  31. 'name' : 'VirtualKeyboard',
  32. 'type' : 'thinboard',
  33. 'x' : (SCREEN_WIDTH - 564) / 2,
  34. 'y' : SCREEN_HEIGHT - 300-50,
  35. 'width' : 600,
  36. 'height' : 250,
  37. 'children' :
  38. (
  39. {
  40. 'name' : 'key_at',
  41. 'type' : 'toggle_button',
  42. 'x' : 40+15,
  43. 'y' : 186,
  44. 'default_image' : 'locale/es/ui/login/vkey/key_at.tga',
  45. 'down_image' : 'locale/es/ui/login/vkey/key_at_dn.tga',
  46. 'over_image' : 'locale/es/ui/login/vkey/key_at_over.tga',
  47. },
  48. {
  49. 'name' : 'key_backspace',
  50. 'type' : 'button',
  51. 'x' : 498+15,
  52. 'y' : 186,
  53. 'default_image' : 'locale/es/ui/login/vkey/key_backspace.tga',
  54. 'down_image' : 'locale/es/ui/login/vkey/key_backspace_dn.tga',
  55. 'over_image' : 'locale/es/ui/login/vkey/key_backspace_over.tga',
  56. },
  57. {
  58. 'name' : 'key_enter',
  59. 'type' : 'button',
  60. 'x' : 439+15,
  61. 'y' : 186,
  62. 'default_image' : 'locale/es/ui/login/vkey/key_enter.tga',
  63. 'down_image' : 'locale/es/ui/login/vkey/key_enter_dn.tga',
  64. 'over_image' : 'locale/es/ui/login/vkey/key_enter_over.tga',
  65. },
  66. {
  67. 'name' : 'key_shift',
  68. 'type' : 'toggle_button',
  69. 'x' : 86+15,
  70. 'y' : 186,
  71. 'default_image' : 'locale/es/ui/login/vkey/key_shift.tga',
  72. 'down_image' : 'locale/es/ui/login/vkey/key_shift_dn.tga',
  73. 'over_image' : 'locale/es/ui/login/vkey/key_shift_over.tga',
  74. },
  75. {
  76. 'name' : 'key_space',
  77. 'type' : 'button',
  78. 'x' : 145+15,
  79. 'y' : 186,
  80. 'default_image' : 'locale/es/ui/login/vkey/key_space.tga',
  81. 'down_image' : 'locale/es/ui/login/vkey/key_space_dn.tga',
  82. 'over_image' : 'locale/es/ui/login/vkey/key_space_over.tga',
  83. },
  84. {
  85. 'name' : 'key_1',
  86. 'type' : 'button',
  87. 'x' : 40+15,
  88. 'y' : 24,
  89. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  90. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  91. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  92. },
  93. {
  94. 'name' : 'key_2',
  95. 'type' : 'button',
  96. 'x' : 80+15,
  97. 'y' : 24,
  98. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  99. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  100. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  101. },
  102. {
  103. 'name' : 'key_3',
  104. 'type' : 'button',
  105. 'x' : 120+15,
  106. 'y' : 24,
  107. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  108. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  109. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  110. },
  111. {
  112. 'name' : 'key_4',
  113. 'type' : 'button',
  114. 'x' : 160+15,
  115. 'y' : 24,
  116. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  117. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  118. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  119. },
  120. {
  121. 'name' : 'key_5',
  122. 'type' : 'button',
  123. 'x' : 200+15,
  124. 'y' : 24,
  125. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  126. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  127. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  128. },
  129. {
  130. 'name' : 'key_6',
  131. 'type' : 'button',
  132. 'x' : 240+15,
  133. 'y' : 24,
  134. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  135. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  136. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  137. },
  138. {
  139. 'name' : 'key_7',
  140. 'type' : 'button',
  141. 'x' : 280+15,
  142. 'y' : 24,
  143. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  144. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  145. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  146. },
  147. {
  148. 'name' : 'key_8',
  149. 'type' : 'button',
  150. 'x' : 320+15,
  151. 'y' : 24,
  152. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  153. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  154. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  155. },
  156. {
  157. 'name' : 'key_9',
  158. 'type' : 'button',
  159. 'x' : 360+15,
  160. 'y' : 24,
  161. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  162. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  163. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  164. },
  165. {
  166. 'name' : 'key_10',
  167. 'type' : 'button',
  168. 'x' : 400+15,
  169. 'y' : 24,
  170. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  171. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  172. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  173. },
  174. {
  175. 'name' : 'key_11',
  176. 'type' : 'button',
  177. 'x' : 440+15,
  178. 'y' : 24,
  179. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  180. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  181. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  182. },
  183. {
  184. 'name' : 'key_12',
  185. 'type' : 'button',
  186. 'x' : 480+15,
  187. 'y' : 24,
  188. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  189. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  190. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  191. },
  192. {
  193. 'name' : 'key_13',
  194. 'type' : 'button',
  195. 'x' : 40+15,
  196. 'y' : 63,
  197. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  198. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  199. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  200. },
  201. {
  202. 'name' : 'key_14',
  203. 'type' : 'button',
  204. 'x' : 80+15,
  205. 'y' : 63,
  206. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  207. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  208. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  209. },
  210. {
  211. 'name' : 'key_15',
  212. 'type' : 'button',
  213. 'x' : 120+15,
  214. 'y' : 63,
  215. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  216. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  217. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  218. },
  219. {
  220. 'name' : 'key_16',
  221. 'type' : 'button',
  222. 'x' : 160+15,
  223. 'y' : 63,
  224. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  225. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  226. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  227. },
  228. {
  229. 'name' : 'key_17',
  230. 'type' : 'button',
  231. 'x' : 200+15,
  232. 'y' : 63,
  233. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  234. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  235. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  236. },
  237. {
  238. 'name' : 'key_18',
  239. 'type' : 'button',
  240. 'x' : 240+15,
  241. 'y' : 63,
  242. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  243. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  244. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  245. },
  246. {
  247. 'name' : 'key_19',
  248. 'type' : 'button',
  249. 'x' : 280+15,
  250. 'y' : 63,
  251. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  252. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  253. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  254. },
  255. {
  256. 'name' : 'key_20',
  257. 'type' : 'button',
  258. 'x' : 320+15,
  259. 'y' : 63,
  260. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  261. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  262. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  263. },
  264. {
  265. 'name' : 'key_21',
  266. 'type' : 'button',
  267. 'x' : 360+15,
  268. 'y' : 63,
  269. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  270. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  271. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  272. },
  273. {
  274. 'name' : 'key_22',
  275. 'type' : 'button',
  276. 'x' : 400+15,
  277. 'y' : 63,
  278. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  279. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  280. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  281. },
  282. {
  283. 'name' : 'key_23',
  284. 'type' : 'button',
  285. 'x' : 440+15,
  286. 'y' : 63,
  287. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  288. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  289. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  290. },
  291. {
  292. 'name' : 'key_24',
  293. 'type' : 'button',
  294. 'x' : 480+15,
  295. 'y' : 63,
  296. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  297. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  298. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  299. },
  300. {
  301. 'name' : 'key_25',
  302. 'type' : 'button',
  303. 'x' : 60+15,
  304. 'y' : 104,
  305. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  306. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  307. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  308. },
  309. {
  310. 'name' : 'key_26',
  311. 'type' : 'button',
  312. 'x' : 100+15,
  313. 'y' : 104,
  314. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  315. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  316. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  317. },
  318. {
  319. 'name' : 'key_27',
  320. 'type' : 'button',
  321. 'x' : 140+15,
  322. 'y' : 104,
  323. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  324. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  325. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  326. },
  327. {
  328. 'name' : 'key_28',
  329. 'type' : 'button',
  330. 'x' : 180+15,
  331. 'y' : 104,
  332. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  333. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  334. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  335. },
  336. {
  337. 'name' : 'key_29',
  338. 'type' : 'button',
  339. 'x' : 220+15,
  340. 'y' : 104,
  341. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  342. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  343. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  344. },
  345. {
  346. 'name' : 'key_30',
  347. 'type' : 'button',
  348. 'x' : 260+15,
  349. 'y' : 104,
  350. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  351. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  352. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  353. },
  354. {
  355. 'name' : 'key_31',
  356. 'type' : 'button',
  357. 'x' : 300+15,
  358. 'y' : 104,
  359. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  360. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  361. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  362. },
  363. {
  364. 'name' : 'key_32',
  365. 'type' : 'button',
  366. 'x' : 340+15,
  367. 'y' : 104,
  368. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  369. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  370. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  371. },
  372. {
  373. 'name' : 'key_33',
  374. 'type' : 'button',
  375. 'x' : 380+15,
  376. 'y' : 104,
  377. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  378. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  379. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  380. },
  381. {
  382. 'name' : 'key_34',
  383. 'type' : 'button',
  384. 'x' : 420+15,
  385. 'y' : 104,
  386. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  387. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  388. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  389. },
  390. {
  391. 'name' : 'key_35',
  392. 'type' : 'button',
  393. 'x' : 460+15,
  394. 'y' : 104,
  395. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  396. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  397. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  398. },
  399. {
  400. 'name' : 'key_36',
  401. 'type' : 'button',
  402. 'x' : 60+15,
  403. 'y' : 144,
  404. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  405. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  406. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  407. },
  408. {
  409. 'name' : 'key_37',
  410. 'type' : 'button',
  411. 'x' : 100+15,
  412. 'y' : 144,
  413. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  414. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  415. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  416. },
  417. {
  418. 'name' : 'key_38',
  419. 'type' : 'button',
  420. 'x' : 140+15,
  421. 'y' : 144,
  422. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  423. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  424. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  425. },
  426. {
  427. 'name' : 'key_39',
  428. 'type' : 'button',
  429. 'x' : 180+15,
  430. 'y' : 144,
  431. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  432. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  433. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  434. },
  435. {
  436. 'name' : 'key_40',
  437. 'type' : 'button',
  438. 'x' : 220+15,
  439. 'y' : 144,
  440. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  441. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  442. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  443. },
  444. {
  445. 'name' : 'key_41',
  446. 'type' : 'button',
  447. 'x' : 260+15,
  448. 'y' : 144,
  449. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  450. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  451. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  452. },
  453. {
  454. 'name' : 'key_42',
  455. 'type' : 'button',
  456. 'x' : 300+15,
  457. 'y' : 144,
  458. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  459. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  460. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  461. },
  462. {
  463. 'name' : 'key_43',
  464. 'type' : 'button',
  465. 'x' : 340+15,
  466. 'y' : 144,
  467. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  468. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  469. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  470. },
  471. {
  472. 'name' : 'key_44',
  473. 'type' : 'button',
  474. 'x' : 380+15,
  475. 'y' : 144,
  476. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  477. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  478. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  479. },
  480. {
  481. 'name' : 'key_45',
  482. 'type' : 'button',
  483. 'x' : 420+15,
  484. 'y' : 144,
  485. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  486. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  487. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  488. },
  489. {
  490. 'name' : 'key_46',
  491. 'type' : 'button',
  492. 'x' : 460+15,
  493. 'y' : 144,
  494. 'default_image' : 'locale/es/ui/login/vkey/key_normal.tga',
  495. 'down_image' : 'locale/es/ui/login/vkey/key_normal_dn.tga',
  496. 'over_image' : 'locale/es/ui/login/vkey/key_normal_over.tga',
  497. },
  498. )
  499. },
  500. ## ConnectBoard
  501. {
  502. "name" : "ConnectBoard",
  503. "type" : "thinboard",
  504. "x" : -130-45,
  505. "y" : (SCREEN_HEIGHT - 400 - 35-50),
  506. "width" : 208,
  507. "height" : 30,
  508. "horizontal_align" : "center",
  509. "children" :
  510. (
  511. {
  512. "name" : "ConnectName",
  513. "type" : "text",
  514. "x" : 15,
  515. "y" : 0,
  516. "vertical_align" : "center",
  517. "text_vertical_align" : "left",
  518. "text" : uiScriptLocale.LOGIN_DEFAULT_SERVERADDR,
  519. },
  520. {
  521. "name" : "SelectConnectButton",
  522. "type" : "button",
  523. "x" : 150,
  524. "y" : 0,
  525. "vertical_align" : "center",
  526. "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
  527. "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
  528. "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
  529. "text" : uiScriptLocale.LOGIN_SELECT_BUTTON,
  530. },
  531. ),
  532. },
  533. ## LoginBoard
  534. {
  535. "name" : "LoginBoard",
  536. "type" : "image",
  537. "x" : -130-45,
  538. "y" : (SCREEN_HEIGHT - 400-50),
  539. "horizontal_align" : "center",
  540. "image" : LOCALE_PATH + "loginwindow.sub",
  541. "children" :
  542. (
  543. {
  544. "name" : "ID_EditLine",
  545. "type" : "editline",
  546. "x" : 77,
  547. "y" : 16,
  548. "width" : 120,
  549. "height" : 18,
  550. "input_limit" : 16,
  551. "enable_codepage" : 0,
  552. "r" : 1.0,
  553. "g" : 1.0,
  554. "b" : 1.0,
  555. "a" : 1.0,
  556. },
  557. {
  558. "name" : "Password_EditLine",
  559. "type" : "editline",
  560. "x" : 77,
  561. "y" : 43,
  562. "width" : 120,
  563. "height" : 18,
  564. "input_limit" : 16,
  565. "secret_flag" : 1,
  566. "enable_codepage" : 0,
  567. "r" : 1.0,
  568. "g" : 1.0,
  569. "b" : 1.0,
  570. "a" : 1.0,
  571. },
  572. {
  573. "name" : "LoginButton",
  574. "type" : "button",
  575. "x" : 15,
  576. "y" : 65,
  577. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  578. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  579. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  580. "text" : uiScriptLocale.LOGIN_CONNECT,
  581. },
  582. {
  583. "name" : "LoginExitButton",
  584. "type" : "button",
  585. "x" : 105,
  586. "y" : 65,
  587. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  588. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  589. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  590. "text" : uiScriptLocale.LOGIN_EXIT,
  591. },
  592. ),
  593. },
  594. ## AccountBoard
  595. {
  596. "name" : "AccountBoard",
  597. "type" : "thinboard",
  598. "x" : 150-28,
  599. "y" : (SCREEN_HEIGHT - 435-50),
  600. "width" : 388,
  601. "height" : 30,
  602. "horizontal_align" : "center",
  603. "children" :
  604. (
  605. {
  606. "name" : "AccountSave",
  607. "type" : "text",
  608. "x" : 0,
  609. "y" : 0,
  610. "vertical_align" : "center",
  611. "horizontal_align" : "center",
  612. "text_vertical_align" : "center",
  613. "text_horizontal_align" : "center",
  614. "text" : uiScriptLocale.ACCOUNT_SAVED,
  615. },
  616. ),
  617. },
  618. ## AccountBoard2
  619. {
  620. "name" : "AccountBoard2",
  621. "type" : "thinboard",
  622. "x" : 150-28,
  623. "y" : (SCREEN_HEIGHT - 400-50),
  624. "width" : 388,
  625. "height" : 97,
  626. "horizontal_align" : "center",
  627. "children" :
  628. (
  629. {
  630. "name" : "saveAccount",
  631. "type" : "button",
  632. "x" : 295,
  633. "y" : -12,
  634. "vertical_align" : "center",
  635. "text": uiScriptLocale.SAVE_THE_ACCOUNT,
  636. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  637. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  638. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  639. },
  640. {
  641. "name" : "deleteAccount",
  642. "type" : "button",
  643. "x" : 295,
  644. "y" : 12,
  645. "vertical_align" : "center",
  646. "text": uiScriptLocale.DELETE_THE_ACCOUNT,
  647. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  648. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  649. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  650. },
  651. {
  652. "name" : "pass1",
  653. "type" : "button",
  654. "x" : 15,
  655. "y" : 6,
  656. "text_horizontal_align" : "right",
  657. "default_image" : "locale/es/ui/login/not_valid.dds",
  658. "over_image" : "locale/es/ui/login/not_valid.dds",
  659. "down_image" : "locale/es/ui/login/valid.dds",
  660. },
  661. {
  662. "name" : "pass2",
  663. "type" : "button",
  664. "x" : 15,
  665. "y" : 21,
  666. "text_horizontal_align" : "right",
  667. "default_image" : "locale/es/ui/login/not_valid.dds",
  668. "over_image" : "locale/es/ui/login/not_valid.dds",
  669. "down_image" : "locale/es/ui/login/valid.dds",
  670. },
  671. {
  672. "name" : "pass3",
  673. "type" : "button",
  674. "x" : 15,
  675. "y" : 36,
  676. "text_horizontal_align" : "right",
  677. "default_image" : "locale/es/ui/login/not_valid.dds",
  678. "over_image" : "locale/es/ui/login/not_valid.dds",
  679. "down_image" : "locale/es/ui/login/valid.dds",
  680. },
  681. {
  682. "name" : "pass4",
  683. "type" : "button",
  684. "x" : 15,
  685. "y" : 51,
  686. "text_horizontal_align" : "right",
  687. "default_image" : "locale/es/ui/login/not_valid.dds",
  688. "over_image" : "locale/es/ui/login/not_valid.dds",
  689. "down_image" : "locale/es/ui/login/valid.dds",
  690. },
  691. {
  692. "name" : "pass5",
  693. "type" : "button",
  694. "x" : 15,
  695. "y" : 66,
  696. "text_horizontal_align" : "right",
  697. "default_image" : "locale/es/ui/login/not_valid.dds",
  698. "over_image" : "locale/es/ui/login/not_valid.dds",
  699. "down_image" : "locale/es/ui/login/valid.dds",
  700. },
  701. {
  702. "name" : "pass6",
  703. "type" : "button",
  704. "x" : 100+5,
  705. "y" : 6,
  706. "text_horizontal_align" : "right",
  707. "default_image" : "locale/es/ui/login/not_valid.dds",
  708. "over_image" : "locale/es/ui/login/not_valid.dds",
  709. "down_image" : "locale/es/ui/login/valid.dds",
  710. },
  711. {
  712. "name" : "pass7",
  713. "type" : "button",
  714. "x" : 100+5,
  715. "y" : 21,
  716. "text_horizontal_align" : "right",
  717. "default_image" : "locale/es/ui/login/not_valid.dds",
  718. "over_image" : "locale/es/ui/login/not_valid.dds",
  719. "down_image" : "locale/es/ui/login/valid.dds",
  720. },
  721. {
  722. "name" : "pass8",
  723. "type" : "button",
  724. "x" : 100+5,
  725. "y" : 36,
  726. "text_horizontal_align" : "right",
  727. "default_image" : "locale/es/ui/login/not_valid.dds",
  728. "over_image" : "locale/es/ui/login/not_valid.dds",
  729. "down_image" : "locale/es/ui/login/valid.dds",
  730. },
  731. {
  732. "name" : "pass9",
  733. "type" : "button",
  734. "x" : 100+5,
  735. "y" : 51,
  736. "text_horizontal_align" : "right",
  737. "default_image" : "locale/es/ui/login/not_valid.dds",
  738. "over_image" : "locale/es/ui/login/not_valid.dds",
  739. "down_image" : "locale/es/ui/login/valid.dds",
  740. },
  741. {
  742. "name" : "pass10",
  743. "type" : "button",
  744. "x" : 100+5,
  745. "y" : 66,
  746. "text_horizontal_align" : "right",
  747. "default_image" : "locale/es/ui/login/not_valid.dds",
  748. "over_image" : "locale/es/ui/login/not_valid.dds",
  749. "down_image" : "locale/es/ui/login/valid.dds",
  750. },
  751. {
  752. "name" : "pass11",
  753. "type" : "button",
  754. "x" : 185+10,
  755. "y" : 6,
  756. "text_horizontal_align" : "right",
  757. "default_image" : "locale/es/ui/login/not_valid.dds",
  758. "over_image" : "locale/es/ui/login/not_valid.dds",
  759. "down_image" : "locale/es/ui/login/valid.dds",
  760. },
  761. {
  762. "name" : "pass12",
  763. "type" : "button",
  764. "x" : 185+10,
  765. "y" : 21,
  766. "text_horizontal_align" : "right",
  767. "default_image" : "locale/es/ui/login/not_valid.dds",
  768. "over_image" : "locale/es/ui/login/not_valid.dds",
  769. "down_image" : "locale/es/ui/login/valid.dds",
  770. },
  771. {
  772. "name" : "pass13",
  773. "type" : "button",
  774. "x" : 185+10,
  775. "y" : 36,
  776. "text_horizontal_align" : "right",
  777. "default_image" : "locale/es/ui/login/not_valid.dds",
  778. "over_image" : "locale/es/ui/login/not_valid.dds",
  779. "down_image" : "locale/es/ui/login/valid.dds",
  780. },
  781. {
  782. "name" : "pass14",
  783. "type" : "button",
  784. "x" : 185+10,
  785. "y" : 51,
  786. "text_horizontal_align" : "right",
  787. "default_image" : "locale/es/ui/login/not_valid.dds",
  788. "over_image" : "locale/es/ui/login/not_valid.dds",
  789. "down_image" : "locale/es/ui/login/valid.dds",
  790. },
  791. {
  792. "name" : "pass15",
  793. "type" : "button",
  794. "x" : 185+10,
  795. "y" : 66,
  796. "text_horizontal_align" : "right",
  797. "default_image" : "locale/es/ui/login/not_valid.dds",
  798. "over_image" : "locale/es/ui/login/not_valid.dds",
  799. "down_image" : "locale/es/ui/login/valid.dds",
  800. },
  801. ),
  802. },
  803. ## ServerBoard
  804. {
  805. "name" : "ServerBoard",
  806. "type" : "thinboard",
  807. "x" : 0,
  808. "y" : SCREEN_HEIGHT - SERVER_BOARD_HEIGHT - 72-50,
  809. "width" : 375,
  810. "height" : SERVER_BOARD_HEIGHT,
  811. "horizontal_align" : "center",
  812. "children" :
  813. (
  814. ## Title
  815. {
  816. "name" : "Title",
  817. "type" : "text",
  818. "x" : 0,
  819. "y" : 12,
  820. "horizontal_align" : "center",
  821. "text_horizontal_align" : "center",
  822. "text" : uiScriptLocale.LOGIN_SELECT_TITLE,
  823. },
  824. ## Horizontal
  825. {
  826. "name" : "HorizontalLine1",
  827. "type" : "line",
  828. "x" : 10,
  829. "y" : 34,
  830. "width" : 354,
  831. "height" : 0,
  832. "color" : 0xff777777,
  833. },
  834. {
  835. "name" : "HorizontalLine2",
  836. "type" : "line",
  837. "x" : 10,
  838. "y" : 35,
  839. "width" : 355,
  840. "height" : 0,
  841. "color" : 0xff111111,
  842. },
  843. ## Vertical
  844. {
  845. "name" : "VerticalLine1",
  846. "type" : "line",
  847. "x" : 246,
  848. "y" : 38,
  849. "width" : 0,
  850. "height" : SERVER_LIST_HEIGHT + 4,
  851. "color" : 0xff777777,
  852. },
  853. {
  854. "name" : "VerticalLine2",
  855. "type" : "line",
  856. "x" : 247,
  857. "y" : 38,
  858. "width" : 0,
  859. "height" : SERVER_LIST_HEIGHT + 4,
  860. "color" : 0xff111111,
  861. },
  862. ## ListBox
  863. {
  864. "name" : "ServerList",
  865. "type" : "listbox2",
  866. "x" : 10,
  867. "y" : 40,
  868. "width" : 232,
  869. "height" : SERVER_LIST_HEIGHT,
  870. "row_count" : 15,
  871. if localeInfo.IsARABIC():
  872. "item_align" : 190,
  873. else
  874. "item_align" : 0,
  875. },
  876. {
  877. "name" : "ChannelList",
  878. "type" : "listbox",
  879. "x" : 255,
  880. "y" : 40,
  881. "width" : 109,
  882. "height" : SERVER_LIST_HEIGHT,
  883. "item_align" : 0,
  884. },
  885. {
  886. "name" : "shadow",
  887. "type" : "expanded_image",
  888. "x" : SCREEN_WIDTH / 2 - 580 - 12.9,
  889. "y" : SCREEN_HEIGHT - 750 - 12.8,
  890. "x_scale" : 1.21875,
  891. "y_scale" : 1.21875,
  892. #"image" : "multi/shadow.png",
  893. },
  894. ## Buttons
  895. {
  896. "name" : "ServerSelectButton",
  897. "type" : "button",
  898. "x" : 267,
  899. "y" : SERVER_LIST_HEIGHT,
  900. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  901. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  902. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  903. "text" : uiScriptLocale.OK,
  904. },
  905. {
  906. "name" : "ServerExitButton",
  907. "type" : "button",
  908. "x" : 267,
  909. "y" : SERVER_LIST_HEIGHT + 22,
  910. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  911. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  912. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  913. "text" : uiScriptLocale.LOGIN_SELECT_EXIT,
  914. },
  915. ),
  916. },
  917. ),
  918. }