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.ColorbytefloatintfloatfloatintintfloatFields inherited from class mindustry.game.MapObjectives.PosMarker
posFields 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) ShapeTextMarker(String text, float x, float y, float radius, float rotation, float textHeight, int textAlign) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontrol(LMarkerControl type, double p1, double p2, double p3) Control marker with world processor code.voiddraw(float scaleFactor) voidMethods 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 -
textAlign
public int textAlign -
lineAlign
public int lineAlign -
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(String text, float x, float y, float radius, float rotation, float textHeight, int textAlign) -
ShapeTextMarker
public ShapeTextMarker()
-
-
Method Details
-
draw
public void draw(float scaleFactor) - Overrides:
drawin classMapObjectives.ObjectiveMarker
-
control
Description copied from class:MapObjectives.ObjectiveMarkerControl marker with world processor code. Ignores NaN (null) values.- Overrides:
controlin classMapObjectives.PosMarker
-
setText
- Overrides:
setTextin classMapObjectives.ObjectiveMarker
-