OptionValue "JMIntroFormat"
{
    100, "None"
    0, "Detailed"
    1, "Classic"
    2, "Standard"
    3, "Jumpix"
    4, "Retromaze"
    5, "Hypnojump"
	6, "Juampamaze"
}

OptionValue "JMSpeedUnits"
{
    0, "mph"
    1, "km/h"
    2, "m/s"
    3, "units/tic"
    4, "units/tic (exact)"
}

OptionMenu "JMMain"
{
    Title "Jumpmaze Settings"
    StaticText "Controls", 1
    Control "Record details", "puke 999"
    Control "Leaderboards", "puke 891"
    Control "Declare ready to reset", "pukename readytoreset"
    StaticText " "
    StaticText "User Settings", 1
    Option "Scale leaderboards", "jm_boardscale", "OnOff"
    Option "Map introduction format", "jm_introformat", "JMIntroFormat"
    Option "Fist autoswitch", "jm_auto_fist", "OnOff"
    Option "Enable hints", "jm_disablehints", "OffOn"
    Option "Show key presses", "jm_keypresses", "OnOff"
    Option "Show spying players", "jm_showspying", "OnOff"
    Option "Play countdown sounds", "jm_countdownsnd", "OnOff"
    StaticText " "
    StaticText "Speedometer", 1
    Option "Enable speedometer", "jm_speedometer_disable", "OffOn"
    Option "Use vertical speed", "jm_speedometer_usez", "OnOff"
    Option "Speed units", "jm_speedometer_km", "JMSpeedUnits"
    Slider "Horizontal position", "jm_speedometer_xpos", 0, 640, 4
    Slider "Vertical position", "jm_speedometer_ypos", 0, 480, 4
    StaticText " "
    StaticText "Game Settings", 1
    StaticText "These options are only available when playing"
    StaticText "singleplayer or logged into a server via RCON"
    StaticText " "
    Option "Countdown on map start", "jm_countdown", "OnOff"
}

ListMenu "MainMenu"
{
    StaticPatch 94, 2, "M_DOOM"
    Position 97, 72
    
    TextItem "$MNU_NEWGAME", "n", "PlayerclassMenu"
    ifOption(SwapMenu)
    {
        TextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
        TextItem "$MNU_SAVEGAME", "s", "SaveGameMenu"
        TextItem "Jumpmaze Settings", "j", "JMMain"
        TextItem "$MNU_OPTIONS","o", "OptionsMenu"
    }
    else
    {
        TextItem "Jumpmaze Settings", "j", "JMMain"
        TextItem "$MNU_OPTIONS","o", "OptionsMenu"
        TextItem "$MNU_LOADGAME", "l", "LoadGameMenu"
        TextItem "$MNU_SAVEGAME", "s", "SaveGameMenu"
    }
    TextItem "$MNU_QUITGAME", "q", "QuitMenu"
}
