Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.69 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. LOCALE_PATH = uiScriptLocale.LOGIN_PATH
  4. SERVER_BOARD_HEIGHT = 220 + 180
  5. SERVER_LIST_HEIGHT = 171 + 180
  6.  
  7. window = {
  8. "name" : "LoginWindow",
  9. "sytle" : ("movable",),
  10.  
  11. "x" : 0,
  12. "y" : 0,
  13.  
  14. "width" : SCREEN_WIDTH,
  15. "height" : SCREEN_HEIGHT,
  16.  
  17. "children" :
  18. (
  19. ## Board
  20. {
  21. "name" : "bg1", "type" : "expanded_image", "x" : 0, "y" : 0,
  22. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  23. "image" : "locale/de/ui/serverlist.sub",
  24. },
  25. {
  26. "name" : "bg2", "type" : "expanded_image", "x" : 0, "y" : 0,
  27. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  28. "image" : "locale/de/ui/login.sub",
  29. },
  30.  
  31. ## VirtualKeyboard
  32. {
  33. 'name' : 'VirtualKeyboard',
  34. 'type' : 'thinboard',
  35. 'x' : (SCREEN_WIDTH - 564) / 2,
  36. 'y' : SCREEN_HEIGHT - 300,
  37. 'width' : 564,
  38. 'height' : 254,
  39. 'children' :
  40. (
  41. {
  42. 'name' : 'key_at',
  43. 'type' : 'toggle_button',
  44. 'x' : 40,
  45. 'y' : 186,
  46. 'default_image' : 'locale/de/ui/vkey/key_at.tga',
  47. 'down_image' : 'locale/de/ui/vkey/key_at_dn.tga',
  48. 'over_image' : 'locale/de/ui/vkey/key_at_over.tga',
  49. },
  50. {
  51. 'name' : 'key_backspace',
  52. 'type' : 'button',
  53. 'x' : 498,
  54. 'y' : 186,
  55. 'default_image' : 'locale/de/ui/vkey/key_backspace.tga',
  56. 'down_image' : 'locale/de/ui/vkey/key_backspace_dn.tga',
  57. 'over_image' : 'locale/de/ui/vkey/key_backspace_over.tga',
  58. },
  59. {
  60. 'name' : 'key_enter',
  61. 'type' : 'button',
  62. 'x' : 439,
  63. 'y' : 186,
  64. 'default_image' : 'locale/de/ui/vkey/key_enter.tga',
  65. 'down_image' : 'locale/de/ui/vkey/key_enter_dn.tga',
  66. 'over_image' : 'locale/de/ui/vkey/key_enter_over.tga',
  67. },
  68. {
  69. 'name' : 'key_shift',
  70. 'type' : 'toggle_button',
  71. 'x' : 86,
  72. 'y' : 186,
  73. 'default_image' : 'locale/de/ui/vkey/key_shift.tga',
  74. 'down_image' : 'locale/de/ui/vkey/key_shift_dn.tga',
  75. 'over_image' : 'locale/de/ui/vkey/key_shift_over.tga',
  76. },
  77. {
  78. 'name' : 'key_space',
  79. 'type' : 'button',
  80. 'x' : 145,
  81. 'y' : 186,
  82. 'default_image' : 'locale/de/ui/vkey/key_space.tga',
  83. 'down_image' : 'locale/de/ui/vkey/key_space_dn.tga',
  84. 'over_image' : 'locale/de/ui/vkey/key_space_over.tga',
  85. },
  86. {
  87. 'name' : 'key_1',
  88. 'type' : 'button',
  89. 'x' : 40,
  90. 'y' : 24,
  91. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  92. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  93. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  94. },
  95. {
  96. 'name' : 'key_2',
  97. 'type' : 'button',
  98. 'x' : 80,
  99. 'y' : 24,
  100. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  101. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  102. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  103. },
  104. {
  105. 'name' : 'key_3',
  106. 'type' : 'button',
  107. 'x' : 120,
  108. 'y' : 24,
  109. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  110. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  111. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  112. },
  113. {
  114. 'name' : 'key_4',
  115. 'type' : 'button',
  116. 'x' : 160,
  117. 'y' : 24,
  118. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  119. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  120. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  121. },
  122. {
  123. 'name' : 'key_5',
  124. 'type' : 'button',
  125. 'x' : 200,
  126. 'y' : 24,
  127. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  128. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  129. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  130. },
  131. {
  132. 'name' : 'key_6',
  133. 'type' : 'button',
  134. 'x' : 240,
  135. 'y' : 24,
  136. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  137. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  138. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  139. },
  140. {
  141. 'name' : 'key_7',
  142. 'type' : 'button',
  143. 'x' : 280,
  144. 'y' : 24,
  145. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  146. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  147. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  148. },
  149. {
  150. 'name' : 'key_8',
  151. 'type' : 'button',
  152. 'x' : 320,
  153. 'y' : 24,
  154. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  155. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  156. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  157. },
  158. {
  159. 'name' : 'key_9',
  160. 'type' : 'button',
  161. 'x' : 360,
  162. 'y' : 24,
  163. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  164. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  165. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  166. },
  167. {
  168. 'name' : 'key_10',
  169. 'type' : 'button',
  170. 'x' : 400,
  171. 'y' : 24,
  172. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  173. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  174. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  175. },
  176. {
  177. 'name' : 'key_11',
  178. 'type' : 'button',
  179. 'x' : 440,
  180. 'y' : 24,
  181. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  182. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  183. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  184. },
  185. {
  186. 'name' : 'key_12',
  187. 'type' : 'button',
  188. 'x' : 480,
  189. 'y' : 24,
  190. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  191. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  192. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  193. },
  194. {
  195. 'name' : 'key_13',
  196. 'type' : 'button',
  197. 'x' : 40,
  198. 'y' : 63,
  199. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  200. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  201. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  202. },
  203. {
  204. 'name' : 'key_14',
  205. 'type' : 'button',
  206. 'x' : 80,
  207. 'y' : 63,
  208. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  209. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  210. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  211. },
  212. {
  213. 'name' : 'key_15',
  214. 'type' : 'button',
  215. 'x' : 120,
  216. 'y' : 63,
  217. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  218. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  219. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  220. },
  221. {
  222. 'name' : 'key_16',
  223. 'type' : 'button',
  224. 'x' : 160,
  225. 'y' : 63,
  226. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  227. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  228. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  229. },
  230. {
  231. 'name' : 'key_17',
  232. 'type' : 'button',
  233. 'x' : 200,
  234. 'y' : 63,
  235. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  236. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  237. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  238. },
  239. {
  240. 'name' : 'key_18',
  241. 'type' : 'button',
  242. 'x' : 240,
  243. 'y' : 63,
  244. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  245. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  246. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  247. },
  248. {
  249. 'name' : 'key_19',
  250. 'type' : 'button',
  251. 'x' : 280,
  252. 'y' : 63,
  253. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  254. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  255. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  256. },
  257. {
  258. 'name' : 'key_20',
  259. 'type' : 'button',
  260. 'x' : 320,
  261. 'y' : 63,
  262. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  263. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  264. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  265. },
  266. {
  267. 'name' : 'key_21',
  268. 'type' : 'button',
  269. 'x' : 360,
  270. 'y' : 63,
  271. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  272. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  273. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  274. },
  275. {
  276. 'name' : 'key_22',
  277. 'type' : 'button',
  278. 'x' : 400,
  279. 'y' : 63,
  280. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  281. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  282. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  283. },
  284. {
  285. 'name' : 'key_23',
  286. 'type' : 'button',
  287. 'x' : 440,
  288. 'y' : 63,
  289. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  290. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  291. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  292. },
  293. {
  294. 'name' : 'key_24',
  295. 'type' : 'button',
  296. 'x' : 480,
  297. 'y' : 63,
  298. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  299. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  300. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  301. },
  302. {
  303. 'name' : 'key_25',
  304. 'type' : 'button',
  305. 'x' : 60,
  306. 'y' : 104,
  307. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  308. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  309. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  310. },
  311. {
  312. 'name' : 'key_26',
  313. 'type' : 'button',
  314. 'x' : 100,
  315. 'y' : 104,
  316. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  317. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  318. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  319. },
  320. {
  321. 'name' : 'key_27',
  322. 'type' : 'button',
  323. 'x' : 140,
  324. 'y' : 104,
  325. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  326. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  327. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  328. },
  329. {
  330. 'name' : 'key_28',
  331. 'type' : 'button',
  332. 'x' : 180,
  333. 'y' : 104,
  334. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  335. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  336. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  337. },
  338. {
  339. 'name' : 'key_29',
  340. 'type' : 'button',
  341. 'x' : 220,
  342. 'y' : 104,
  343. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  344. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  345. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  346. },
  347. {
  348. 'name' : 'key_30',
  349. 'type' : 'button',
  350. 'x' : 260,
  351. 'y' : 104,
  352. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  353. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  354. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  355. },
  356. {
  357. 'name' : 'key_31',
  358. 'type' : 'button',
  359. 'x' : 300,
  360. 'y' : 104,
  361. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  362. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  363. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  364. },
  365. {
  366. 'name' : 'key_32',
  367. 'type' : 'button',
  368. 'x' : 340,
  369. 'y' : 104,
  370. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  371. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  372. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  373. },
  374. {
  375. 'name' : 'key_33',
  376. 'type' : 'button',
  377. 'x' : 380,
  378. 'y' : 104,
  379. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  380. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  381. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  382. },
  383. {
  384. 'name' : 'key_34',
  385. 'type' : 'button',
  386. 'x' : 420,
  387. 'y' : 104,
  388. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  389. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  390. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  391. },
  392. {
  393. 'name' : 'key_35',
  394. 'type' : 'button',
  395. 'x' : 460,
  396. 'y' : 104,
  397. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  398. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  399. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  400. },
  401. {
  402. 'name' : 'key_36',
  403. 'type' : 'button',
  404. 'x' : 60,
  405. 'y' : 144,
  406. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  407. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  408. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  409. },
  410. {
  411. 'name' : 'key_37',
  412. 'type' : 'button',
  413. 'x' : 100,
  414. 'y' : 144,
  415. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  416. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  417. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  418. },
  419. {
  420. 'name' : 'key_38',
  421. 'type' : 'button',
  422. 'x' : 140,
  423. 'y' : 144,
  424. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  425. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  426. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  427. },
  428. {
  429. 'name' : 'key_39',
  430. 'type' : 'button',
  431. 'x' : 180,
  432. 'y' : 144,
  433. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  434. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  435. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  436. },
  437. {
  438. 'name' : 'key_40',
  439. 'type' : 'button',
  440. 'x' : 220,
  441. 'y' : 144,
  442. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  443. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  444. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  445. },
  446. {
  447. 'name' : 'key_41',
  448. 'type' : 'button',
  449. 'x' : 260,
  450. 'y' : 144,
  451. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  452. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  453. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  454. },
  455. {
  456. 'name' : 'key_42',
  457. 'type' : 'button',
  458. 'x' : 300,
  459. 'y' : 144,
  460. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  461. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  462. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  463. },
  464. {
  465. 'name' : 'key_43',
  466. 'type' : 'button',
  467. 'x' : 340,
  468. 'y' : 144,
  469. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  470. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  471. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  472. },
  473. {
  474. 'name' : 'key_44',
  475. 'type' : 'button',
  476. 'x' : 380,
  477. 'y' : 144,
  478. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  479. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  480. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  481. },
  482. {
  483. 'name' : 'key_45',
  484. 'type' : 'button',
  485. 'x' : 420,
  486. 'y' : 144,
  487. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  488. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  489. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  490. },
  491. {
  492. 'name' : 'key_46',
  493. 'type' : 'button',
  494. 'x' : 460,
  495. 'y' : 144,
  496. 'default_image' : 'locale/de/ui/vkey/key_normal.tga',
  497. 'down_image' : 'locale/de/ui/vkey/key_normal_dn.tga',
  498. 'over_image' : 'locale/de/ui/vkey/key_normal_over.tga',
  499. },
  500. )
  501. },
  502.  
  503. ## ConnectBoard
  504. {
  505. "name" : "ConnectBoard",
  506. "type" : "thinboard",
  507.  
  508. "x" : (SCREEN_WIDTH - 208) / 2,
  509. "y" : (SCREEN_HEIGHT - 410 - 35),
  510. "width" : 208,
  511. "height" : 30,
  512.  
  513. "children" :
  514. (
  515. {
  516. "name" : "ConnectName",
  517. "type" : "text",
  518.  
  519. "x" : 15,
  520. "y" : 0,
  521. "vertical_align" : "center",
  522. "text_vertical_align" : "center",
  523.  
  524. "text" : uiScriptLocale.LOGIN_DEFAULT_SERVERADDR,
  525. },
  526. {
  527. "name" : "SelectConnectButton",
  528. "type" : "button",
  529.  
  530. "x" : 150,
  531. "y" : 0,
  532. "vertical_align" : "center",
  533.  
  534. "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
  535. "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
  536. "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
  537.  
  538. "text" : uiScriptLocale.LOGIN_SELECT_BUTTON,
  539. },
  540. ),
  541. },
  542.  
  543. ## LoginBoard
  544. {
  545. "name" : "LoginBoard",
  546. "type" : "image",
  547.  
  548. "x" : (SCREEN_WIDTH - 208) / 2,
  549. "y" : (SCREEN_HEIGHT - 410),
  550.  
  551. "image" : LOCALE_PATH + "loginwindow.sub",
  552.  
  553. "children" :
  554. (
  555. {
  556. "name" : "ID_EditLine",
  557. "type" : "editline",
  558.  
  559. "x" : 77,
  560. "y" : 16,
  561.  
  562. "width" : 120,
  563. "height" : 18,
  564.  
  565. "input_limit" : 16,
  566. "enable_codepage" : 0,
  567.  
  568. "r" : 1.0,
  569. "g" : 1.0,
  570. "b" : 1.0,
  571. "a" : 1.0,
  572. },
  573. {
  574. "name" : "Password_EditLine",
  575. "type" : "editline",
  576.  
  577. "x" : 77,
  578. "y" : 43,
  579.  
  580. "width" : 120,
  581. "height" : 18,
  582.  
  583. "input_limit" : 16,
  584. "secret_flag" : 1,
  585. "enable_codepage" : 0,
  586.  
  587. "r" : 1.0,
  588. "g" : 1.0,
  589. "b" : 1.0,
  590. "a" : 1.0,
  591. },
  592. {
  593. "name" : "LoginButton",
  594. "type" : "button",
  595.  
  596. "x" : 15,
  597. "y" : 65,
  598.  
  599. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  600. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  601. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  602.  
  603. "text" : uiScriptLocale.LOGIN_CONNECT,
  604. },
  605. {
  606. "name" : "LoginExitButton",
  607. "type" : "button",
  608.  
  609. "x" : 105,
  610. "y" : 65,
  611.  
  612. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  613. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  614. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  615.  
  616. "text" : uiScriptLocale.LOGIN_EXIT,
  617. },
  618. ),
  619. },
  620.  
  621. ## ServerBoard
  622. {
  623. "name" : "ServerBoard",
  624. "type" : "thinboard",
  625.  
  626. "x" : 0,
  627. "y" : SCREEN_HEIGHT - SERVER_BOARD_HEIGHT - 72,
  628. "width" : 375,
  629. "height" : SERVER_BOARD_HEIGHT,
  630. "horizontal_align" : "center",
  631.  
  632. "children" :
  633. (
  634.  
  635. ## Title
  636. {
  637. "name" : "Title",
  638. "type" : "text",
  639.  
  640. "x" : 0,
  641. "y" : 12,
  642. "horizontal_align" : "center",
  643. "text_horizontal_align" : "center",
  644. "text" : uiScriptLocale.LOGIN_SELECT_TITLE,
  645. },
  646.  
  647. ## Horizontal
  648. {
  649. "name" : "HorizontalLine1",
  650. "type" : "line",
  651.  
  652. "x" : 10,
  653. "y" : 34,
  654. "width" : 354,
  655. "height" : 0,
  656. "color" : CTOA("ff777777"),
  657. },
  658. {
  659. "name" : "HorizontalLine2",
  660. "type" : "line",
  661.  
  662. "x" : 10,
  663. "y" : 35,
  664. "width" : 355,
  665. "height" : 0,
  666. "color" : CTOA("ff111111"),
  667. },
  668.  
  669. ## Vertical
  670. {
  671. "name" : "VerticalLine1",
  672. "type" : "line",
  673.  
  674. "x" : 246,
  675. "y" : 38,
  676. "width" : 0,
  677. "height" : SERVER_LIST_HEIGHT + 4,
  678. "color" : CTOA("ff777777"),
  679. },
  680. {
  681. "name" : "VerticalLine2",
  682. "type" : "line",
  683.  
  684. "x" : 247,
  685. "y" : 38,
  686. "width" : 0,
  687. "height" : SERVER_LIST_HEIGHT + 4,
  688. "color" : CTOA("ff111111"),
  689. },
  690.  
  691. ## ListBox
  692. {
  693. "name" : "ServerList",
  694. "type" : "listbox2",
  695.  
  696. "x" : 10,
  697. "y" : 40,
  698. "width" : 232,
  699. "height" : SERVER_LIST_HEIGHT,
  700.  
  701. "item_align" : 1,
  702. },
  703. {
  704. "name" : "ChannelList",
  705. "type" : "listbox",
  706.  
  707. "x" : 255,
  708. "y" : 40,
  709. "width" : 109,
  710. "height" : SERVER_LIST_HEIGHT,
  711.  
  712. "item_align" : 0,
  713. },
  714.  
  715. ## Buttons
  716. {
  717. "name" : "ServerSelectButton",
  718. "type" : "button",
  719.  
  720. "x" : 267,
  721. "y" : SERVER_LIST_HEIGHT,
  722.  
  723. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  724. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  725. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  726.  
  727. "text" : uiScriptLocale.OK,
  728. },
  729. {
  730. "name" : "ServerExitButton",
  731. "type" : "button",
  732.  
  733. "x" : 267,
  734. "y" : SERVER_LIST_HEIGHT + 22,
  735.  
  736. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  737. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  738. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  739.  
  740. "text" : uiScriptLocale.LOGIN_SELECT_EXIT,
  741. },
  742.  
  743. ),
  744.  
  745. },
  746. ),
  747. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement