DxGUI/dxGetDefaultTheme

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 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