From a534755618a2aa77b36ded4c1e1aca4afee05342 Mon Sep 17 00:00:00 2001 From: ThornyFFXI <10786796+ThornyFFXI@users.noreply.github.com> Date: Thu, 12 Feb 2026 14:41:36 -0500 Subject: [PATCH 1/3] 1.11 - update imgui calls for ashita 4.3 --- HitPoints/engaged.lua | 3 ++- HitPoints/hitpoints.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HitPoints/engaged.lua b/HitPoints/engaged.lua index 6fdd26d..33f0e68 100644 --- a/HitPoints/engaged.lua +++ b/HitPoints/engaged.lua @@ -58,7 +58,7 @@ engaged.DrawWindow = function() windowFlags = bit.bor(windowFlags, ImGuiWindowFlags_NoMove); end if (imgui.Begin('HitPoints - Engaged', true, windowFlags)) then - imgui.SetWindowFontScale(engagedSettings.textScale); + imgui.PushFont(nil, engagedSettings.textScale); local winStartX, _ = imgui.GetWindowPos(); local playerTarget = AshitaCore:GetMemoryManager():GetTarget(); local targetIndex; @@ -173,6 +173,7 @@ engaged.DrawWindow = function() end end end + imgui.PopFont(); end imgui.End(); end diff --git a/HitPoints/hitpoints.lua b/HitPoints/hitpoints.lua index 4b5df5d..282aa2d 100644 --- a/HitPoints/hitpoints.lua +++ b/HitPoints/hitpoints.lua @@ -27,7 +27,7 @@ addon.name = 'HitPoints'; addon.author = 'Tirem'; -addon.version = '2.1'; +addon.version = '2.11'; addon.desc = 'Displays information bars about the target and engaged enemies.'; addon.link = 'https://github.com/tirem/hitpoints' From 94b3218cdf41ed0704b318870ad9e09e40220a28 Mon Sep 17 00:00:00 2001 From: ThornyFFXI <10786796+ThornyFFXI@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:35:17 -0500 Subject: [PATCH 2/3] 2.12 - add missing endtabbar call, prevent click to target while config is open to facilitate dragging --- HitPoints/engaged.lua | 22 ++++++++++++---------- HitPoints/hitpoints.lua | 4 +++- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/HitPoints/engaged.lua b/HitPoints/engaged.lua index 33f0e68..4364940 100644 --- a/HitPoints/engaged.lua +++ b/HitPoints/engaged.lua @@ -153,16 +153,18 @@ engaged.DrawWindow = function() imgui.Separator(); - -- Create a clickable area for the entire target entry (after all content is drawn) - local entryHeight = yDist + engagedSettings.bgPadding; - -- Use InvisibleButton positioned exactly over the background area - imgui.SetCursorScreenPos({winX + cornerOffset, winY + cornerOffset}); - if imgui.InvisibleButton('TargetEntry'..k, {rectLength - cornerOffset, entryHeight}) then - -- Handle click - target this entity - local serverId = AshitaCore:GetMemoryManager():GetEntity():GetServerId(k); - local decimalId = tonumber(serverId); - if decimalId and decimalId > 0 then - AshitaCore:GetChatManager():QueueCommand(-1, '/target ' .. decimalId); + if not gShowConfig[1] then + -- Create a clickable area for the entire target entry (after all content is drawn) + local entryHeight = yDist + engagedSettings.bgPadding; + -- Use InvisibleButton positioned exactly over the background area + imgui.SetCursorScreenPos({winX + cornerOffset, winY + cornerOffset}); + if imgui.InvisibleButton('TargetEntry'..k, {rectLength - cornerOffset, entryHeight}) then + -- Handle click - target this entity + local serverId = AshitaCore:GetMemoryManager():GetEntity():GetServerId(k); + local decimalId = tonumber(serverId); + if decimalId and decimalId > 0 then + AshitaCore:GetChatManager():QueueCommand(-1, '/target ' .. decimalId); + end end end diff --git a/HitPoints/hitpoints.lua b/HitPoints/hitpoints.lua index 282aa2d..a62e1c6 100644 --- a/HitPoints/hitpoints.lua +++ b/HitPoints/hitpoints.lua @@ -27,7 +27,7 @@ addon.name = 'HitPoints'; addon.author = 'Tirem'; -addon.version = '2.11'; +addon.version = '2.12'; addon.desc = 'Displays information bars about the target and engaged enemies.'; addon.link = 'https://github.com/tirem/hitpoints' @@ -232,6 +232,8 @@ local function DrawConfig() end imgui.EndTabItem(); end + + imgui.EndTabBar(); end imgui.End(); end From dafc7312c89a350986a673e3a0a120710f517d12 Mon Sep 17 00:00:00 2001 From: ThornyFFXI <10786796+ThornyFFXI@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:44:48 -0500 Subject: [PATCH 3/3] fix scaling with new imgui call (mistake i introduced myself) --- HitPoints/engaged.lua | 3 ++- HitPoints/hitpoints.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HitPoints/engaged.lua b/HitPoints/engaged.lua index 4364940..9bd2dba 100644 --- a/HitPoints/engaged.lua +++ b/HitPoints/engaged.lua @@ -58,7 +58,8 @@ engaged.DrawWindow = function() windowFlags = bit.bor(windowFlags, ImGuiWindowFlags_NoMove); end if (imgui.Begin('HitPoints - Engaged', true, windowFlags)) then - imgui.PushFont(nil, engagedSettings.textScale); + local fontSize = imgui.GetFontSize(); + imgui.PushFont(nil, fontSize * engagedSettings.textScale); local winStartX, _ = imgui.GetWindowPos(); local playerTarget = AshitaCore:GetMemoryManager():GetTarget(); local targetIndex; diff --git a/HitPoints/hitpoints.lua b/HitPoints/hitpoints.lua index a62e1c6..8ee0f72 100644 --- a/HitPoints/hitpoints.lua +++ b/HitPoints/hitpoints.lua @@ -27,7 +27,7 @@ addon.name = 'HitPoints'; addon.author = 'Tirem'; -addon.version = '2.12'; +addon.version = '2.13'; addon.desc = 'Displays information bars about the target and engaged enemies.'; addon.link = 'https://github.com/tirem/hitpoints'