Fix for ISHealthPanel

This commit is contained in:
ZioPao
2025-01-04 21:21:05 +01:00
parent 0f4117cd34
commit d846b853ff
2 changed files with 3 additions and 2 deletions

View File

@@ -102,7 +102,8 @@ function ISHealthPanel:tryDrawAmputation(highestAmputations, side, username)
texture = StaticData.HEALTH_PANEL_TEXTURES[sexPl][limbName] texture = StaticData.HEALTH_PANEL_TEXTURES[sexPl][limbName]
end 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 end
function ISHealthPanel:tryDrawProsthesis(highestAmputations, side, username) function ISHealthPanel:tryDrawProsthesis(highestAmputations, side, username)
local dc = DataController.GetInstance(username) -- TODO CACHE PROSTHESIS!!! Don't use DC here local dc = DataController.GetInstance(username) -- TODO CACHE PROSTHESIS!!! Don't use DC here

View File

@@ -7,7 +7,7 @@ function TOC_DEBUG.TogglePaneMod()
end end
function TOC_DEBUG.ToggleHealthPanelDebug() function TOC_DEBUG.ToggleHealthPanelDebug()
TOC_DEBUG.enableHealthPanelDebug = not TOC_DEBUG.enableHealthPanelDebug TOC_DEBUG.enableHealthPanelDebug = not TOC_DEBUG.enableHealthPanelDebug
end end
---Print debug ---Print debug