Call as
UI.condition_display.defaultFont()
Record the dependency UI.condition_display.defaultFont, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.
What it does
Returns the default font for condition labels and buttons: the GameFontHighlightSmall font object, or its name when the object is not defined.
Arguments
None.
Returns
| 1 | table | string | GameFontHighlightSmall, or the string "GameFontHighlightSmall". |
|---|
Editions
Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.
- Not available on that edition (the reason is in the tooltip)
- Only while Blizzard's deprecation fallbacks are on
| Game API | |||||
|---|---|---|---|---|---|
GameFontHighlightSmall |
How the addon calls it
UI.condition_display.buttonConstructorlabel:SetFontObject(defaultFont());frame:SetSelected(false);frame.tooltip=nil;frame:RegisterForClicks('LeftButtonUp')UI.condition_display.labelConstructorfunction w:SetFontObject(font) label:SetFontObject(font or defaultFont());measure() end
Source
UI/condition_display.lua, line 14. Read only in game; Duplicate makes an editable copy.
UI.condition_display.defaultFont()
return GameFontHighlightSmall or 'GameFontHighlightSmall'




