DxGUI/dxGetDefaultTheme

From Multi Theft Auto: Wiki
Revision as of 20:14, 25 May 2012 by Skyline. (talk | contribs) (Created page with "<pageclass class="client" subcaption="GUI Class method"></pageclass> __NOTOC__ You can use this function to get default theme. ==Syntax== <syntaxhighlight lang="lua"> dxTheme dxGetDefaultThem...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


You can use this function to get default theme.

Syntax

dxTheme dxGetDefaultTheme ( )

Returns

Returns a dxTheme if it was successfully got which then can use other methods, false otherwise.

Example

This example create a window based on an orange theme.And create a button based on default theme.

local orange = dxGetTheme("Orange")
dxCreateWindow(....,orange)
local default = dxGetDefaultTheme()
dxCreateButton(....,default)

See Also

Back to dxGUI page