h1-mod/data/cdata/ui_scripts/patches/__init__.lua
Vlad d71e656341
Add 'Unlock All' button in SP (#358)
* Add 'Unlock All' button in SP

* Add 'Unlock All' button in SP
* Hide useless 'Leaderboard' button

* cleanup and format

* fix errors i think

* Revert "fix errors i think"

This reverts commit bbd0287d6fa7a3fd8b4f487b1331250f39522b28.

* Revert "cleanup and format"

This reverts commit a0aeced689e10d0855510784d5cc1ba0aa7362ad.

Co-authored-by: fed <58637860+fedddddd@users.noreply.github.com>
Co-authored-by: m <mjkzyalt@gmail.com>
2022-11-20 15:11:10 -06:00

24 lines
506 B
Lua

if (game:issingleplayer()) then
require("sp_unlockall")
return
end
if (Engine.InFrontend()) then
require("shader_dialog")
require("gamemodes")
require("no_mode_switch")
require("disable_useless_things")
else
require("scoreboard")
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
function NeverAllowChangeTeams()
return false
end