Package zombie.worldMap.symbols
Class WorldMapSymbols
java.lang.Object
zombie.worldMap.symbols.WorldMapSymbols
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
final float
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddText
(String text, boolean translated, UIFont font, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) addTexture
(String symbolID, float x, float y, float r, float g, float b, float a) addTexture
(String symbolID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) addTranslatedText
(String text, UIFont font, float x, float y, float r, float g, float b, float a) addUntranslatedText
(String text, UIFont font, float x, float y, float r, float g, float b, float a) void
clear()
float
boolean
getSymbolByIndex
(int index) int
void
void
load
(ByteBuffer input, int WorldVersion) void
removeSymbolByIndex
(int index) void
render
(UIWorldMap ui) void
save
(ByteBuffer output)
-
Field Details
-
SAVEFILE_VERSION
public static final int SAVEFILE_VERSION- See Also:
-
MIN_VISIBLE_ZOOM
public final float MIN_VISIBLE_ZOOM- See Also:
-
COLLAPSED_RADIUS
public static final float COLLAPSED_RADIUS- See Also:
-
-
Constructor Details
-
WorldMapSymbols
public WorldMapSymbols()
-
-
Method Details
-
addTranslatedText
public WorldMapTextSymbol addTranslatedText(String text, UIFont font, float x, float y, float r, float g, float b, float a) -
addUntranslatedText
public WorldMapTextSymbol addUntranslatedText(String text, UIFont font, float x, float y, float r, float g, float b, float a) -
addText
public WorldMapTextSymbol addText(String text, boolean translated, UIFont font, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) -
addTexture
public WorldMapTextureSymbol addTexture(String symbolID, float x, float y, float r, float g, float b, float a) -
addTexture
public WorldMapTextureSymbol addTexture(String symbolID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) -
removeSymbolByIndex
public void removeSymbolByIndex(int index) -
clear
public void clear() -
invalidateLayout
public void invalidateLayout() -
render
-
getSymbolCount
public int getSymbolCount() -
getSymbolByIndex
-
getMiniMapSymbols
public boolean getMiniMapSymbols() -
getLayoutWorldScale
public float getLayoutWorldScale() -
save
- Throws:
IOException
-
load
- Throws:
IOException
-