Thread Tools Display Modes
10-10-10, 02:20 PM   #1
Velran
A Murloc Raider
 
Velran's Avatar
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 5
Addon Font Styles Trouble

Hi. I'm having trouble getting all the font styles the same on each addon in my ui, as most of them don't have options for outlines and/or shadows. What i'm wanting is an outlined, non shadowed style. I've managed to achieve this on some addons, but not others. Here's the addons that I haven't been able to configure:

Addons I need to add an outline to: Deus Vox Encounters, Recount, ForteXorcist Spell Timer.
Addons I need to remove the shadow from: Prat, Gnosis, Deus Vox Encounters, Satrina's Buff Frames, Grid, Recount, Omen, Shadowed Unit Frames, ForteXorcist Spell Timer.

If anyone can help me to configure even some of these it would be a huge help.

Thanks in advance.
  Reply With Quote
10-10-10, 03:37 PM   #2
Xinhuan
A Chromatic Dragonspawn
 
Xinhuan's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 174
Unfortunately, you will need to edit code to add/remove outlines and shadows from the fonts in all those addons.

Generally speaking shadows are far more annoying to code in options for, because a font can set an optional shadow at a specified (x, y) offset, with a specified (r, g, b, a) color - so up to 6 user options for the user to set.

Outlines on the other hand, is just one option with "none", "thin" and "thick" - far easier.
__________________
Author of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, GatherMate2, Routes and Cartographer_Routes
  Reply With Quote
10-10-10, 03:48 PM   #3
Velran
A Murloc Raider
 
Velran's Avatar
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 5
Yeah, i thought I would have to.

The problem is I know little about coding. Would I be looking for a code exactly the same in all the addons?

Or would you be able to do an example one for me? So how it is before and then after.

Would be much appriciated

Last edited by Velran : 10-10-10 at 03:59 PM.
  Reply With Quote
10-11-10, 12:05 AM   #4
Xinhuan
A Chromatic Dragonspawn
 
Xinhuan's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 174
I can tell you it will be wildly different from addon to addon.

In Omen, you will need to look at a few places:

In function Omen:UpdateBarLabelSettings(), code needs to be added to each of

bars[i].Text1
bars[i].Text2
bars[i].Text3

as well as

bars[0].Text1
bars[0].Text2
bars[0].Text3

outside the loop, to also call :SetShadowColor(r, g, b, a) and :SetShadowOffset(x, y)

In the section of code following
setmetatable(bars, {__index = function(self, barID)
on line 1054, similar code to be added to bar.Text1, bar.Text2 and bar.Text3

And similarly in Omen:UpdateTitleBar() and Omen:CreateFrames() for self.TitleText.
__________________
Author of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, GatherMate2, Routes and Cartographer_Routes
  Reply With Quote
10-11-10, 04:57 AM   #5
Velran
A Murloc Raider
 
Velran's Avatar
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 5
Thanks alot for the help
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Addon Font Styles Trouble


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