Thread Tools Display Modes
01-26-12, 02:53 PM   #1
devilArt
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 51
about "SetFont", need some help

for example, i want to change the font of "GameMenuButtonOptions"
i know "GameMenuButtonOptions" is a button
so i try these
Code:
GameMenuButtonOptions:SetFont(font, size, flag)
Code:
local AAA = GameMenuButtonOptions
AAA:SetFont(font, size, flag)
clearly all wrong
i'm not a programmer, so anyone could show me the right way to done this?

sorry for my bad english
  Reply With Quote
01-26-12, 04:57 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
As a non programmer this might be more up your alley:

- Vranx/Fonts
  Reply With Quote
01-26-12, 05:24 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
To explain why your attempts weren't working, you were trying to change the font of the button itself and not the text on it. But, yes, perhaps a pre-existing addon (or the manual override method) are enough for your needs?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » about "SetFont", need some help


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