/* // due to grafcrime, this has been phased out and replaced with another one just to flip graf off
OptionMenu "OptionsMenu"
{
	Title "OPTIONS"
	SubMenu "Final Doomer Options",		"FinalDoomer"
	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 "Network Options",			"NetworkOptions"
	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"
}*/

LISTMENU "MainMenu"
{
	IfGame(Doom, Chex)
	{
		StaticPatch 94, 2, "M_FDDOOM"
		Position 97, 72
		Selector "M_FDSELE", 0, 0
		Linespacing 16
		IfOption(ReadThis)
		{
			Position 97, 64
		}
	}
	IfGame(Strife)
	{
		StaticPatch 84, 2, "M_FDDOOM"
		Position 97, 45
	}
	IfGame(Heretic)
	{
		StaticPatch 88, 0, "M_FDDOOM"
		StaticPatch 40, 10, "M_SKL01"
		StaticPatch 232, 10, "M_SKL00"
		Position 110, 56
	}
	IfGame(Hexen)
	{
		StaticPatch 88, 0, "M_FDDOOM"
		StaticPatch 37, 80, "FBULB0"
		StaticPatch 278, 80, "FBULA0"
		Position 110, 56
	}
	
	IfGame(Doom, Strife, Chex)
	{
		PatchItem "M_FDNGA", "n", "PlayerclassMenu"
		ifOption(SwapMenu)
		{
			PatchItem "M_FDLOA", "l", "LoadGameMenu"
			PatchItem "M_FDSAV", "s", "SaveGameMenu"
			PatchItem "M_FDOPTI","o", "OptionsMenu"
			PatchItem "M_FDFD","f", "FinalDoomer"
		}
		else
		{
			PatchItem "M_FDOPTI","o", "OptionsMenu"
			PatchItem "M_FDFD","f", "FinalDoomer"
			PatchItem "M_FDLOA", "l", "LoadGameMenu"
			PatchItem "M_FDSAV", "s", "SaveGameMenu"
		}
		ifOption(ReadThis)
		{
			PatchItem "M_FDRDTH","r", "ReadThisMenu"
		}
		PatchItem "M_FDQUI", "q", "QuitMenu"
	}
	
	IfGame(Heretic, Hexen)
	{
		TextItem "$MNU_NEWGAME", "n", "PlayerclassMenu"
		TextItem "$MNU_OPTIONS", "o", "OptionsMenu"
		TextItem "$MNU_GAMEFILES", "g", "GameFilesMenu"
		TextItem "$MNU_INFO", "i", "ReadThisMenu"
		TextItem "$MNU_QUITGAME", "q", "QuitMenu"
	}
}
// fug u graf u snog-hobbin truffle waggler

OptionValue "FDGunCasingsType"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "FDCasingSoundType"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "FDGunSmokeType"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "FDBulletPuffType"
{
	0, "Vanilla Style"
	1, "Glow Style"
	2, "Glow + Spark Style"
}

OptionValue "FDQuakeType"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "FDParticleType"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "FDBeamType"
{
	0, "Standard Mode"
	1, "Simple Mode"
	2, "OpenGL Mode"
}

OptionValue "FDProjectileType"
{
	0, "Standard Mode"
	1, "OpenGL Mode"
}

OptionValue "FDAmbienceType"
{
	0, "No Ambient Sounds"
	1, "Sound Loops Active"
}

OptionValue "FDPistolStartType"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "FDBFGAmmoSystemType"
{
	0, "All large ammo pickups"
	1, "Cell-based ammo pickups"
	2, "Cell-based seperate pickups"
	3, "Large ammo seperate pickups"
	4, "Vanilla Cell usage"
}

OptionValue "FDVanillaBalanceType"
{
	0, "Final Doomer style"
	1, "Vanilla Doom style"
}

OptionValue "FDPulsePumpType"
{
	0, "Recharge after firing"
	1, "Recharge after pumping"
}

OptionValue "FDNanoVisualsType"
{
	0, "No visuals"
	1, "Visuals active"
}

OptionValue "FDKatanaSheatheType"
{
	0, "Deselect deselects"
	1, "Deselect sheathes"
	2, "Altfire sheathes"
	3, "Deselect if idle"
}

OptionValue "FDHaldermanType"
{
	0, "No orbiting icons"
	1, "Icons enabled"
}

OptionValue "FDBurstShotgunType"
{
	0, "Default behaviour"
	1, "No switch reload"
	2, "Idle reload"
	3, "Manual reload"
}

OptionValue "FDItemVisualsType"
{
	0, "Generic mode"
	1, "Normal mode"
	2, "Fancy Generic mode"
}

