Package mindustry.game
Class MapObjectives.ShapeTextMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.ShapeTextMarker
- Enclosing class:
- MapObjectives
Displays text above a shape.
-
Field Summary
Modifier and TypeFieldDescriptionbyte
float
float
float
int
float
Fields inherited from class mindustry.game.MapObjectives.ObjectiveMarker
wasAdded
-
Constructor Summary
ConstructorDescriptionShapeTextMarker
(String text, float x, float y) ShapeTextMarker
(String text, float x, float y, float radius) ShapeTextMarker
(String text, float x, float y, float radius, float rotation) ShapeTextMarker
(String text, float x, float y, float radius, float rotation, float textHeight) -
Method Summary
Methods inherited from class mindustry.game.MapObjectives.ObjectiveMarker
added, drawMinimap, fetchText, removed, typeName
-
Field Details
-
text
-
pos
-
fontSize
public float fontSize -
textHeight
public float textHeight -
flags
public byte flags -
radius
public float radius -
rotation
public float rotation -
sides
public int sides -
color
-
-
Constructor Details
-
ShapeTextMarker
-
ShapeTextMarker
-
ShapeTextMarker
-
ShapeTextMarker
public ShapeTextMarker(String text, float x, float y, float radius, float rotation, float textHeight) -
ShapeTextMarker
public ShapeTextMarker()
-
-
Method Details
-
draw
public void draw()Description copied from class:MapObjectives.ObjectiveMarker
Called in the overlay draw layer.- Overrides:
draw
in classMapObjectives.ObjectiveMarker
-