From 84438d46454393fd35b0de3663158c595002eb49 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 30 Dec 2025 13:28:14 -0700 Subject: [PATCH 1/4] healthbar settings --- LuaUI/Widgets/unit_healthbars.lua | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/LuaUI/Widgets/unit_healthbars.lua b/LuaUI/Widgets/unit_healthbars.lua index 674684553f..226b1ed025 100644 --- a/LuaUI/Widgets/unit_healthbars.lua +++ b/LuaUI/Widgets/unit_healthbars.lua @@ -119,7 +119,10 @@ local function OptionsChanged() drawBarPercentages = options.drawBarPercentages.value barScale = options.barScale.value debugMode = options.debugMode.value - + + + barWidth = options.barWidth.value + barHeight = options.barHeight.value healthbarDistSq = options.unitMaxHeight.value*options.unitMaxHeight.value healthbarPercentSq = options.unitPercentHeight.value*options.unitPercentHeight.value healthbarTitleSq = options.unitTitleHeight.value*options.unitTitleHeight.value @@ -131,7 +134,7 @@ end options_path = 'Settings/Interface/Healthbars' options_order = { 'showhealthbars', 'drawFeatureHealth', 'drawBarPercentages', 'flashJump', 'showEnemyStatus', - 'barScale', 'debugMode', 'minReloadTime', + 'barScale','barWidth','barHeight','debugMode', 'minReloadTime', 'unitMaxHeight', 'unitPercentHeight', 'unitTitleHeight', 'featureMaxHeight', 'featurePercentHeight', 'featureTitleHeight', 'invert_shield', 'invert_health', 'invert_building', 'invert_morph', @@ -141,6 +144,7 @@ options_order = { 'showhealthbars', 'drawFeatureHealth', 'drawBarPercentages', ' 'invert_slow', 'invert_goo', 'invert_jump', 'invert_jump_charge', 'invert_reclaim', 'invert_resurrect', } options = { + showhealthbars = { name = 'Show Healthbars', type = 'bool', @@ -185,6 +189,24 @@ options = { step = 0.25, OnChange = OptionsChanged, }, + barWidth = { + name = 'Bar width', + type = 'number', + value= 15, + min = 5, + step = 2.5, + max = 25, + OnChange = OptionsChanged, + }, + barHeight = { + name = 'Bar Height', + type = 'number', + value= 3, + min = 1, + step = .5, + max = 5, + OnChange = OptionsChanged, + }, minReloadTime = { name = 'Min reload time', type = 'number', From 114f0285bb8fa2724bdc592648b8ec336a6e9879 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 30 Dec 2025 14:13:23 -0700 Subject: [PATCH 2/4] changed the setting ranges a bit --- LuaUI/Widgets/unit_healthbars.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaUI/Widgets/unit_healthbars.lua b/LuaUI/Widgets/unit_healthbars.lua index 226b1ed025..7e04a72995 100644 --- a/LuaUI/Widgets/unit_healthbars.lua +++ b/LuaUI/Widgets/unit_healthbars.lua @@ -193,9 +193,9 @@ options = { name = 'Bar width', type = 'number', value= 15, - min = 5, + min = 2.5, step = 2.5, - max = 25, + max = 20, OnChange = OptionsChanged, }, barHeight = { From 4ea012334c0591e7c62f7dc18c0a0866689e40b1 Mon Sep 17 00:00:00 2001 From: GoogleFrog Date: Thu, 1 Jan 2026 11:03:32 +1100 Subject: [PATCH 3/4] Added more steps, style, ranges. --- LuaUI/Widgets/unit_healthbars.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LuaUI/Widgets/unit_healthbars.lua b/LuaUI/Widgets/unit_healthbars.lua index 7e04a72995..2fdc16c4d3 100644 --- a/LuaUI/Widgets/unit_healthbars.lua +++ b/LuaUI/Widgets/unit_healthbars.lua @@ -192,10 +192,10 @@ options = { barWidth = { name = 'Bar width', type = 'number', - value= 15, + value = 15, min = 2.5, - step = 2.5, - max = 20, + step = 0.25, + max = 30, OnChange = OptionsChanged, }, barHeight = { @@ -203,7 +203,7 @@ options = { type = 'number', value= 3, min = 1, - step = .5, + step = 0.1, max = 5, OnChange = OptionsChanged, }, From bd6f76e6bdffcc6938bda80c8d1015e11bee5cf2 Mon Sep 17 00:00:00 2001 From: GoogleFrog Date: Thu, 1 Jan 2026 11:05:23 +1100 Subject: [PATCH 4/4] Good thing I checked the actual default for these new values. --- LuaUI/Widgets/unit_healthbars.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaUI/Widgets/unit_healthbars.lua b/LuaUI/Widgets/unit_healthbars.lua index 2fdc16c4d3..fae719b9d7 100644 --- a/LuaUI/Widgets/unit_healthbars.lua +++ b/LuaUI/Widgets/unit_healthbars.lua @@ -192,7 +192,7 @@ options = { barWidth = { name = 'Bar width', type = 'number', - value = 15, + value = 14, min = 2.5, step = 0.25, max = 30,