OptionMenu "FinalDoomer"
{
	Title "FINAL DOOMER OPTIONS"
	StaticText 	""
	StaticText 	"     Cosmetic Options", 1
	Option "Bullet Puffs", "FD_bulletpuffs", "FDBulletPuffType"
	Slider "Bullet Impact Volume", "FD_bulletvolume", 0.1, 1, 0.05, 2
	Option "Gun Smoke", "FD_gunsmoke", "FDGunSmokeType"
	Option "Gun Casings", "FD_guncasings", "FDGunCasingsType"
	Option "Casing Sounds", "FD_casingsound", "FDCasingSoundType"
	Slider "Casings Fade Time", "FD_guncasingstimer", 0, 3600, 5, 0
//	Slider "Casing Volume", "FD_casingvolume", 0.1, 1, 0.05, 2
	Option "Quake Toggle", "FD_quakes", "FDQuakeType"
	Option "Particles", "FD_particles", "FDParticleType"
	Slider "Weapon Recoil", "FD_recoil", 0, 10, 0.1, 1
	StaticText 	""
	StaticText 	"     Weaponset Options", 1
	Option "Beam Quality", "FD_simplemaser", "FDBeamType" // Quality of those CPU crushing energy beams
	Option "OpenGL Projectiles", "FD_fancyprojectiles", "FDProjectileType" // Fancy truecolor projectiles, plus glows and stuff
	Option "Weapon Ambience", "FD_weaponambience", "FDAmbienceType" // Weapons emit humming noises and stuff
	Option "Pistol Starts", "FD_pistolstart", "FDPistolStartType" // Start each level as though you began your game there
	Command "Switch JPCP Hud Style", "fd_changejpcphud"
	Option "BTSX Pulse Rifle Pump", "FD_btsxpulsepump", "FDPulsePumpType" // 30 second recharge only starts after pumping, not after firing
	Option "BTSX NanoCore Visuals", "FD_btsxnanovisuals", "FDNanoVisualsType" // Extra particles and effects around the player while active
	Option "JPCP Katana Sheathe", "FD_jpcpkatanasheathe", "FDKatanaSheatheType" // Different methods of sheathing the katana
	Option "TNT Halderman Icons", "FD_tnthaldermanicons", "FDHaldermanType" // Orbiting icons appear when modes are active
	Option "TNT Burst Shotgun Reload", "FD_tntburstshotgun", "FDBurstShotgunType" // Different methods of venting the burst shotgun
	StaticText 	""
	StaticText 	"     Gameplay Options", 1
	StaticText "$FDMENU_BFGAMMO1"
	StaticText "$FDMENU_BFGAMMO2"
	StaticText "$FDMENU_BFGAMMO3"
	Option "BFG Ammo System", "FD_BFGAmmoSystem", "FDBFGAmmoSystemType" // 5 different modes of obtaining BFG ammo
	StaticText "$FDMENU_BALANCE1"
	Option "Vanilla Balance Toggle", "FD_vanillabalance", "FDVanillaBalanceType" // restores Doom 2 weapons to near-exact vanilla stats
	StaticText "$FDMENU_ITEMVISUALS1"
	StaticText "$FDMENU_ITEMVISUALS2"
	StaticText "$FDMENU_ITEMVISUALS3"
	StaticText "$FDMENU_ITEMVISUALS4"
	Option "Item Visuals Toggle", "FD_itemvisuals", "FDItemVisualsType" // makes all weapons and items use a generic visual, and massively improves framerate
	StaticText 	""
	StaticText 	"Access to other compatible menus through here", 1
	SubMenu "Yholl Mod Options",		"YhollMods"
	SubMenu "Other Mod Options",		"OtherMods"
}

OptionMenu "YhollMods"
{
	Title "All Mod menus"
	SubMenu "DRLA Options",				"DoomRLA"
	SubMenu "LegenDoomLite Options",	"LegenDoomLite"
}

OptionMenu "OtherMods"
{
	Title "All other compatible Mod menus"
	SubMenu "Colourful Hell",		"Colourful Hell"
}

//==============================================================================
//				PLAYER CLASS MENU

ListMenu "PlayerclassMenu"
{
		NetgameMessage "$NEWGAME"
//		Selector "RLZCSEL1", -2, 12
		PlayerDisplay 160, 64, "10 10 10", "80 80 80"
		StaticTextCentered 160, 15, "CHOOSE WEAPONSET"
		Font "NULLFONT"
		Position -200, 40
		MouseWindow 0, 220
}
