DxGUI/dxGetTheme

From Multi Theft Auto: Wiki
Revision as of 20:11, 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 theme by name. ==Syntax== <syntaxhighlight lang="lua"> dxTheme dxGetTheme ( the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


You can use this function to get theme by name.

Syntax

dxTheme dxGetTheme ( themeName )

Required Arguments

  • themeName: A name of the theme in themes.xml


Returns

Returns a dxTheme if it is exists, false otherwise.

Example

This example creates a window based on orange theme.

local theme = dxGetTheme("Orange")
dxCreateWindow(....,theme)

See Also

Back to dxGUI page