// *** MODIFIED BY CHEBMASTER
// I mark most important places modified by me with //***Che -- unless I forget to.


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 "$BD_OPTIONS", "b", "BrutalMenu"
			TextItem "Credits", "c", "BrutalCreditsMenu"
		}
		else
		{
			TextItem "Options", "o", "OptionsMenu"/////////////////////
			TextItem "$BD_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 "$BD_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 "$BD_OPTIONS"//"BRUTAL DOOM OPTIONS"
	Submenu "BD Performance Options",		"BrutalDoomOptionsPerformance"
	Submenu "BD Level Options",			"BrutalDoomOptionsLevel"
	Submenu "BD Doom Gameplay Options",			"BrutalDoomOptionsGame"
	Submenu "BD Player Options",			"BrutalDoomOptionsPlayer"
	Submenu "$BD215_OPTIONS", "BD215Options" // "Franken-BD 21.5 Specific"
	StaticText " "
	Command "Go to BDv21 Weapons Testing Map",			"map test"
	Command "Go to FBD Testing Map",			"map 1kimp"
	StaticText " "
	Option "$FBD_DEBUG_LOGGING", "fbd_dodebuglogging", "YesOrNo"
	StaticText " "
	StaticText "  "	
	Option "$CHEBSKIES_MUSSET", "eday_music_set", "EDAYMusicSet"
	StaticText " "
	StaticText "$CHEBSKIES_MUSSET_O_1" //"The old music is INADVISABLE for streaming";
	StaticText "$CHEBSKIES_MUSSET_O_2" //"(unless you want to eat a DMCA";
	StaticText "$CHEBSKIES_MUSSET_O_3" //"for Nine Inch Nails).";
	StaticText "$CHEBSKIES_MUSSET_O_4" //"The old music isn't all old,";
	StaticText "$CHEBSKIES_MUSSET_O_5" //"partly updated with better variants.";	
	StaticText " "
	StaticText "  "	
	Option "$CHEBSKIES_DSBL_PRT_CHK", "eday_disable_purity_check", "YesOrNo"
	StaticText " "
	StaticText "$CHEBSKIES_DPC_O"
	// Note while statictext *can* be multi-line, 
	// but the menu format still treats it as a single line 
	// and it overlaps. Horribly. So, reserving for 16 lines...
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "
	StaticText " "	
	StaticText "  "	
}




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.", "fbd_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)", "zdoom_fbd_brutalblood", "BrutalBlood"
  Option "Blood Amount (Client/Multiplayer)", "bd_bloodamount", "BrutalBlood"
  StaticText "How much blood you want to see?"
  StaticText " "
  Option "Enable Janitor  (Server/Singleplayer)", "zdoom_fbd_brutaljanitor", "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 "The option 'Vanilla Monsters' was sacrificed"
  StaticText "to decrease ChebMaster's workload."
  //StaticText "Maybe, later (it is partially done)."
  //StaticText "Disables new enemy AI and new attacks."
  StaticText " "

  StaticText "The option 'Advanced Decorative Objects' was"
  StaticText "sacrificed to decrease ChebMaster's workload."  
  //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 " "
  
  StaticText "BD Weapons: Always on!"//Option "New Weapons", "bd_disablenewguns", "DisabledOption"
  StaticText "FBD does not support disabling BD's weapons."
  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"
}



//***Che

OptionMenu "BD215Options"
{
	Title "$BD_OPTIONS" //"$BD215_OPTIONS_TIT" //= "Franken-BD 21.5 Options";
	StaticText "$BD215_O_ST_1" //= "All changes made here will take effect on next level";
	StaticText "$BD215_O_ST_2" //= "or when you start a new game.";
	StaticText "$BD215_O_ST_2B" //= "In multiplayer, the server dictates.";
	StaticText " "
	
	Option "$FBD_FATALITY_AWARD", "fbd_drop_cruelty_bonuses", "FBDCrueltyProfile"
	StaticText " "
	
	Option "$FBD_SMFONT_PRFL", "fbd_use_smallfont", "FBDSmallFontProfile"
	StaticText "$FBD_O_SMFNT_1" // "Doom-standard Cyrillic chars in GZDoom are";
	StaticText "$FBD_O_SMFNT_2" // "red, not white -- unreadable when colored.";
	StaticText " "
	
	Option "$BD215_O_HSP", "fbd_headshot_profile", "FBDHeadshotProfile"
	StaticText " "
	StaticText "$HEADSH_O_1" // "FBD boasts ultra-precise headshots.";
	StaticText "$HEADSH_O_2" // "Powerful headshots stun and/or enrage.";
	StaticText "$HEADSH_O_3" // "Many monsters try dodging headshots.";
	
	
//	StaticText "$BD215_O_ST_3" //= "FBD Advanced: 2x, min 20,";
//	StaticText "$BD215_O_ST_4" //= "cap 600 limits railgun and SSG.";
//	StaticText "$BD215_O_ST_4B" //"Powerful hits stun, monsters dodge.";
//	StaticText "$BD215_O_ST_5" //= "Inflicting over 500 results in second cap of 1200";
//	StaticText " "
//	StaticText "$BD215_O_ST_6" //= "Adv. uncapped 2x: OP, railgun does 800";
//	StaticText " "
//	StaticText "$BD215_O_ST_7" //= Adv. uncapped 3x: extremely OP,";
//	StaticText "$BD215_O_ST_8" //= "railgun does 1200 one-shotting barons";
//	StaticText " "
}

