From 7ed826d244003c2e9c2fe3f0330aed1dda202a97 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Thu, 2 Jun 2022 16:14:40 +0200 Subject: [PATCH] Fix gamemode name in scoreboard --- data/ui_scripts/patches/__init__.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/ui_scripts/patches/__init__.lua diff --git a/data/ui_scripts/patches/__init__.lua b/data/ui_scripts/patches/__init__.lua new file mode 100644 index 00000000..ac0118ac --- /dev/null +++ b/data/ui_scripts/patches/__init__.lua @@ -0,0 +1,9 @@ +if (game:issingleplayer()) then + return +end + +-- defined in mp_hud/hudutils.lua +function GetGameModeName() + return Engine.Localize(Engine.TableLookup(GameTypesTable.File, + GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name)) +end