ListMenu "MainMenu"
{
	StaticPatch 94, 1, "M_DOOM"
 	Selector "M_SKULL1", -20,0
	Position 97, 72
    PatchItem "M_NGAME", "n", "Py_PlayerClassProxyMenu"
    PatchItem "M_RDTHIS","r", "ReadThisMenu"
    PatchItem "M_OPTION","o", "OptionsMenu"
    PatchItem "M_CUSTOM","c", "GameplayCustomizer"
    PatchItem "M_LOADG", "l", "LoadGameMenu"
    PatchItem "M_SAVEG", "s", "SaveGameMenu"
    PatchItem "M_QUITG", "q", "QuitMenu"
}

//Code generously donated by Dr. Pyspy, thanks man
LISTMENU "Py_PlayerClassProxyMenu"
{
	
	Staticpatch 44,1, "DINGUS"
	//StaticpatchCentered 161,1, "DINGUS"
	Selector "NOARM", 0, 0	

	position 125,25
	Linespacing 22
	
	PlayerDisplay 44, 1, "10 10 10", "80 80 80"

	// Sending a number to the episode menu will set the player class to that number
	TextItem "", "1", "EpisodeMenu", 0 // Artificer
	TextItem "", "2", "EpisodeMenu", 1 // Blastmaster Mk2
	TextItem "", "3", "EpisodeMenu", 2 // Tech Monk
	TextItem "", "4", "EpisodeMenu", 3 // Past Linked
}


ListMenu "SkillMenu"
{
    Position 90, 40
	Selector "M_SKULL1", -20,0
	staticpatch 55,0, "M_SKILL"
    Linespacing 20
}


OptionMenu "OptionsMenu"
	{
		Title "OPTIONS"
		Submenu "Customize Controls",                   "CustomizeControls"
		Submenu "Mouse options",                        "MouseOptions"
		Submenu "Joystick options",                     "JoystickOptions"
		StaticText " "
		SubMenu "Combined_Arms Options",				"GameplayCustomizer"
		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"
	}


OptionMenu "CustomizeControls"
{
    Title "CUSTOMIZE CONTROLS"
    ScrollTop 2
    StaticTextSwitchable "ENTER to change, BACKSPACE to clear", "Press new key for control, ESC to cancel", "ControlMessage"
    StaticText " "
    StaticText "Combined_Arms Controls", 1
    Control "Primary attack",                "+attack"
    Control "Secondary Attack",              "+altattack"
	Control "Reload",						 "+reload"
	Control "Zoom",							 "+zoom"
    Control "Use Item",              		 "invuse"
    StaticText " "
    Control "Use / Open",                    "+use"
    Control "Move forward",                  "+forward"
    Control "Move backward",                 "+back"
    Control "Strafe left",                   "+moveleft"
    Control "Strafe right",                  "+moveright"
    Control "Turn left",                     "+left"
    Control "Turn right",                    "+right"
    Control "Jump",                          "+jump"
    Control "Crouch",                        "+crouch"
    StaticText " "
    Control "Next weapon",                   "weapnext"
    Control "Previous weapon",               "weapprev"

    StaticText " "
    StaticText "ZDoom Controls", 1

    Control "Fire",                          "+attack"
    Control "Secondary Fire",                "+altattack"
    Control "Weapon Reload",                 "+reload"
    Control "Zoom",                          "+zoom"
    Control "Use / Open",                    "+use"
    Control "Move forward",                  "+forward"
    Control "Move backward",                 "+back"
    Control "Strafe left",                   "+moveleft"
    Control "Strafe right",                  "+moveright"
    Control "Turn left",                     "+left"
    Control "Turn right",                    "+right"
    Control "Jump",                          "+jump"
    Control "Crouch",                        "+crouch"
    Control "Crouch Toggle",                 "crouch"
    Control "Run toggle",                    "+speed"
    Control "Fly / Swim up",                 "+moveup"
    Control "Fly / Swim down",               "+movedown"
    Control "Stop flying",                   "land"
    Control "Mouse look",                    "+mlook"
    Control "Keyboard look",                 "+klook"
    Control "Look up",                       "+lookup"
    Control "Look down",                     "+lookdown"
    Control "Center view",                   "centerview"
    Control "Strafe",                        "+strafe"
    Control "Show Scoreboard",               "+showscores"
    StaticText " "
    StaticText "Chat", 1
    Control "Say",                           "messagemode"
    Control "Team say",                      "messagemode2"
    StaticText ""
    StaticText "Weapons", 1
    Control "Next weapon",                   "weapnext"
    Control "Previous weapon",               "weapprev"
    Control "Weapon Slot 1",                 "slot 1"
    Control "Weapon Slot 2",                 "slot 2"
    Control "Weapon Slot 3",                 "slot 3"
    Control "Weapon Slot 4",                 "slot 4"
    Control "Weapon Slot 5",                 "slot 5"
    Control "Weapon Slot 6",                 "slot 6"
    Control "Weapon Slot 7",                 "slot 7"
    Control "Weapon Slot 8",                 "slot 8"
    Control "Weapon Slot 9",                 "slot 9"
    Control "Weapon Slot 0",                 "slot 0"
    StaticText " "
    StaticText "Inventory", 1
    Control "Activate item",                 "invuse"
    Control "Activate all items",            "invuseall"
    Control "Next item",                     "invnext"
    Control "Previous item",                 "invprev"
    Control "Drop item",                     "invdrop"
    Control "Query item",                    "invquery"
    Control "Drop weapon",                   "weapdrop"
    StaticText " "
    StaticText "Other", 1
    Control "Toggle automap",                "togglemap"
    Control "Chasecam",                      "chase"
    Control "Coop spy",                      "spynext"
    Control "Screenshot",                    "screenshot"
    Control "Open console",                  "toggleconsole"
}



Listmenu "PlayerClassmenu"
{
    Font "NOARM"
	Staticpatch 100,-10, "CLSPIK"
	Selector "NOARM", 0, 0	
	Position 0, 0
	PlayerDisplay 45, 10, "10 10 10", "80 80 80"
	StaticPatch 0,0,"CBGPIC"
	StaticPatch 0,0,"BMSPIC"
	StaticPatch 0,0,"TCMPIC"
	StaticPatch 0,0,"PSLPIC"
	
}

OptionMenu "GameplayCustomizer"
{
	StaticText "$CACUSTOMIZE_TEXT1"
    StaticText ""


	StaticText "$CACUSTOMIZE_TEXT2",1
	Option "$CACUSTOMIZE_TEXT3", "CA_Pistolstart", "PistolStartType"

    StaticText ""

	StaticText "$CACUSTOMIZE_TEXT4",1

	Option "$CACUSTOMIZE_TEXT5", "CA_CrateContents", "WhatsInTheBox"

    StaticText ""
	
	StaticText "$CACUSTOMIZE_TEXT6",1
	
	Option "$CACUSTOMIZE_TEXT7", "CA_BerserkValue", "BerserkValue"

}


OptionValue "PistolStartType"
{
    0, "No (Normal continuous play)"
    1, "Pistol Start"
    2, "DAKKA style (Reset ammo only)"
}


OptionValue "BerserkValue"
{
    0, "+50hp but overheal"
    1, "Vanilla heal to 100"
}



OptionValue "WhatsInTheBox"
{
    0, "Random"
    1, "Plakanomicon"
    2, "Particle Smasher"
    3, ".100% Pistol"
    4, "Icarus Launcher"
    5, "Revenant Box"
}
