OptionMenuSettings
{
	// These can be overridden if a different menu fonts requires it.
	Linespacing 12
}

DefaultListMenu
{
	Selector "", 0, 0
}

ListMenu "EpisodeMenu"
{
	Font "BigFont", "Untranslated"
	//StaticTextCentered 160, 8, "Choose your mode!"
	Font "TinyFont", "TFBrightYellow"
	//StaticTextCentered 160, 186, "Don't choose How 2 Play."
	Linespacing 36
	Selector "MNU_SEL1", 0, 0
	Font "BigFont", "Untranslated"
	Position 64, 9
	//StaticPatch 64, 81, "MNU_NONE" // Story
	StaticPatch 64, 117, "MNU_NONE" // Resort
	StaticPatch 64, 153, "MNU_NONE" // Museum
}

LISTMENU "MainMenu"
{
	StaticPatch 264, 90, "M_BGSHIN"
	StaticPatch 240, 90, "M_BG"
	StaticPatch -32, 2, "M_LOGO"
	Font "BIGFONT" , "WHITE", "RED"
		
	Position -24, 92
	LineSpacing 15
	Font "SmallFont" , "WHITE", "RED"
	TextItem "PRACTICE", "s", "TF_BotGameMenu"
	TextItem "OPTIONS", "o", "TF_OptionsMenu"
	TextItem "HELP ME!", "h", "ReadThisMenu"
	TextItem "CREDITS", "c", "TF_CreditsMenu0"
	TextItem "QUIT", "q", "QuitMenu"
	
	Font "TinyFont" , "YELLOW", "RED"
	StaticText -24, 172, "$MENUINFO"
	
	//StaticPatch 0, 0, "WARNLIMT"
}

OptionMenu "TF_MapMenu"
{
    Title "Load Map"
	StaticText "Debug", 1
	Command "Bomb Delivery", "tfgm_push"
}

OptionValue Renderers
{
	0.0, "Software (DO NOT USE)"
	1.0, "OpenGL (REQUIRED)"
}

OptionValue "TF_OnOff_Inverse"
{
	0, "On"
	1, "Off"
}

OptionMenu "TF_OptionsMenu"
{
	Title "OPTIONS"
	TextField "Display Name", name
	StaticText "", 1
	Submenu "Configure Controls", "TF_ControlsMenu"
	Submenu "Game and HUD Options", "TF_GameMenu"
	Submenu "Video Options", "TF_VideoMenu"
	Submenu "Sound Options", "TF_SoundMenu"
	StaticText "", 1
	Submenu "Legacy Options", "OptionsMenu"
}

OptionValue TF_SwitchOnPickup
{
	0, "Never"
	1, "Only higher ranked"
	2, "Always"
}

OptionMenu "TF_PlayerMenu"
{
	Title "Player Setup"
	StaticText "", 1
}

OptionMenu "TF_ControlsMenu"
{
	Title "CONFIGURE CONTROLS"
	StaticText 	""
	Submenu "Mouse Options", "TF_MouseMenu"
	
	StaticText 	""
	StaticText "Movement Controls", 1
	Control "Move forward", "+forward"
	Control "Move backward", "+back"
	Control "Move left", "+moveleft"
	Control "Move right", "+moveright"
	Control "Jump", "+jump"
	//Control "Crouch", "+crouch"
	
	StaticText "", 1
	StaticText "Gameplay Controls", 1
	Control "Fire", "+attack"
	Control "Alt. Fire", "+altattack"
	Control "Use", "+use"
	//Control "Quick Melee", "+zoom"
	Control "Taunt", "tf_taunt"
	Control "Use Inventory", "tf_useinv"
	Control "Run", "+speed"
	Control "Toggle AutoRun", "toggle cl_run"
	Control "Quick Swap", "weapswap"
	//Control "(SP) Switch Character", "tf_sp_changeplayer"
	
	StaticText 	""
	StaticText 	"Chat Controls", 1
	Control "Chat", "messagemode"
	Control "Team Chat", "messagemode2"
	Control "Voice Chat", "+voicerecord"
	
	StaticText "", 1
	StaticText "UI Controls", 1
	Control "Join Game/Spectate", "tf_chooseteam"
	Control "Character Menu", "tf_options"
	Control "Scoreboard", "+tf_showscores"
	
	StaticText "", 1
	StaticText "Misc. Controls", 1
	Control "Open console", "toggleconsole"
	Control "Screenshot", "screenshot"
}

OptionMenu "TF_MouseMenu"
{
	Title "MOUSE OPTIONS"
	StaticText 	""
	Option "Enable mouse",				"use_mouse", "YesNo"
	//Option "Enable mouse in menus",	"m_use_mouse", "MenuMouse", "use_mouse"
	Option "Show back button",		"m_show_backbutton", "Corners", "use_mouse"
	Option "Cursor",				"vid_cursor", "Cursors"
	StaticText 	""
	Slider "Overall sensitivity",		"mouse_sensitivity", 0.5, 2.5, 0.1
	Option "Prescale mouse movement",	"m_noprescale", "NoYes"
	Option "Filter mouse movement",		"m_filter", "YesNo"
	StaticText 	""
	StaticText "Try setting your vertical speed to 1.2x your horizontal speed!", 1
	Slider "Horizontal speed",				"m_yaw", 0, 2.5, 0.1
	Slider "Vertical speed",			"m_pitch", 0, 2.5, 0.1
	StaticText 	""
	Slider "Forward/Backward speed",	"m_forward", 0, 2.5, 0.1
	Slider "Strafing speed",			"m_side", 0, 2.5, 0.1
	StaticText 	""
	Option "Always Mouselook",			"freelook", "OnOff"
	Option "Invert Mouse",				"invertmouse", "OnOff"
	Option "Lookspring",				"lookspring", "OnOff"
	Option "Lookstrafe",				"lookstrafe", "OnOff"
}

OptionMenu "TF_VideoMenu"
{
	Title "VIDEO OPTIONS"
	Option "Fullscreen", "fullscreen", "YesNo"
	Option "Vertical Sync (V-SYNC)", "vid_vsync", "OnOff"
	Submenu "Set Resolution", "VideoModeMenu"
	StaticText ""
	Option "Texture Filter Mode", gl_texture_filter, "FilterModes"
	Option "Anisotropic filter", gl_texture_filter_anisotropic,	"Anisotropy"
	Slider "Max. Decals", "cl_maxdecals", 0, 10000, 100, 0
}

OptionMenu "VideoModeMenu"
{
	Title "SET RESOLUTION"
	Option "Aspect Ratio", "menu_screenratios", "Ratios"
	StaticText " "
	ScreenResolution "res_0"
	ScreenResolution "res_1"
	ScreenResolution "res_2"
	ScreenResolution "res_3"
	ScreenResolution "res_4"
	ScreenResolution "res_5"
	ScreenResolution "res_6"
	ScreenResolution "res_7"
	ScreenResolution "res_8"
	ScreenResolution "res_9"
	StaticTextSwitchable "Press ENTER to set mode", "", "VMEnterText"
	StaticText " "
	StaticTextSwitchable "T to test mode for 5 seconds", "Please wait 5 seconds...", "VMTestText"
	class VideoModeMenu
}

OptionMenu "TF_SoundMenu"
{
	Title "SOUND OPTIONS"
	
	Submenu "Voice chat options", "ZA_VoiceChatOptions"
	StaticText " "
	
	Slider "SFX Volume", "snd_sfxvolume", 0, 1, 0.05
	Slider "Music Volume", "snd_musicvolume", 0, 1, 0.05
	Slider "Menu Volume", "snd_menuvolume", 0, 1, 0.05
	StaticText " "
	Option "MIDI device", "snd_mididevice", "MidiDevices"
}

OptionMenu "TF_GameMenu"
{
	Title "GAME AND HUD OPTIONS"
	Slider "Field of View", "tf_fov_desired", 90, 150, 1
	Option "Auto-Switch on Weapon Pickup", "switchonpickup", "TF_SwitchOnPickup"
	Option "Always Run", "cl_run", "OnOff"
	Option "Hide Weapon from View", "r_drawplayersprites", "TF_OnOff_Inverse"
	Option "Show Damage Numbers", "tf_damagenumbers", "OnOff"
	StaticText " "
	ColorPicker	"HUD Color", "color"
	ColorPicker "Crosshair Color", "crosshaircolor"
	Option "Crosshair Color Changes with Health", "crosshairhealth", "OnOff"
}

// MULTIPLAYER MENU
OptionMenu "TF_BotGameMenu"
{
	Title "VS. BOTS"
	Command "Start Game!", "tf_offline_startgame"
	StaticText " "
	StaticText "General Settings", 1
	NumberField	"Number of Bots", "tf_offline_bots", 0, 11
	Option "Bots Vote for Maps", "tf_offline_botscanvote", "OnOff"
	StaticText " "
	StaticText "Gamemode Settings", 1
	NumberField	"Fraglimit", "tf_fraglimit"
	NumberField	"Team Fraglimit", "tf_teamfraglimit"
	Option "Weapon Stay", "sv_weaponstay", "OnOff"
}


OptionMenu "ZA_JoinMenu"
{
	Title "JOIN GAME"
	StaticText "Ready to head into the fray?", 1
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	Command "Join Game!", "menu_joingame"
	Command "Spectate", "menu_spectate"
	StaticText " "
	Command "How To Play?", "menu_help"
}

OptionMenu ZA_JoinTeamMenu
{
	Title "JOIN GAME"
	StaticText "Ready to head into the fray?", 1
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	JoinMenuTeamOption
	Command "Join Game!", "menu_joingame"
	Command "Spectate", "menu_spectate"
	StaticText " "
	Command "How To Play?", "menu_help"
}