Skip to content
Trudeau edited this page Aug 28, 2017 · 5 revisions

GuiControl::tangoMoveTo

void GuiControl::tangoMoveTo (
	GuiControl this
	Vector2F xy — The position to move the GuiControl to, relative to its parent.
	int ms(1 - 30000) The time, in milliseconds, it should take for the GuiControl to move.
	string easeModeX(Optional) The easing mode for the X axis. Should this not be specified, the GuiControl 	will move linearly.
	string easeModeY(Optional) The easing mode for the Y axis. Should this not be specified, it will use the X easing mode.
)

Example: myGuiControl.tangoMoveTo("100 200", 1000, "expo");

A function to smoothly move a GuiControl to a specified position, with optional easing.

GuiControl::tangoScaleTo

void GuiControl::tangoScaleTo (
	GuiControl this
	Vector2F xy — The extent to scale the GuiControl to.
	int ms(1 - 30000) The time, in milliseconds, it should take for the GuiControl to scale.
	string easeModeX(Optional) The easing mode for the X axis. Should this not be specified, the GuiControl 	will scale linearly.
	string easeModeY(Optional) The easing mode for the Y axis. Should this not be specified, it will use the X easing mode.
)

Example: myGuiControl.tangoScaleTo("96 96", 500, "circ");

Virtually the same as GuiControl::tangoMoveTo, except it scales a GuiControl instead of moving it.

GuiControl::tangoSetPosition

void GuiControl::tangoSetPosition (
	GuiControl this
	Vector2F xy — The position to set the GuiControl to, relative to its parent.
)

Example: myGuiControl.tangoSetPosition("20 0");

A function to snap a GuiControl to a desired position.

This function does not support seamless movement or easing. It is an instantaneous modifier.