From 840b98562d68c6bf9edbb3fbe8c6e838c98e70bd Mon Sep 17 00:00:00 2001 From: UndeadZeratul Date: Thu, 15 Aug 2024 20:14:29 -0500 Subject: [PATCH] Convert Spawn Configs from enums into sliders --- LANGUAGE | 6 ++++++ MENUDEF | 21 +++------------------ 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/LANGUAGE b/LANGUAGE index 8a633f9..90dd48e 100644 --- a/LANGUAGE +++ b/LANGUAGE @@ -26,6 +26,12 @@ MENU_BACKPACKSALLOWED = "Allowed in Ammo Boxes and/or Backpacks: "; MENU_SPAWNRATE = "Spawn Rate: "; MENU_PERSISTENCY = "Persistent Spawns: "; +// Menu Option Values +MENU_ENABLED = "Enabled"; +MENU_DISABLED = "Disabled"; +MENU_REPLACEALL = "Replace All"; +MENU_WITHALL = "With All"; + // Menu Command Text MENU_RESETPERSISTENCY = "Reset Persistence Options"; HANDCHARGE_RESETALLOPTIONS = "Reset all options for Handcharge."; diff --git a/MENUDEF b/MENUDEF index fcc6dad..355e80a 100644 --- a/MENUDEF +++ b/MENUDEF @@ -1,19 +1,3 @@ -// Spawn Bias (for items that do replace) -OptionValue "SpawnBias" { - -1, "Disabled" - 0, "Replace All" - 2, "1 in 3" - 4, "1 in 5" - 9, "1 in 10" - 14, "1 in 15" - 19, "1 in 20" - 24, "1 in 25" - 49, "1 in 50" - 99, "1 in 100" - 149, "1 in 150" - 199, "1 in 200" -} - OptionMenu "HandChargeMenu" { Title "$HANDCHARGE_MENU" @@ -38,6 +22,7 @@ AddOptionMenu "HDAddonMenu" Submenu "$HANDCHARGE_MENU", "HandChargeMenu" } + OptionMenu "handchargeSpawning" { Title "$MENU_HANDCHARGE_TITLE" @@ -48,10 +33,10 @@ OptionMenu "handchargeSpawning" { StaticText "$MENU_SPAWNOPTIONS", "green" StaticText "$MENU_HANDCHARGE_CHAINSAW_SPAWNTEXT", "White" - Option "$MENU_SPAWNRATE", "handcharge_chainsaw_spawn_bias", "SpawnBias" + ScaleSlider "$MENU_SPAWNRATE", "handcharge_chainsaw_spawn_bias", -1, 999, 1, "$MENU_REPLACEALL", "$MENU_DISABLED" SafeCommand "$MENU_RESETOPTIONS", "resetcvar handcharge_chainsaw_spawn_bias" StaticText "$MENU_HANDCHARGE_SHOTGUN_SPAWNTEXT", "White" - Option "$MENU_SPAWNRATE", "handcharge_shotgun_spawn_bias", "SpawnBias" + ScaleSlider "$MENU_SPAWNRATE", "handcharge_shotgun_spawn_bias", -1, 999, 1, "$MENU_REPLACEALL", "$MENU_DISABLED" SafeCommand "$MENU_RESETOPTIONS", "resetcvar handcharge_shotgun_spawn_bias" StaticText ""