Wiki

Clone wiki

Mono:UI / Scripts / m_get_theme

INTRODUCED: v0.1.0
LAST UPDATED: v0.1.1

m_get_theme

Retrieves a previously defined Theme.

Usage

m_make_theme( "foo", c_blue, c_green, c_yellow, c_red );

var _theme = m_get_theme( "foo" );
draw_set_colour( _theme[ __mono_EColour.text ] );
draw_text( 0, 0, "Hello World!" );

// Result: "Hello World!" in c_yellow

Parameters

Type Name Default Description
String name the name of the Theme to retrieve

Returns

The Theme that corresponds with the given name.

See Also

Updated