Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CastbarHeight = 5
- local CastBarIconSize = 18
- local frame = CreateFrame("Frame")
- frame:RegisterEvent("NAME_PLATE_UNIT_ADDED")
- frame:SetScript("OnEvent", function(self, event, unit)
- if self:IsForbidden() then return end
- local plate = C_NamePlate.GetNamePlateForUnit(unit).UnitFrame
- plate.castBar:SetHeight(CastbarHeight)
- plate.castBar.Icon:SetSize(CastBarIconSize, CastBarIconSize)
- plate.castBar.Icon:SetPoint("BOTTOMRIGHT", plate.castBar, "BOTTOMLEFT", -2, 0)
- plate.castBar.Icon:SetTexCoord(0.1, 0.9,0.1 , 0.9)
- plate.castBar.Icon:Show()
- plate.castBar.BorderShield:SetAtlas("nameplates-InterruptShield")
- plate.castBar.BorderShield:SetSize(13, 15)
- plate.castBar.BorderShield:SetPoint("CENTER", plate.castBar, "LEFT", 5,-0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement