DxGUI/dxGetTheme

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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