Quantcast
WoWInterface - View Single Post - glow border + spark
View Single Post
04-20-18, 02:04 PM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 74
glow border + spark

Can someone help me to add an glowing border and spark texture please?

-- Castbar generator
function core:CreateCastbar(self)
local castbar = CreateFrame("StatusBar", "oUF_LumenCastBar", self)
castbar:SetStatusBarTexture(m.textures.status_texture)
castbar:GetStatusBarTexture():SetHorizTile(false)
castbar:SetFrameStrata("HIGH")
castbar:SetToplevel(true)

castbar.bg = castbar:CreateTexture(nil, 'BORDER')
castbar.bg:SetAllPoints()
castbar.bg:SetAlpha(0.3)
castbar.bg:SetTexture(m.textures.bg_texture)
castbar.bg:SetColorTexture(1/3, 1/3, 1/3)

castbar.Text = castbar:CreateFontString(nil, "OVERLAY")
castbar.Text:SetTextColor(1, 1, 1)
castbar.Text:SetShadowOffset(1, -1)
castbar.Text:SetJustifyH("LEFT")
castbar.Text:SetHeight(12)

castbar.Time = castbar:CreateFontString(nil, "OVERLAY")
castbar.Time:SetTextColor(1, 1, 1)
castbar.Time:SetJustifyH("RIGHT")

castbar.Icon = castbar:CreateTexture(nil, 'ARTWORK')
castbar.Icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  Reply With Quote