4e1e3ab028
* 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>
24 lines
506 B
Lua
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
|