From a546cc3392b56e97fcdb3ccfb27530d47b4ea6a0 Mon Sep 17 00:00:00 2001 From: m Date: Mon, 27 Jun 2022 13:26:58 -0500 Subject: [PATCH] add small patch to 'patches' tab (#118) [skip ci] --- data/ui_scripts/patches/__init__.lua | 1 + .../{extra_gamemodes/__init__.lua => patches/gamemodes.lua} | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) rename data/ui_scripts/{extra_gamemodes/__init__.lua => patches/gamemodes.lua} (80%) diff --git a/data/ui_scripts/patches/__init__.lua b/data/ui_scripts/patches/__init__.lua index 291f5367..85c92abf 100644 --- a/data/ui_scripts/patches/__init__.lua +++ b/data/ui_scripts/patches/__init__.lua @@ -4,6 +4,7 @@ end if (Engine.InFrontend()) then require("shaderdialog") + require("gamemodes") end -- defined in mp_hud/hudutils.lua diff --git a/data/ui_scripts/extra_gamemodes/__init__.lua b/data/ui_scripts/patches/gamemodes.lua similarity index 80% rename from data/ui_scripts/extra_gamemodes/__init__.lua rename to data/ui_scripts/patches/gamemodes.lua index 5608b759..6bdadc82 100644 --- a/data/ui_scripts/extra_gamemodes/__init__.lua +++ b/data/ui_scripts/patches/gamemodes.lua @@ -1,7 +1,3 @@ -if (game:issingleplayer() or not Engine.InFrontend()) then - return -end - Cac.GameModes.Data = { Standard = { Label = Engine.Localize("@MPUI_STANDARD_CAPS"),