Quantcast WoWInterface - View Single Post - glow border + spark
View Single Post
04-22-18, 05:37 PM   #2
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 264
You can check my code here to see how to do it: https://github.com/greven/oUF_lumen/.../core.lua#L120

Lua Code:
  1. -- Create Glow Border
  2. function core:setglowBorder(self)
  3.   self.Glowborder = CreateFrame("Frame", nil, self)
  4.   self.Glowborder:SetFrameLevel(0)
  5.   self.Glowborder:SetPoint("TOPLEFT", self, "TOPLEFT", -6, 6)
  6.   self.Glowborder:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", 6, -6)
  7.   self.Glowborder:SetBackdrop({bgFile = m.textures.white_square, edgeFile =  m.textures.glow_texture,
  8.     tile = false, tileSize = 16, edgeSize = 4, insets = {left = -4, right = -4, top = -4, bottom = -4}})
  9.   self.Glowborder:SetBackdropColor(0, 0, 0, 0)
  10.   self.Glowborder:SetBackdropBorderColor(0, 0, 0, 1)
  11. end

And my Castbar module: https://github.com/greven/oUF_lumen/...ts/castbar.lua

This code might need some clean up but the principle still applies.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote