From c21004f197aaa2ae823c681ba82a2f92acdf881a Mon Sep 17 00:00:00 2001 From: Bill Tyros Date: Wed, 3 Dec 2025 09:25:49 -0500 Subject: [PATCH] Show unit outlines when hidden UI is enabled Fixes https://github.com/ZeroK-RTS/Zero-K/issues/5242 by removing the option to hide unit outlines when the hidden UI is enabled (set to hide them by default) in the unit outline widget --- LuaUI/Widgets/gfx_outline_shader_gl4.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/LuaUI/Widgets/gfx_outline_shader_gl4.lua b/LuaUI/Widgets/gfx_outline_shader_gl4.lua index b369ae0eca..83cfa4e49a 100644 --- a/LuaUI/Widgets/gfx_outline_shader_gl4.lua +++ b/LuaUI/Widgets/gfx_outline_shader_gl4.lua @@ -86,7 +86,6 @@ local scaleWithHeight = true local functionScaleWithHeight = true local zoomScaleRange = 0.4 local overrideDrawBoxes = false -local hideWithUi = true local function PrintDrawBox() if overrideDrawBoxes then @@ -101,7 +100,7 @@ local function PrintDrawBox() end options_path = 'Settings/Graphics/Unit Visibility/Outline' -options_order = {'thickness', 'scaleRange', 'scaleWithHeight', 'functionScaleWithHeight', 'disableWithUi', 'overrideDrawBox', 'overrideDrawBox_x', 'overrideDrawBox_y', 'overrideDrawBox_yoff'} +options_order = {'thickness', 'scaleRange', 'scaleWithHeight', 'functionScaleWithHeight', 'overrideDrawBox', 'overrideDrawBox_x', 'overrideDrawBox_y', 'overrideDrawBox_yoff'} options = { thickness = { name = 'Outline Thickness', @@ -143,16 +142,6 @@ options = { functionScaleWithHeight = self.value end, }, - disableWithUi = { - name = 'Disable with hidden UI', - desc = 'Toggles outlines with Ctrl+F5.', - type = 'bool', - value = true, - noHotkey = true, - OnChange = function (self) - hideWithUi = self.value - end, - }, -- Debug overrideDrawBox = { @@ -756,7 +745,7 @@ local useStencil = true local STENCILOPPASS = GL_DECR -- KEEP OR DECR function widget:DrawWorld() - if (hideWithUi and Spring.IsGUIHidden()) or internalDisabled then + if internalDisabled then return end