SHARE
TWEET

Untitled

a guest Jan 5th, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hooksecurefunc("CompactUnitFrame_UpdateStatusText", function(self)
  2.     local statusText = self.statusText
  3.     if statusText and statusText:IsShown() then
  4.         if self.optionTable.healthText == "losthealth" and tonumber(statusText:GetText() or "") then
  5.             if not statusText.fontOverridden then
  6.                 statusText.fontOverridden = true
  7.                 statusText:SetFont("Fonts\\ARIALN.TTF", 16)
  8.                 statusText:SetTextColor(0.95, 0.2, 0.2)
  9.                 statusText:SetShadowColor(0, 0, 0, 1)
  10.                 statusText:SetShadowOffset(1, -1)
  11.             end
  12.         elseif statusText.fontOverridden then
  13.             statusText.fontOverridden = nil
  14.             statusText:SetFont("Fonts\\ARIALN.TTF", 16)
  15.             statusText:SetTextColor(0.5, 0.5, 0.5)
  16.             statusText:SetShadowColor(0, 0, 0, 1)
  17.             statusText:SetShadowOffset(1, -1)
  18.         end
  19.     end
  20. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top