
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"/////////////
			TextItem "Brutal Doom Options", "b", "BrutalMenu"
			TextItem "Credits", "c", "BrutalCreditsMenu"
		}
		else
		{
			TextItem "Options", "o", "OptionsMenu"/////////////////////
			TextItem "Brutal Doom Options", "b", "BrutalMenu"
			TextItem "Load Game", "l", "LoadGameMenu"
			TextItem "Save Game", "s", "SaveGameMenu"
			TextItem "Credits", "c", "BrutalCreditsMenu"
		}
		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 "Brutal Doom Options", "b", "BrutalMenu"
		TextItem "Credits", "c", "BrutalCreditsMenu"
		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 "BrutalMenu"
{
	Title "BRUTAL DOOM OPTIONS"
	Submenu "BD Performance Options",		"BrutalDoomOptionsPerformance"
	Submenu "BD Level Options",			"BrutalDoomOptionsLevel"
	Submenu "BD Doom Gameplay Options",			"BrutalDoomOptionsGame"
	Submenu "BD Player Options",			"BrutalDoomOptionsPlayer"
	StaticText " "
	Command "Go to Weapons Testing Map",			"map test"
}




OptionMenu "BrutalCreditsMenu"
{
	Title "CREDITS"
	Submenu "Credits - Resources",			"BDCredits1"
	Submenu "Credits - Special Thanks",			"BDCredits2"
}


OptionMenu "BrutalDoomOptionsPerformance"
{

  
  
   Title "Performance Options"
   StaticText "All changes made here have immediate effect."
   StaticText " "
	
  Option "Please, select engine you are using.", "isrunningzandronum", "SelectEngineType"
  StaticText "Due the way CVARs works, you must inform the game" 
  StaticText "if you are a client or a server with this option"
  StaticText " so you can control settings such as blood amount."
  StaticText "If you are playing alone, always use 'singleplayer'."
  StaticText "If you are hosting a server, always use 'multiplayer'."
  StaticText " "
  
  Option "Max Wall Decals", "cl_maxdecals", "maxdecals"
  Option "Max Gibs and Blood Pools", "sv_corpsequeuesize", "maxgibs"
  StaticText " "
  

  Option "Blood Amount (Server/Singleplayer)", "zdoombrutalblood", "BrutalBlood"
  Option "Blood Amount (Client/Multiplayer)", "bd_bloodamount", "BrutalBlood"
  StaticText "How much blood you want to see?"
  StaticText " "
  Option "Enable Janitor  (Server/Singleplayer)", "zdoombrutaljanitor", "YesOrNo"
  Option "Enable Janitor (Client/Multiplayer)", "bd_lowgraphicsmode", "YesOrNo"
  StaticText "Makes gibs disappear after 30 seconds."
  StaticText " "
  
  

  
  Option "Spent Casings stays on floor forever", "bd_infinitecasings", "YesOrNo"
  Option "Water Ripple Effects", "bd_disablewaterripples2", "YesOrNoFalse"
  StaticText " "
  

}


OptionMenu "BrutalDoomOptionsLevel"
{

  
  
   Title "Level Options"
   StaticText "All changes made here will take effect on next level"
   StaticText "or when you start a new game."
   StaticText " "
   
  Option "Vanilla Monsters", "bd_classicmonsters", "YesOrNo"
  StaticText "Disables new enemy AI and new attacks."
  StaticText " "
  
  Option "Advanced Decorative Objects", "bd_disabledecorations", "DisabledOption"
  StaticText "Fancy particle effects for torches and lamps."
  StaticText " "
  
  Option "Level Enhancement System", "bd_disablemapenhancements", "DisabledOption"
  StaticText "Improves several maps with better textures,"
  StaticText  "new decorations and sometimes new enemies."
  StaticText " "
  
  
   Option "Level Enhancement System - Disable Voxels", "bd_voxeldec", "YesorNoFalse"
  StaticText "Disable voxel decorations to prevent crashes on Android."
  StaticText " "
  
  Option "New Weapons", "bd_disablenewguns", "DisabledOption"
  StaticText "Selects if the new weapons should be spawned or not."
  StaticText "(Submachinegun, Assault Shotgun, Railgun, etc.)"
  StaticText " "
  
  Option "New Enemies", "bd_disablenewenemies", "DisabledOption"
  Option "Footstep Sounds", "bd_footstepsounds", "YesOrNo"
  Option "Spawn Demon Spheres", "bd_disabledemonspheres", "YesOrNoFalse"
 // StaticText "Following CVARs still doesn't works:"
  //Option "Cruelty Bonuses", "bd_disablecrueltybonus", "DisabledOption"
 // Option "Bloody Screen Effects", "bd_disablebloodyscreen", "DisabledOption"
  Option "Rescuable Marines", "bd_disablefriendlymarines", "YesOrNoFalse"
  Option "Rocket Ammo is shootable", "bd_shootablerocketammo", "YesOrNo"
}




OptionMenu "BrutalDoomOptionsGame"
{

  
  
   Title "Gameplay Options"
   StaticText "All changes made here have imediate effect."
   StaticText " "
   
   
   Option "Rocket Launcher has backblast", "bd_rocketbackblast", "YesOrNo"
  StaticText " "
   
   
   Command "Enable Reloading for all weapons",			"take turboreload"
   Command "Disable Reloading for all weapons",			"give turboreload"
   
   Command "Enable Auto-Reload",			"take NoAutoReload"
   Command "Disable Auto-Reload",			"give NoAutoReload"
   StaticText " "

}


