h1-mod/data/cdata/ui_scripts/patches/background_effects.lua
Vlad 6cc8ca8d4b Background effects tweak (#394)
* Background effects tweak

* Small fix

* Revert: 'language' deletion (4542b97)

* cleanup + readd vignette
2022-12-21 13:42:52 -06:00

12 lines
385 B
Lua

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