Thread Tools Display Modes
03-29-11, 08:44 PM   #1
LLozaa
A Deviate Faerie Dragon
Join Date: Jan 2011
Posts: 19
SBF monochrome outline

can any tell me which lua i should edit to get a monochrome outline like this
for SBF font cuz ive looked and cant seem to find the lines where id change the "OUTLINE" to "OUTLINEMONOCHROME"
thanks in advanced
  Reply With Quote
03-29-11, 09:00 PM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by LLozaa View Post
can any tell me which lua i should edit to get a monochrome outline like this
for SBF font cuz ive looked and cant seem to find the lines where id change the "OUTLINE" to "OUTLINEMONOCHROME"
thanks in advanced
SBFFrame.lua is probably the place. Just do a search for :SetFont and replace the last arg with "OUTLINEMONOCHROME"

I.e. Convert:

Code:
slot.name.text:SetFont(SML:Fetch("font", var.name.font), var.name.fontSize, (var.name.outline and "OUTLINE" or nil))
to:

Code:
slot.name.text:SetFont(SML:Fetch("font", var.name.font), var.name.fontSize, "OUTLINEMONOCHROME")
  Reply With Quote
03-30-11, 01:22 AM   #3
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Originally Posted by Nibelheim View Post
SBFFrame.lua is probably the place. Just do a search for :SetFont and replace the last arg with "OUTLINEMONOCHROME"

I.e. Convert:

Code:
slot.name.text:SetFont(SML:Fetch("font", var.name.font), var.name.fontSize, (var.name.outline and "OUTLINE" or nil))
to:

Code:
slot.name.text:SetFont(SML:Fetch("font", var.name.font), var.name.fontSize, "OUTLINEMONOCHROME")
I've done this before, but SBF has a 'shadow' on the font that won't seem to go away no matter what I do, and just goes into monochrome. So I learned to just keep 'outline'. =[

Trying raven atm but having a tough time trying to move the text to different spots on the icons ><
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
03-30-11, 01:27 AM   #4
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
Originally Posted by Lily.Petal View Post
I've done this before, but SBF has a 'shadow' on the font that won't seem to go away no matter what I do, and just goes into monochrome. So I learned to just keep 'outline'. =[

Trying raven atm but having a tough time trying to move the text to different spots on the icons ><
Try

Code:
slot.name.text:SetShadowColor(0, 0, 0, 0)
  Reply With Quote
03-30-11, 01:32 AM   #5
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Originally Posted by nin View Post
Try

Code:
slot.name.text:SetShadowColor(0, 0, 0, 0)
For the love of me, I could not find the SetShadowColor >.< I will look again~
I love SBF but I will probably have to switch Regardless as the 'hide party buff in raid' option doesn't seem to work anymore. /sigh; I posted in the comments but nothing so far. I hope they start working on it again soon.

(yes I know it was changed to a different ownership)
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
03-30-11, 04:11 PM   #6
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
Originally Posted by Lily.Petal View Post
Trying raven atm but having a tough time trying to move the text to different spots on the icons ><
You can adjust the text position in Raven...go to either Default or into the specific bar group and go to "layout", From there you can go to the individual text (buff/debuff name, count and stack). Remembering I think its either in "layout" or "appearance".
  Reply With Quote
03-30-11, 04:12 PM   #7
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Originally Posted by Porsha View Post
You can adjust the text position in Raven...go to either Default or into the specific bar group and go to "layout", From there you can go to the individual text (buff/debuff name, count and stack). Remembering I think its either in "layout" or "appearance".
Ya I found it earlier, thanks for the help though. It's mainly the transition from SBF to Raven that's driving me a little insane :P
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
03-30-11, 04:13 PM   #8
LLozaa
A Deviate Faerie Dragon
Join Date: Jan 2011
Posts: 19
Originally Posted by nin View Post
Try

Code:
slot.name.text:SetShadowColor(0, 0, 0, 0)
thanks for the replies guys, but like Lily.Petal said it has a shadow.
So nin did you mean to look for a line like that or to add it in the lua?

Last edited by LLozaa : 03-30-11 at 04:19 PM.
  Reply With Quote
03-30-11, 04:14 PM   #9
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Originally Posted by LLozaa View Post
thanks for the replies guys, but like Lily.Petal said it has a shadow.
So nin did you mean to look far a line like that or to add it in the lua?
Believe he means look for it~ Like I said I have been moving to Raven, so I haven't changed it or looked for it.

If anything, look for it, if you can't find it, post again.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
03-30-11, 04:18 PM   #10
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
Originally Posted by LLozaa View Post
thanks for the replies guys, but like Lily.Petal said it has a shadow.
So nin did you mean to look far a line like that or to add it in the lua?
Just open your LUA file in notepad++ (or whatever you use) and do a search for shadow. That's what I do with all my addons when I want to remove that or add a shadow.
  Reply With Quote
03-30-11, 04:29 PM   #11
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
oh sorry, I meant adding..not all addons have it in their code.

but like mentioned you can do a search and see if a string with shadowcolor already is in the code. otherwise add what i wrote.. what it does is setting the rgb too 0 alpha.

Code:
SetShadowColor(0, 0, 0, 0)
Last zero is alpha
  Reply With Quote
03-30-11, 04:34 PM   #12
LLozaa
A Deviate Faerie Dragon
Join Date: Jan 2011
Posts: 19
i figured it out
youre supposed to put nins line in there just change the
slot."name".text:SetShadowColor(0, 0, 0, 0)
to timer or count or whatever
heres my lines

if var.timer then
slot.timer:Show()
slot.timer:SetParent(slot.anchor)
slot.timer:ClearAllPoints()
slot.timer:SetPoint("CENTER", slot.anchor, "CENTER", var.timer.x, var.timer.y)
slot.timer.text:SetJustifyH(var.timer.justify)
slot.timer.text:SetShadowColor(0, 0, 0, 0)
slot.timer.text:SetFont(SML:Fetch("font", var.timer.font), var.timer.fontSize, (var.timer.outline and "OUTLINEMONOCHROME" or nil))
  Reply With Quote
03-30-11, 07:20 PM   #13
Be3f.
A Theradrim Guardian
 
Be3f.'s Avatar
Join Date: Jan 2011
Posts: 65
Originally Posted by LLozaa View Post
i figured it out

if var.timer then
slot.timer:Show()
slot.timer:SetParent(slot.anchor)
slot.timer:ClearAllPoints()
slot.timer:SetPoint("CENTER", slot.anchor, "CENTER", var.timer.x, var.timer.y)
slot.timer.text:SetJustifyH(var.timer.justify)
slot.timer.text:SetShadowColor(0, 0, 0, 0)
slot.timer.text:SetFont(SML:Fetch("font", var.timer.font), var.timer.fontSize, (var.timer.outline and "OUTLINEMONOCHROME" or nil))
Pure love, Thanks!
__________________
-- Be3f.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » SBF monochrome outline


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