Wiki

Clone wiki

Mono:UI / Scripts / m_make_theme

INTRODUCED: v0.1.0
LAST UPDATED: v0.1.1

m_make_theme

Creates a Theme using the provided colours.
Note: Game Maker uses a BGR format for its colours rather than RGB. If you want to input colours in RGB format, for example using hexadecimal notation, use the rgb parameter.

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.
Colour primary The primary colour.
Colour secondary The secondary colour.
Colour text The text colour.
Colour border The border colour.
Boolean rgb false Whether to switch the Red and Blue channels.

See Also

Updated