Package mindustry.game
Class MapObjectives.ShapeTextMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.PosMarker
mindustry.game.MapObjectives.ShapeTextMarker
- Enclosing class:
- MapObjectives
Displays text above a shape.
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Color
byte
float
float
float
int
float
Fields inherited from class mindustry.game.MapObjectives.PosMarker
pos
Fields inherited from class mindustry.game.MapObjectives.ObjectiveMarker
arrayIndex, autoscale, drawLayer, minimap, world
-
Constructor Summary
ConstructorsConstructorDescriptionShapeTextMarker
(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
Modifier and TypeMethodDescriptionvoid
control
(LMarkerControl type, double p1, double p2, double p3) Control marker with world processor code.void
draw
(float scaleFactor) void
Methods inherited from class mindustry.game.MapObjectives.ObjectiveMarker
fetchText, setTexture, typeName
-
Field Details
-
text
-
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
public arc.graphics.Color 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(float scaleFactor) - Overrides:
draw
in classMapObjectives.ObjectiveMarker
-
control
Description copied from class:MapObjectives.ObjectiveMarker
Control marker with world processor code. Ignores NaN (null) values.- Overrides:
control
in classMapObjectives.PosMarker
-
setText
- Overrides:
setText
in classMapObjectives.ObjectiveMarker
-