OptionValue "FBDHeadshotProfile"
{
	//FUCK. Zandronum doesn't use string substitution for options, displays raw values.
	// Meaning those are NOT localizable
	
	0, "$HEADSH_2X_CAP_600"  // "2x, cap 600 (default)";
//	4, "$EMULATE_BD21" // "Emulate BD 21"
//	1, "$ADV_UNCAPPED_2X" //Adv. Flat 2x" //"$FBD_HSP_1" //= "Flat double";
	2, "$HEADSH_3X_CAP_1200" // "3x, cap 1200";
	//3, "Emulate BD 22" //"$FBD_HSP_3" //= "BD 22-like";
}

OptionValue "EDAYMusicSet"
{
	0, "$NEW_BY_ANDREW_HULSHULT" // "NEW (by Andrew Hulshult mostly)";
	1, "$OLD_RIPPED_FROM_QUAKE" // "OLD (from Quake 1/2/3, NiN etc.)";
	2, "$MUSIC_SET_NUMBER_2" // undefined, for use by music packs
}

OptionValue "FBDCrueltyProfile"
{
	0, "$DIRECT_HEALING_LIKE_BD17" //"Direct healing as BD17"
	1, "$DROP_BONUSES_LIKE_BD18_22" //"Drop bonuses as BD18..BD22"
}

OptionValue "FBDSmallFontProfile"
{
	0, "$USE_CONFONT" //"Console (default)"
	1, "$USE_SMALLFONT" //"Doom standard"
}




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"
{
/* //***Che
	1, "0"
	64, "64"
	100, "100"
	500, "500"
	1000, "1000"
	2000, "2000"
	5000, "5000"
	10000, "10000"
	25000, "25000"
	50000, "50000"
*/
	5000, "5000"
	2500, "2500"
	1000, "1000"
	50000, "50000"
	25000, "25000"
	10000, "10000"
}



OptionMenu "BDCredits1"
{

   Title "FBDv21.5"
  
   StaticText "==== BDv21 ===="
   StaticText "Sergeant Mark IV"
   StaticText " "

   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 "ChebMaster."
   StaticText ""
   
   
   StaticText "==== Code Contributions ===="
   StaticText "TerminusEst13, Solarsnowfall, Nash, Jekyll Grim Payne," 
   StaticText "ChebMaster."
   StaticText " "
   
   StaticText "==== Voice Acting ===="
   StaticText "Zero X. Diamond (Doomguy), Tiberium Soul (Marines),"
   StaticText "ChebMaster (Wannabe Maradeur)"
   StaticText " "
   
   StaticText "==== PSX Doom Maps ===="
   StaticText "fenderc01, Dragonsbretheren"
   StaticText " "
   
   StaticText "==== Sound effects ===="
   StaticText "kyles, Eelke, newlocknew, kwahmah_02, schademans, Timbre"
   StaticText "and other contributors of freesound.org,"
   StaticText "freesoundslibrary.com, ChebMaster."
   StaticText " "
   StaticText " "
   StaticText "In case of missing names, please PM them to ChebMaster"
   StaticText "via Doomworld forums."
   
}




OptionMenu "BDCredits2"
{

   Title "Special Thanks"
   
   StaticText "==== The Creator of Brutal Doom ===="
   StaticText "Sergeant Mark IV"
   StaticText " "
   
   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"
   
}