Wikia

WoWWiki

Changes: API Button GetNormalFontObject

Edit

Back to page

m (moved Button GetNormalFontObject to API Button GetNormalFontObject: Holy writ says API pages should start with API_)
 
Line 1: Line 1:
font = Button:GetNormalFontObject();
+
{{widgetmethod}} __NOTOC__
   
returns the normal font object that the button is using.
 
   
i.e.
+
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
  +
Returns the normal font object that the button is using.
   
:button:SetNormalFontObject("GameFontNormalSmall")
+
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  +
font = Button:GetNormalFontObject();
   
:local font = button:GetNormalFontObject();
+
== Returns ==
  +
<!-- List each return value, together with its type -->
   
:font would then = "GameFontNormalSmall" which could then be modified with font:SetTextColor etc and then put back into the button.
+
:font = "GameFontNormalSmall" which could then be modified with font:SetTextColor etc and then put back into the button.
   
  +
== Also See ==
   
This is a quickie wiki page and needs to be flushed out.
+
* [[API_Button_SetNormalFontObject]]

Latest revision as of 23:27, January 8, 2009

Widget API


Returns the normal font object that the button is using.

font = Button:GetNormalFontObject();

Returns Edit

font = "GameFontNormalSmall" which could then be modified with font:SetTextColor etc and then put back into the button.

Also See Edit

Around Wikia's network

Random Wiki