OptionMenu "BrutalDoomOptionsPlayer"
{

  
  
   Title "Player Options"
   StaticText "All changes made here requires the level to"
   StaticText "be restarted or take effect on next level."
   StaticText " "
   
   
   Option "Player Gender", "gender", "genderOption"
   StaticText "Only works on Zandronum"
   StaticText " "
   
   Option "HUD Type", "bd_sbartype", "HUDType"
   StaticText " "
   
   Option "HUD Size", "screenblocks", "screenblocksize"
   StaticText " "
   
   Option "Show enemy health", "bd_disablescanner", "YesorNoFalse"
   StaticText " "
   StaticText " "
   StaticText " "
   
   Command "Force HUD to Restart",			"pukename BDRespawn"
   
   
   
   StaticText " "
   StaticText " "
   StaticText " "
   Option "Force GZDoom UI Scale", "uiscale", "uiscalesize"
   StaticText "Change this if you are having trouble"
   StaticText "with HUD scaling on GZDoom"
   StaticText "(does nothing on Zandronum)"
}

OptionValue "BrutalBlood"
{
	1, "1) Low"
	2, "2) Normal"
	3, "3) Lots"
	4, "4) Extreme"
	666, "5) Comical"
}

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

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





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



OptionValue "SelectEngineType"
{
	1, "Multiplayer"
	0, "Singleplayer"
}

OptionValue "genderoption"
{
	1, "Female"
	0, "Male"
}

OptionValue "screenblocksize"
{
	10, "Classic HUD"
	11, "Custom HUDs"
	12, "No HUD"
}


OptionValue "HUDType"
{
	1, "Brutal Simple 16:9"
	2, "Brutal Simple 4:3"
	3, "Minimalist"
	4, "Full Helmet"
}

OptionValue "UIScaleSize"
{
	1, "1"
	2, "2"
	3, "3"
	4, "4"
	5, "5"
	6, "6"
	7, "7"
	8, "8"
}

OptionValue "maxdecals"
{
	1, "0"
	128, "128"
	512, "512"
	1024, "1024"
	2056, "2056"
	5102, "5102"
	9999, "9999"
}


OptionValue "maxgibs"
{
	1, "0"
	64, "64"
	100, "100"
	500, "500"
	1000, "1000"
	2000, "2000"
	5000, "5000"
	10000, "10000"
	25000, "25000"
	50000, "50000"
}



OptionMenu "BDCredits1"
{

   Title "BDv21 by SGT_Mark_IV"
   StaticText "==== Graphics ===="
   StaticText "Mike12, Captain Toenail, David G, Revilution,"
   StaticText "Eriance, Perkristian, Dr. Doctor, DoomNukem,"
   StaticText "Joey_TD, Samuel 'Mryayayify' Shank, Brandon (Keeper)"
   StaticText "Pa1nki113r, CrucuxDuo, Minigunner, Jekyll Grim Payne,"
   StaticText "Scuba Steeve, Ghastly, Vader, Lynn Forest,"
   StaticText "EletricPulse, Mr. Enchanter, Doom_Jedi, Kamijou"
   StaticText "Kars van Kouwen, scalliano, Tomtefars, Das_M,"
   StaticText "Azona, Bret Arts, 3D Realms, Raven Software."
   StaticText ""
   
   
   StaticText "==== Code Contributions ===="
   StaticText "TerminusEst13, Solarsnowfall, Nash, Jekyll Grim Payne" 
   StaticText " "
   
   StaticText "==== Voice Acting ===="
   StaticText "Zero X. Diamond (Doomguy), Tiberium Soul (Marines)"
    StaticText " "
   
   StaticText "==== PSX Doom Maps ===="
   StaticText "fenderc01, Dragonsbretheren"
   
   StaticText " "
   StaticText " "
   StaticText " "
   StaticText "In case of missing names, please PM them to me either"
   StaticText "in Twitter, Discord, Moddb, Doomworld, or Zandronum forums"
}




OptionMenu "BDCredits2"
{

   Title "Special Thanks"
   
   StaticText "==== Special Sponsors ===="
   StaticText "Rowan Waltho, Tainted Reality, Josef S. E. Trendevski,"
   StaticText "Lasse Skov, Matthew J. Meade, Jian Feng"
   StaticText "Suleyman Kutlu, Khayman, SenorFussion"
   StaticText "Aaron Stockman, Kyle Quintanilla"
   StaticText " "
   
   StaticText "= V21 Testing Team (list still incomplete) ="
   StaticText "Cairn (El_Jefe) Moczygemba, Bog, TheZombie, LadySlash"
   StaticText "FusedQYou, BXN, Erebus, Miles, Jaylen (Pyrolex) Leu"	
   StaticText "Jess-James (scaryred24) Medeiros, Spart_N"
   StaticText "ManofDom, Brandon (Keeper), Deathlock176,"
   StaticText "Sir Fagtrixxx, Iddqd, Supra107, JeffSturm4nn,"
   StaticText "Jose (TootsyBowl) Lee, Joji (Battore) Iriefu,"
   StaticText "Marcin (Martinoz) Oprzadek,"   
   StaticText "Dantos, Enrico Alessandro (ZioMcCall) Marino,"  
   StaticText "blackmore103, SoulCircle, NexGuy"  
   StaticText " "
   StaticText "In case of missing names, please PM them to me either"
   StaticText "in Twitter, Discord, Moddb, Doomworld, or Zandronum forums"
   
   
   StaticText " "
   StaticText "Special Thanks To Andrew Hulshult, Finfr0sk"
   StaticText "John Romero, Bethesda's Doom Community Managers"
   
}