DgsGetSystemFont: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(DGS (OOP Syntax)/(Template Organization) Mission)
(DGS OOP Syntax changing)
 
Line 7: Line 7:
mixed dgsGetSystemFont ( )
mixed dgsGetSystemFont ( )
</syntaxhighlight>
</syntaxhighlight>
{{DGS/OOP||getSystemFont|||dgsSetSystemFont}}
{{DGS/OOP|
    Method = '''dgsRootInstance''':getSystemFont|
    Counterpart = dgsSetSystemFont
}}


===Required Arguments===  
===Required Arguments===  

Latest revision as of 22:23, 3 May 2021

This function gets the default dx font element in dgs.

Syntax

mixed dgsGetSystemFont ( )

DGS OOP Syntax Help! I don't understand this!

Method: dgsRootInstance:getSystemFont(...)
Counterpart: dgsSetSystemFont

Required Arguments

None

Returns

Returns a string or an dx font element if successful, false otherwise.

Example

DGS = exports.dgs

local font = DGS:dgsGetSystemFont()
outputChatBox(font) -- Default font is "default"

See Also

General Functions

General Events