Texit.BoxEvent

Creates a box using the +, -, and | characters

Constructors

this
this(float start, float end, Point topleft, Point bottomright, float[3] fg, float[3] bg)
Undocumented in source.
this
this(float start, float end, Point topleft, Point bottomright, float[3] fg)
Undocumented in source.

Members

Functions

disable
void disable()
Undocumented in source. Be warned that the author may not have intended to support it.
enable
void enable()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bg
float[3] bg;

Background color

br
Point br;

Bottom right

fg
float[3] fg;

Foreground color

tl
Point tl;

Top left

Inherited Members

From Event

start
float start;

When the event should appear

end
float end;

When the event should disappear (set to Infinity if the event should always be active)

triggered
bool triggered;

Whether this event has been triggered or not yet

TileChange
struct TileChange
Undocumented in source.
changedTiles
TileChange[] changedTiles;

Tiles changed by this event

enable
void enable()

Called when the event triggers

disable
void disable()

Called on the last frame of the event

time
void time(float rel, float abs)

Called every frame when the event is active.

changeTile
void changeTile(Point p, Tile t)

Changes the tile at (x, y) to the given tile

undoChanges
void undoChanges()

Undoes all changed tiles

Meta