public abstract class Overlay extends Element
Overlay2DLabel for a text label, use
Overlay2DImage for images.| Constructor and Description |
|---|
Overlay() |
| Modifier and Type | Method and Description |
|---|---|
Map |
getMap()
Gets the map of the overlay.
|
Vector3 |
getPosition()
Gets the position of the overlay
|
void |
setPosition(Coordinate position)
Anchors the overlay to a certain position on a certain map.
|
void |
setPosition(Coordinate newPosition,
float over)
Moves the overlay over a set time to a specific position and makes it show on a certain map.
|
void |
setPosition(Vector3 position)
Anchors the overlay to a certain position across all maps
|
public void setPosition(Coordinate position)
position - Coordinate that has map and position information. (the position is the
midpoint of the overlay's bottom line)public void setPosition(Vector3 position)
position - Vector3 that has position information. (the position is the
midpoint of the overlay's bottom line)public void setPosition(Coordinate newPosition, float over)
newPosition - Coordinateover - The animation timepublic Vector3 getPosition()
Coordinate contains overlay position