//-------------------------------------------------------------------------------------------
//
// Important note about the following template menus:
// Don't even think about replacing them with something that's not an empty menu
// with some static elements only. Proper function is not guaranteed then.
// stfu graf zhal
//-------------------------------------------------------------------------------------------

//-------------------------------------------------------------------------------------------
//
// The player class menu
// The init code will set the first item to 'autoselect' if it's the only one.
//
//-------------------------------------------------------------------------------------------

// kale riddle hooes name is too long for the player class menu, it overlaps with the previewbox, so fix 

// the menu is designed to work on 640x480 resolution minimum so if you have a lower resolution than that
// it should still work but if not
// you are a spoiled shit and shouldn't even fucking play the game.

// If you are playing hexen or heretic i'm not sure how well it will perform but who cares because
// the mod isn't even meant to have HeXen or Heretic compatability
ListMenu "PlayerclassMenu"
{
Font "MENUFONT", "LIGHTBLUE", "LIGHTBLUE"
	IfGame(Doom, Heretic, Hexen, Strife)
	{
		NetgameMessage "$NEWGAME"
	}
	IfGame(Chex)
	{
		NetgameMessage "$CNEWGAME"
	}

	IfGame(Doom, Strife, Chex)
	{
		StaticTextCentered 160, 15, "$MNU_CHOOSECLASS"
		Position 48, 63
		PlayerDisplay 220, 80, "00 07 00", "40 53 40"
		MouseWindow 0, 220
	}
	IfGame(Heretic)
	{
		StaticTextCentered 160, 15, "$MNU_CHOOSECLASS"
		Position 80, 50
		PlayerDisplay 220, 50, "20 00 00", "80 00 40"
		MouseWindow 0, 220
	}
	IfGame(Hexen)
	{
		StaticText 34, 24, "$MNU_CHOOSECLASS"
		Position 66, 58
		PlayerDisplay 174, 8, "00 07 00", "40 53 40"
		MouseWindow 0, 174
	}
Font "MENUFONT", "WHITE", "WHITE"
	// The rest of this menu will be set up based on the actual player definitions.
          // hi zdoom
}

// kek font shit
LISTMENU "MainMenu"
{
Font "MENUFONT", "WHITE", "WHITE"
	IfGame(Doom, Chex)
	{
		StaticPatch 94, 2, "M_DOOM"
		Position 97, 72
		IfOption(ReadThis)
		{
			Position 97, 64
		}
	}

		TextItem "Start Game", "n", "PlayerclassMenu"
			TextItem "Options","o", "OptionsMenu"
			TextItem "Load Game", "l", "LoadGameMenu"
			TextItem "Save Game", "s", "SaveGameMenu"
		ifOption(ReadThis)
		{
			TextItem "Read This!","r", "ReadThisMenu"
		}
		TextItem "Exit Game", "q", "QuitMenu"
Font "SMALLFONT", "GRAY", "GOLD"
			StaticText 0, 210, "$VERSION"
}

ListMenu "EpisodeMenu"
{
Font "MENUFONT", "LIGHTBLUE", "LIGHTBLUE"
	IfGame(Doom, Chex)
	{
		Position 48, 63
		StaticText 54, 38, "Select a campaign:"
	}
Font "MENUFONT", "WHITE", "WHITE"
}

ListMenu "SkillMenu"
{
Font "MENUFONT", "LIGHTBLUE"

	IfGame(Doom, Strife, Chex)
	{
		StaticText 54, 38, "Pick a difficulty level:"
		Position 48, 63
	}
	IfGame(Doom, Chex)
	{
		StaticText 96, 14, "NEW GAME"
	}
Font "MENUFONT", "UNTRANSLATED"
}

ListMenu "LoadGameMenu"
{
Font "MENUFONT", "LIGHTBLUE", "LIGHTBLUE"
	IfGame(Doom, Heretic, Hexen, Strife)
	{
		NetgameMessage "$LOADNET"
	}
	IfGame(Doom, Strife, Chex)
	{
		StaticTextCentered 160, -20, "LOAD GAME"
	}
	Position 80,54
	Class "LoadMenu"	// uses its own implementation
}

ListMenu "SaveGameMenu"
{
Font "MENUFONT", "LIGHTBLUE", "LIGHTBLUE"
	NetgameMessage "$SAVENET" // [TP] Zandronum doesn't allow the client to save the game.
	IfGame(Doom, Strife, Chex)
	{
		StaticTextCentered 160, -20, "SAVE GAME"
	}
	Position 80,54
	Class "SaveMenu"	// uses its own implementation
}

OptionMenu "OptionsMenu"
{
	Title "OPTIONS"
	Submenu "Multiplayer Options (Zandronum Only)",		"ZA_MultiplayerOptions" // the game works on gay-zdoom with an invalid option, so its all cool :)
	StaticText " " // [TP]
	Submenu "Moonman Tweaks / Settings",			"MoonOptions"
	Submenu "Moonman Credits", "MoonCreds"
	
	StaticText " "
	Submenu "Customize Controls",		"CustomizeControls"
	Submenu "Mouse options",			"MouseOptions"
	Submenu "Joystick options",			"JoystickOptions"
	StaticText " "
	Submenu "Player Setup",				"PlayerMenu"
	Submenu "Gameplay Options",			"GameplayOptions"
	Submenu "Compatibility Options",	"CompatibilityOptions"
	Submenu "Automap Options",			"AutomapOptions"
	Submenu "HUD Options",				"HUDOptions"
	Submenu "Miscellaneous Options",	"MiscOptions"
	Submenu "Sound Options",			"SoundOptions"
	Submenu "Display Options",			"VideoOptions"
	Submenu "Set video mode",			"VideoModeMenu"
	StaticText " "
	SafeCommand "Reset to defaults",	"reset2defaults"
	SafeCommand	"Reset to last saved",	"reset2saved"
	Command "Go to console",			"menuconsole"
}
OptionValue "OffOn"
{
    0, "Off"
    1, "On"
}


OptionValue "TrueFalse"
{
    0, "False"
    1, "True"
}

OptionValue "Barrel"
{
	0, "Normal"
	1, "Acidic"
	2, "Barrels o' Fun"
	3, "Mixed"
}

OptionValue "HUD"
{
	0, "Doom"
	1, "Light Blue"
}

OptionMenu "MoonCreds"
{
Title "MOONMAN CREDITS"
StaticText "Idiotska"
StaticText "/pol/ and /v/"
StaticText "Mooncentral"
StaticText "Boris"
StaticText "MiddleFingerMan"
StaticText " "
StaticText "ZDoom Community"
StaticText " "
StaticText "Captain J"
StaticText "Enjay"
StaticText "GOLDEN MOBSTER72"
StaticText "wildweasel"
StaticText "chronoteeth"
StaticText "Dox778"
StaticText "Ye Illuminator"
StaticText "JMartinez2098"
StaticText "Iamcarrotmaster"
StaticText "Kofeinoe Zerno"
StaticText "Derek The Squirrel"
StaticText "PA1NKI113R"
StaticText "Keeper"
StaticText "Mryayayify"
StaticText "pavo9001"
StaticText "scaryred24"
StaticText "A_D_M_E_R_A_L"
StaticText "ZeDique la Ruleta"
StaticText "Bloodites"
StaticText "TypicalSF"
StaticText "TheLightBad96"
StaticText "Ben Zuriel"
StaticText "Mad Tux"
StaticText "ZioMcCall"
StaticText "jdredalert"
StaticText "SomeOtherDoomGuy"
StaticText " "
StaticText "Id Software"
StaticText "Monolith Productions"
StaticText "Bad Guy's Productions"
StaticText "Tripware Interactive"
StaticText "Grey Matter Studios"
StaticText "Activision"
StaticText "Infinity Ward"
StaticText "Valve"
StaticText "3D Realms"
StaticText "General Arcade"
StaticText "Devolver Digital"
StaticText "Treyarch"
StaticText "Croteam"
StaticText "Microsoft"
StaticText "Rockstar Games"
StaticText "Freedoom Team"
StaticText "Fistful of Frags Team"
}
OptionMenu "MoonOptions"
{
    Title "MOONMAN SETTINGS"
	StaticText " " ,  1
	StaticText " " ,  1
    Option "Disable Reloads::", "moon_cl_noreloads", "OffOn"
	StaticText "Prevents weapons from using" ,  1
	StaticText "reload animations if necessary." ,  1
	StaticText " "
	Option "Disable Intro Animations::", "moon_cl_nointros", "OffOn"
	StaticText "Prevents weapons from using " ,  1
	StaticText "first-time select animations. " ,  1
	StaticText ""
	Option "Disable Hand Cracking::", "moon_cl_nocrack", "OffOn"
	StaticText "Prevents the hand cracking" ,  1
	StaticText "Animation to play on map begin/change" ,  1
	StaticText " "
	Option "Classic AK-47 Flash::", "moon_cl_classicak", "OffOn"
	StaticText "Uses the old, spinning AK-47 muzzle flash " ,  1
	StaticText "instead of random selection." ,  1
	Option "HUD style::", "moon_cl_hudstyle", "HUD"
	StaticText "What look do you want?" ,  1
	StaticText " "
        Option "Renderer",			"vid_renderer", "Renderers"
        StaticText "(Don't use software!)", 1
        StaticText " "
	Option "KIS Counter::", "moon_cl_kiscount", "OffOn"
	StaticText "Enable the Kill/Items/Secret counter" ,  1
	StaticText " "
	StaticText " "
	StaticText "(In multiplayer game)" ,  2
	StaticText "(give at least 3 seconds for changes to take effect)" ,  2
	StaticText " "
	StaticText "<<Server/SP only>>" ,  2
	StaticText "Changes will take effect on map change" ,  1
	Option "Barrel types::", "moon_sv_barrels", "Barrel"
    StaticText " "
	Option "Radsuit Respawn::", "moon_sv_radsuit", "OffOn"
	StaticText "The Radsuit will still respawn when" ,  1
	StaticText "sv_itemrespawn is on" ,  1
    StaticText " "
	Option "Tactical mode (WiP)::", "moon_sv_tactical", "OffOn"
	StaticText "For a slower paced gameplay" ,  1

}
