Thread Tools Display Modes
11-25-09, 01:39 AM   #1
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 58
Glow texture

I have tried to watch through a few layouts and other mods, but i can't seem to figure out how to add a "glow" texture for my unitframes (like how oUF_Caellian looks like).
__________________
Livestream | Twitter | YouTube
  Reply With Quote
11-25-09, 01:48 AM   #2
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
Originally Posted by richerich View Post
I have tried to watch through a few layouts and other mods, but i can't seem to figure out how to add a "glow" texture for my unitframes (like how oUF_Caellian looks like).
It would have to be the edgefile.

i.e.

Code:
local glow = "enter directory here"
then in style you do:

Code:
self.frame:SetBackdrop {
		  edgeFile = glow, edgeSize = 16,
		  insets = {left = 1, right = 1, top = 1, bottom = 1}
		}
		self.frame:SetBackdropColor(0, 0, 0, 0)
		self.frame:SetBackdropBorderColor(0, 0, 0)
or what ever your 'frame' is called, health, portrait, runebar, etc.

you are going to also want to add everything else, i.e. setpoint, strata, creating it. I assume you know how to do this, but all you need to do is treat it like a border i.e edgeFile.

Last edited by Ferous : 11-25-09 at 01:52 AM.
  Reply With Quote
11-25-09, 03:12 AM   #3
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 58
Hmm, tried that code, but i dont see any difference... maybe u can help me out to figure out what im doing wrong?

Code:
	self.Power = CreateFrame('StatusBar', nil, self)
	self.Power:SetFrameLevel(2)
	self.Power:SetStatusBarTexture(ppTexture)
	self.Power:SetStatusBarColor(.76, .66, .48)
	self.Power:SetAllPoints()
	self.Power.frequentUpdates = true
	self.Power.Smooth = true
        self.Power:SetBackdrop {
		  edgeFile = glow, edgeSize = 16,
		  insets = {left = 2, right = 2, top = 2, bottom = 2}
		}
	self.Power:SetBackdropColor(0, 0, 0, 0)
	self.Power:SetBackdropBorderColor(0, 0, 0)
__________________
Livestream | Twitter | YouTube
  Reply With Quote
11-25-09, 04:01 AM   #4
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
Make sure you have it identified on the top of your lua layout, in the local area:

Code:
local glow = "Interface\\AddOns\\what ever your media folder is\\glow"
make sure you have a glow texture in your media folder

then you place your glow texture in the style area under player, target, etc, which ever ones you want to have the glow texture, mine looks like this:

Code:
if unit=="player" then
    self:SetWidth(190)
	self:SetHeight(20)
	self.Name:Hide()
	self.Health.value:SetPoint("RIGHT", self.Health, 0, 0)
	self.Power.value:Show()
	self.Power.value:SetPoint("LEFT", self.Health, 0, 5) 
	self.Level:Hide()
	self.Health:SetWidth(190)
	self.Health.value:Show()
	self.Health.value:SetFont(font, 14, "OUTLINE")
	self.Power.value:SetFont(font, 14, "OUTLINE")
	self:SetBackdrop {
		  edgeFile = glowtex, edgeSize = 5,
		  insets = {left = 3, right = 3, top = 3, bottom = 3}
		}
	self:SetBackdropColor(0,0,0,.6)
And my target looks like this:

Code:
if unit=="target" then
self:SetWidth(190)
self:SetHeight(20)
self.Power.value:Hide()
self.Health.value:SetPoint("TOPRIGHT", self.Health, -2, 10)
self.Name:SetPoint("TOPLEFT", self.Level,  10, 3)
self.Name:SetWidth(150)		
self.Name:SetHeight(fontsize)
self.Health.value:SetHeight(fontsize)
self.Health:SetHeight(20)
self.Name:SetTextColor(class) --.35, .35, .35
self.Level:Hide()
self.Name:SetFont(font, 16, "OUTLINE")
self.Health.value:SetFont(font, 14,"OUTLINE")
self:SetBackdrop{
bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = true, tileSize = 16,
insets = {left = -1, right = -1, top = -1, bottom = -1},
}
self:SetBackdropColor(0,0,0,1)
  Reply With Quote
11-26-09, 12:34 PM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
search here for "xubutton" under addons.

Use the GFX and the backdrop function adjust color and you will get any outer glow you want.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Glow texture


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