#include "iscreen/ext_evnt.h"

#define OPTIONS_BACK_Y	400

#define KEY_OBJ_FONT	4

#define GRAPHICS_FONT	3
#define SOUND_FONT	3

#define OPTION_SPACE	2
#define PARAMS_SPACE	1

#define SLOT_FONT	3
#define SLOT_SPACE	1

#define RESULT_FONT	3
#define RESULT_SPACE	1

/* ------------------------ Joystick screen Defines ------------------------- */

#define JOYSTICK_START_Y	150
#define JOYSTICK_DELTA_Y	50

/* ------------------------ Controls screen2 Defines ------------------------ */

#define CONTROLS2_START_Y	40
#define CONTROLS2_DELTA_Y	55

/* ------------------------- Results Screen Defines ------------------------- */

#define RESULTS_START_Y 	80
#define RESULTS_DELTA_Y 	40

#define RESULTS_PLACE_X 	20
#define RESULTS_STRING_X	100
#define RESULTS_NUMBER_X	600

/* -------------------------- Host Screen Defines --------------------------- */

#define HOST_START_Y	100
#define HOST_DELTA_Y	50

#define HOST_BACK_OFFS	70
#define HOST_BACK_Y	400

/* ---------------------- Config Failed Screen Defines ---------------------- */

#define CFG_FAILED_START_Y	130
#define CFG_FAILED_DELTA_Y	50

/* ----------------------- Main Server Screen Defines ----------------------- */

#define MSERVER_START_Y 	70
#define MSERVER_DELTA_Y 	48

/* -------------------------- Game Screen Defines --------------------------- */

#define GAME_FNT		0
#define PARAM_FNT		3

// MUSTODONT --- Unique Mechos
#define MECHOS_STR_X		180
#define MECHOS_TRG_X		430

// PASSEMBLOSS --- Checkpoints Number
#define NUM_CHECKS_STR_X	220
#define NUM_CHECKS_IN_STR_X	570

// PASSEMBLOSS --- Escave
#define ESCAVE_BIRTH_STR_X	240

// MECHOSOMA --- One at a time
#define ONE_AT_A_TIME_STR_X	250
#define ONE_AT_A_TIME_TRG_X	470

// MECHOSOMA --- Items (Nymbos/Phlegma, etc.)
#define ITEM_START_X		210
#define ITEM_DELTA_X		200
#define ITEM_SIZE_X		140

// MECHOSOMA --- World
#define WORLD_STR_X		300
#define WORLD_TRG_X		405

// VAN WAR --- Nascency
#define BIRTH_STR_X		245
#define BIRTH_TRG_X		405

// VAN WAR --- Team Mode
#define TEAM_STR_X		260
#define TEAM_TRG_X		445

// VAN WAR --- Worlds Access
#define ACCESS_STR_X		245
#define ACCESS_TRG_X		380

//#define SELECT_SCREEN_START_Y   130
//#define SELECT_SCREEN_DELTA_Y   50

#define SELECT_SCREEN_START_Y	170
#define SELECT_SCREEN_DELTA_Y	50

#define PARAMS_START_Y		80
#define PARAMS_DELTA_Y		40

// Initial Cash
#define CASH_STR_X		180
#define BEEBOS_NUM_STR_X	320
#define BEEBOS_STR_X		520

// Artefacts using
#define ARTEFACTS_STR_X 	240
#define ARTEFACTS_TRG_X 	480

// In-Escave Time
#define ESCAVE_STR_X		210
#define ESCAVE_TRG_X		450
#define ESCAVE_MIN_STR_X	500

/* -------------------------- Main Screen Defines --------------------------- */

#define NEW_GAME_X		60
#define NEW_GAME_Y		20

#define LOAD_GAME_X		60
#define LOAD_GAME_Y		90

#define OPTIONS_X		160
#define OPTIONS_Y		160

#define CREDITS_X		80
#define CREDITS_Y		310

#define MULTIPLAYER_X		230
#define MULTIPLAYER_Y		240

#define MAIN_FNT		1

/* ------------------------- Credits Screen Defines ------------------------- */

#define HALL_X			190
#define HALL_Y			530

#define LOGO_DY 		50

/* ------------------------- Options Screen Defines ------------------------- */

#define OPTIONS_START_Y 	135
#define OPTIONS_DELTA_Y 	75

#define BACK_X			20
#define BACK_Y			20

#define BACK2_X 		300
#define BACK2_Y 		500

#define RETURN_X		240
#define RETURN_Y		500

/* ------------------------ Graphics Screen Defines ------------------------- */

#define GRAPHICS_SCR_START_Y	100
#define GRAPHICS_SCR_DELTA_Y	50

#define TUTORIAL_STR_X		220
#define TUTORIAL_TRG_X		500

#define DETAIL_STR_X		200
#define DETAIL_TRG_X		400

#define RESOLUTION_STR_X	90
#define RESOLUTION_TRG_X	600

#define DESTR_STR_X		90

#define IN_USE_STR_X		90
#define CLEAN_STR_X		550

/* -------------------------- Sound Screen Defines -------------------------- */

#define SOUND_SCR_START_Y	80
#define SOUND_SCR_DELTA_Y	45

#define SOUND_STR_X		150
#define SOUND_TRG_X		550

#define MUSIC_STR_X		240
#define MUSIC_TRG_X		550

#define SOUND_STR_X2		180
#define SOUND_SCL_X		450

#define MUSIC_STR_X2		180
#define MUSIC_SCL_X		450

#define PAN_STR_X		150
#define PAN_TRG_X		550

#define MECH_SND_STR_X		190
#define MECH_SND_TRG_X		550

#define BACK_SND_STR_X		130
#define BACK_SND_TRG_X		550

/* ------------------------ Load Game Screen Defines ------------------------ */

#define RETURN2_X		240
#define RETURN2_Y		430

#define SLOT_START_Y		70
#define SLOT_DELTA_Y		40

#define SLOT_TERRAIN		$TERRAIN4

/* ----------------------- Multiplayer Screen Defines ----------------------- */

#define TITLE_STR_Y		20
#define TITLE_STR2_Y		60

#define MULTI_START_Y		150
//#define MULTI_START_Y 	  200
#define MULTI_DELTA_Y		80

#define SERVER_START_Y		170
#define SERVER_DELTA_Y		80

/* ---------------------- Search Server Screen Defines ---------------------- */

#define SMOOTH_TIME		3
#define SCALE_TIME		5

#define SLIST_START_Y		100
#define SLIST_DELTA_Y		50

#define SEARCH_START_Y		200
#define SEARCH_DELTA_Y		50

/* ---------------------- Configuration Screen Defines ---------------------- */

#define CFG_START_Y		110
#define CFG_DELTA_Y		40

#define CFG_NAME_X		200

#define CONNECT_X		500
#define CONNECT_Y		400

/* ----------------------- Controls Screen 0 Defines ------------------------ */

#define KEYS0_START_Y		60
#define KEYS0_DELTA_Y		40

#define KEYS0_X 		445

/* -------------------------------------------------------------------------- */

Screen "Main Screen"
{
	default_obj "New Game Option"

	Event {
		key		$VK_ESCAPE
		EvComm {
			exit	0
		}
	}

	Object "Load Game Option"
	{
		x	$LOAD_GAME_X
		y	$LOAD_GAME_Y

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_LOAD_GAME
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Load Game Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_PREPARE_SLOTS	0
				start_time	1
			}
			EvComm {
				move2screen	"Loading screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME + MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Load Game Option"
				start_time	$SMOOTH_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Load Game Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj       "Load Game Option"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Load Game Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_PREPARE_SLOTS	0
				start_time	1
			}
			EvComm {
				move2screen	"Loading screen"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Load Game Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Load Game Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_PREPARE_SLOTS	0
				start_time	1
			}
			EvComm {
				move2screen	"Loading screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Load Game Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Load Game Option"
		#define OBJ2	"Options Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Load Game Option"
		#define OBJ2	"New Game Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		} 
	}

Object "Multiplayer Option"
	{
		x	$MULTIPLAYER_X
		y	$MULTIPLAYER_Y

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_MULTIPLAYER
		}
		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Multiplayer Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_SOCKETS 0
				start_time	0
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time	  { $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Multiplayer Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Multiplayer Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj       "Multiplayer Option"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Multiplayer Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_SOCKETS 0
				start_time	0
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Multiplayer Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Multiplayer Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_SOCKETS 0
				start_time	0
			}
		}
		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Multiplayer Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Multiplayer Option"
		#define OBJ2	"Credits Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Multiplayer Option"
		#define OBJ2	"Options Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "New Game Option"
	{
		x	$NEW_GAME_X
		y	$NEW_GAME_Y

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_NEW_GAME
		}
		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"New Game Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				reset_texts
				start_time	0
			}
			EvComm {
				next_text	"TextScreen00"  0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	 "TextScreen00"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"New Game Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"New Game Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj       "New Game Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"New Game Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				reset_texts
				start_time	0
			}
			EvComm {
				next_text	"TextScreen00"  0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	 "TextScreen00"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME }
			EvComm {
				smooth_obj	"New Game Option" 4
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				hide_obj	"New Game Option"
				start_time	$PRESS_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				reset_texts
				start_time	0
			}
			EvComm {
				next_text	"TextScreen00"  0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	 "TextScreen00"
				start_time	{ $PRESS_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"New Game Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"New Game Option"
		#define OBJ2	"Load Game Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"New Game Option"
		#define OBJ2	"Exit Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "Options Option"
	{
		align_x 	right
		align_x_offs	$OPTIONS_X
		y		$OPTIONS_Y

		selectable_obj
		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_OPTIONS
		}
		Event {
			if_selected
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Options Option"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Options Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Options Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Options Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Options Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Options Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Options Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Options Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Options Option"
		#define OBJ2	"Multiplayer Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Options Option"
		#define OBJ2	"Load Game Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "Credits Option"
	{
		align_x 	right
		align_x_offs	$CREDITS_X
		y		$CREDITS_Y

		selectable_obj
		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_CREDITS
		}
		Event {
			if_selected
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }

			EvComm {
				low_obj        "Credits Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Credits screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Credits Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Credits Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Credits Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Credits Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Credits screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Credits Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Credits Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Credits screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Credits Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Credits Option"
		#define OBJ2	"Exit Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Credits Option"
		#define OBJ2	"Multiplayer Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
	Object "Exit Option"
	{
		x	$EXIT_X
		y	$EXIT_Y

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_EXIT
		}
		Event {
			if_selected
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE

			time { $PRESS_OBJ_TIME + 1 }
			EvComm {
				low_obj 	"Exit Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				exit		0
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time	  { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }
			EvComm {
				jump_obj	"Exit Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Exit Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Exit Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Exit Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				exit		0
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }
			EvComm {
				smooth_obj	"Exit Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Exit Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				exit		0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Exit Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Exit Option"
		#define OBJ2	"New Game Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Exit Option"
		#define OBJ2	"Credits Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
}


Screen "Options screen II"
{
	screen_offs	800
	default_obj "Graphics Option"
	Event {
		key		$VK_ESCAPE
		time 11
		EvComm {
			move2screen	"Main Screen"
			start_time	0
			time		10
		}
	}

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Options
		}
	}

	Object "Graphics Option"
	{
		align_x center
		y	$OPTIONS_START_Y

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_GRAPHICS
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Graphics Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_INIT_KEEP_OPTIONS 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Graphics screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Graphics Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Graphics Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj       "Graphics Option"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Graphics Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_KEEP_OPTIONS 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Graphics screen"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Graphics Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Graphics Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_KEEP_OPTIONS 0
				start_time	0
			}
			EvComm {
				move2screen	"Graphics screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Graphics Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Graphics Option"
		#define OBJ2	"Sound Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Graphics Option"
		#define OBJ2	"Controls Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "Sound Option"
	{
		align_x center
		y	{ $OPTIONS_START_Y + $OPTIONS_DELTA_Y }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_SOUND
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Sound Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Sound screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Sound Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Sound Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Sound Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Sound Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Sound screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Sound Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Sound Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Sound screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Sound Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Sound Option"
		#define OBJ2	"Controls Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Sound Option"
		#define OBJ2	"Graphics Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "Controls Option"
	{
		align_x center
		y	{ $OPTIONS_START_Y + $OPTIONS_DELTA_Y * 2 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_CONTROLS
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Controls Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_INIT_JOYSTICK_OBJ     0
				start_time	1
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Controls Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Controls Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Controls Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Controls Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_JOYSTICK_OBJ     0
				start_time	1
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Controls Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Controls Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_JOYSTICK_OBJ     0
				start_time	1
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Controls Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Controls Option"
		#define OBJ2	"Graphics Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Controls Option"
		#define OBJ2	"Sound Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "Main Menu Option"
	{
		align_x center
		y	400

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_MAIN_MENU
		}

		Event {
			key $VK_ESCAPE
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Main Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Main Screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Main Menu Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Main Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Main Screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
}

Screen "Graphics screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Graphics_Options
		}
	}
	/*Object "DetailStr"
	{
		x	$DETAIL_STR_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y }

		Element STRING {
			align_x 	center

			space		$OPTION_SPACE
			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_DETAIL
		}
	}*/
	Trigger "DetailTrig" {
		x	$DETAIL_TRG_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y }

		num_state	2

		null_level	$DEFAULT_NULL

		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			/*string		$iSTR_MEM16MB*/
			string ""
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			/*string		$iSTR_MEM32MB*/
			string ""
			null_level	$DEFAULT_NULL
		}
		/*Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"DetailTrig"
				time $TRIGGER_TIME
			}
		}*/
	}
	Object "TutorialStr"
	{
		x	$TUTORIAL_STR_X
		y	$GRAPHICS_SCR_START_Y

		Element STRING {
			align_x 	center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN2

			null_level	$DEFAULT_NULL
			string		$iSTR_TIPS
		}
	}
	Trigger "TutorialTrig" {
		x	$TUTORIAL_TRG_X
		y	$GRAPHICS_SCR_START_Y

		num_state	2

		null_level	$DEFAULT_NULL

		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"TutorialTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event $iEXT_UPDATE_TUTORIAL_MODE 0
				start_time 1
			}
		}
	}
	Object "Back Option"
	{
		align_x center
		y	$OPTIONS_BACK_Y

		Element STRING {
			align_x center

			space		5
			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "ResStr"
	{
		x	$RESOLUTION_STR_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 1 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2
			space		$OPTION_SPACE

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_SCREEN
		}
	}
	Trigger "ResTrig" {
		x	$RESOLUTION_TRG_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 1 }

		num_state	2

		null_level	$DEFAULT_NULL

		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			// TODO: string constant
			string      "1280x720"
			null_level	$DEFAULT_NULL
		}

		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_800x600
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"ResTrig"
				time $TRIGGER_TIME
			}
		}
	}
	Object "DestrStr"
	{
		x	$DESTR_STR_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 2 }

		Element STRING {
			space		$OPTION_SPACE
			align_x 	center

			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_DEFORMABLE_LANDSCAPE
		}
	}
	Trigger "DestrTrig" {
		x	$DESTR_TRG_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 2 }

		num_state	2

		null_level	$DEFAULT_NULL

		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"DestrTrig"
				time $TRIGGER_TIME
			}
		}
	}
	Object "KeepStr"
	{
		x	$KEEP_STR_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 3 }

		Element STRING {
			space		$OPTION_SPACE
			align_x 	center

			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_KEEP_ALL_TERRAIN_CHANGES
		}
	}
	Trigger "KeepTrig" {
		x	$KEEP_TRG_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 3 }

		num_state	2

		null_level	$DEFAULT_NULL

		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"KeepTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_KEEP_OPTIONS 0
				start_time	{ $TRIGGER_TIME / 2 }
			}
		}
	}
	Object "FullScreenObj"
	{
		x	$KEEP_STR_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 4 }

		Element STRING {
			space		$OPTION_SPACE
			align_x 	center

			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_FULL_SCREEN
		}
	}
	Trigger "FullScreenTrig" {
		x	$KEEP_TRG_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 4 }

		num_state	2

		null_level	$DEFAULT_NULL

		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"FullScreenTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_KEEP_OPTIONS 0
				start_time	{ $TRIGGER_TIME / 2 }
			}
		}
	}
	Object "InUseObj"
	{
		x	$Graphics_screen_InUseObj_PosX
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 5 }

		Element STRING {
			id		"InUseStr"

			space		$OPTION_SPACE
			align_x 	center

			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_DISK_SPACE_IN_USE
		}
	}
	Object "CleanUpObj"
	{
		x	$Graphics_screen_CleanUpObj_PosX
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 5 }

		not_unlock

		Element STRING {
			id		"CleanUpStr"

			space		$OPTION_SPACE
			align_x 	center

			terrain_num	$TERRAIN4

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_CLEAN_UP
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"CleanUpObj"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_KEEP_CLEAN_UP 0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"CleanUpObj"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { ( $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME ) * 2 + 1 }
			EvComm {
				smooth_obj	"CleanUpObj" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"CleanUpObj"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_KEEP_CLEAN_UP 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				smooth_obj	"CleanUpObj" 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME * 2 }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				rise_obj	"CleanUpObj"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}
}

Screen "Sound screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Sound_Options
		}
	}
	Object "SoundStr"
	{
		x	$Sound_screen_SoundStr_PosX
		y	$SOUND_SCR_START_Y

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_SOUND_EFFECTS
		}
	}
	Trigger "SoundTrig" {
		x	$Sound_screen_SoundTrig_PosX
		y	$SOUND_SCR_START_Y

		num_state	2

		null_level	$DEFAULT_NULL

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"SoundTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event $iEXT_UPDATE_SOUND_MODE 0
				start_time 1
			}
		}
	}
	Object "MusicStr"
	{
		x	$Sound_screen_MusicStr_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 1 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_MUSIC
		}
	}
	Trigger "MusicTrig" {
		x	$Sound_screen_MusicTrig_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 1 }

		num_state	2

		null_level	$DEFAULT_NULL

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"MusicTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event $iEXT_UPDATE_MUSIC_MODE 0
				start_time 1
			}
		}
	}
	Object "SoundStr2"
	{
		x	$Sound_screen_SoundStr2_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 5 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_SOUND_VOLUME
		}
	}
	Object "SndScrlObj"
	{
		x	$Sound_screen_SndScrlObj_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 5 }

		Element SCROLLER "SndVolumeScroller" {
			bmp_file	"resource/iscreen/bitmap/snd_shp.bmp"

			dir		2

			terrain_num	$TERRAIN4

			bmp_null_level	120
			null_level	$DEFAULT_NULL

			value		26
			max_value	26
			space		1

		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $VOLUME_CHANGE_TIME + 1 }
			EvComm {
				change_scroller  "SndVolumeScroller"

				time $VOLUME_CHANGE_TIME
			}
			EvComm {
				ext_event $iEXT_UPDATE_SOUND_VOLUME 0
				start_time 1
			}
		}
	}
	Object "MusicStr2"
	{
		x	$Sound_screen_MusicStr2_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 6 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_MUSIC_VOLUME
		}
	}
	Object "MusScrlObj"
	{
		x	$Sound_screen_MusScrlObj_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 6 }

		Element SCROLLER "MusVolumeScroller" {
			bmp_file	"resource/iscreen/bitmap/snd_shp.bmp"

			dir		2

			terrain_num	$TERRAIN4

			bmp_null_level	120
			null_level	$DEFAULT_NULL

			value		26
			max_value	26
			space		1

		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $VOLUME_CHANGE_TIME + 1 }
			EvComm {
				change_scroller  "MusVolumeScroller"

				time $VOLUME_CHANGE_TIME
			}
			EvComm {
				ext_event $iEXT_UPDATE_MUSIC_VOLUME 0
				start_time 1
			}
		}
	}
	Object "Back Option"
	{
		align_x center
		y	$OPTIONS_BACK_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "PanningStr"
	{
		x	$Sound_screen_PanningStr_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 2 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_EFFECTS_PANNING
		}
	}
	Trigger "PanningTrig" {
		x	$Sound_screen_PanningTrig_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 2 }

		num_state	2
		null_level	$DEFAULT_NULL

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"PanningTrig"
				time $TRIGGER_TIME
			}
//			  EvComm {
//				  ext_event $iEXT_UPDATE_SOUND_MODE 0
//				  start_time 1
//			  }
		}
	}
	Object "MechSndStr"
	{
		x	$Sound_screen_MechSndStr_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 3 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_ENGINE_NOISE
		}
	}
	Trigger "MechSndTrig" {
		x	$Sound_screen_MechSndTrig_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 3 }

		num_state	2
		null_level	$DEFAULT_NULL

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"MechSndTrig"
				time $TRIGGER_TIME
			}
		}
	}
	Object "BackSndStr"
	{
		x	$Sound_screen_BackSndStr_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 4 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			space		$OPTION_SPACE
			font		$SOUND_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_BACKGROUND_SOUND
		}
	}
	Trigger "BackSndTrig" {
		x	$Sound_screen_BackSndTrig_PosX
		y	{ $SOUND_SCR_START_Y + $SOUND_SCR_DELTA_Y * 4 }

		num_state	2
		null_level	$DEFAULT_NULL

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_ON
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$OPTION_SPACE
			font		$SOUND_FONT
			string		$iSTR_OFF
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"BackSndTrig"
				time $TRIGGER_TIME
			}
		}
	}

}

#define SLOT_EVENTS		Event { 						\
					key $VK_SPACE					\
					key $VK_RETURN					\
					key $VK_LBUTTON 				\
											\
					time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }	\
					EvComm {					\
						low_obj 	$SLOT_NAME		\
						time		$PRESS_OBJ_TIME 	\
						start_time	0			\
					}						\
					EvComm {					\
						ext_event	$iEXT_SET_SLOT $SLOT_NUMBER	\
						start_time	0			\
					}						\
					EvComm {					\
						move2screen	"LOADING"               \
						start_time	$PRESS_OBJ_TIME 	\
						time		$MOVE2SCREEN_TIME	\
					}						\
					EvComm {					\
						exit		$ACI_LOAD_CODE		\
						start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME } \
					}						\
				}							\
				Event { 						\
					key $VK_RBUTTON 				\
											\
					time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 } \
					EvComm {					\
						smooth_obj	$SLOT_NAME	2	\
						start_time	0			\
						time		$SMOOTH_OBJ_TIME	\
					}						\
					EvComm {					\
						ext_event	$iEXT_SET_SLOT $SLOT_NUMBER	\
						start_time	0			\
					}						\
					EvComm {					\
						hide_obj	$SLOT_NAME		\
						start_time	$SMOOTH_OBJ_TIME	\
						time		$HIDE_OBJ_TIME		\
					}						\
					EvComm {					\
						move2screen	"LOADING"               \
						start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME } \
						time		$MOVE2SCREEN_TIME	\
					}						\
					EvComm {					\
						exit		$ACI_LOAD_CODE		\
						start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }	\
					}						\
				}

Screen "Loading screen"
{
	screen_offs	800

	default_obj "Main Menu Option"

	Object "Main Menu Option"
	{
		align_x center
		y	450

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_MAIN_MENU
		}

		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Main Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Main Screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time 32
			EvComm {
				smooth_obj	"Main Menu Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Main Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Main Screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	#define SLOT_OFFS	-190

	#define SLOT_NUMBER	0
	#define SLOT_NAME	"Slot00"
	Object "Slot00"
	{
		align_x center
		align_x_offs	$SLOT_OFFS
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 0 }

		space	0
		not_unlock

		Element STRING {
			id	"SlotStr0"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	1
	#define SLOT_NAME	"Slot01"
	Object "Slot01"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 1 }

		align_x_offs	$SLOT_OFFS
		space	0
		not_unlock

		Element STRING {
			id	"SlotStr1"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	2
	#define SLOT_NAME	"Slot02"
	Object "Slot02"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 2 }

		align_x_offs	$SLOT_OFFS
		space	0
		not_unlock

		Element STRING {
			id	"SlotStr2"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	3
	#define SLOT_NAME	"Slot03"
	Object "Slot03"
	{
		space	0
		not_unlock

		align_x_offs	$SLOT_OFFS
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 3 }

		Element STRING {
			id	"SlotStr3"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	4
	#define SLOT_NAME	"Slot04"
	Object "Slot04"
	{
		space	0
		not_unlock

		align_x_offs	$SLOT_OFFS
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 4 }

		Element STRING {
			id	"SlotStr4"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	5
	#define SLOT_NAME	"Slot05"
	Object "Slot05"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 5 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStr5"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	6
	#define SLOT_NAME	"Slot06"
	Object "Slot06"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 6 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStr6"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	7
	#define SLOT_NAME	"Slot07"
	Object "Slot07"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 7 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStr7"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}
	#define SLOT_NUMBER	8
	#define SLOT_NAME	"Slot08"
	Object "Slot08"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 8 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStr8"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
		$SLOT_EVENTS
	}

	#define SLOT_OFFS	180
	#define SLOT_TERRAIN	$TERRAIN2

	Object "_Slot00"
	{
		align_x center
		align_x_offs	$SLOT_OFFS
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 0 }

		space	0
		not_unlock

		Element STRING {
			id	"SlotStrTime0"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot01"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 1 }

		align_x_offs	$SLOT_OFFS
		space	0
		not_unlock

		Element STRING {
			id	"SlotStrTime1"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot02"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 2 }

		align_x_offs	$SLOT_OFFS
		space	0
		not_unlock

		Element STRING {
			id	"SlotStrTime2"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot03"
	{
		space	0
		not_unlock

		align_x_offs	$SLOT_OFFS
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 3 }

		Element STRING {
			id	"SlotStrTime3"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot04"
	{
		space	0
		not_unlock

		align_x_offs	$SLOT_OFFS
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 4 }

		Element STRING {
			id	"SlotStrTime4"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot05"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 5 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStrTime5"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot06"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 6 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStrTime6"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot07"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 7 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStrTime7"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}
	Object "_Slot08"
	{
		align_x center
		y	{ $SLOT_START_Y + $SLOT_DELTA_Y * 8 }

		space	0
		align_x_offs	$SLOT_OFFS
		not_unlock

		shadow_size	20

		Element STRING {
			id	"SlotStrTime8"
			align_x center

			terrain_num	$SLOT_TERRAIN

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL

			string		"XXXXXXXXXXXXXXX"
		}
	}


	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			space		$SLOT_SPACE
			font		$SLOT_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_LOAD_GAME
		}
	}
}

Screen "Multiplayer screen"
{
	screen_offs	800

	default_obj "Join Option"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Multiplayer
		}
	}

	Object "Main Menu Option"
	{
//		  x	  $RETURN2_X
		align_x center
		y	$RETURN2_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_MAIN_MENU
		}

		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Main Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Main Screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Main Menu Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Main Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Main Screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Join Option"
	{
		align_x center
		y	{ $MULTI_START_Y + $MULTI_DELTA_Y * 0 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_JOIN_SERVER
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Join Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Server screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Join Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Join Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Join Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Join Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Server screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Join Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Join Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Join Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Join Option"
		#define OBJ2	"Create Option"
//		  #define OBJ2	  "Port Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}
		#define OBJ1	"Join Option"
		#define OBJ2	"Port Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
	Object "Create Option"
	{
		align_x center
		y	{ $MULTI_START_Y + $MULTI_DELTA_Y * 1 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_CREATE_SERVER
		}
		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			multi_event

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Create Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_CREATE_SERVER 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Identification screen2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				move2screen	"Create server screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			multi_event

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Create Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Create Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Create Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_CREATE_SERVER 0
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME - 1 }
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Create Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Identification screen2"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				move2screen	"Create server screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			multi_event

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Create Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Create Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_CREATE_SERVER 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Create server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				move2screen	"Identification screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
		}
		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Create Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Create Option"
		#define OBJ2	"Port Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}
		#define OBJ1	"Create Option"
		#define OBJ2	"Join Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
/*
	Object "Player Option"
	{
		align_x center
		y	{ $MULTI_START_Y + $MULTI_DELTA_Y * 2 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_PLAYER_SETUP
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Player Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Configuration screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Player Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Player Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Player Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Player Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Configuration screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Player Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Player Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Configuration screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Player Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Player Option"
		#define OBJ2	"Port Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}
		#define OBJ1	"Player Option"
		#define OBJ2	"Create Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
*/
	Object "Port Option"
	{
		align_x center
		y	{ $MULTI_START_Y + $MULTI_DELTA_Y * 2 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_SERVER_PORT
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Port Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Port screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Port Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Port Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Port Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Port Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Port screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Port Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Port Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Port screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Port Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Port Option"
		#define OBJ2	"Join Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}
		#define OBJ1	"Port Option"
		#define OBJ2	"Create Option"
//		  #define OBJ2	  "Join Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
}

Screen "Server screen"
{
	screen_offs	0

	default_obj "LAN Option"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR2_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Join_Server
		}
	}

	Object "Back Option"
	{
		x	$Server_screen_Back_Option_PosX
		y	$Server_screen_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME }

			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "LAN Option"
	{
		align_x center
		y	{ $SERVER_START_Y + $SERVER_DELTA_Y * 0 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_LAN
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 3 }

			multi_event

			EvComm {
				low_obj 	"LAN Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_INIT_SERVERS_LIST 	0
				start_time	1
			}
			EvComm {
				ext_event	$iEXT_FIRST_SEARCH 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				end_event
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }

				event_line	2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_SERVERS_LIST 0
				start_time	{ $PRESS_OBJ_TIME + 1 }

				event_line	1
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $PRESS_OBJ_TIME + 2 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			multi_event

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 3 }
			EvComm {
				jump_obj	"LAN Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"LAN Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"LAN Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"LAN Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_SERVERS_LIST 	0
				start_time	1
			}
			EvComm {
				ext_event	$iEXT_FIRST_SEARCH 0
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				end_event
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }

				event_line	2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_SERVERS_LIST 0
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 2 }

				event_line	1
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			multi_event

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 3 }
			EvComm {
				smooth_obj	"LAN Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"LAN Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_SERVERS_LIST 	0
				start_time	1
			}
			EvComm {
				ext_event	$iEXT_FIRST_SEARCH 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				end_event
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }

				event_line	2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_SERVERS_LIST 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }

				event_line	1
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 2 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"LAN Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"LAN Option"
		#define OBJ2	"Inet Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}

	Object "Inet Option"
	{
		align_x center
		y	{ $SERVER_START_Y + $SERVER_DELTA_Y * 1 }

		selectable_obj
		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		$MAIN_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_INTERNET
		}

		Event {
			if_selected
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Inet Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"INet Host screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_not_selected
			key $VK_RBUTTON

			time	  { $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Inet Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Inet Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Inet Option"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Inet Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"INet Host screen"
				start_time	{ $SMOOTH_OBJ_TIME + $PRESS_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Inet Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Inet Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"INet Host screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Inet Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Inet Option"
		#define OBJ2	"LAN Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}
}

Screen "Create server screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "TitleStr"
	{
		align_x center
		align_y center
		align_y_offs	-100
//		  y	  $TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_CANT_CREATE
		}
	}

	Object "Back Option"
	{
		x	$BACK_X
		y	$BACK_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$PRESS_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
}


#define SERVER_LIST_ITEM_EVENTS 	Event { 						\
						key $VK_LBUTTON 				\
						key $VK_RBUTTON 				\
												\
						multi_event					\
												\
						time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 3 }	\
						EvComm {					\
							low_obj 	$SERVER_LIST_ITEM	\
							time		$PRESS_OBJ_TIME 	\
							start_time	0			\
						}						\
						EvComm {					\
							ext_event	$iEXT_CHOOSE_SERVER	$SERVER_NUM	\
							start_time	1			\
						}						\
						EvComm {					\
							move2screen	"Identification screen" \
							start_time	{ $PRESS_OBJ_TIME + 1 } \
							time		$MOVE2SCREEN_TIME	\
						}						\
					}

Screen "Search server screen"
{
	screen_offs	800

	default_obj "Back Option"
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_LAN_Servers
		}
	}

	Object "Back Option"
	{
		x	$SLIST_BACK_X
		y	$SLIST_BACK_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Server screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server screen"
				start_time	{ $HIDE_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	#define SERVER_LIST_ITEM	"List00"
	#define SERVER_NUM		0
	Object "List00"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 0 }

		Element STRING {
			id	"ServerStr0"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List01"
	#define SERVER_NUM		1
	Object "List01"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 1 }

		Element STRING {
			id	"ServerStr1"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List02"
	#define SERVER_NUM		2
	Object "List02"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 2 }

		Element STRING {
			id	"ServerStr2"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List03"
	#define SERVER_NUM		3
	Object "List03"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 3 }

		Element STRING {
			id	"ServerStr3"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List04"
	#define SERVER_NUM		4
	Object "List04"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 4 }

		Element STRING {
			id	"ServerStr4"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}

	Object "Up Option"
	{
		x	$Search_server_screen_Up_Option_PosX
		y	$Search_server_screen_Up_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_UP
		}
		Event {
			key $VK_LBUTTON

			time { $SCALE_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Up Option"
				time		$SCALE_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_UP_SERVERS_LIST	0
				start_time	$SCALE_TIME
			}
			EvComm {
				rise_obj	"Up Option"
				time		$SCALE_TIME
				start_time	$SCALE_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 1 }
			EvComm {
				smooth_obj	"Up Option" 2
				start_time	0
				time		$SMOOTH_TIME
			}
			EvComm {
				scale_obj	"Up Option"     128
				start_time	$SMOOTH_TIME
				time		$SCALE_TIME
			}
			EvComm {
				ext_event	$iEXT_UP_SERVERS_LIST	0
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
			}
			EvComm {
				smooth_obj	"Up Option" 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME }
				time		$SMOOTH_TIME
			}
			EvComm {
				rise_obj	"Up Option"
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
				time		$SCALE_TIME
			}
		}
	}
	Object "Down Option"
	{
		x	$Search_server_screen_Down_Option_PosX
		y	$Search_server_screen_Down_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_DOWN
		}
		Event {
			key $VK_LBUTTON

			time { $SCALE_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Down Option"
				time		$SCALE_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_DN_SERVERS_LIST	0
				start_time	$SCALE_TIME
			}
			EvComm {
				rise_obj	"Down Option"
				time		$SCALE_TIME
				start_time	$SCALE_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 1 }
			EvComm {
				smooth_obj	"Down Option" 2
				start_time	0
				time		$SMOOTH_TIME
			}
			EvComm {
				scale_obj	"Down Option"   128
				start_time	$SMOOTH_TIME
				time		$SCALE_TIME
			}
			EvComm {
				smooth_obj	"Down Option" 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME }
				time		$SMOOTH_TIME
			}
			EvComm {
				ext_event	$iEXT_DN_SERVERS_LIST	0
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
			}
			EvComm {
				rise_obj	"Down Option"
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
				time		$SCALE_TIME
			}
		}
	}
	Object "Update Option"
	{
//		  x	  $UPDATE_LIST_X
		align_x center
		y	$UPDATE_LIST_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Update_List
		}
		Event {
			key $VK_LBUTTON

			time { $SCALE_TIME * 2 + 23 }
			EvComm {
				low_obj 	"Update Option"
				time		$SCALE_TIME
				start_time	0
			}
			EvComm {
				rise_obj	"Update Option"
				time		$SCALE_TIME
				start_time	$SCALE_TIME
			}
			EvComm {
				move2screen	"Searching screen"
				start_time	{ $SCALE_TIME * 2 }
				time		10
			}
			EvComm {
				ext_event	$iEXT_UPDATE_SERVERS_LIST	0
				start_time	{ $SCALE_TIME * 2 + 11 }
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $SCALE_TIME * 2 + 12 }
				time		10
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 1 + 22 }
			EvComm {
				smooth_obj	"Update Option" 2
				start_time	0
				time		$SMOOTH_TIME
			}
			EvComm {
				scale_obj      "Update Option"        128
				start_time	$SMOOTH_TIME
				time		$SCALE_TIME
			}
			EvComm {
				smooth_obj	"Update Option" 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME }
				time		$SMOOTH_TIME
			}
			EvComm {
				rise_obj	"Update Option"
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
				time		$SCALE_TIME
			}
			EvComm {
				move2screen	"Searching screen"
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME * 2 }
				time		10
			}
			EvComm {
				ext_event	$iEXT_UPDATE_SERVERS_LIST	0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 10 }
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 11 }
				time		10
			}
		}
	}
}


