Disable BG blur in 'Advanced video' menu
This commit is contained in:
parent
ecbb9812be
commit
206de84667
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user