DxGUI/dxGetTheme

From Multi Theft Auto: Wiki
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