Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. CastingBarFrame.Border:Hide()
  2. CastingBarFrame.Text:Hide()
  3. CastingBarFrame:HookScript("OnShow",function(self)
  4. self:SetSize(200,25)
  5. self.Icon:Show()
  6. self.Icon:SetSize(25,25)
  7. end)
  8. CastingBarFrame.Flash.Show=function() return end
  9.  
  10. TargetFrameSpellBar.Border:Hide()
  11. TargetFrameSpellBar.Text:Hide()
  12. TargetFrameSpellBar:HookScript("OnShow",function(self)
  13. self:SetSize(160,16)
  14. self.Icon:Show()
  15. self.Icon:SetSize(16,16)
  16. self.BorderShield:SetSize(210,50)
  17. self.BorderShield:ClearAllPoints()
  18. self.BorderShield:SetPoint("CENTER", TargetFrameSpellBar, "CENTER", -5, 0)
  19. end)
  20. TargetFrameSpellBar.Flash.Show=function() return end
  21.  
  22. FocusFrameSpellBar.Border:Hide()
  23. FocusFrameSpellBar.Text:Hide()
  24. FocusFrameSpellBar:HookScript("OnShow",function(self)
  25. self:SetSize(160,16)
  26. self.Icon:Show()
  27. self.Icon:SetSize(16,16)
  28. self.BorderShield:SetSize(210,50)
  29. self.BorderShield:ClearAllPoints()
  30. self.BorderShield:SetPoint("CENTER", FocusFrameSpellBar, "CENTER", -5, 0)
  31. end)
  32. FocusFrameSpellBar.Flash.Show=function() return end
  33.  
  34. CastingBarFrame.timer = CastingBarFrame:CreateFontString(nil)
  35. CastingBarFrame.timer:SetFont(STANDARD_TEXT_FONT,14,"OUTLINE")
  36. CastingBarFrame.timer:SetPoint("Center", CastingBarFrame, "Center")
  37. CastingBarFrame:HookScript("OnUpdate",function(self)
  38. self.timer:SetText(format("%.3f/%.3f", max(self.value, 0), self.maxValue))
  39. end)
  40.  
  41. TargetFrameSpellBar.timer = TargetFrameSpellBar:CreateFontString(nil)
  42. TargetFrameSpellBar.timer:SetFont(STANDARD_TEXT_FONT,14,"OUTLINE")
  43. TargetFrameSpellBar.timer:SetPoint("Center", TargetFrameSpellBar, "Center")
  44. TargetFrameSpellBar:HookScript("OnUpdate",function(self)
  45. self.timer:SetText(format("%.3f/%.3f", max(self.value, 0), self.maxValue))
  46. end)
  47.  
  48. FocusFrameSpellBar.timer = FocusFrameSpellBar:CreateFontString(nil)
  49. FocusFrameSpellBar.timer:SetFont(STANDARD_TEXT_FONT,14,"OUTLINE")
  50. FocusFrameSpellBar.timer:SetPoint("Center", FocusFrameSpellBar, "Center")
  51. FocusFrameSpellBar:HookScript("OnUpdate",function(self)
  52. self.timer:SetText(format("%.3f/%.3f", max(self.value, 0), self.maxValue))
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement