Added prost notification in health panel

This commit is contained in:
ZioPao
2024-01-10 01:38:29 +01:00
parent 74adac6f9d
commit 81f9bbf6ea
4 changed files with 18 additions and 8 deletions

View File

@@ -183,8 +183,10 @@ function ISHealthBodyPartListBox:doDrawItem(y, item, alt)
if dcInst:getIsCauterized(limbName) then
self:drawText("- " .. getText("IGUI_HealthPanel_Cauterized"), x, y, 0.58, 0.75, 0.28, 1, UIFont.Small)
else
self:drawText("- " .. getText("IGUI_HealthPanel_Cicatrized"), x, y, 0.28, 0.89, 0.28, 1, UIFont.Small)
self:drawText("- " .. getText("IGUI_HealthPanel_Cicatrized"), x, y, 0.28, 0.89, 0.28, 1, UIFont.Small)
end
y = y + fontHgt
else
local cicaTime = dcInst:getCicatrizationTime(limbName)
@@ -196,8 +198,15 @@ function ISHealthBodyPartListBox:doDrawItem(y, item, alt)
local scaledDirtyness = math.floor(dcInst:getWoundDirtyness(limbName) * 100)
self:drawText("- " .. getText("IGUI_HealthPanel_WoundDirtyness") .. string.format(" %d", scaledDirtyness) .. "%", x, y, 0.89, 0.28, 0.28, 1, UIFont.Small)
y = y + fontHgt
end
y = y + fontHgt
if dcInst:getIsProstEquipped(limbName) then
self:drawText("- " .. getText("IGUI_HealthPanel_ProstEquipped"), x, y, 0.28, 0.89, 0.28, 1, UIFont.Small)
y = y + fontHgt
end
end