[Legacy Options] Add deprecated widgets warning
This commit is contained in:
parent
db159a3385
commit
2f2bb43dd2
1 changed files with 106 additions and 3 deletions
|
@ -1,7 +1,113 @@
|
|||
local vmf = get_mod("VMF")
|
||||
|
||||
-- Legacy definitions can't be stripped because it will break following mods.
|
||||
-- Warning for these mods is not shown and their authors were notified about the update.
|
||||
-- However, new mods should not use legacy definitions.
|
||||
local LEGACY_MODS_VT2 = {
|
||||
["FBA"] = true, -- Full Body Awareness (by 🔰SkacikPL🗾)
|
||||
["crosshairs"] = true, -- Crosshairs Fix (by Skwuruhl)
|
||||
["BuffInfo"] = true, -- Buff Info (by 🔰SkacikPL🗾)
|
||||
["Spooktober"] = true, -- Spooktober (by 🔰SkacikPL🗾)
|
||||
["fly"] = true, -- Aussiemon's Free Flight Mod (by tour.dlang.org/)
|
||||
["Console"] = true, -- Console (by 🔰SkacikPL🗾)
|
||||
["lootRatAmmo"] = true, -- Sack Rat drops ammo (by NonzeroGeoduck7)
|
||||
["ff_notifier"] = true, -- The Not-So-Friendly-Fire Snitch (by Zaphio)
|
||||
["NoGlow"] = true, -- No Glow On Unique Weapons (by prop joe)
|
||||
["StreamingInfo"] = true, -- Info Dump For Streaming (by prop joe)
|
||||
["keyPickupMessage"] = true, -- Notice Key Pickup (by NonzeroGeoduck7)
|
||||
["oldTorch"] = true, -- Torch is not a weapon (by NonzeroGeoduck7)
|
||||
["color"] = true, -- Colorful Unique Weapons (by tour.dlang.org/)
|
||||
["zoom sens"] = true, -- Customizable Zoom Sensitivity (by Skwuruhl)
|
||||
["item_filter"] = true, -- Item Filter (by Gohas)
|
||||
["QuickGameMapSelect"] = true, -- Quick Play - select maps in random order (by NonzeroGeoduck7)
|
||||
["deedNoPickup"] = true, -- Deeds - Tomes / Grims in No-Pickup Mutation (by NonzeroGeoduck7)
|
||||
["hostQuickPlay"] = true, -- Host Solo Quick Play Games (by NonzeroGeoduck7)
|
||||
["RerollImprovements"] = true, -- Reroll Improvements (by prop joe)
|
||||
["bots_impulse_control"] = true, -- Bot Improvements - Impulse Control (by Squatting Bear)
|
||||
["Headshot Only"] = true, -- Headshot Only Mode (by Gohas)
|
||||
["convenience_key_actions"] = true, -- Convenience Key Actions (by Squatting Bear)
|
||||
["Stances"] = true, -- Stances (by 🔰SkacikPL🗾)
|
||||
["bloodyWeapons"] = true, -- Blood for the blood god (by ElCamino)
|
||||
["HideBuffs"] = true, -- UI Tweaks (by prop joe)
|
||||
["Pause"] = true, -- Pause (by prop joe)
|
||||
["armory"] = true, -- Armory (by Fracticality)
|
||||
["InstaKick"] = true, -- Instant Kick (by NonzeroGeoduck7)
|
||||
["AimLines"] = true, -- Aim Lines (by 🔰SkacikPL🗾)
|
||||
["ChatWheel"] = true, -- Chat Wheel (by NonzeroGeoduck7)
|
||||
["traps"] = true, -- Traps (by 🔰SkacikPL🗾)
|
||||
["BossTimer"] = true, -- BossKillTimer (by NonzeroGeoduck7)
|
||||
["Parry Indicator"] = true, -- Parry Indicator (by Gohas)
|
||||
["MMONames"] = true, -- MMO Names (by 🔰SkacikPL🗾)
|
||||
["lumberfoots"] = true, -- Handmaiden has a limited vocabulary (by raindish)
|
||||
["NoWobble"] = true, -- No Wobble (by 🔰SkacikPL🗾)
|
||||
["Weapon Zoom"] = true, -- Weapon Zoom (by Fracticality)
|
||||
["RTAT"] = true, -- Game Speed Changer (by Seelixh 🐥🦆)
|
||||
["loadout_manager_vt2"] = true, -- Loadout Manager (by Squatting Bear)
|
||||
["toggle-crits"] = true, -- Toggle Crits (by Orange Chris)
|
||||
["VermintideReloaded"] = true, -- Vermintide: Reloaded (by Alone and Afraid)
|
||||
["Instagib"] = true, -- Instagib (by Seelixh 🐥🦆)
|
||||
["fb"] = true, -- Fortress Brawl + Melee Friendly Fire (by tour.dlang.org/)
|
||||
["SPF"] = true, -- Single Player Framework (by 🔰SkacikPL🗾)
|
||||
["disco"] = true, -- Disco Lights! (by tour.dlang.org/)
|
||||
["Characters"] = true, -- Any Character! (by tour.dlang.org/)
|
||||
["Bestiary"] = true, -- Bestiary (by Fracticality)
|
||||
["Fleeting time"] = true, -- Fleeting time (by th-om)
|
||||
["gm"] = true, -- Red Shell Disabler + God Mode (by tour.dlang.org/)
|
||||
["GiveWeapon"] = true, -- Give Weapon (by prop joe)
|
||||
["MoreItemsLibrary"] = true, -- More Items Library (by Aussiemon)
|
||||
["Mission timer"] = true, -- Mission timer (by th-om)
|
||||
["feigndeath"] = true, -- Feign Death (by 🔰SkacikPL🗾)
|
||||
["UltReset"] = true, -- Ready Ult (by prop joe)
|
||||
["NerfBats"] = true, -- Nerf Bats (by dragonman68)
|
||||
["perfectdark"] = true, -- Perfect Dark (by 🔰SkacikPL🗾)
|
||||
["Extra-Sensory Deprivation"] = true, -- Extra-Sensory Deprivation (by Dwarf3d)
|
||||
["NoUltCooldown"] = true, -- No Ult Cooldown (by ThePageMan)
|
||||
["DiscordRichVermintide"] = true, -- Discord Rich Presence (by ScrappyCocco97)
|
||||
["BoltStaffTweaks"] = true, -- Bolt Staff Tweaks (by dragonman68)
|
||||
["preparations"] = true, -- Adaptation (Access inventory in match) (by 🔰SkacikPL🗾)
|
||||
["Less Annoying Friendly Fire"] = true, -- Less Annoying Friendly Fire (by pixaal)
|
||||
["RestartLevelCommand"] = true, -- Restart Level Command (by prop joe)
|
||||
["D-Lang"] = true, -- D-Lang (by tour.dlang.org/)
|
||||
["Larger Hordes"] = true, -- Larger Hordes (by \҉/̵i͏cto̡r͘ S̛al͡t̕zpy̵r͏e̢)
|
||||
["Barrels"] = true, -- Barrels Spawns For The Memes! aka the Barrel Meta (by tour.dlang.org/)
|
||||
["Fail Level Hotkey"] = true, -- Restart Level or Return to Keep Hotkeys (by \҉/̵i͏cto̡r͘ S̛al͡t̕zpy̵r͏e̢)
|
||||
["Needii"] = true, -- Needii (by Tomoko 👿)
|
||||
["LockedAndLoaded"] = true, -- LockedAndLoaded (by Badwin)
|
||||
["StickyGrim"] = true, -- StickyGrim (by Badwin)
|
||||
["Dofile"] = true, -- Execute External Lua File (by prop joe)
|
||||
["SoundEventMonitor"] = true, -- [Tool] Sound Event Monitor (by Aussiemon)
|
||||
["E308TestMod"] = true, -- Ammo Decimal Leftovers (by Sgt. Buttersworth [E-308])
|
||||
["Waypoints"] = true, -- Waypoints (by Badwin)
|
||||
["BotImprovements_HeroSelection"] = true, -- Bot Improvements - Hero Selection (by Grimalackt)
|
||||
["NumericUI"] = true, -- Numeric UI (by Necrossin)
|
||||
["BotImprovements_Combat"] = true, -- Bot Improvements - Combat (by Grimalackt)
|
||||
["CreatureSpawner"] = true, -- Creature Spawner (by Aussiemon)
|
||||
["SpawnTweaks"] = true, -- Spawn Tweaks (by prop joe)
|
||||
["MutatorsSelector"] = true, -- Mutators Selector (by prop joe)
|
||||
["FailLevelCommand"] = true, -- Fail/Win/Restart Level Command (by prop joe)
|
||||
["ItemSpawner"] = true, -- Item Spawner (by prop joe)
|
||||
["ui_improvements"] = true, -- UI Improvements (by grasmann)
|
||||
["SkipCutscenes"] = true, -- Skip Cutscenes (by Aussiemon)
|
||||
["HeatIndicator"] = true, -- Heat Indicator (by grasmann)
|
||||
["Healthbars"] = true, -- Healthbars (by grasmann)
|
||||
["ChatBlock"] = true, -- Chat Block (by grasmann)
|
||||
["ShowDamage"] = true, -- Show Damage (by grasmann)
|
||||
["Killbots"] = true, -- Killbots (by prop joe)
|
||||
["CustomHUD"] = true, -- Custom HUD (by prop joe)
|
||||
["ThirdPersonEquipment"] = true, -- Third Person Equipment (by grasmann)
|
||||
["CrosshairCustomization"] = true, -- Crosshair Customization (by prop joe)
|
||||
["TrueSoloQoL"] = true, -- True Solo QoL Tweaks (by prop joe)
|
||||
["NeuterUltEffects"] = true, -- Neuter Ult Effects (by prop joe)
|
||||
["PositiveReinforcementTweaks"] = true, -- Killfeed Tweaks (by prop joe)
|
||||
["ThirdPerson"] = true, -- Third Person (by grasmann)
|
||||
}
|
||||
|
||||
vmf.initialize_mod_options_legacy = function (mod, widgets_definition)
|
||||
if VT1 or LEGACY_MODS_VT2[mod:get_name()] then
|
||||
mod:info("Using deprecated widget definitions. Please, update your mod.")
|
||||
else
|
||||
mod:warning("Using deprecated widget definitions. Please, update your mod.")
|
||||
end
|
||||
|
||||
local mod_settings_list_widgets_definitions = {}
|
||||
|
||||
|
@ -46,9 +152,6 @@ vmf.initialize_mod_options_legacy = function (mod, widgets_definition)
|
|||
-- defining its subwidgets
|
||||
|
||||
if widgets_definition then
|
||||
|
||||
mod:info("(options): using legacy widget definitions")
|
||||
|
||||
local level = 1
|
||||
local parent_number = new_widget_index
|
||||
local parent_widget = {["widget_type"] = "header", ["sub_widgets"] = widgets_definition}
|
||||
|
|
Loading…
Add table
Reference in a new issue