Screen "Searching screen"
{
	screen_offs	0

	default_obj "SearchStr"

	Object "SearchStr"
	{
		align_x center
		y	{ $SEARCH_START_Y + $SEARCH_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Searching_Servers
		}
	}
	Object "WaitStr"
	{
		align_x center
		y	{ $SEARCH_START_Y + $SEARCH_DELTA_Y * 1 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Please_wait
		}
	}
}

Screen "Configuration screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	400

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR2_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Player_Settings
		}
	}
	Object "NameStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_NAME
		}
	}
	Object "PlayerStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "PlayerName"
			align_x center

			terrain_num	$TERRAIN3

			font		0
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	4

			EvComm {
				input_string	"PlayerName"       16
				time		2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 8
				start_time	3
			}
		}
	}
	Object "ColorStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_COLOR
		}
	}
	Trigger "ColorTrig" {
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 3 }

		num_state	10

		null_level	$DEFAULT_NULL

		State 3 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_YELLOW
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_ORANGE
			null_level	$DEFAULT_NULL
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_BLUE
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_GREEN
			null_level	$DEFAULT_NULL
		}
		State 4 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_RED
			null_level	$DEFAULT_NULL
		}
		State 5 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_WHITE
			null_level	$DEFAULT_NULL
		}
		State 6 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_GRAY
			null_level	$DEFAULT_NULL
		}
		State 7 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_BLACK
			null_level	$DEFAULT_NULL
		}
		State 8 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_CAMOUFLAGE
			null_level	$DEFAULT_NULL
		}
		State 9 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			string		$iSTR_PATROL
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 2 }
			EvComm {
				change_trigger	"ColorTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 9
				start_time	{ $TRIGGER_TIME + 1 }
			}
		}
	}
}

Screen "Failed screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "ConnectStr"
	{
		align_x center
		y	{ $SEARCH_START_Y + $SEARCH_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Connection_failed
		}
	}

	Object "Back Option"
	{
		align_x center
		y	{ $SEARCH_START_Y + $SEARCH_DELTA_Y * 1 + 10 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Search server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
}

#define KEY_STR_OBJECT	Object $KEY_STR_NAME							\
			{									\
				align_x right							\
				align_x_offs	$KEYS0_X					\
				y		{ $KEYS0_START_Y + $KEYS0_DELTA_Y * $KEY_Y }	\
												\
				Element STRING {						\
					align_x 	center					\
												\
					terrain_num	$TERRAIN2				\
												\
					space		1					\
					font		3					\
					null_level	$DEFAULT_NULL				\
					string		$KEY_STRING				\
				}								\
			}

#define KEY_ID_OBJECT	Object $KEY_STR_NAME							\
			{									\
				x	{ 830 - $KEYS0_X }					\
				y		{ $KEYS0_START_Y + $KEYS0_DELTA_Y * $KEY_Y }	\
												\
				Element STRING {						\
					id		$KEY_ID 				\
					align_x 	center					\
												\
					terrain_num	$TERRAIN4				\
												\
					key_text						\
												\
					space		1					\
					font		$KEY_OBJ_FONT				\
					null_level	$DEFAULT_NULL				\
					string		$KEY_STRING				\
				}								\
				Event { 							\
					key $VK_LBUTTON 					\
												\
					time 5							\
												\
					EvComm {						\
						input_string	$KEY_ID 	15		\
						time		2				\
					}							\
					EvComm {						\
						ext_event	$iEXT_INIT_CONTROL	$KEY_NUM	\
						start_time	3				\
					}							\
				}								\
				Event { 							\
					key $VK_RBUTTON 					\
												\
					time 2							\
												\
					EvComm {						\
						ext_event	$iEXT_DELETE_CONTROL	  $KEY_NUM	  \
					}							\
				}								\
			}

#define KEY_ID_OBJECT2	Object $KEY_STR_NAME							\
			{									\
				x	{ 1050 - $KEYS0_X }					\
				y		{ $KEYS0_START_Y + $KEYS0_DELTA_Y * $KEY_Y }	\
												\
				Element STRING {						\
					id		$KEY_ID 				\
					align_x 	center					\
												\
					terrain_num	$TERRAIN4				\
												\
					key_text						\
												\
					space		1					\
					font		$KEY_OBJ_FONT				\
					null_level	$DEFAULT_NULL				\
					string		$KEY_STRING				\
				}								\
				Event { 							\
					key $VK_LBUTTON 					\
												\
					time 5							\
												\
					EvComm {						\
						input_string	$KEY_ID 	15		\
						time		2				\
					}							\
					EvComm {						\
						ext_event	$iEXT_INIT_CONTROL	{ $KEY_NUM + 256 }	\
						start_time	3				\
					}							\
				}								\
				Event { 							\
					key $VK_RBUTTON 					\
												\
					time 2							\
					EvComm {						\
						ext_event	$iEXT_DELETE_CONTROL	  { $KEY_NUM + 256 }	  \
					}							\
				}								\
			}

#define BACK_OBJ	Object "Back Option"                                            \
			{								\
				x	$Controls_screen_Back_Option_PosX		\
				y	$Controls_screen_Back_Option_PosY		\
											\
				Element STRING {					\
					align_x center					\
											\
					terrain_num	$TERRAIN2			\
											\
					font		0				\
					null_level	$DEFAULT_NULL			\
					string		$iSTR_BACK			    \
				}							\
				Event { 						\
					key $VK_LBUTTON 				\
					key $VK_PRIOR					\
											\
					time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }	\
					EvComm {					\
						low_obj 	"Back Option"           \
						time		$PRESS_OBJ_TIME 	\
						start_time	0			\
					}						\
					EvComm {					\
						move2screen	$PREV_SCR		\
						start_time	$PRESS_OBJ_TIME 	\
						time		$MOVE2SCREEN_TIME	\
					}						\
				}							\
				Event { 						\
					key $VK_RBUTTON 				\
											\
					time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 } \
					EvComm {					\
						smooth_obj	"Back Option" 2         \
						start_time	0			\
						time		$SMOOTH_OBJ_TIME	\
					}						\
					EvComm {					\
						hide_obj	"Back Option"           \
						start_time	$SMOOTH_OBJ_TIME	\
						time		$HIDE_OBJ_TIME		\
					}						\
					EvComm {					\
						move2screen	$PREV_SCR		\
						start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME } \
						time		$MOVE2SCREEN_TIME	\
					}						\
				}							\
			}

#define MORE_OBJ	Object "More Option"                                            \
			{								\
				x	$Controls_screen_More_Option_PosX		\
				y	$Controls_screen_More_Option_PosY		\
											\
				Element STRING {					\
					align_x center					\
											\
					terrain_num	$TERRAIN2			\
											\
					font		0				\
					null_level	$DEFAULT_NULL			\
					string		$iSTR_MORE			\
				}							\
				Event { 						\
					key $VK_LBUTTON 				\
					key $VK_NEXT					\
											\
					time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }	\
					EvComm {					\
						low_obj 	"More Option"           \
						time		$PRESS_OBJ_TIME 	\
						start_time	0			\
					}						\
					EvComm {					\
						move2screen	$NEXT_SCR		\
						start_time	$PRESS_OBJ_TIME 	\
						time		$MOVE2SCREEN_TIME	\
					}						\
				}							\
				Event { 						\
					key $VK_RBUTTON 				\
											\
					time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 } \
					EvComm {					\
						smooth_obj	"More Option" 2         \
						start_time	0			\
						time		$SMOOTH_OBJ_TIME	\
					}						\
					EvComm {					\
						hide_obj	"More Option"           \
						start_time	$SMOOTH_OBJ_TIME	\
						time		$HIDE_OBJ_TIME		\
					}						\
					EvComm {					\
						move2screen	$NEXT_SCR		\
						start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }	\
						time		$MOVE2SCREEN_TIME	\
					}						\
				}							\
			}

Screen "Controls screen"
{
	screen_offs	800

	default_obj "Back Option"

	Event {
		key	$VK_ESCAPE

		time { $MOVE2SCREEN_TIME + 1 }
		EvComm {
			move2screen	"Controls screen2"
			time		$MOVE2SCREEN_TIME
		}
	}

	Object "TitleStr2"
	{
		align_x center
		y	{ $TITLE_STR_Y - 10 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Movement
		}
	}

	Object "Defaults Option"
	{
		align_x center
		y	$Controls_screen_Defaults_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_RESTORE_ALL
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Defaults Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Defaults Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				smooth_obj	"Defaults Option"	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				start_time	{ $SMOOTH_OBJ_TIME * 2 + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}

	Object "Menu Option"
	{
		align_x center
		y	$Controls_screen_Menu_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_TO_MENU
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$PRESS_OBJ_TIME
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Menu Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}
	}

	Object "AutoAccelerationObj"
	{
		x	$KEEP_STR_X
		y	{ $GRAPHICS_SCR_START_Y + $GRAPHICS_SCR_DELTA_Y * 7 }

		align_x right
		align_x_offs	$KEYS0_X
		y	{ $KEYS0_START_Y + $KEYS0_DELTA_Y * 7 }

		Element STRING {
			space		$OPTION_SPACE
			align_x 	center

			terrain_num	$TERRAIN2

			font		$GRAPHICS_FONT
			null_level	$DEFAULT_NULL
			string		$iSTR_Auto_acceleration
		}
	}
	Trigger "AutoAccelerationTrig" {
		x	{ 830 - $KEYS0_X }
		y	{ $KEYS0_START_Y + $KEYS0_DELTA_Y * 7 }

		num_state	2

		null_level	$DEFAULT_NULL

		State 1 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_ENABLED
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			font		$GRAPHICS_FONT
			space		$OPTION_SPACE
			terrain_num	$TERRAIN4

			string		$iSTR_DISABLED
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"AutoAccelerationTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_KEEP_OPTIONS 0
				start_time	{ $TRIGGER_TIME / 2 }
			}
		}
	}

	#define PREV_SCR	"Controls screen 5"
	#define NEXT_SCR	"Controls screen 2"
	$BACK_OBJ
	$MORE_OBJ

	#define KEY_Y		0
	#define KEY_NUM 	3
	#define KEY_STR_NAME	"KeyStr3"
	#define KEY_STRING	$iSTR_Move_forward
	$KEY_STR_OBJECT
	#define KEY_Y		0
	#define KEY_STR_NAME	"KeyName3"
	#define KEY_STRING	"Up"
	#define KEY_ID		"KeyID3"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName3_1"
	#define KEY_STRING	"Up"
	#define KEY_ID		"KeyID3_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		1
	#define KEY_NUM 	4
	#define KEY_STR_NAME	"KeyStr4"
	#define KEY_STRING	$iSTR_Move_backward
	$KEY_STR_OBJECT
	#define KEY_Y		1
	#define KEY_STR_NAME	"KeyName4"
	#define KEY_STRING	"Down"
	#define KEY_ID		"KeyID4"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName4_1"
	#define KEY_STRING	"Down"
	#define KEY_ID		"KeyID4_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		2
	#define KEY_NUM 	1
	#define KEY_STR_NAME	"KeyStr1"
	#define KEY_STRING	$iSTR_Turn_wheels_left
	$KEY_STR_OBJECT
	#define KEY_Y		2
	#define KEY_STR_NAME	"KeyName1"
	#define KEY_STRING	"Left"
	#define KEY_ID		"KeyID1"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName1_1"
	#define KEY_STRING	"Left"
	#define KEY_ID		"KeyID1_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		3
	#define KEY_NUM 	2
	#define KEY_STR_NAME	"KeyStr2"
	#define KEY_STRING	$iSTR_Turn_wheels_right
	$KEY_STR_OBJECT
	#define KEY_Y		3
	#define KEY_STR_NAME	"KeyName2"
	#define KEY_STRING	"Right"
	#define KEY_ID		"KeyID2"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName2_1"
	#define KEY_STRING	"Right"
	#define KEY_ID		"KeyID2_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		4
	#define KEY_NUM 	9
	#define KEY_STR_NAME	"KeyStr9"
	#define KEY_STRING	$iSTR_Activate_KiD
	$KEY_STR_OBJECT
	#define KEY_Y		4
	#define KEY_STR_NAME	"KeyName9"
	#define KEY_STRING	"Ins"
	#define KEY_ID		"KeyID9"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName9_1"
	#define KEY_STRING	"Ins"
	#define KEY_ID		"KeyID9_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		5
	#define KEY_NUM 	29
	#define KEY_STR_NAME	"KeyStr29"
	#define KEY_STRING	$iSTR_Handbrake
	$KEY_STR_OBJECT
	#define KEY_Y		5
	#define KEY_STR_NAME	"KeyName29"
	#define KEY_STRING	"C"
	#define KEY_ID		"KeyID29"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName29_1"
	#define KEY_STRING	"C"
	#define KEY_ID		"KeyID29_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		6
	#define KEY_NUM 	10
	#define KEY_STR_NAME	"KeyStr10"
	#define KEY_STRING	$iSTR_Acceleration
	$KEY_STR_OBJECT
	#define KEY_Y		6
	#define KEY_STR_NAME	"KeyName10"
	#define KEY_STRING	"Shift"
	#define KEY_ID		"KeyID10"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName10_1"
	#define KEY_STRING	"Shift"
	#define KEY_ID		"KeyID10_1"
	$KEY_ID_OBJECT2
}

