Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hooksecurefunc("CompactUnitFrame_UpdateStatusText", function(self)
- local statusText = self.statusText
- if statusText and statusText:IsShown() then
- if self.optionTable.healthText == "losthealth" and tonumber(statusText:GetText() or "") then
- if not statusText.fontOverridden then
- statusText.fontOverridden = true
- statusText:SetFont("Fonts\\ARIALN.TTF", 16)
- statusText:SetTextColor(0.95, 0.2, 0.2)
- statusText:SetShadowColor(0, 0, 0, 1)
- statusText:SetShadowOffset(1, -1)
- end
- elseif statusText.fontOverridden then
- statusText.fontOverridden = nil
- statusText:SetFont("Fonts\\ARIALN.TTF", 16)
- statusText:SetTextColor(0.5, 0.5, 0.5)
- statusText:SetShadowColor(0, 0, 0, 1)
- statusText:SetShadowOffset(1, -1)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement