1. import uiScriptLocale
  2. LOCALE_PATH = uiScriptLocale.LOGIN_PATH
  3. window = {
  4. "name" : "LoginWindow",
  5. "sytle" : ("movable",),
  6. "x" : 0,
  7. "y" : 0,
  8. "width" : SCREEN_WIDTH,
  9. "height" : SCREEN_HEIGHT,
  10. "children" :
  11. (
  12. ## Board
  13. {
  14. "name" : "bg2", "type" : "expanded_image", "x" : 0, "y" : 0,
  15. "x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
  16. "image" : "locale/tr/ui/login.sub",
  17. },
  18. ## Alpha
  19. {
  20. "name" : "Alpha",
  21. "type" : "expanded_image",
  22. "x" : 0,
  23. "y" : 0,
  24. "image" : "d:/ymir work/ui/intro/login/background_alpha.sub",
  25. "x_scale" : float(SCREEN_WIDTH) / 128.0,
  26. "y_scale" : float(SCREEN_HEIGHT) / 96.0,
  27. },
  28. ## BackGround
  29. {
  30. "name" : "BackGround",
  31. "type" : "expanded_image",
  32. "x" : 0,
  33. "y" : 0,
  34. "x_scale" : float(SCREEN_WIDTH) / 800.0,
  35. "y_scale" : float(SCREEN_HEIGHT) / 600.0,
  36. "mode" : "MODULATE",
  37. "image" : "d:/ymir work/ui/intro/pattern/intro_background.dds",
  38. },
  39. ## Logo
  40. {
  41. "name" : "Metin2_Logo_1",
  42. "type" : "expanded_image",
  43. "x" : float(SCREEN_WIDTH) / 27,
  44. "y" : float(SCREEN_HEIGHT) / 8,
  45. "x_scale" : float(SCREEN_WIDTH) / 800.0,
  46. "y_scale" : float(SCREEN_HEIGHT) / 600.0,
  47. "image" : "d:/ymir work/ui/intro/login/metin2_logo_1.sub",
  48. },
  49. ## ConnectBoard
  50. {
  51. "name" : "ConnectBoard",
  52. "type" : "thinboard",
  53. "x" : SCREEN_WIDTH - 275,
  54. "y" : SCREEN_HEIGHT - 195,
  55. "width" : 208,
  56. "height" : 30,
  57. "children" :
  58. (
  59. {
  60. "name" : "ConnectName",
  61. "type" : "text",
  62. "x" : 15,
  63. "y" : 0,
  64. "vertical_align" : "center",
  65. "text_vertical_align" : "center",
  66. "text" : uiScriptLocale.LOGIN_DEFAULT_SERVERADDR,
  67. },
  68. {
  69. "name" : "SelectConnectButton",
  70. "type" : "button",
  71. "x" : 150,
  72. "y" : 0,
  73. "vertical_align" : "center",
  74. "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
  75. "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
  76. "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
  77. "text" : uiScriptLocale.LOGIN_SELECT_BUTTON,
  78. },
  79. ),
  80. },
  81. ## LoginBoard
  82. {
  83. "name" : "LoginBoard",
  84. "type" : "image",
  85. "x" : SCREEN_WIDTH - 275,
  86. "y" : SCREEN_HEIGHT - 155,
  87. "image" : LOCALE_PATH+"loginwindow.sub",
  88. "children" :
  89. (
  90. {
  91. "name" : "ID_EditLine",
  92. "type" : "editline",
  93. "x" : 77,
  94. "y" : 16,
  95. "width" : 120,
  96. "height" : 18,
  97. "input_limit" : 16,
  98. "enable_codepage" : 0,
  99. "r" : 1.0,
  100. "g" : 1.0,
  101. "b" : 1.0,
  102. "a" : 1.0,
  103. },
  104. {
  105. "name" : "Password_EditLine",
  106. "type" : "editline",
  107. "x" : 77,
  108. "y" : 43,
  109. "width" : 120,
  110. "height" : 18,
  111. "input_limit" : 16,
  112. "secret_flag" : 1,
  113. "enable_codepage" : 0,
  114. "r" : 1.0,
  115. "g" : 1.0,
  116. "b" : 1.0,
  117. "a" : 1.0,
  118. },
  119. {
  120. "name" : "LoginButton",
  121. "type" : "button",
  122. "x" : 15,
  123. "y" : 65,
  124. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  125. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  126. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  127. "text" : uiScriptLocale.LOGIN_CONNECT,
  128. },
  129. {
  130. "name" : "LoginExitButton",
  131. "type" : "button",
  132. "x" : 105,
  133. "y" : 65,
  134. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  135. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  136. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  137. "text" : uiScriptLocale.LOGIN_EXIT,
  138. },
  139. ),
  140. },
  141. ## ServerBoard
  142. {
  143. "name" : "ServerBoard",
  144. "type" : "thinboard",
  145. "x" : 0,
  146. "y" : 308,
  147. "width" : 375,
  148. "height" : 220,
  149. "horizontal_align" : "center",
  150. "children" :
  151. (
  152. ## Title
  153. {
  154. "name" : "Title",
  155. "type" : "text",
  156. "x" : 0,
  157. "y" : 12,
  158. "horizontal_align" : "center",
  159. "text_horizontal_align" : "center",
  160. "text" : uiScriptLocale.LOGIN_SELECT_TITLE,
  161. },
  162. ## Horizontal
  163. {
  164. "name" : "HorizontalLine1",
  165. "type" : "line",
  166. "x" : 10,
  167. "y" : 34,
  168. "width" : 354,
  169. "height" : 0,
  170. "color" : 0xff777777,
  171. },
  172. {
  173. "name" : "HorizontalLine2",
  174. "type" : "line",
  175. "x" : 10,
  176. "y" : 35,
  177. "width" : 355,
  178. "height" : 0,
  179. "color" : 0xff111111,
  180. },
  181. ## Vertical
  182. {
  183. "name" : "VerticalLine1",
  184. "type" : "line",
  185. "x" : 246,
  186. "y" : 38,
  187. "width" : 0,
  188. "height" : 175,
  189. "color" : 0xff777777,
  190. },
  191. {
  192. "name" : "VerticalLine2",
  193. "type" : "line",
  194. "x" : 247,
  195. "y" : 38,
  196. "width" : 0,
  197. "height" : 175,
  198. "color" : 0xff111111,
  199. },
  200. ## ListBox
  201. {
  202. "name" : "ServerList",
  203. "type" : "listbox",
  204. "x" : 10,
  205. "y" : 40,
  206. "width" : 232,
  207. "height" : 171,
  208. "item_align" : 0,
  209. },
  210. {
  211. "name" : "ChannelList",
  212. "type" : "listbox",
  213. "x" : 255,
  214. "y" : 40,
  215. "width" : 109,
  216. "height" : 171,
  217. "item_align" : 0,
  218. },
  219. ## Buttons
  220. {
  221. "name" : "ServerSelectButton",
  222. "type" : "button",
  223. "x" : 267,
  224. "y" : 170,
  225. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  226. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  227. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  228. "text" : uiScriptLocale.OK,
  229. },
  230. {
  231. "name" : "ServerExitButton",
  232. "type" : "button",
  233. "x" : 267,
  234. "y" : 192,
  235. "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  236. "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  237. "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  238. "text" : uiScriptLocale.LOGIN_SELECT_EXIT,
  239. },
  240. ),
  241. },
  242. ),
  243. }