Skip to content

EmuText

Michael edited this page Jun 11, 2020 · 2 revisions

This class represents a basic text label.

Constructor

Inheritance: EmuCore

EmuText(x, y, width, height, text)
Parameter Type Description
x real The x coordinate where the bitfield will be created
y real The y coordinate where the bitfield will be created
w real The width of the bitfield
h real The height of the bitfield
text string The text to display

Text is rendered using the Scribble text renderer, and will recognize Scribble formatting tags. Check Scribble's wiki for more information.

Example

var text = new EmuText(32, 32, 512, 32, "The quick brown fox jumped over the lazy doggo.");
container.AddContent(option);

This will create an EmuText element and add it to a previously defined container.

var text = new EmuText(32, 64, 512, 32, "This was a [rainbow]triumph[/rainbow], I'm making a note here, [pulse][c_red]HUGE SUCCESS[/c][/pulse[");
container.AddContent(option);

This will create an EmuText element with text formatted using Scribble formatting tags.