Package mindustry.game
Class MapObjectives.TextMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.PosMarker
mindustry.game.MapObjectives.TextMarker
- Enclosing class:
- MapObjectives
Displays text at a location.
-
Field Summary
FieldsFields inherited from class mindustry.game.MapObjectives.PosMarker
pos
Fields inherited from class mindustry.game.MapObjectives.ObjectiveMarker
arrayIndex, autoscale, drawLayer, minimap, world
-
Constructor Summary
ConstructorsConstructorDescriptionTextMarker
(String text, float x, float y) TextMarker
(String text, float x, float y, float fontSize, byte flags) -
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 -
flags
public byte flags
-
-
Constructor Details
-
TextMarker
-
TextMarker
-
TextMarker
public TextMarker()
-
-
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
-