Screen "Controls screen 2"
{
	screen_offs	800

	default_obj "Back Option"

	Event {
		key	$VK_ESCAPE

		time { $MOVE2SCREEN_TIME + 1 }
		EvComm {
			move2screen	"Controls screen2"
			time		$MOVE2SCREEN_TIME
		}
	}

	Object "TitleStr2"
	{
		align_x center
		y	{ $TITLE_STR_Y - 10 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Utility
		}
	}

	Object "Defaults Option"
	{
		align_x center
		y	$Controls_screen_Defaults_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_RESTORE_ALL
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Defaults Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Defaults Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				smooth_obj	"Defaults Option"	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				start_time	{ $SMOOTH_OBJ_TIME * 2 + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}

	Object "Menu Option"
	{
		align_x center
		y	$Controls_screen_Menu_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_TO_MENU
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$PRESS_OBJ_TIME
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Menu Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}
	}

	#define PREV_SCR	"Controls screen"
	#define NEXT_SCR	"Controls screen 3"
	$BACK_OBJ
	$MORE_OBJ

	#define KEY_Y		0
	#define KEY_NUM 	13
	#define KEY_STR_NAME	"KeyStr13"
	#define KEY_STRING	$iSTR_Open
	$KEY_STR_OBJECT
	#define KEY_Y		0
	#define KEY_STR_NAME	"KeyName13"
	#define KEY_STRING	"Space"
	#define KEY_ID		"KeyID13"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName13_1"
	#define KEY_STRING	"Space"
	#define KEY_ID		"KeyID13_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		1
	#define KEY_NUM 	12
	#define KEY_STR_NAME	"KeyStr12"
	#define KEY_STRING	$iSTR_Inventory_ON_OFF
	$KEY_STR_OBJECT
	#define KEY_Y		1
	#define KEY_STR_NAME	"KeyName12"
	#define KEY_STRING	"Enter"
	#define KEY_ID		"KeyID12"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName12_1"
	#define KEY_STRING	"Enter"
	#define KEY_ID		"KeyID12_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		2
	#define KEY_NUM 	5
	#define KEY_STR_NAME	"KeyStr5"
	#define KEY_STRING	$iSTR_Turn_over_left
	$KEY_STR_OBJECT
	#define KEY_Y		2
	#define KEY_STR_NAME	"KeyName5"
	#define KEY_STRING	"End"
	#define KEY_ID		"KeyID5"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName5_1"
	#define KEY_STRING	"End"
	#define KEY_ID		"KeyID5_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		3
	#define KEY_NUM 	6
	#define KEY_STR_NAME	"KeyStr6"
	#define KEY_STRING	$iSTR_Turn_over_right
	$KEY_STR_OBJECT
	#define KEY_Y		3
	#define KEY_STR_NAME	"KeyName6"
	#define KEY_STRING	"Pg Dn"
	#define KEY_ID		"KeyID6"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName6_1"
	#define KEY_STRING	"Pg Dn"
	#define KEY_ID		"KeyID6_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		5
	#define KEY_NUM 	7
	#define KEY_STR_NAME	"KeyStr7"
	#define KEY_STRING	$iSTR_Turn_device_ON
	$KEY_STR_OBJECT
	#define KEY_Y		5
	#define KEY_STR_NAME	"KeyName7"
	#define KEY_STRING	"Home"
	#define KEY_ID		"KeyID7"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName7_1"
	#define KEY_STRING	"Home"
	#define KEY_ID		"KeyID7_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		6
	#define KEY_NUM 	8
	#define KEY_STR_NAME	"KeyStr8"
	#define KEY_STRING	$iSTR_Turn_device_OFF
	$KEY_STR_OBJECT
	#define KEY_Y		6
	#define KEY_STR_NAME	"KeyName8"
	#define KEY_STRING	"Pg Up"
	#define KEY_ID		"KeyID8"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName8_1"
	#define KEY_STRING	"Pg Up"
	#define KEY_ID		"KeyID8_1"
	$KEY_ID_OBJECT2
}

Screen "Controls screen 3"
{
	screen_offs	800

	default_obj "Back Option"

	Event {
		key	$VK_ESCAPE

		time { $MOVE2SCREEN_TIME + 1 }
		EvComm {
			move2screen	"Controls screen2"
			time		$MOVE2SCREEN_TIME
		}
	}

	Object "TitleStr2"
		{
		align_x center
		y	{ $TITLE_STR_Y - 10 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Combat
		}
	}

	Object "Defaults Option"
	{
		align_x center
		y	$Controls_screen_Defaults_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_RESTORE_ALL
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Defaults Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Defaults Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				smooth_obj	"Defaults Option"	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				start_time	{ $SMOOTH_OBJ_TIME * 2 + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}

	Object "Menu Option"
	{
		align_x center
		y	$Controls_screen_Menu_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_TO_MENU
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$PRESS_OBJ_TIME
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Menu Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}
	}

	#define PREV_SCR	"Controls screen 2"
	#define NEXT_SCR	"Controls screen 4"
	$BACK_OBJ
	$MORE_OBJ

	#define KEY_Y		0
	#define KEY_NUM 	18
	#define KEY_STR_NAME	"KeyStr18"
	#define KEY_STRING	$iSTR_Fire_all_weapons
	$KEY_STR_OBJECT
	#define KEY_Y		0
	#define KEY_STR_NAME	"KeyName18"
	#define KEY_STRING	"Ctrl"
	#define KEY_ID		"KeyID18"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName18_1"
	#define KEY_STRING	"Ctrl"
	#define KEY_ID		"KeyID18_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		1
	#define KEY_NUM 	17
	#define KEY_STR_NAME	"KeyStr17"
	#define KEY_STRING	$iSTR_Fire_weapon_4
	$KEY_STR_OBJECT
	#define KEY_Y		1
	#define KEY_STR_NAME	"KeyName17"
	#define KEY_STRING	"4"
	#define KEY_ID		"KeyID17"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName17_1"
	#define KEY_STRING	"4"
	#define KEY_ID		"KeyID17_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		2
	#define KEY_NUM 	30
	#define KEY_STR_NAME	"KeyStr30"
	#define KEY_STRING	$iSTR_Use_Gluek
	$KEY_STR_OBJECT
	#define KEY_Y		2
	#define KEY_STR_NAME	"KeyName30"
	#define KEY_STRING	"5"
	#define KEY_ID		"KeyID30"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName30_1"
	#define KEY_STRING	"5"
	#define KEY_ID		"KeyID30_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		3
	#define KEY_NUM 	14
	#define KEY_STR_NAME	"KeyStr14"
	#define KEY_STRING	$iSTR_Fire_weapon_1
	$KEY_STR_OBJECT
	#define KEY_Y		3
	#define KEY_STR_NAME	"KeyName14"
	#define KEY_STRING	"1"
	#define KEY_ID		"KeyID14"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName14_1"
	#define KEY_STRING	"1"
	#define KEY_ID		"KeyID14_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		4
	#define KEY_NUM 	15
	#define KEY_STR_NAME	"KeyStr15"
	#define KEY_STRING	$iSTR_Fire_weapon_2
	$KEY_STR_OBJECT
	#define KEY_Y		4
	#define KEY_STR_NAME	"KeyName15"
	#define KEY_STRING	"2"
	#define KEY_ID		"KeyID15"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName15_1"
	#define KEY_STRING	"2"
	#define KEY_ID		"KeyID15_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		5
	#define KEY_NUM 	16
	#define KEY_STR_NAME	"KeyStr16"
	#define KEY_STRING	$iSTR_Fire_weapon_3
	$KEY_STR_OBJECT
	#define KEY_Y		5
	#define KEY_STR_NAME	"KeyName16"
	#define KEY_STRING	"3"
	#define KEY_ID		"KeyID16"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName16_1"
	#define KEY_STRING	"3"
	#define KEY_ID		"KeyID16_1"
	$KEY_ID_OBJECT2

	#define KEY_Y			6
	#define KEY_NUM			33
	#define KEY_STR_NAME	"KeyStr33"
	#define KEY_STRING		$iSTR_UseVector
	$KEY_STR_OBJECT
	#define KEY_Y			6
	#define KEY_STR_NAME	"KeyName33"
	#define KEY_STRING		"~"
	#define KEY_ID			"KeyID33"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName33_1"
	#define KEY_STRING		"~"
	#define KEY_ID			"KeyID33_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		7
	#define KEY_NUM 	19
	#define KEY_STR_NAME	"KeyStr19"
	#define KEY_STRING	$iSTR_Change_target
	$KEY_STR_OBJECT
	#define KEY_Y		7
	#define KEY_STR_NAME	"KeyName19"
	#define KEY_STRING	"Tab"
	#define KEY_ID		"KeyID19"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName19_1"
	#define KEY_STRING	"Tab"
	#define KEY_ID		"KeyID19_1"
	$KEY_ID_OBJECT2
}

Screen "Controls screen 4"
{
	screen_offs	800

	default_obj "Back Option"

	Event {
		key	$VK_ESCAPE

		time { $MOVE2SCREEN_TIME + 1 }
		EvComm {
			move2screen	"Controls screen2"
			time		$MOVE2SCREEN_TIME
		}
	}

	Object "TitleStr2"
		{
		align_x center
		y	{ $TITLE_STR_Y - 10 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Camera
		}
	}

	Object "Defaults Option"
	{
		align_x center
		y	$Controls_screen_Defaults_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_RESTORE_ALL
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Defaults Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Defaults Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				smooth_obj	"Defaults Option"	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				start_time	{ $SMOOTH_OBJ_TIME * 2 + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}

	Object "Menu Option"
	{
		align_x center
		y	$Controls_screen_Menu_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_TO_MENU
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$PRESS_OBJ_TIME
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Menu Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}
	}

	#define PREV_SCR	"Controls screen 3"
	#define NEXT_SCR	"Controls screen 5"
	$BACK_OBJ
	$MORE_OBJ

	#define KEY_Y		0
	#define KEY_NUM 	20
	#define KEY_STR_NAME	"KeyStr20"
	#define KEY_STRING	$iSTR_Full_screen
	$KEY_STR_OBJECT
	#define KEY_Y		0
	#define KEY_STR_NAME	"KeyName20"
	#define KEY_STRING	"F1"
	#define KEY_ID		"KeyID20"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName20_1"
	#define KEY_STRING	"F1"
	#define KEY_ID		"KeyID20_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		1
	#define KEY_NUM 	26
	#define KEY_STR_NAME	"KeyStr26"
	#define KEY_STRING	$iSTR_Zoom_in
	$KEY_STR_OBJECT
	#define KEY_Y		1
	#define KEY_STR_NAME	"KeyName26"
	#define KEY_STRING	"Plus"
	#define KEY_ID		"KeyID26"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName26_1"
	#define KEY_STRING	"Plus"
	#define KEY_ID		"KeyID26_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		2
	#define KEY_NUM 	27
	#define KEY_STR_NAME	"KeyStr27"
	#define KEY_STRING	$iSTR_Zoom_out
	$KEY_STR_OBJECT
	#define KEY_Y		2
	#define KEY_STR_NAME	"KeyName27"
	#define KEY_STRING	"Minus"
	#define KEY_ID		"KeyID27"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName27_1"
	#define KEY_STRING	"Minus"
	#define KEY_ID		"KeyID27_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		3
	#define KEY_NUM 	28
	#define KEY_STR_NAME	"KeyStr28"
	#define KEY_STRING	$iSTR_Standard_zoom
	$KEY_STR_OBJECT
	#define KEY_Y		3
	#define KEY_STR_NAME	"KeyName28"
	#define KEY_STRING	"0"
	#define KEY_ID		"KeyID28"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName28_1"
	#define KEY_STRING	"0"
	#define KEY_ID		"KeyID28_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		5
	#define KEY_NUM 	23
	#define KEY_STR_NAME	"KeyStr23"
	#define KEY_STRING	$iSTR_Rotation
	$KEY_STR_OBJECT
	#define KEY_Y		5
	#define KEY_STR_NAME	"KeyName23"
	#define KEY_STRING	"F5"
	#define KEY_ID		"KeyID23"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName23_1"
	#define KEY_STRING	"F5"
	#define KEY_ID		"KeyID23_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		6
	#define KEY_NUM 	25
	#define KEY_STR_NAME	"KeyStr25"
	#define KEY_STRING	$iSTR_Auto_tilt
	$KEY_STR_OBJECT
	#define KEY_Y		6
	#define KEY_STR_NAME	"KeyName25"
	#define KEY_STRING	"F7"
	#define KEY_ID		"KeyID25"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName25_1"
	#define KEY_STRING	"F7"
	#define KEY_ID		"KeyID25_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		7
	#define KEY_NUM 	24
	#define KEY_STR_NAME	"KeyStr24"
	#define KEY_STRING	$iSTR_Auto_zoom
	$KEY_STR_OBJECT
	#define KEY_Y		7
	#define KEY_STR_NAME	"KeyName24"
	#define KEY_STRING	"F6"
	#define KEY_ID		"KeyID24"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName24_1"
	#define KEY_STRING	"F6"
	#define KEY_ID		"KeyID24_1"
	$KEY_ID_OBJECT2
}

Screen "Controls screen 5"
{
	screen_offs	800

	default_obj "Back Option"

	Event {
		key	$VK_ESCAPE

		time { $MOVE2SCREEN_TIME + 1 }
		EvComm {
			move2screen	"Controls screen2"
			time		$MOVE2SCREEN_TIME
		}
	}

	Object "TitleStr2"
	{
		align_x center
		y	{ $TITLE_STR_Y - 10 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_MultiplayerAndMisc
		}
	}

	Object "Defaults Option"
	{
		align_x center
		y	$Controls_screen_Defaults_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_RESTORE_ALL
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Defaults Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Defaults Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_RESET_CONTROLS	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				smooth_obj	"Defaults Option"	0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				rise_obj	"Defaults Option"
				start_time	{ $SMOOTH_OBJ_TIME * 2 + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}

	Object "Menu Option"
	{
		align_x center
		y	$Controls_screen_Menu_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_TO_MENU
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Menu Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$PRESS_OBJ_TIME
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $HIDE_OBJ_TIME * 2 + $SMOOTH_OBJ_TIME * 2 }
			EvComm {
				smooth_obj	"Menu Option"	2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Menu Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
		}
	}

	#define PREV_SCR	"Controls screen 4"
	#define NEXT_SCR	"Controls screen"
	$BACK_OBJ
	$MORE_OBJ

	#define KEY_Y		0
	#define KEY_NUM 	35
	#define KEY_STR_NAME	"KeyStr35"
	#define KEY_STRING	$iSTR_ChatON
	$KEY_STR_OBJECT
	#define KEY_Y		0
	#define KEY_STR_NAME	"KeyName35"
	#define KEY_STRING	"F6"
	#define KEY_ID		"KeyID35"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName35_1"
	#define KEY_STRING	"F6"
	#define KEY_ID		"KeyID35_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		1
	#define KEY_NUM 	34
	#define KEY_STR_NAME	"KeyStr34"
	#define KEY_STRING	$iSTR_Statistics
	$KEY_STR_OBJECT
	#define KEY_Y		1
	#define KEY_STR_NAME	"KeyName34"
	#define KEY_STRING	"Plus"
	#define KEY_ID		"KeyID34"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName34_1"
	#define KEY_STRING	"Plus"
	#define KEY_ID		"KeyID34_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		3
	#define KEY_NUM 	37
	#define KEY_STR_NAME	"KeyStr37"
	#define KEY_STRING	$iSTR_Screenshot
	$KEY_STR_OBJECT
	#define KEY_Y		3
	#define KEY_STR_NAME	"KeyName37"
	#define KEY_STRING	"Plus"
	#define KEY_ID		"KeyID37"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName37_1"
	#define KEY_STRING	"Plus"
	#define KEY_ID		"KeyID37_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		4
	#define KEY_NUM 	32
	#define KEY_STR_NAME	"KeyStr32"
	#define KEY_STRING	$iSTR_SkipText
	$KEY_STR_OBJECT
	#define KEY_Y		4
	#define KEY_STR_NAME	"KeyName32"
	#define KEY_STRING	"Tab"
	#define KEY_ID		"KeyID32"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName32_1"
	#define KEY_STRING	"Tab"
	#define KEY_ID		"KeyID32_1"
	$KEY_ID_OBJECT2

	#define KEY_Y		5
	#define KEY_NUM 	36
	#define KEY_STR_NAME	"KeyStr36"
	#define KEY_STRING	$iSTR_ExitGame
	$KEY_STR_OBJECT
	#define KEY_Y		5
	#define KEY_STR_NAME	"KeyName36"
	#define KEY_STRING	"Left"
	#define KEY_ID		"KeyID36"
	$KEY_ID_OBJECT
	#define KEY_STR_NAME	"KeyName36_1"
	#define KEY_STRING	"Left"
	#define KEY_ID		"KeyID36_1"
	$KEY_ID_OBJECT2
}

#define GAME_OBJECT		align_x 	center												\
				y		{ $SELECT_SCREEN_START_Y + $SELECT_SCREEN_DELTA_Y * $GAME_Y }					\
																		\
				selectable_obj													\
				Element STRING {												\
					id		$GAME_STRING_ID 									\
					align_x 	center											\
																		\
					terrain_num	$TERRAIN2										\
																		\
					font		$GAME_FNT										\
					null_level	$DEFAULT_NULL										\
					string		$GAME_OBJ_ID										\
				}														\
				Event { 													\
					if_selected												\
					key $VK_LBUTTON 											\
					key $VK_RETURN												\
					key $VK_SPACE												\
					time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }							\
					EvComm {												\
						low_obj 	$GAME_OBJ_NAME									\
																		\
						start_time	0										\
						time		$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						ext_event	$iEXT_SELECT_GAME $GAME_Y							\
						start_time	0										\
					}													\
					EvComm {												\
						move2screen	$GAME_SCR									\
						start_time	$PRESS_OBJ_TIME 								\
						time		$MOVE2SCREEN_TIME								\
					}													\
				}														\
																		\
				Event { 													\
					if_not_selected 											\
					key $VK_RBUTTON 											\
																		\
					time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }			\
					EvComm {												\
						jump_obj	$GAME_OBJ_NAME									\
						start_time	$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						ext_event	$iEXT_SELECT_GAME $GAME_Y							\
						start_time	0										\
					}													\
					EvComm {												\
						smooth_obj	$GAME_OBJ_NAME	4								\
						start_time	$PRESS_OBJ_TIME 								\
						time		$SMOOTH_OBJ_TIME								\
					}													\
					EvComm {												\
						hide_obj	$GAME_OBJ_NAME									\
						start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }						\
						time		$HIDE_OBJ_TIME									\
					}													\
					EvComm {												\
						low_obj 	"SELECTED_OBJ"                                                                  \
						start_time	0										\
						time		$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						rise_obj	$GAME_OBJ_NAME									\
						start_time	0										\
						time		$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						move2screen	$GAME_OBJ_NAME									\
						start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME } 			\
						time		$MOVE2SCREEN_TIME								\
					}													\
				}														\
																		\
				Event { 													\
					if_selected												\
					key $VK_RBUTTON 											\
																		\
					time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }					\
					EvComm {												\
						ext_event	$iEXT_SELECT_GAME $GAME_Y							\
						start_time	0										\
					}													\
					EvComm {												\
						smooth_obj	$GAME_OBJ_NAME 4								\
						start_time	0										\
						time		$SMOOTH_OBJ_TIME								\
					}													\
					EvComm {												\
						hide_obj	$GAME_OBJ_NAME									\
						start_time	$SMOOTH_OBJ_TIME								\
						time		$HIDE_OBJ_TIME									\
					}													\
					EvComm {												\
						move2screen	$GAME_SCR									\
						start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }						\
						time		$MOVE2SCREEN_TIME								\
					}													\
				}

Screen "Select Game"
{
	default_obj "GameObj0"

	Object "TitleStr"
	{
		align_x center
		y	{ $TITLE_STR2_Y - 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_SELECT_GAME
		}
	}

	Object "Back Option"
	{
		x	$Select_Game_Back_Option_PosX
		y	$Select_Game_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Server Config screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server Config screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	#define GAME_Y		0
	#define GAME_OBJ_NAME	"GameObj0"
	#define GAME_OBJ_NEXT	"GameObj1"
	#define GAME_OBJ_PREV	"GameObj1"
	#define GAME_OBJ_ID	$iSTR_VAN_WAR
	#define GAME_SCR	"Game Params 0"
	#define GAME_STRING_ID	"GameStr0"

	#include "iscreen/scripts/gameobj.inc"

	#define GAME_Y		1
	#define GAME_OBJ_NAME	"GameObj1"
	#define GAME_OBJ_NEXT	"GameObj2"
	#define GAME_OBJ_PREV	"GameObj0"
	#define GAME_OBJ_ID	$iSTR_MECHOSOMA
	#define GAME_SCR	"Game Params 1"
	#define GAME_STRING_ID	"GameStr1"

	#include "iscreen/scripts/gameobj.inc"

	#define GAME_Y		2
	#define GAME_OBJ_NAME	"GameObj2"
//	  #define GAME_OBJ_NEXT   "GameObj3"
	#define GAME_OBJ_NEXT	"GameObj0"
	#define GAME_OBJ_PREV	"GameObj1"
	#define GAME_OBJ_ID	$iSTR_PASSEMBLOSS
	#define GAME_SCR	"Game Params 2"
	#define GAME_STRING_ID	"GameStr2"

	#include "iscreen/scripts/gameobj.inc"
/*
	#define GAME_Y		3
	#define GAME_OBJ_NAME	"GameObj3"
	#define GAME_OBJ_NEXT	"GameObj4"
	#define GAME_OBJ_PREV	"GameObj2"
	#define GAME_OBJ_ID	$iSTR_HUNTAGE
	#define GAME_SCR	"Game Params 3"
	#define GAME_STRING_ID	"GameStr3"


	#define GAME_Y		4
	#define GAME_OBJ_NAME	"GameObj4"
	#define GAME_OBJ_NEXT	"GameObj0"
	#define GAME_OBJ_PREV	"GameObj3"
	#define GAME_OBJ_ID	$iSTR_MUSTODONT
	#define GAME_SCR	"Game Params 4"
	#define GAME_STRING_ID	"GameStr4"
*/
}

Screen "Game Params 0"  // VAN-WAR
{
	#include "iscreen/scripts/gamescr.inc"

	Object "BirthStr"
	{
		x	$Game_Params_0_BirthStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 3 }

		Element STRING {
			align_x center

			space		$PARAMS_SPACE
			terrain_num	$TERRAIN2

			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Nascency
		}
	}
	Trigger "BirthTrig"
	{
		x	$Game_Params_0_BirthTrig_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 3 }

		not_unlock

		num_state	4

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Any_World
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Fostral
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Glorx
		}
		State 3 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Necross
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"BirthTrig"
				time $TRIGGER_TIME
			}
		}
	}

	Object "TeamStr"
	{
		x	$Game_Params_0_TeamStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Team_Mode
		}
	}
	Trigger "TeamTrig"
	{
		x	$Game_Params_0_TeamTrig_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		not_unlock

		num_state	2

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_OFF
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_ON
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"TeamTrig"
				time $TRIGGER_TIME
			}
		}
	}
	Object "AccessStr"
	{
		x	$Game_Params_0_AccessStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 5 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Access
		}
	}
	Trigger "AccessTrig"
	{
		x	$Game_Params_0_AccessTrig_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 5 }

		not_unlock

		num_state	2

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_All_Worlds
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_One_World
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"AccessTrig"
				time $TRIGGER_TIME
			}
		}
	}
	Object "MaxTimeStr"
	{
		x	$Game_Params_0_MaxTimeStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 7 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_MaxTime
		}
	}
	Object "MaxTimeMinStr"
	{
		x	$Game_Params_0_MaxTimeMinStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 7 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_min
		}
	}
	Object "MaxTimeNumberStr"
	{
		x	$Game_Params_0_MaxTimeNumberStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 7 }

		not_unlock

		Element STRING {
			id	"MaxTimeID"
			align_x center

			terrain_num	$TERRAIN4

			number_text

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		"100"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 2
			EvComm {
				input_string	"MaxTimeID"        4
				time		2
			}
		}
	}
	Object "MaxKillsStr"
	{
		x	$Game_Params_0_MaxKillsStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_MaxKills
		}
	}
	Object "MaxKillsNumberStr"
	{
		x	$Game_Params_0_MaxKillsNumberStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 6 }

		not_unlock

		Element STRING {
			id	"MaxKillsID"
			align_x center

			terrain_num	$TERRAIN4

			number_text

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		"100"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 2
			EvComm {
				input_string	"MaxKillsID"        4
				time		2
			}
		}
	}
}

Screen "Game Params 1"  // MECHOSOMA
{
	#include "iscreen/scripts/gamescr.inc"

	Object "WorldStr"
	{
		x	$Game_Params_1_WorldStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 3 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_World
		}
	}
	Trigger "WorldTrig"
	{
		x	$Game_Params_1_WorldTrig_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 3 }

		not_unlock

		num_state	3

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Fostral
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Glorx
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Necross
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"WorldTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				change_trigger	"ItemStrTrig1"
				time $TRIGGER_TIME
			}
			EvComm {
				change_trigger	"ItemStrTrig2"
				time $TRIGGER_TIME
			}
		}
	}
	Object "TeamStr"
	{
		x	$Game_Params_1_TeamStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Team_Mode
		}
	}
	Trigger "TeamTrig"
	{
		x	$Game_Params_1_TeamTrig_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 6 }

		not_unlock

		num_state	2

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_OFF
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_ON
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"TeamTrig"
				time $TRIGGER_TIME
			}
		}
	}
	Trigger "ItemStrTrig1"
	{
		x	$Game_Params_1_ItemStrTrig1_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		num_state	3

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Nymbos
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Heroin
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Toxick
		}
	}
	Trigger "ItemStrTrig2"
	{
		x	$Game_Params_1_ItemStrTrig2_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		num_state	3

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Phlegma
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Shrub
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Poponka
		}
	}
	Object "ItemsNumber1"
	{
		x	$Game_Params_1_ItemsNumber1_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		not_unlock

		Element STRING {
			id	"ItemsNumberID1"
			align_x center

			terrain_num	$TERRAIN4

			number_text

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		"10"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 2
			EvComm {
				input_string	"ItemsNumberID1"        3
				time		2
			}
		}
	}
	Object "ItemsNumber2"
	{
		x	$Game_Params_1_ItemsNumber2_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		not_unlock

		Element STRING {
			id	"ItemsNumberID2"
			align_x center

			terrain_num	$TERRAIN4

			number_text

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		"10"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 2
			EvComm {
				input_string	"ItemsNumberID2"        3
				time		2
			}
		}
	}
	Object "OneTimeStr"
	{
		x	$Game_Params_1_OneTimeStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 5 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_One_at_a_time
		}
	}
	Object "OneTimeNum"
	{
		x	$Game_Params_1_OneTimeNum_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 5 }

		not_unlock

		Element STRING {
			id	"OneTimeNumID"
			align_x center

			terrain_num	$TERRAIN4

			number_text

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		"10"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 2
			EvComm {
				input_string	"OneTimeNumID"        3
				time		2
			}
		}
	}
}

Screen "Game Params 2"  // PASSEMBLOSS
{
	#include "iscreen/scripts/gamescr.inc"

	Object "ChecksStr"
	{
		x	$NUM_CHECKS_STR_X
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Checkpoints_Number
		}
	}
	Object "ChecksInputStr"
	{
		x	$NUM_CHECKS_IN_STR_X
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		not_unlock

		Element STRING {
			id	"ChecksInputStrID"
			align_x center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		"10"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 2
			EvComm {
				input_string	"ChecksInputStrID"        3
				time		2
			}
		}
	}

	Object "EscaveStr"
  {
    x	$ESCAVE_BIRTH_STR_X
    y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 5 }

    Element STRING {
    	align_x center

    	terrain_num	$TERRAIN2

    	space		$PARAMS_SPACE
    	font		$PARAM_FNT
    	null_level	$DEFAULT_NULL
    	string		$iSTR_Nascency
    }
  }
  Trigger "EscaveTrig"
  {
  	x	$Game_Params_0_EscaveTrig_PosX
  	y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 5 }

  	not_unlock

  	num_state	4

  	State 0 "STRING"{
  		align_x center
  		align_y center

  		terrain_num	$TERRAIN4

  		space		$PARAMS_SPACE
  		font		$PARAM_FNT
  		null_level	$DEFAULT_NULL

  		string		$iSTR_Any_World
  	}
  	State 1 "STRING"{
  		align_x center
  		align_y center

  		terrain_num	$TERRAIN4

  		space		$PARAMS_SPACE
  		font		$PARAM_FNT
  		null_level	$DEFAULT_NULL

  		string		$iSTR_Fostral
  	}
  	State 2 "STRING"{
  		align_x center
  		align_y center

  		terrain_num	$TERRAIN4

  		space		$PARAMS_SPACE
  		font		$PARAM_FNT
  		null_level	$DEFAULT_NULL

  		string		$iSTR_Glorx
  	}
  	State 3 "STRING"{
  		align_x center
  		align_y center

  		terrain_num	$TERRAIN4

  		space		$PARAMS_SPACE
  		font		$PARAM_FNT
  		null_level	$DEFAULT_NULL

  		string		$iSTR_Necross
  	}
  	Event {
  		key $VK_LBUTTON
  		key $VK_RBUTTON

  		time { $TRIGGER_TIME + 1 }
  		EvComm {
  			change_trigger	"EscaveTrig"
  			time $TRIGGER_TIME
  		}
  	}
  }
}

Screen "Game Params 3"  // HUNTAGE
{
	#include "iscreen/scripts/gamescr.inc"
}

Screen "Game Params 4"  // MUSTODONT
{
	#include "iscreen/scripts/gamescr.inc"

	Object "MechosStr"
	{
		x	$MECHOS_STR_X
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 3 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Unique_Mechos
		}
	}
	Trigger "MechosTrig"
	{
		x	$MECHOS_TRG_X
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 3 }

		not_unlock

		num_state	5

		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Last_Moggy
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Queen_Frog
		}
		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Sandoll
		}
		State 3 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Lawn_Mower
		}
		State 4 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_Wormaster
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"MechosTrig"
				time $TRIGGER_TIME
			}
		}
	}

	Object "TeamStr"
	{
		x	$Game_Params_0_TeamStr_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL
			string		$iSTR_Team_Mode
		}
	}
	Trigger "TeamTrig"
	{
		x	$Game_Params_0_TeamTrig_PosX
		y	{ $PARAMS_START_Y + $PARAMS_DELTA_Y * 4 }

		not_unlock

		num_state	2

		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_OFF
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN4

			space		$PARAMS_SPACE
			font		$PARAM_FNT
			null_level	$DEFAULT_NULL

			string		$iSTR_ON
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"TeamTrig"
				time $TRIGGER_TIME
			}
		}
	}
}

Screen "Identification screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 7 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"iSearch server screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"iSearch server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	{ $TITLE_STR2_Y - 30 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_IDENTIFICATION
		}
	}
	Object "NameStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_NAME
		}
	}
	Object "PlayerStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "PlayerName"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"PlayerName"       16
				time		2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 20
				start_time	3
			}
		}
	}
	Object "ColorStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_COLOR
		}
	}
	Trigger "ColorTrig" {
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 3 }

		num_state	10

		null_level	$DEFAULT_NULL

		State 3 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_YELLOW
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_ORANGE
			null_level	$DEFAULT_NULL
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_BLUE
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_GREEN
			null_level	$DEFAULT_NULL
		}
		State 4 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_RED
			null_level	$DEFAULT_NULL
		}
		State 5 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_WHITE
			null_level	$DEFAULT_NULL
		}
		State 6 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_GRAY
			null_level	$DEFAULT_NULL
		}
		State 7 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_BLACK
			null_level	$DEFAULT_NULL
		}
		State 8 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_CAMOUFLAGE
			null_level	$DEFAULT_NULL
		}
		State 9 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_PATROL
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 2 }
			EvComm {
				change_trigger	"ColorTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 9
				start_time	{ $TRIGGER_TIME + 1 }
			}
		}
	}
	Object "PassStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 4 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_PASSWORD
		}
	}
	Object "PassInStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 5 }

		shadow_size	30

		Element STRING {
			id "PasswordString"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"PasswordString"       16
				time		2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 10
				start_time	3
			}
		}
	}
	Object "Ok Option"
	{
		align_x 	center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			multi_event

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 5 }
			EvComm {
				low_obj 	"Ok Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_CONNECT 0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Failed screen"
				start_time	{ $PRESS_OBJ_TIME + 1 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				end_event
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }

				event_line	1
			}
			EvComm {
				ext_event	$iEXT_CHECK_SERVER_CONFIG 0
				start_time	{ $PRESS_OBJ_TIME + 2 }

				event_line	2
			}
			EvComm {
				move2screen	"Server Config screen"
				start_time	{ $PRESS_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $PRESS_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
			EvComm {
				ext_event	$iEXT_UNLOCK_PARAMS 0
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	4
			}
			EvComm {
				ext_event	$iEXT_LOCK_PARAMS 0
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	3
			}
		}
		Event {
			key $VK_RBUTTON

			multi_event

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 5 }
			EvComm {
				smooth_obj	"Ok Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Ok Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_CONNECT 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				move2screen	"Failed screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				end_event
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }

				event_line	1
			}
			EvComm {
				ext_event	$iEXT_CHECK_SERVER_CONFIG 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 2 }

				event_line	2
			}
			EvComm {
				move2screen	"Server Config screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
			EvComm {
				ext_event	$iEXT_UNLOCK_PARAMS 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	4
			}
			EvComm {
				ext_event	$iEXT_LOCK_PARAMS 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	3
			}
		}
	}
}

Screen "Server Config screen"
{
	screen_offs	800

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_DISCONNECT
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				ext_event	$iEXT_DISCONNECT 0
				start_time	0
			}
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				ext_event	$iEXT_DISCONNECT 0
				start_time	0
			}
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Server_Configuration
		}
	}
	Object "ServerStr"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_NAME2
		}
	}
	Object "ServerNameStr"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "ServerName"
			align_x center

			terrain_num	$TERRAIN3

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"ServerName"       37
				time		2
			}
//			  EvComm {
//				  ext_event	  $iEXT_UPDATE_OPTION 10
//				  start_time	  3
//			  }
		}
	}
	Object "GameStr"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_GAME
		}
	}
	Object "GameNameID"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 3 }

		shadow_size	30

		Element STRING {
			id		"GameNameStr"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"GameNameID"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Select Game"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"GameNameID" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"GameNameID"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Select Game"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Ok Option"
	{
		align_x 	center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 5 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			multi_event

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"Ok Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_SEND_CONFIG_DATA 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				ext_event	$iEXT_LOCK_PARAMS 0
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }

				event_line	4
			}
			EvComm {
				move2screen	"Config Failed screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Ok Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Ok Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_SEND_CONFIG_DATA 0
				start_time	{ $HIDE_OBJ_TIME + $SMOOTH_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Config Failed screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
		}
	}
}

Screen "Config Failed screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	{ $CFG_FAILED_START_Y + $CFG_FAILED_DELTA_Y * 5 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Str0"
	{
		align_x center
		y	{ $CFG_FAILED_START_Y + $CFG_FAILED_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_THE_SERVER_HAS_ALREADY
		}
	}
	Object "Str1"
	{
		align_x center
		y	{ $CFG_FAILED_START_Y + $CFG_FAILED_DELTA_Y * 1 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BEEN_CONFIGURED_BY
		}
	}
	Object "Str2"
	{
		align_x center
		y	{ $CFG_FAILED_START_Y + $CFG_FAILED_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_ANOTHER_PLAYER
		}
	}
}

Screen "Server Info screen"
{
	screen_offs	800

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 8 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_DISCONNECT
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				ext_event	$iEXT_DISCONNECT 0
				start_time	0
			}
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				ext_event	$iEXT_DISCONNECT 0
				start_time	0
			}
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Server_Info
		}
	}
	Object "ServerStr"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_NAME2
		}
	}
	Object "ServerNameStr"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "ServerName"
			align_x center

			terrain_num	$TERRAIN3

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
	}
	Object "GameStr"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_GAME
		}
	}
	Object "GameNameID"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 3 }

		shadow_size	30

		Element STRING {
			id		"GameNameStr"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			multi_event

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"GameNameID"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_CHOOSE_PARAMS_SCREEN 0
				start_time	0
			}
			EvComm {
				move2screen	"Game Params 0"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				move2screen	"Game Params 1"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				move2screen	"Game Params 2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
			EvComm {
				move2screen	"Game Params 3"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Game Params 4"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	5
			}
			EvComm {
				set_event_line	3
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
		}
		Event {
			key $VK_RBUTTON

			multi_event

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				ext_event	$iEXT_CHOOSE_PARAMS_SCREEN 0
				start_time	0
			}
			EvComm {
				smooth_obj	"GameNameID"    2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"GameNameID"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Game Params 0"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				move2screen	"Game Params 1"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	2
			}
			EvComm {
				move2screen	"Game Params 2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
			EvComm {
				move2screen	"Game Params 3"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Game Params 4"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME

				event_line	5
			}
			EvComm {
				set_event_line	3
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
		}
	}
	Object "GameInfo Option"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 7 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_GameInfo
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"GameInfo Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_PREPARE_MP_RESULTS 0
				start_time	0
			}
			EvComm {
				move2screen	"MultiGame Results screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				ext_event	$iEXT_PREPARE_MP_RESULTS 0
				start_time 0
			}
			EvComm {
				smooth_obj	"GameInfo Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"GameInfo Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"MultiGame Results screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Chat Option"
	{
		x	$Server_Info_screen_Chat_Option_PosX
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_CHAT
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"Chat Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_ACTIVATE_CHAT 0
				start_time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
			EvComm {
				move2screen	"Chat screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				ext_event	$iEXT_ACTIVATE_CHAT 0
				start_time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
			EvComm {
				smooth_obj	"Chat Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Chat Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Chat screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "HallOfFame Option"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 5 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_HALL_OF_FAME
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"HallOfFame Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Select Game2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				smooth_obj	"HallOfFame Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"HallOfFame Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Select Game2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Game Option"
	{
		x	$Server_Info_screen_Game_Option_PosX
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_START
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"Game Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"LOADING"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				exit		1
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				smooth_obj	"Game Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Game Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"LOADING"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				exit		1
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
		}
	}
	Object "Player Option"
	{
		align_x center
		y	{ $MSERVER_START_Y + $MSERVER_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_PLAYER_SETUP
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Player Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Configuration screen 2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Player Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Player Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Configuration screen 2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
}

Screen "Chat screen"
{
	screen_offs	0

	block_global_obj
	default_obj "Server Option"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Chat_Room
		}
	}

	// "iscreen/scripts/i_chat.inc"

	Object "Server Option"
	{
		x	$Chat_screen_Server_Option_PosX
		y	$Chat_screen_Server_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_SERVER_INFO
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Server Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_DEACTIVATE_CHAT 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				ext_event	$iEXT_DEACTIVATE_CHAT 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME - 1 }
			}
			EvComm {
				smooth_obj	"Server Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Server Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Game Option"
	{
		x	$Chat_screen_Game_Option_PosX
		y	$Chat_screen_Game_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_START
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				low_obj 	"Game Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"LOADING2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				ext_event	$iEXT_DEACTIVATE_CHAT 0
				start_time	{ $PRESS_OBJ_TIME - 1 }
			}
			EvComm {
				exit		1
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
			EvComm {
				ext_event	$iEXT_DEACTIVATE_CHAT 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME - 1 }
			}
			EvComm {
				smooth_obj	"Game Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Game Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"LOADING2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				exit		1
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
		}
	}
}

Screen "iSearch server screen"
{
	screen_offs	800

	default_obj "Back Option"
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Internet_Servers
		}
	}

	Object "Back Option"
	{
		x	$iSearch_server_screen_Back_Option_PosX
		y	$iSearch_server_screen_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"INet Host screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"INet Host screen"
				start_time	{ $HIDE_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	#define SERVER_LIST_ITEM	"List00"
	#define SERVER_NUM		0
	Object "List00"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 0 }

		Element STRING {
			id	"ServerStr0"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List01"
	#define SERVER_NUM		1
	Object "List01"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 1 }

		Element STRING {
			id	"ServerStr1"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List02"
	#define SERVER_NUM		2
	Object "List02"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 2 }

		Element STRING {
			id	"ServerStr2"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List03"
	#define SERVER_NUM		3
	Object "List03"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 3 }

		Element STRING {
			id	"ServerStr3"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}
	#define SERVER_LIST_ITEM	"List04"
	#define SERVER_NUM		4
	Object "List04"
	{
		align_x center
		y	{ $SLIST_START_Y + $SLIST_DELTA_Y * 4 }

		Element STRING {
			id	"ServerStr4"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		$SERVER_LIST_ITEM_EVENTS
	}

	Object "Up Option"
	{
		x	$iSearch_server_screen_Up_Option_PosX
		y	$iSearch_server_screen_Up_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_UP
		}
		Event {
			key $VK_LBUTTON

			time { $SCALE_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Up Option"
				time		$SCALE_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_UP_iSERVERS_LIST	 0
				start_time	$SCALE_TIME
			}
			EvComm {
				rise_obj	"Up Option"
				time		$SCALE_TIME
				start_time	$SCALE_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 1 }
			EvComm {
				smooth_obj	"Up Option" 2
				start_time	0
				time		$SMOOTH_TIME
			}
			EvComm {
				scale_obj	"Up Option"     128
				start_time	$SMOOTH_TIME
				time		$SCALE_TIME
			}
			EvComm {
				ext_event	$iEXT_UP_iSERVERS_LIST	 0
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
			}
			EvComm {
				smooth_obj	"Up Option" 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME }
				time		$SMOOTH_TIME
			}
			EvComm {
				rise_obj	"Up Option"
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
				time		$SCALE_TIME
			}
		}
	}
	Object "Down Option"
	{
		x	$iSearch_server_screen_Down_Option_PosX
		y	$iSearch_server_screen_Down_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_DOWN
		}
		Event {
			key $VK_LBUTTON

			time { $SCALE_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Down Option"
				time		$SCALE_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_DN_iSERVERS_LIST	 0
				start_time	$SCALE_TIME
			}
			EvComm {
				rise_obj	"Down Option"
				time		$SCALE_TIME
				start_time	$SCALE_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 1 }
			EvComm {
				smooth_obj	"Down Option" 2
				start_time	0
				time		$SMOOTH_TIME
			}
			EvComm {
				scale_obj	"Down Option"   128
				start_time	$SMOOTH_TIME
				time		$SCALE_TIME
			}
			EvComm {
				smooth_obj	"Down Option" 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME }
				time		$SMOOTH_TIME
			}
			EvComm {
				ext_event	$iEXT_DN_iSERVERS_LIST	 0
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
			}
			EvComm {
				rise_obj	"Down Option"
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
				time		$SCALE_TIME
			}
		}
	}
	Object "Update Option"
	{
//		  x	  $UPDATE_LIST_X
		align_x center
		y	$UPDATE_LIST_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Update_List
		}
		Event {
			key $VK_LBUTTON

			time { $SCALE_TIME * 2 + 23 }
			EvComm {
				low_obj 	"Update Option"
				time		$SCALE_TIME
				start_time	0
			}
			EvComm {
				rise_obj	"Update Option"
				time		$SCALE_TIME
				start_time	$SCALE_TIME
			}
			EvComm {
				move2screen	"Searching screen"
				start_time	{ $SCALE_TIME * 2 }
				time		10
			}
			EvComm {
				ext_event	$iEXT_UPDATE_iSERVERS_LIST	 0
				start_time	{ $SCALE_TIME * 2 + 11 }
			}
			EvComm {
				move2screen	"iSearch server screen"
				start_time	{ $SCALE_TIME * 2 + 12 }
				time		10
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 1 + 22 }
			EvComm {
				smooth_obj	"Update Option" 2
				start_time	0
				time		$SMOOTH_TIME
			}
			EvComm {
				scale_obj      "Update Option"        128
				start_time	$SMOOTH_TIME
				time		$SCALE_TIME
			}
			EvComm {
				smooth_obj	"Update Option" 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME }
				time		$SMOOTH_TIME
			}
			EvComm {
				rise_obj	"Update Option"
				start_time	{ $SCALE_TIME + $SMOOTH_TIME }
				time		$SCALE_TIME
			}
			EvComm {
				move2screen	"Searching screen"
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME * 2 }
				time		10
			}
			EvComm {
				ext_event	$iEXT_UPDATE_iSERVERS_LIST	 0
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 10 }
			}
			EvComm {
				move2screen	"iSearch server screen"
				start_time	{ $SCALE_TIME * 2 + $SMOOTH_TIME * 2 + 11 }
				time		10
			}
		}
	}
}



#define RES_PLACE_OBJ	x	$RESULTS_PLACE_X					\
			y	{ $RESULTS_START_Y + $RESULTS_DELTA_Y * $RES_PLACE_ID } \
											\
			Element STRING {						\
				id		$RESULT_STR_ID				\
											\
				align_x center						\
											\
				terrain_num	$TERRAIN4				\
											\
				space		$RESULT_SPACE				\
				font		$RESULT_FONT				\
				null_level	$DEFAULT_NULL				\
				string		"XXXXXXXX"                                   \
			}

#define RES_STRING_OBJ	x	$RESULTS_STRING_X					\
			y	{ $RESULTS_START_Y + $RESULTS_DELTA_Y * $RES_PLACE_ID } \
											\
			not_unlock							\
			Element STRING {						\
				id		$RESULT_STR_ID				\
											\
				align_x center						\
											\
				terrain_num	$TERRAIN4				\
											\
				space		$RESULT_SPACE				\
				font		$RESULT_FONT				\
				null_level	$DEFAULT_NULL				\
				string		"XXXXXXXXXXXXXXXXXXXXXXXXXXX"           \
			}

#define RES_OBJ_EV	Event { 									\
				key $VK_LBUTTON 							\
				key $VK_ESCAPE								\
													\
				time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }			\
				EvComm {								\
					ext_event	$iEXT_INIT_RESULT $RES_PLACE_ID 		\
					start_time	0						\
				}									\
				EvComm {								\
					low_obj 	$RES_OBJ_ID					\
					time		$PRESS_OBJ_TIME 				\
					start_time	0						\
				}									\
				EvComm {								\
					move2screen	"MultiGame Results screen 2"                    \
					start_time	$PRESS_OBJ_TIME 				\
					time		$MOVE2SCREEN_TIME				\
				}									\
			}										\
			Event { 									\
				key $VK_RBUTTON 							\
													\
				time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }	\
				EvComm {								\
					ext_event	$iEXT_INIT_RESULT $RES_PLACE_ID 		\
					start_time	0						\
				}									\
				EvComm {								\
					smooth_obj	$RES_OBJ_ID 2					\
					start_time	0						\
					time		$SMOOTH_OBJ_TIME				\
				}									\
				EvComm {								\
					hide_obj	 $RES_OBJ_ID					\
					start_time	$SMOOTH_OBJ_TIME				\
					time		$HIDE_OBJ_TIME					\
				}									\
				EvComm {								\
					move2screen	"MultiGame Results screen 2"                    \
					start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }		\
					time		$MOVE2SCREEN_TIME				\
				}									\
			}

#define RES_NUMBER_OBJ	x	$RESULTS_NUMBER_X					\
			y	{ $RESULTS_START_Y + $RESULTS_DELTA_Y * $RES_PLACE_ID } \
											\
			Element STRING {						\
				id		$RESULT_STR_ID				\
											\
				align_x center						\
											\
				terrain_num	$TERRAIN4				\
											\
				space		$RESULT_SPACE				\
				font		$RESULT_FONT				\
				null_level	$DEFAULT_NULL				\
				string		"XXXXXXXXXX"                            \
			}

Screen "MultiGame Results screen"
{
	screen_offs	0

	default_obj "Back Option"

	#define RES_PLACE_ID	0
	#define RESULT_STR_ID	"PlaceStr0"
	#define RES_OBJ_ID	"Prm0"
	Object "Place0" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr0"
	Object "Prm0" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr0"
	Object "PrmNum0" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	1
	#define RESULT_STR_ID	"PlaceStr1"
	#define RES_OBJ_ID	"Prm1"
	Object "Place1" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr1"
	Object "Prm1" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr1"
	Object "PrmNum1" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	2
	#define RESULT_STR_ID	"PlaceStr2"
	#define RES_OBJ_ID	"Prm2"
	Object "Place2" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr2"
	Object "Prm2" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr2"
	Object "PrmNum2" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	3
	#define RESULT_STR_ID	"PlaceStr3"
	#define RES_OBJ_ID	"Prm3"
	Object "Place3" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr3"
	Object "Prm3" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr3"
	Object "PrmNum3" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	4
	#define RESULT_STR_ID	"PlaceStr4"
	#define RES_OBJ_ID	"Prm4"
	Object "Place4" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr4"
	Object "Prm4" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr4"
	Object "PrmNum4" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	5
	#define RESULT_STR_ID	"PlaceStr5"
	#define RES_OBJ_ID	"Prm5"
	Object "Place5" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr5"
	Object "Prm5" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr5"
	Object "PrmNum5" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	6
	#define RESULT_STR_ID	"PlaceStr6"
	#define RES_OBJ_ID	"Prm6"
	Object "Place6" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr6"
	Object "Prm6" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr6"
	Object "PrmNum6" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	7
	#define RESULT_STR_ID	"PlaceStr7"
	#define RES_OBJ_ID	"Prm7"
	Object "Place7" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr7"
	Object "Prm7" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr7"
	Object "PrmNum7" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	8
	#define RESULT_STR_ID	"PlaceStr8"
	#define RES_OBJ_ID	"Prm8"
	Object "Place8" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr8"
	Object "Prm8" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr8"
	Object "PrmNum8" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	9
	#define RESULT_STR_ID	"PlaceStr9"
	#define RES_OBJ_ID	"Prm9"
	Object "Place9" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr9"
	Object "Prm9" {
		$RES_STRING_OBJ
		$RES_OBJ_EV
	}
	#define RESULT_STR_ID	"NumStr9"
	Object "PrmNum9" {
		$RES_NUMBER_OBJ
	}

	Object "Back Option" {
		x	{ $HallOfFame_screen_Back_Option_PosX + 20 }
		y	$HallOfFame_screen_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			multi_event

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_CHECK_END_FLAG 0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 5
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Game_Results
		}
	}
}

Screen "MultiGame Results screen 2"
{
	screen_offs	800

	default_obj "Back Option"

	#define RES_PLACE_ID	0
	#define RESULT_STR_ID	"PlaceStr0"
	Object "Place0" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr0"
	Object "Prm0" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr0"
	Object "PrmNum0" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	1
	#define RESULT_STR_ID	"PlaceStr1"
	Object "Place1" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr1"
	Object "Prm1" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr1"
	Object "PrmNum1" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	2
	#define RESULT_STR_ID	"PlaceStr2"
	Object "Place2" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr2"
	Object "Prm2" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr2"
	Object "PrmNum2" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	3
	#define RESULT_STR_ID	"PlaceStr3"
	Object "Place3" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr3"
	Object "Prm3" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr3"
	Object "PrmNum3" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	4
	#define RESULT_STR_ID	"PlaceStr4"
	Object "Place4" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr4"
	Object "Prm4" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr4"
	Object "PrmNum4" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	5
	#define RESULT_STR_ID	"PlaceStr5"
	Object "Place5" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr5"
	Object "Prm5" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr5"
	Object "PrmNum5" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	6
	#define RESULT_STR_ID	"PlaceStr6"
	Object "Place6" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr6"
	Object "Prm6" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr6"
	Object "PrmNum6" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	7
	#define RESULT_STR_ID	"PlaceStr7"
	Object "Place7" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr7"
	Object "Prm7" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr7"
	Object "PrmNum7" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	8
	#define RESULT_STR_ID	"PlaceStr8"
	Object "Place8" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr8"
	Object "Prm8" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr8"
	Object "PrmNum8" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	9
	#define RESULT_STR_ID	"PlaceStr9"
	Object "Place9" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr9"
	Object "Prm9" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr9"
	Object "PrmNum9" {
		$RES_NUMBER_OBJ
	}

	Object "Back Option" {
		x	$HallOfFame_screen_Back_Option_PosX
		y	$HallOfFame_screen_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"MultiGame Results screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 5
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"MultiGame Results screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Game_Results
		}
	}
}

Screen "Configuration screen 2"
{
	screen_offs	0

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	400

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR2_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Player_Settings
		}
	}
	Object "NameStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_NAME
		}
	}
	Object "PlayerStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "PlayerName"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
/*
		Event {
			key	$VK_LBUTTON
			time	4

			EvComm {
				input_string	"PlayerName"       16
				time		2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 8
				start_time	3
			}
		}
*/
	}
	Object "ColorStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_COLOR
		}
	}
	Trigger "ColorTrig" {
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 3 }

		num_state	10

		null_level	$DEFAULT_NULL

		State 3 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_YELLOW
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_ORANGE
			null_level	$DEFAULT_NULL
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_BLUE
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_GREEN
			null_level	$DEFAULT_NULL
		}
		State 4 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_RED
			null_level	$DEFAULT_NULL
		}
		State 5 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_WHITE
			null_level	$DEFAULT_NULL
		}
		State 6 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_GRAY
			null_level	$DEFAULT_NULL
		}
		State 7 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_BLACK
			null_level	$DEFAULT_NULL
		}
		State 8 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_CAMOUFLAGE
			null_level	$DEFAULT_NULL
		}
		State 9 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_PATROL
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 2 }
			EvComm {
				change_trigger	"ColorTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 28
				start_time	{ $TRIGGER_TIME + 1 }
			}
		}
	}
}

Screen "Controls screen2"
{
	screen_offs	0

	default_obj "Go to Controls Screen 1"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Controls
		}
	}
	Object "Back Option"
	{
		align_x center
		y	$OPTIONS_BACK_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Options screen II"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	/*Object "Joystick Option"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 0 }

		not_unlock

		selectable_obj
		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JOYSTICK_SETUP
		}
		Event {
			if_selected
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Joystick Option"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Joystick screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Joystick Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Joystick Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Joystick Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Joystick Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Joystick screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Joystick Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Joystick Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Joystick screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Joystick Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Joystick Option"
		#define OBJ2	"Customize Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Joystick Option"
		#define OBJ2	"Customize Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}
	}*/

	/*Object "Customize Option"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 1 }

		selectable_obj
		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_CUSTOMIZE
		}
		Event {
			if_selected
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Customize Option"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_not_selected
			key $VK_RBUTTON

			time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				jump_obj	"Customize Option"
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Customize Option" 4
				start_time	$PRESS_OBJ_TIME
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Customize Option"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				low_obj 	"SELECTED_OBJ"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Customize Option"
				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen"
				start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			if_selected
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Customize Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Customize Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}

		#define OBJ1	"SELECTED_OBJ"
		#define OBJ2	"Customize Option"
		Event {
			if_not_selected
			key $VK_LBUTTON
			key $VK_MOVE

			$EV_CHANGE_OBJ
		}*/

		/*#define OBJ1	"Customize Option"
		#define OBJ2	"Joystick Option"
		Event {
			if_selected
			key $VK_DOWN
			key $VK_TAB

			$EV_CHANGE_OBJ
		}

		#define OBJ1	"Customize Option"
		#define OBJ2	"Joystick Option"
		Event {
			if_selected
			key $VK_UP

			$EV_CHANGE_OBJ
		}*/
	//}

	Object "Go to Controls Screen 1"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 1 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Movement
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Go to Controls Screen 1"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Go to Controls Screen 1" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Go to Controls Screen 1"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	Object "Go to Controls Screen 2"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 2 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Utility
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Go to Controls Screen 2"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Go to Controls Screen 2" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Go to Controls Screen 2"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	Object "Go to Controls Screen 3"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 3 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Combat
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Go to Controls Screen 3"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 3"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Go to Controls Screen 3" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Go to Controls Screen 3"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 3"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	Object "Go to Controls Screen 4"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 4 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Camera
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Go to Controls Screen 4"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 4"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Go to Controls Screen 4" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Go to Controls Screen 4"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 4"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	Object "Go to Controls Screen 5"
	{
		align_x 	center
		y		{ $CONTROLS2_START_Y + $CONTROLS2_DELTA_Y * 5 }

		Element STRING {
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_MultiplayerAndMisc
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN
			key $VK_SPACE
			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Go to Controls Screen 5"

				start_time	0
				time		$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 5"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Go to Controls Screen 5" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Go to Controls Screen 5"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen 5"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
}

Screen "Joystick screen"
{
	screen_offs	800

	default_obj "Back Option"

	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JoystickSetup
		}
	}
	Object "Back Option"
	{
		align_x center
		y	$OPTIONS_BACK_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Controls screen2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	Object "JoyTypeStr"
	{
		align_x center
		y	{ $JOYSTICK_START_Y + $JOYSTICK_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JoystickType
		}
	}
	Trigger "JoyTypeID"
	{
		align_x center
		y	{ $JOYSTICK_START_Y + $JOYSTICK_DELTA_Y * 1 }

		num_state	4

		State 0 STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_NONE
		}
		State 1 STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JoystickGamePad
		}
		State 2 STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JoystickJoystick
		}
		State 3 STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JoystickSteeringWheel
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time $TRIGGER_TIME + 1 }
			EvComm {
				change_trigger	"JoyTypeID"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_JOYSTICK	0
				start_time	{ $TRIGGER_TIME + 1 }
			}
		}
	}
	Object "JoyAlternStr"
	{
		align_x center
		y	{ $JOYSTICK_START_Y + $JOYSTICK_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_JoystickAlternFnc
		}
	}
	Object "JoyAlternID"
	{
		align_x center
		y	{ $JOYSTICK_START_Y + $JOYSTICK_DELTA_Y * 3 }

		Element STRING {
			id	"KeyID31"
			align_x center

			key_text
			joystick_text

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		"XXXXXXXX"
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time 5

			EvComm {
				input_string	"KeyID31"         15
				time		2
			}
			EvComm {
				ext_event	$iEXT_INIT_CONTROL	31
				start_time	3
			}
			EvComm {
				ext_event	$iEXT_INIT_JOYSTICK	0
				start_time	4
			}
		}
	}
}

Screen "INet Host screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "Back Option"
	{
		x	$INet_Host_screen_Back_Option_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_CANCEL
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "Ok Option"
	{
		x	$INet_Host_screen_Ok_Option_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_SPACE
			key $VK_RETURN
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME * 2 + 3 }

			EvComm {
				low_obj 	"Ok Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Searching screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_iSERVERS_LIST	 0
				start_time	1
			}
			EvComm {
				ext_event	$iEXT_UPDATE_iSERVERS_LIST 0
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
			EvComm {
				move2screen	"iSearch server screen"
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
				time		$MOVE2SCREEN_TIME
			}
		}

		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME * 2 + 3 }
			EvComm {
				smooth_obj	"Ok Option" 4
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Ok Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Searching screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_iSERVERS_LIST	 0
				start_time	1
			}
			EvComm {
				ext_event	$iEXT_UPDATE_iSERVERS_LIST 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			}
			EvComm {
				move2screen	"iSearch server screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_INTERNET
		}
	}
	Object "IP_Str"
	{
		x	$INet_Host_screen_IP_Str_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_CurIP
		}
	}
	Object "IP_Addr"
	{
		x	$INet_Host_screen_IP_Addr_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 2 }

		Element STRING {
			id		"IP_AddrID"
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXX"
		}
	}
	Object "HostStr"
	{
		align_x center
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_HOST_NAME
		}
	}
	Object "HostNameStr"
	{
		align_x center
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "HostName"
			align_x center

			terrain_num	$TERRAIN3

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"HostName"       31
				time		2
			}
		}
	}
	Object "ProxyStr"
	{
		x	$INet_Host_screen_ProxyStr_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 3 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		$iSTR_SOCKS5_Proxy
		}
	}
	Trigger "ProxyTrg"
	{
		x	$INet_Host_screen_ProxyTrg_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 3 }

		num_state	2
		State 0 STRING {
			align_x center

			terrain_num	$TERRAIN4

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		$iSTR_NO
		}
		State 1 STRING {
			align_x center

			terrain_num	$TERRAIN4

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		$iSTR_YES
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time $TRIGGER_TIME + 2 }
			EvComm {
				change_trigger	"ProxyTrg"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_INIT_PROXY	0
				start_time { $TRIGGER_TIME + 1 }
			}
		}
	}
	Object "ProxyServerStr"
	{
		x	$INet_Host_screen_ProxyServerStr_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 4 }

		not_unlock

		Element STRING {
			id	"ProxyServerStrID"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		$iSTR_SOCKS5_ProxyServer
		}
	}
	Object "ProxyServerNameStr"
	{
		x	$INet_Host_screen_ProxyServerNameStr_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 4 }

		not_unlock

		Element STRING {
			id	"ProxyServerName"
			align_x center

			terrain_num	$TERRAIN4

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"ProxyServerName"       21
				time		2
			}
			EvComm {
				ext_event	$iEXT_INIT_PROXY	0
				start_time	5
			}
		}
	}
	Object "ProxyPortStr"
	{
		x	$INet_Host_screen_ProxyPortStr_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 5 }

		not_unlock

		Element STRING {
			id	"ProxyPortStrID"
			align_x center

			terrain_num	$TERRAIN2

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		$iSTR_SOCKS5_ProxyPort
		}
	}
	Object "ProxyPortNumStr"
	{
		x	$INet_Host_screen_ProxyPortNumStr_PosX
		y	{ $HOST_START_Y + $HOST_DELTA_Y * 5 }

		not_unlock

		Element STRING {
			id	"ProxyPortNum"
			align_x center

			number_text
			terrain_num	$TERRAIN4

			space		1
			font		3
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"ProxyPortNum"       11
				time		2
			}
			EvComm {
				ext_event	$iEXT_INIT_PROXY	0
				start_time	5
			}
		}
	}
}

