Texit.ZoomEvent

Changes zoom level by one value to another over an amount of time

Constructors

this
this(float start, float end, float first, float second, Easing e)
this
this(float start, float end, float second, Easing e)

First is assumed to be prevSecond

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.
time
void time(float rel, float abs)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

prevSecond
float prevSecond;

Second of the last constructed ZoomEvent

Variables

ease
Easing ease;
Undocumented in source.
first
float first;
Undocumented in source.
second
float second;
Undocumented in source.

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