Background effects tweak (#394)
* Background effects tweak
* Small fix
* Revert: 'language' deletion (4542b97
)
* cleanup + readd vignette
This commit is contained in:
parent
8363ea49ed
commit
6cc8ca8d4b
@ -1,3 +1,6 @@
|
||||
require("language")
|
||||
require("background_effects")
|
||||
|
||||
if (game:issingleplayer()) then
|
||||
require("sp_unlockall")
|
||||
return
|
||||
@ -14,8 +17,8 @@ end
|
||||
|
||||
-- defined in mp_hud/hudutils.lua
|
||||
function GetGameModeName()
|
||||
return Engine.Localize(Engine.TableLookup(GameTypesTable.File,
|
||||
GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
|
||||
return Engine.Localize(Engine.TableLookup(GameTypesTable.File, GameTypesTable.Cols.Ref, GameX.GetGameMode(),
|
||||
GameTypesTable.Cols.Name))
|
||||
end
|
||||
|
||||
function NeverAllowChangeTeams()
|
||||
|
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
|
@ -10,7 +10,7 @@ local gametypes = {
|
||||
["ctf"] = true,
|
||||
["dd"] = true,
|
||||
["hp"] = true,
|
||||
["gun"] = true,
|
||||
["gun"] = true
|
||||
}
|
||||
|
||||
local func = LUI.mp_hud.Scoreboard.DetermineIfSingleTeamGameType
|
||||
|
Loading…
Reference in New Issue
Block a user