Merge pull request #395 from VladWinner/bkg-tweak

Disable BG blur in 'Advanced video' menu
This commit is contained in:
fed 2022-12-11 20:47:55 +00:00 committed by GitHub
commit e247f6d76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,3 +190,21 @@ LUI.MenuBuilder.m_types_build["settings_menu"] = function(a1)
return menu
end
if not Engine.InFrontend() then
LUI.MenuTemplate.AddVignette = function(f36_arg0)
if not LUI.FlowManager.IsMenuTopmost(Engine.GetLuiRoot(), "advanced_video") then
local f36_local0 = CoD.CreateState(0, 0, 0, 0, CoD.AnchorTypes.All)
f36_local0.material = RegisterMaterial("h1_ui_bg_vignette")
local self = LUI.UIImage.new(f36_local0)
self:setupFullWindowElement()
f36_arg0:addElement(self)
end
end
LUI.MenuTemplate.InitInGameBkg = function(f38_arg0, f38_arg1, f38_arg2, f38_arg3)
LUI.MenuTemplate.AddDarken(f38_arg0, f38_arg1, f38_arg3, 0.55)
if not Engine.IsMultiplayer() and not LUI.FlowManager.IsMenuTopmost(Engine.GetLuiRoot(), "advanced_video") then
LUI.MenuTemplate.AddWorldBlur(f38_arg0, f38_arg1)
end
end
end