Advertisement
Guest User

Untitled

a guest
Jan 10th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. local CastbarHeight = 5                
  2. local CastBarIconSize = 18
  3. local frame = CreateFrame("Frame")
  4. frame:RegisterEvent("NAME_PLATE_UNIT_ADDED")
  5. frame:SetScript("OnEvent", function(self, event, unit)
  6.     if self:IsForbidden() then return end
  7.     local plate = C_NamePlate.GetNamePlateForUnit(unit).UnitFrame
  8.     plate.castBar:SetHeight(CastbarHeight)
  9.     plate.castBar.Icon:SetSize(CastBarIconSize, CastBarIconSize)
  10.     plate.castBar.Icon:SetPoint("BOTTOMRIGHT", plate.castBar, "BOTTOMLEFT", -2, 0)
  11.     plate.castBar.Icon:SetTexCoord(0.1, 0.9,0.1 , 0.9)
  12.     plate.castBar.Icon:Show()
  13.     plate.castBar.BorderShield:SetAtlas("nameplates-InterruptShield")
  14.     plate.castBar.BorderShield:SetSize(13, 15)
  15.     plate.castBar.BorderShield:SetPoint("CENTER", plate.castBar, "LEFT", 5,-0)
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement