Background effects tweak (#394)
* Background effects tweak
* Small fix
* Revert: 'language' deletion (4542b97
)
* cleanup + readd vignette
This commit is contained in:
parent
03d7667213
commit
163de98ad5
@ -1,23 +1,26 @@
|
|||||||
|
require("language")
|
||||||
|
require("background_effects")
|
||||||
|
|
||||||
if (game:issingleplayer()) then
|
if (game:issingleplayer()) then
|
||||||
require("sp_unlockall")
|
require("sp_unlockall")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if (Engine.InFrontend()) then
|
if (Engine.InFrontend()) then
|
||||||
require("shader_dialog")
|
require("shader_dialog")
|
||||||
require("gamemodes")
|
require("gamemodes")
|
||||||
require("no_mode_switch")
|
require("no_mode_switch")
|
||||||
require("disable_useless_things")
|
require("disable_useless_things")
|
||||||
else
|
else
|
||||||
require("scoreboard")
|
require("scoreboard")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- defined in mp_hud/hudutils.lua
|
-- defined in mp_hud/hudutils.lua
|
||||||
function GetGameModeName()
|
function GetGameModeName()
|
||||||
return Engine.Localize(Engine.TableLookup(GameTypesTable.File,
|
return Engine.Localize(Engine.TableLookup(GameTypesTable.File, GameTypesTable.Cols.Ref, GameX.GetGameMode(),
|
||||||
GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
|
GameTypesTable.Cols.Name))
|
||||||
end
|
end
|
||||||
|
|
||||||
function NeverAllowChangeTeams()
|
function NeverAllowChangeTeams()
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
11
data/cdata/ui_scripts/patches/background_effects.lua
Normal file
11
data/cdata/ui_scripts/patches/background_effects.lua
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
if (Engine.InFrontend()) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- less background blur in SP, no blur in MP
|
||||||
|
LUI.MenuTemplate.InitInGameBkg = function(f39_arg0, f39_arg1)
|
||||||
|
LUI.MenuTemplate.AddDarken(f39_arg0, f39_arg1)
|
||||||
|
if game:issingleplayer() and not LUI.FlowManager.IsMenuTopmost(Engine.GetLuiRoot(), "advanced_video") then
|
||||||
|
LUI.MenuTemplate.AddWorldBlur(f39_arg0, f39_arg1)
|
||||||
|
end
|
||||||
|
end
|
@ -1,16 +1,16 @@
|
|||||||
local gametypes = {
|
local gametypes = {
|
||||||
["dm"] = true,
|
["dm"] = true,
|
||||||
["dom"] = true,
|
["dom"] = true,
|
||||||
["sd"] = true,
|
["sd"] = true,
|
||||||
["war"] = true,
|
["war"] = true,
|
||||||
["conf"] = true,
|
["conf"] = true,
|
||||||
["vlobby"] = true,
|
["vlobby"] = true,
|
||||||
["koth"] = true,
|
["koth"] = true,
|
||||||
["sab"] = true,
|
["sab"] = true,
|
||||||
["ctf"] = true,
|
["ctf"] = true,
|
||||||
["dd"] = true,
|
["dd"] = true,
|
||||||
["hp"] = true,
|
["hp"] = true,
|
||||||
["gun"] = true,
|
["gun"] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
local func = LUI.mp_hud.Scoreboard.DetermineIfSingleTeamGameType
|
local func = LUI.mp_hud.Scoreboard.DetermineIfSingleTeamGameType
|
||||||
|
Loading…
Reference in New Issue
Block a user