WoW:API Button GetNormalFontObject: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: font = Button:GetNormalFontObject(); returns the normal font object that the button is using. i.e. :button:SetNormalFontObject("GameFontNormalSmall") :local font = button:GetNormalFont...)
 
m (Move page script moved page API Button GetNormalFontObject to API Button GetNormalFontObject without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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 04:45, 15 August 2023

Widget API ← Button < GetNormalFontObject


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]