import uiScriptLocale

LOCALE_PATH = uiScriptLocale.LOGIN_PATH
#Big-List
#SERVER_BOARD_HEIGHT = 180 + 390
#SERVER_LIST_HEIGHT = 171 + 350
#Small list like german
SERVER_BOARD_HEIGHT = 220 + 180
SERVER_LIST_HEIGHT = 171 + 180
SERVER_BOARD_WEIGHT = 375 

ID_LIMIT_COUNT = 19
PW_LIMIT_COUNT = 16

window = {
	"name" : "LoginWindow",
	"sytle" : ("movable",),

	"x" : 0,
	"y" : 0,

	"width" : SCREEN_WIDTH,
	"height" : SCREEN_HEIGHT,

	"children" :
	(

		## Board
		{
			"name" : "backgroundExygo", "type" : "image", "x" : 0, "y" : 0,
			"image" : "locale/ui/exygo.jpg",
		},
		{
			"name" : "backgroundLight", "type" : "image", "x" : 0, "y" : 0,
			"image" : "locale/ui/exygo_light.jpg",
		},

		## ConnectBoard
		{
			"name" : "ConnectBoard",
			"type" : "thinboard",

			"x" : 8222,
			"y" : 1,
			"width" : 208,
			"height" : 30,

			"children" :
			(
				{
					"name" : "ConnectName",
					"type" : "text",

					"x" : 15,
					"y" : - 30,
					
					
					"size" : "25",
					"text" : "|cFFFF4500EREN2|h",
					# "text" : uiScriptLocale.LOGIN_DEFAULT_SERVERADDR,
				},
				{
					"name" : "SelectConnectButton",
					"type" : "button",

					"x" : 150,
					"y" : 0,
					"vertical_align" : "center",

					"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/small_button_03.sub",

					"text" : uiScriptLocale.LOGIN_SELECT_BUTTON,
				},
			),
		},

		## LoginBoard
		{
			"name" : "LoginBoard",
			"type" : "image",

			"x" : (SCREEN_WIDTH - 535) / 2,
			"y" : (SCREEN_HEIGHT - 470),

			"image" : "locale/ui/design/bg_login.tga",

			"children" :
			(
			
				# NEW START
				{
					"name" : "SelectConnectButton",
					"type" : "button",

					"x" : 280,
					"y" : 108,

					"default_image" : "locale/ui/design/schimba_norm.tga",
					"over_image" : "locale/ui/design/schimba_hover.tga",
					"down_image" : "locale/ui/design/schimba_norm.tga",

					"text" : "Change Channel",
				},
				
				# END NEW
				{ 
					"name" : "ID_Text_window", "type" : "window", "x" : 21, "y" : 4, "width" : 120, "height" : 18,
					"children" :
					(
						{"name":"ID_Text", "type":"text", "x":0, "y":0, "text":uiScriptLocale.LOGIN_ID,},
					),	
				},
				
				{ 
					"name" : "Password_Text_window", "type" : "window", "x" : 21, "y" : 54, "width" : 120, "height" : 18,
					"children" :
					(
						{"name":"Password_Text", "type":"text", "x":0, "y":0, "text":uiScriptLocale.LOGIN_PASSWORD,},
					),	
				},
				
				{
					"name" : "ID_EditLine",
					"type" : "editline",

					"x" : 35,
					"y" : 27,

					"width" : 120,
					"height" : 18,

					"input_limit" : ID_LIMIT_COUNT,
					"enable_codepage" : 0,

					"r" : 1.0,
					"g" : 1.0,
					"b" : 1.0,
					"a" : 1.0,
				},
				{
					"name" : "Password_EditLine",
					"type" : "editline",

					"x" : 35,
					"y" : 80,

					"width" : 120,
					"height" : 18,

					"input_limit" : PW_LIMIT_COUNT,
					"secret_flag" : 1,
					"enable_codepage" : 0,

					"r" : 1.0,
					"g" : 1.0,
					"b" : 1.0,
					"a" : 1.0,
				},
				{
					"name" : "LoginButton",
					"type" : "button",

					"x" : 22,
					"y" : 108,

					"default_image" : "locale/ui/design/butonok_normal.tga",
					"over_image" : "locale/ui/design/butonok_hover.tga",
					"down_image" : "locale/ui/design/butonok_normal.tga",

					"text" : "LOG IN",
				},
				
				{
					"name" : "SetareActiune",
					"type" : "text",

					"x" : 283,
					"y" : 23,
					
					
					"fontsize" : "LARGE",
					"font" : "Tahoma",
					"text" : "|cFFFF4500ATTENTION!|h",
				},
				
				{
					"name" : "SetareActiune2",
					"type" : "text",

					"x" : 283,
					"y" : 53,
					
					
					"fontsize" : "SMALL",
					"font" : "Tahoma",
					"text" : "Protect your account with an",
				},
				{
					"name" : "SetareActiune2",
					"type" : "text",

					"x" : 283,
					"y" : 66,
					
					
					"fontsize" : "SMALL",
					"font" : "Tahoma",
					"text" : "unique password. You are responsible about",
				},
				{
					"name" : "SetareActiune3",
					"type" : "text",

					"x" : 283,
					"y" : 79,
					
					
					"fontsize" : "SMALL",
					"font" : "Tahoma",
					"text" : "your login details.",
				},
				
				{
					"name" : "LoginExitButton",
					"type" : "button",

					"x" : 445,
					"y" : 108,

					"default_image" : "locale/ui/design/exit_norm.tga",
					"over_image" : "locale/ui/design/exit_hover.tga",
					"down_image" : "locale/ui/design/exit_norm.tga",

					"text" : "Exit Game",

				},
				{
					"name" : "saveAccountMLM",
					"type" : "image",
					
					"width" : 600,
					"height" : 300,

					"x" : 0,
					"y" : 200,

					"image" : "locale/ui/design/board_saveacc.tga",

					"children" :
					(
						{
							"name" : "SetareActiune",
							"type" : "text",

							"x" : 23,
							"y" : 23,
							
							
							"fontsize" : "LARGE",
							"font" : "Tahoma",
							"text" : "|cFFFF4500SAVE ACCOUNT!|h",
						},
						
						{
							"name" : "SetareActiune2",
							"type" : "text",

							"x" : 23,
							"y" : 53,
							
							
							"fontsize" : "SMALL",
							"font" : "Tahoma",
							"text" : "For saving your account, press",
						},
						{
							"name" : "SetareActiune2",
							"type" : "text",

							"x" : 23,
							"y" : 66,
							
							
							"fontsize" : "SMALL",
							"font" : "Tahoma",
							"text" : "'Save your account'. For login, choose",
						},
						{
							"name" : "SetareActiune3",
							"type" : "text",

							"x" : 23,
							"y" : 79,
							
							
							"fontsize" : "SMALL",
							"font" : "Tahoma",
							"text" : "one of saved accounts.",
						},
					),
				},
			),
		},

		## ServerBoard
		{

			"name" : "ServerBoard", 
			"type" : "image", 
			
			"x" : SCREEN_WIDTH / 2 - 190,
			"y" : SCREEN_HEIGHT - 404,
			"width" : 375,
			"height" : SERVER_BOARD_HEIGHT,

			"image" : "locale/ui/design/boad_overlay.tga",

			
			
			
			
			
			"children" :
			(

				## Title
				{
					"name" : "Title",
					"type" : "text",

					"x" : 0,
					"y" : 12,
					"horizontal_align" : "center",
					"text_horizontal_align" : "center",
					# "text" : uiScriptLocale.LOGIN_SELECT_TITLE,
					"text" : " ",
				},

				# Horizontal
				# {
					# "name" : "HorizontalLine1",
					# "type" : "line",

					# "x" : 10,
					# "y" : 34,
					# "width" : 354,
					# "height" : 0,
					# "color" : 0xff777777,
				# },
				# {
					# "name" : "HorizontalLine2",
					# "type" : "line",

					# "x" : 10,
					# "y" : 35,
					# "width" : 355,
					# "height" : 0,
					# "color" : 0xff111111,
				# },

				# Vertical
				# {
					# "name" : "VerticalLine1",
					# "type" : "line",

					# "x" : 246,
					# "y" : 38,
					# "width" : 0,
					# "height" : SERVER_LIST_HEIGHT + 4,
					# "color" : 0xff777777,
				# },
				# {
					# "name" : "VerticalLine2",
					# "type" : "line",

					# "x" : 247,
					# "y" : 38,
					# "width" : 0,
					# "height" : SERVER_LIST_HEIGHT + 4,
					# "color" : 0xff111111,
				# },

				## ListBox
				{
					"name" : "ServerList",
					"type" : "listbox2",

					"x" : 23,
					"y" : 41,
					"width" : 199,
					"height" : 19,
					"row_count" : 18,
					"item_align" : 0,
				},
				{
					"name" : "ChannelList",
					"type" : "listbox",

					"x" : 255,
					"y" : 40,
					"width" : 109,
					"height" : SERVER_LIST_HEIGHT,

					"item_align" : 0,
				},

				## Buttons
				{
					"name" : "ServerSelectButton",
					"type" : "button",

					"x" : 22,
					"y" : 80,

					"default_image" : "locale/ui/design/butonok_normal.tga",
					"over_image" : "locale/ui/design/butonok_hover.tga",
					"down_image" : "locale/ui/design/butonok_normal.tga",

					"text" : "Continue",
				},
				{
					"name" : "ServerExitButton",
					"type" : "button",

					"x" : 5222 + 24 + 90,
					"y" : 70,

					"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

					"text" : " ",
				},

			),

		},

	),
}
