Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-20-18, 02:04 PM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 75
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
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » glow border + spark

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off