#define GAME_OBJECT		align_x 	center												\
				y		{ $SELECT_SCREEN_START_Y + $SELECT_SCREEN_DELTA_Y * $GAME_Y }					\
																		\
				selectable_obj													\
				Element STRING {												\
					id		$GAME_STRING_ID 									\
					align_x 	center											\
																		\
					terrain_num	$TERRAIN2										\
																		\
					font		$GAME_FNT										\
					null_level	$DEFAULT_NULL										\
					string		$GAME_OBJ_ID										\
				}														\
				Event { 													\
					if_selected												\
					key $VK_LBUTTON 											\
					key $VK_RETURN												\
					key $VK_SPACE												\
					time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }							\
					EvComm {												\
						low_obj 	$GAME_OBJ_NAME									\
																		\
						start_time	0										\
						time		$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						ext_event	$iEXT_SELECT_HALL $GAME_Y							\
						start_time	0										\
					}													\
					EvComm {												\
						move2screen	$GAME_SCR									\
						start_time	$PRESS_OBJ_TIME 								\
						time		$MOVE2SCREEN_TIME								\
					}													\
				}														\
																		\
				Event { 													\
					if_not_selected 											\
					key $VK_RBUTTON 											\
																		\
					time { $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }			\
					EvComm {												\
						jump_obj	$GAME_OBJ_NAME									\
						start_time	$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						ext_event	$iEXT_SELECT_HALL $GAME_Y							\
						start_time	0										\
					}													\
					EvComm {												\
						smooth_obj	$GAME_OBJ_NAME	4								\
						start_time	$PRESS_OBJ_TIME 								\
						time		$SMOOTH_OBJ_TIME								\
					}													\
					EvComm {												\
						hide_obj	$GAME_OBJ_NAME									\
						start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME }						\
						time		$HIDE_OBJ_TIME									\
					}													\
					EvComm {												\
						low_obj 	"SELECTED_OBJ"                                                                  \
						start_time	0										\
						time		$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						rise_obj	$GAME_OBJ_NAME									\
						start_time	0										\
						time		$PRESS_OBJ_TIME 								\
					}													\
					EvComm {												\
						move2screen	$GAME_OBJ_NAME									\
						start_time	{ $PRESS_OBJ_TIME + $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME } 			\
						time		$MOVE2SCREEN_TIME								\
					}													\
				}														\
																		\
				Event { 													\
					if_selected												\
					key $VK_RBUTTON 											\
																		\
					time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }					\
					EvComm {												\
						ext_event	$iEXT_SELECT_HALL $GAME_Y							\
						start_time	0										\
					}													\
					EvComm {												\
						smooth_obj	$GAME_OBJ_NAME 4								\
						start_time	0										\
						time		$SMOOTH_OBJ_TIME								\
					}													\
					EvComm {												\
						hide_obj	$GAME_OBJ_NAME									\
						start_time	$SMOOTH_OBJ_TIME								\
						time		$HIDE_OBJ_TIME									\
					}													\
					EvComm {												\
						move2screen	$GAME_SCR									\
						start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }						\
						time		$MOVE2SCREEN_TIME								\
					}													\
				}

Screen "Select Game2"
{
	default_obj "GameObj0"

	Object "TitleStr"
	{
		align_x center
		y	{ $TITLE_STR2_Y - 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_SELECT_GAME
		}
	}

	Object "Back Option"
	{
		x	$Select_Game_Back_Option_PosX
		y	$Select_Game_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}

	#define GAME_Y		0
	#define GAME_OBJ_NAME	"GameObj0"
	#define GAME_OBJ_NEXT	"GameObj1"
	#define GAME_OBJ_PREV	"GameObj1"
	#define GAME_OBJ_ID	$iSTR_VAN_WAR
	#define GAME_SCR	"HallOfFame screen"
	#define GAME_STRING_ID	"GameStr0"

	#include "iscreen/scripts/gameobj.inc"

	#define GAME_Y		1
	#define GAME_OBJ_NAME	"GameObj1"
	#define GAME_OBJ_NEXT	"GameObj2"
	#define GAME_OBJ_PREV	"GameObj0"
	#define GAME_OBJ_ID	$iSTR_MECHOSOMA
	#define GAME_SCR	"HallOfFame screen"
	#define GAME_STRING_ID	"GameStr1"

	#include "iscreen/scripts/gameobj.inc"

	#define GAME_Y		2
	#define GAME_OBJ_NAME	"GameObj2"
//	  #define GAME_OBJ_NEXT   "GameObj3"
	#define GAME_OBJ_NEXT	"GameObj0"
	#define GAME_OBJ_PREV	"GameObj1"
	#define GAME_OBJ_ID	$iSTR_PASSEMBLOSS
	#define GAME_SCR	"HallOfFame screen"
	#define GAME_STRING_ID	"GameStr2"

	#include "iscreen/scripts/gameobj.inc"
/*
	#define GAME_Y		3
	#define GAME_OBJ_NAME	"GameObj3"
	#define GAME_OBJ_NEXT	"GameObj4"
	#define GAME_OBJ_PREV	"GameObj2"
	#define GAME_OBJ_ID	$iSTR_HUNTAGE
	#define GAME_SCR	"HallOfFame screen"
	#define GAME_STRING_ID	"GameStr3"


	#define GAME_Y		4
	#define GAME_OBJ_NAME	"GameObj4"
	#define GAME_OBJ_NEXT	"GameObj0"
	#define GAME_OBJ_PREV	"GameObj3"
	#define GAME_OBJ_ID	$iSTR_MUSTODONT
	#define GAME_SCR	"HallOfFame screen"
	#define GAME_STRING_ID	"GameStr4"
*/
}

Screen "HallOfFame screen"
{
	screen_offs	800

	default_obj "Back Option"

	#define RES_PLACE_ID	0
	#define RESULT_STR_ID	"PlaceStr0"
	#define RES_OBJ_ID	"Prm0"
	Object "Place0" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr0"
	Object "Prm0" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr0"
	Object "PrmNum0" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	1
	#define RESULT_STR_ID	"PlaceStr1"
	#define RES_OBJ_ID	"Prm1"
	Object "Place1" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr1"
	Object "Prm1" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr1"
	Object "PrmNum1" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	2
	#define RESULT_STR_ID	"PlaceStr2"
	#define RES_OBJ_ID	"Prm2"
	Object "Place2" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr2"
	Object "Prm2" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr2"
	Object "PrmNum2" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	3
	#define RESULT_STR_ID	"PlaceStr3"
	#define RES_OBJ_ID	"Prm3"
	Object "Place3" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr3"
	Object "Prm3" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr3"
	Object "PrmNum3" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	4
	#define RESULT_STR_ID	"PlaceStr4"
	#define RES_OBJ_ID	"Prm4"
	Object "Place4" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr4"
	Object "Prm4" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr4"
	Object "PrmNum4" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	5
	#define RESULT_STR_ID	"PlaceStr5"
	#define RES_OBJ_ID	"Prm5"
	Object "Place5" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr5"
	Object "Prm5" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr5"
	Object "PrmNum5" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	6
	#define RESULT_STR_ID	"PlaceStr6"
	#define RES_OBJ_ID	"Prm6"
	Object "Place6" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr6"
	Object "Prm6" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr6"
	Object "PrmNum6" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	7
	#define RESULT_STR_ID	"PlaceStr7"
	#define RES_OBJ_ID	"Prm7"
	Object "Place7" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr7"
	Object "Prm7" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr7"
	Object "PrmNum7" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	8
	#define RESULT_STR_ID	"PlaceStr8"
	#define RES_OBJ_ID	"Prm8"
	Object "Place8" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr8"
	Object "Prm8" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr8"
	Object "PrmNum8" {
		$RES_NUMBER_OBJ
	}

	#define RES_PLACE_ID	9
	#define RESULT_STR_ID	"PlaceStr9"
	#define RES_OBJ_ID	"Prm9"
	Object "Place9" {
		$RES_PLACE_OBJ
	}
	#define RESULT_STR_ID	"PrmStr9"
	Object "Prm9" {
		$RES_STRING_OBJ
	}
	#define RESULT_STR_ID	"NumStr9"
	Object "PrmNum9" {
		$RES_NUMBER_OBJ
	}

	Object "Back Option" {
		x	$HallOfFame_screen_Back_Option_PosX
		y	$HallOfFame_screen_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Select Game2"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 5
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Select Game2"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	$TITLE_STR_Y

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_HALL_OF_FAME
		}
	}
}

Screen "Port screen"
{
	screen_offs	0

	default_obj "Back Option"

	Object "TitleStr"
	{
		x	$Port_screen_TitleStr_PosX
		y	$Port_screen_TitleStr_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Server_Port
		}
	}

	Object "Back Option"
	{
		x	$Port_screen_Back_Option_PosX
		y	$Port_screen_Back_Option_PosY

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME }

			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "PortStr"
	{
		x	$Port_screen_PortStr_PosX
		y	$Port_screen_TitleStr_PosY

		Element STRING {
			id		"PortStrID"

			space		1
			align_x 	center

			terrain_num	$TERRAIN4
			number_text

			font		0
			null_level	$DEFAULT_NULL
			string		"1292"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"PortStrID"       7
				time		2
			}
			EvComm {
				ext_event	$iEXT_INIT_PORT 	0
				start_time	5
			}
		}
	}
	Object "Default Option"
	{
		x	$Port_screen_Default_Option_PosX
		y	$Port_screen_Default_Option_PosY

		Element STRING {
			space		1
			align_x 	center

			terrain_num	$TERRAIN2

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_Default
		}
		Event {
			key $VK_LBUTTON

			time { $PRESS_OBJ_TIME * 2 + 1 }
			EvComm {
				low_obj 	"Default Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_RESTORE_PORT 0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				rise_obj	"Default Option"
				time		$PRESS_OBJ_TIME
				start_time	$PRESS_OBJ_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { ( $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME ) * 2 + 1 }
			EvComm {
				smooth_obj	"Default Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Default Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				smooth_obj	"Default Option" 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME * 2 }
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_RESTORE_PORT 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				rise_obj	"Default Option"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$HIDE_OBJ_TIME
			}
		}
	}
}

Screen "Identification screen2"
{
	screen_offs	0

	default_obj "Back Option"

	Object "Back Option"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 7 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_BACK
		}
		Event {
			key $VK_LBUTTON
			key $VK_ESCAPE

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				low_obj 	"Back Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	$PRESS_OBJ_TIME
				time		$MOVE2SCREEN_TIME
			}
		}
		Event {
			key $VK_RBUTTON

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 1 }
			EvComm {
				smooth_obj	"Back Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Back Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				move2screen	"Multiplayer screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
				time		$MOVE2SCREEN_TIME
			}
		}
	}
	Object "TitleStr"
	{
		align_x center
		y	{ $TITLE_STR2_Y - 30 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN4

			font		0
			null_level	$DEFAULT_NULL
			string		$iSTR_IDENTIFICATION
		}
	}
	Object "NameStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 0 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_NAME
		}
	}
	Object "PlayerStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 1 }

		shadow_size	30

		Element STRING {
			id "PlayerName"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"PlayerName"       16
				time		2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 39
				start_time	3
			}
		}
	}
	Object "ColorStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 2 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_COLOR
		}
	}
	Trigger "ColorTrig" {
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 3 }

		num_state	10

		null_level	$DEFAULT_NULL

		State 3 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_YELLOW
			null_level	$DEFAULT_NULL
		}
		State 1 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_ORANGE
			null_level	$DEFAULT_NULL
		}
		State 2 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_BLUE
			null_level	$DEFAULT_NULL
		}
		State 0 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_GREEN
			null_level	$DEFAULT_NULL
		}
		State 4 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_RED
			null_level	$DEFAULT_NULL
		}
		State 5 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_WHITE
			null_level	$DEFAULT_NULL
		}
		State 6 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_GRAY
			null_level	$DEFAULT_NULL
		}
		State 7 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_BLACK
			null_level	$DEFAULT_NULL
		}
		State 8 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_CAMOUFLAGE
			null_level	$DEFAULT_NULL
		}
		State 9 "STRING"{
			align_x center
			align_y center

			terrain_num	$TERRAIN3

			font		3
			space		2
			string		$iSTR_PATROL
			null_level	$DEFAULT_NULL
		}
		Event {
			key $VK_LBUTTON
			key $VK_RBUTTON

			time { $TRIGGER_TIME + 2 }
			EvComm {
				change_trigger	"ColorTrig"
				time $TRIGGER_TIME
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 8
				start_time	{ $TRIGGER_TIME + 1 }
			}
		}
	}
	Object "PassStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 4 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_PASSWORD
		}
	}
	Object "PassInStr"
	{
		align_x center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 5 }

		shadow_size	30

		Element STRING {
			id "PasswordString"
			align_x center

			terrain_num	$TERRAIN3

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		"XXXXXXXXXXXXXXXXXXXXXXXXX"
		}
		Event {
			key	$VK_LBUTTON
			time	6

			EvComm {
				input_string	"PasswordString"       16
				time		2
			}
			EvComm {
				ext_event	$iEXT_UPDATE_OPTION 40
				start_time	3
			}
		}
	}
	Object "Ok Option"
	{
		align_x 	center
		y	{ $CFG_START_Y + $CFG_DELTA_Y * 6 }

		Element STRING {
			align_x center

			terrain_num	$TERRAIN2

			font		3
			space		2
			null_level	$DEFAULT_NULL
			string		$iSTR_OK
		}
		Event {
			key $VK_LBUTTON
			key $VK_RETURN

			multi_event

			time { $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 5 }
			EvComm {
				low_obj 	"Ok Option"
				time		$PRESS_OBJ_TIME
				start_time	0
			}
			EvComm {
				ext_event	$iEXT_CONNECT 0
				start_time	$PRESS_OBJ_TIME
			}
			EvComm {
				move2screen	"Failed screen"
				start_time	{ $PRESS_OBJ_TIME + 1 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				end_event
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }

				event_line	1
			}
			EvComm {
				ext_event	$iEXT_CHECK_SERVER_CONFIG 0
				start_time	{ $PRESS_OBJ_TIME + 2 }

				event_line	2
			}
			EvComm {
				move2screen	"Server Config screen"
				start_time	{ $PRESS_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $PRESS_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
			EvComm {
				ext_event	$iEXT_UNLOCK_PARAMS 0
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	4
			}
			EvComm {
				ext_event	$iEXT_LOCK_PARAMS 0
				start_time	{ $PRESS_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	3
			}
		}
		Event {
			key $VK_RBUTTON

			multi_event

			time { $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 5 }
			EvComm {
				smooth_obj	"Ok Option" 2
				start_time	0
				time		$SMOOTH_OBJ_TIME
			}
			EvComm {
				hide_obj	"Ok Option"
				start_time	$SMOOTH_OBJ_TIME
				time		$HIDE_OBJ_TIME
			}
			EvComm {
				ext_event	$iEXT_CONNECT 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME }
			}
			EvComm {
				move2screen	"Failed screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 1 }
				time		$MOVE2SCREEN_TIME

				event_line	1
			}
			EvComm {
				end_event
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 2 }

				event_line	1
			}
			EvComm {
				ext_event	$iEXT_CHECK_SERVER_CONFIG 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 2 }

				event_line	2
			}
			EvComm {
				move2screen	"Server Config screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	4
			}
			EvComm {
				move2screen	"Server Info screen"
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + 3 }
				time		$MOVE2SCREEN_TIME

				event_line	3
			}
			EvComm {
				ext_event	$iEXT_UNLOCK_PARAMS 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	4
			}
			EvComm {
				ext_event	$iEXT_LOCK_PARAMS 0
				start_time	{ $SMOOTH_OBJ_TIME + $HIDE_OBJ_TIME + $MOVE2SCREEN_TIME + 4 }

				event_line	3
			}
		}
	}
}

