
ListMenu "MainMenu"
{
IfGame(Doom, Chex)
	{
		StaticPatch 94, 2, "M_DOOM"
		Position 97, 72
		//IfOption(ReadThis)
		//{
		//	Position 97, 64
		//}
	}
	IfGame(Strife)
	{
		StaticPatch 84, 2, "M_STRIFE"
		Position 97, 45
	}
	IfGame(Heretic)
	{
		StaticPatch 88, 0, "M_HTIC"
		StaticPatch 40, 10, "M_SKL01"
		StaticPatch 232, 10, "M_SKL00"
		Position 110, 56
	}
	IfGame(Hexen)
	{
		StaticPatch 88, 0, "M_HTIC"
		StaticPatch 37, 80, "FBULB0"
		StaticPatch 278, 80, "FBULA0"
		Position 110, 56
	}
	
	IfGame(Doom, Strife, Chex)
	{
		TextItem "New Game", "n", "PlayerclassMenu"
		ifOption(SwapMenu)
		{
			TextItem "Load Game", "l", "LoadGameMenu"
			TextItem "Save Game", "s", "SaveGameMenu"
			TextItem "Options", "o", "OptionsMenu"
			//PatchItem "M_REINF", "r", "ReinforcementMenu"
			TextItem "Reinforcement Options", "r", "ReinforcementMenu"
		}
		else
		{
			TextItem "Options", "o", "OptionsMenu"
			//PatchItem "M_REINF", "r", "ReinforcementMenu"
			TextItem "Reinforcement Options", "r", "ReinforcementMenu"
			TextItem "Load Game", "l", "LoadGameMenu"
			TextItem "Save Game", "s", "SaveGameMenu"
		}
		ifOption(ReadThis)
		{
			TextItem "Read This!","r", "ReadThisMenu"
		}
		TextItem "Quit Game", "q", "QuitMenu"
	}
	
	IfGame(Heretic, Hexen)
	{
		TextItem "$MNU_NEWGAME", "n", "PlayerclassMenu"
		TextItem "$MNU_OPTIONS", "o", "OptionsMenu"
		TextItem "Reinforcement Options", "r", "ReinforcementMenu"
		TextItem "$MNU_GAMEFILES", "g", "GameFilesMenu"
		TextItem "$MNU_INFO", "i", "ReadThisMenu"
		TextItem "$MNU_QUITGAME", "q", "QuitMenu"
	}
}

ListMenu "PlayerclassMenu"
{
	StaticTextCentered 160, 15, "Select Game Mode"
	Position 30, 50
	// The rest of this menu will be set up based on the actual player definitions.
}

OptionMenu "ReinforcementMenu"
{
	Title "Reinforcement Options"
	StaticText "Note:"
	StaticText "Only the host can change these options online."
	StaticText "Otherwise, these are for singleplayer."
	StaticText " "
	StaticText " "
	Numberfield "Kills needed", "reinforcement_requiredkills", 10, 250, 5//, "reinforcement_waves", 1
	Numberfield "# of reinforcements", "reinforcement_size", 1, 64, 1
	Option "Waves per level", "reinforcement_waves", "wavevalues"
	Option "additional waves", "reinforcement_time", "TimerValues"
	StaticText " "
	
	StaticText "Respawn ...              "
	Option "after a key is found", "reinforcement_keys", "KeyBoolValues"
	Option "near other players", "reinforcement_spawnclosest", "BoolValues"
	Option "coop bots if no players", "reinforcement_robots", "BotBoolValues"
	StaticText " "
	Slider "Announcer volume",	"snd_announcervolume", 0, 1, 0.05 // [TP]
	Option "Announcer",	"cl_announcer", "ZA_Announcers" // [TP]
	StaticText " "
	StaticText "Bot commands:"
	Control "Teleport to me", "bot_recall"
	Control "Toggle guard mode", "bot_guard"
	Control "Attack my target", "bot_attack"
	Control "Follow me", "bot_follow"
	Control "Spawn bots (cheat)", "bot_spawn"
	
}

OptionValue "BotBoolValues"
{
	0, "Only in singleplayer"
	1, "Yes"
}

OptionValue "KeyBoolValues"
{
	0, "No"
	1, "Yes  (kills ignored)"
}

OptionValue "BoolValues"
{
	0, "No"
	1, "Yes"
}

OptionValue "WaveValues"
{
	0, "Unlimited"
	1, "1  (after 50% of kills)"
	2, "2  (every 33% killed)"
	3, "3  (every 25% killed)"
	4, "4  (every 20% killed)"
}
OptionValue "TimerValues"
{
	0, "Off"
	5, "every 5 mins"
	10, "every 10 mins"
	15, "every 15 mins"
	20, "every 20 mins"
	25, "every 25 mins"
	30, "every 30 mins"
}


