From d846b853ffddb66db5901630a08a3b45a388fec9 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sat, 4 Jan 2025 21:21:05 +0100 Subject: [PATCH] Fix for ISHealthPanel --- 42/media/lua/client/TOC/UI/HealthPanel.lua | 3 ++- 42/media/lua/shared/TOC/Debug.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/42/media/lua/client/TOC/UI/HealthPanel.lua b/42/media/lua/client/TOC/UI/HealthPanel.lua index 4c519de..15d4cae 100644 --- a/42/media/lua/client/TOC/UI/HealthPanel.lua +++ b/42/media/lua/client/TOC/UI/HealthPanel.lua @@ -102,7 +102,8 @@ function ISHealthPanel:tryDrawAmputation(highestAmputations, side, username) texture = StaticData.HEALTH_PANEL_TEXTURES[sexPl][limbName] end - self:drawTexture(texture, self.healthPanel.x, self.healthPanel.y, 1, redColor, 0, 0) + -- B42, for some reason the positioning of the texture changed. Realigned it manually with those fixed values + self:drawTexture(texture, self.healthPanel.x - 7, self.healthPanel.y - 13, 1, redColor, 0, 0) end function ISHealthPanel:tryDrawProsthesis(highestAmputations, side, username) local dc = DataController.GetInstance(username) -- TODO CACHE PROSTHESIS!!! Don't use DC here diff --git a/42/media/lua/shared/TOC/Debug.lua b/42/media/lua/shared/TOC/Debug.lua index 9b0deba..d559da9 100644 --- a/42/media/lua/shared/TOC/Debug.lua +++ b/42/media/lua/shared/TOC/Debug.lua @@ -7,7 +7,7 @@ function TOC_DEBUG.TogglePaneMod() end function TOC_DEBUG.ToggleHealthPanelDebug() - TOC_DEBUG.enableHealthPanelDebug = not TOC_DEBUG.enableHealthPanelDebug + TOC_DEBUG.enableHealthPanelDebug = not TOC_DEBUG.enableHealthPanelDebug end ---Print debug