OptionValue "CHUD_HUDColors"
{
    0, "Red"
    1, "Blue"
    2, "Green"
}

OptionValue "CCards_PreferedMode"
{
    0, "\cfStandard"
    1, "\cgHardcore"
    2, "\ctChaos"
	3, "\cfDaily Challenge"
	4, "\cvCustom"
    5, "\cjMaster"
    6, "\ciCollector"
}

OptionValue "CCards_SelectionKey"
{
    0, "Attack or Use"
    1, "Use"
    2, "Attack"
}

OptionValue "CCards_Description"
{
    0, "Show selected"
    1, "Show all three"
    2, "None"
}

OptionValue "CCards_Chooser"
{
    0, "Players take turns"
    1, "Server host chooses"
}

OptionValue "CCards_Permacards"
{
	-1, "Disabled"
    0, "Every Map"
    1, "Every 2nd map"
    2, "Every 3rd map"
    3, "Every 4th map"
    4, "Every 5th map"
    5, "Every 6th map"
    6, "Every 7th map"
    7, "Every 8th map"
    8, "Every 9th map"
    9, "Every 10th map"
}

OptionValue "CCards_Tierup"
{
	-1, "Never"
    0, "After Every Map"
    1, "After Every 2nd map"
    2, "After Every 3rd map"
    3, "After Every 4th map"
    4, "After Every 5th map"
    5, "After Every 6th map"
    6, "After Every 7th map"
    7, "After Every 8th map"
    8, "After Every 9th map"
    9, "After Every 10th map"
}

OptionValue "CardMessageSettings"
{
    0, "Screen Message"
    1, "Console Message"
    2, "Screen and Console"
    3, "Disabled"
}

OptionMenu "CorruptionCardsOptions"
{
    class "CC_TooltipOptionMenu"
    CCTooltipGeometry 0.5, 0.89, 0.6, -1, -1, 1.0
    CCTooltipAppearance "", "cyan", "TOOLBOX"

    Title "Corruption Cards Settings"

	StaticText "Controls", "Gold"
	Control "Show current card effects",					"showcards"
    CCTooltip "Bind a key/button to show your current active cards on the screen, as well as some extra details."
	Control "Open Card Compendium",	"cardcompendium"
    CCTooltip "Bind a key/button to open the Card Compendium. Can also be accessed via the Options menu without a bound key."
	StaticText ""

	StaticText "Settings", "Gold"
	Option "Prefered game mode", "ccards_preferedmode", "CCards_PreferedMode"
    CCTooltip "Your prefered game mode which will automatically be selected when launching Corruption Cards."
	Option "Card Messages", "ccards_cardalerts", "CardMessageSettings"
    CCTooltip "Certain cards will want to alert the player with an on screen message. Choose whether to display it on screen, on the console or both."
    Option "Autosave after card selection", "ccards_noautosave", "OffOn"
    CCTooltip "If enabled an autosave will be created after you have chosen a card. If autosaves are enabled, this creates a save before AND after card selection."
    Option "Offer cards on revisited levels", "ccards_allowreturnmaps", "OnOff"
    CCTooltip "Allow the game to generate cards for levels you've already been to. Recommended to turn off if using a map pack/mod that allows returning to previous levels or a hub."
    Option "Spider Graphics", "ccards_arachnophobia", "OffOn"
    CCTooltip "Some cards use spider sprites for certain effects. Turning them off replaces them with slime blobs instead."
    Option "Allow continous play", "ccards_noofferskip", "OffOn"
    CCTooltip "While enabled allows the game to continue after completing an episode/megawad, keeping all active cards. If there are no episodes left, the game can loop back to first level."

    //Option "", "ccards_allowreturnmaps", "OnOff"
    StaticText ""
    StaticText "Menus", "Gold"
    //StaticText "Disabling the menus will prevent you from selecting", "White"
	//StaticText "a different game mode and deck to use.", "White"
    Option "Disable setup menus", "ccards_skipmenus", "OnOff"
    CCTooltip "Disables the game and deck seletion screens and immediately launches the game in your prefered game mode."
	Option "Menu animations", "ccards_noanimation", "OffOn"
    CCTooltip "Disables the card dealing effect when card selection starts."
    Option "Streamer Friendly Layout", "ccards_streamermode", "OnOff"
    CCTooltip "While enabled card descriptions are shown as a numbered list, instead of having to hover over each card."
	StaticText ""

	StaticText "Random Seed", "Gold"
	//StaticText "Specify a custom seed for card generation (use 0 for random seed)", "White"
	//StaticText "Share with your friends to be offered the same cards each level!", "White"
    TextField "Seed", "ccards_seed"
    CCTooltip "Specify a custom seed for card generation. You will be offered the same cards if using a seed. Note that different mods/maps can alter how the generator chooses cards.\n\nUse '0' to choose a random seed every game."

	StaticText ""
	Submenu "Custom Game Mode Settings", "CorruptionCardsCustomSettings"
    CCTooltip "Change settings that apply when using the Custom game mode."
}

OptionMenu "CorruptionCardsCustomSettings"
{
    class "CC_TooltipOptionMenu"
    CCTooltipGeometry 0.5, 0.6, 0.6, -1, -1, 1.0
    CCTooltipAppearance "", "cyan", "TOOLBOX"

    Title "Custom Game Settings"
	StaticText "Note: These only apply in the Custom game mode!", "Cyan"
	StaticText ""
	Slider "Amount of Cards to offer the player", "ccards_handsize", 1, 8, 1, 0
    CCTooltip "The amount of cards to generate and show for the player to choose from."
	Slider "Amount of Cards that must be chosen", "ccards_cardamount", 1, 8, 1, 0
    CCTooltip "The amount of cards the player MUST choose to continue. If there aren't enough cards, the game will still continue after all cards are chosen."
	StaticText ""
	Slider "Starting Card Tier", "ccards_mintier", 1, 5, 1, 0
	Slider "Maximum Card Tier", "ccards_maxtier", 1, 5, 1, 0
    CCTooltip "Sets the minimum and maximum card tiers. Cards that are lower than the starting card tier, or higher than the maximum card tier, will be removed from card generation (where possible)."
	Option "Permanent cards", "ccards_permaprogression", "CCards_Permacards"
    CCTooltip "Choose how often to offer the player a permanent card. If the player has to choose multiple cards, all chosen cards will be permanent."
	StaticText ""
	Option "Difficulty Progression", "ccards_nodifficultyincrease", "OffOn"
    CCTooltip "If enabled, the minimum and maximum card tiers will increase every few maps, making the game more difficult as you progress."
    StaticText ""
    Option "Enable Wild Cards", "ccards_nowildcards", "OffOn"
    CCTooltip "Wild Cards are special cards that must be located in levels before they can be offered to players. Their effects vary but are usually extreme or nonsensical."
    Option "Allow Permanent Wild Cards", "ccards_nopermawildcards", "OffOn"
    CCTooltip "By default you won't be offered a Wild Card as a permanent choice, due to their extreme nature."
}

AddOptionMenu "OptionsMenu"
{
    StaticText ""
    Submenu "Corruption Cards Settings", "CorruptionCardsOptions"
	Submenu "Card Compendium", "CorruptionCardsCompendium"
}
