Wiki

Clone wiki

Mono:UI / Concepts / Icons

INTRODUCED: v0.1.0
LAST UPDATED: v0.1.0

Icons

Icons are Sprites designated for use with the "icon" Property.
If you want to create your own Icons, they must be entirely white against a transparent background, and they must be square.
Icons change their appearance automatically when a "theme" Property is also provided. They also change their size depending on the font size, so make sure your Icons are not too small!

Usage

var _i = instance_create_depth( 0, 0, 0, m_Button );

MONO( _i, [
    [ "icon", spr_icon ]
] );

// Result: the created m_Button will have spr_icon on it.

See Also

Updated