Class TextDrawObject
java.lang.Object
zombie.ui.TextDrawObject
-
Constructor Summary
ConstructorsConstructorDescriptionTextDrawObject(int r, int g, int b, boolean _allowBBcode) TextDrawObject(int r, int g, int b, boolean _allowBBcode, boolean _allowImages, boolean _allowChatIcons, boolean _allowColors, boolean _allowFonts, boolean _equalizeLineHeights) -
Method Summary
Modifier and TypeMethodDescriptionvoidAddBatchedDraw(double x, double y) voidAddBatchedDraw(double x, double y, boolean drawOutlines) voidAddBatchedDraw(double x, double y, boolean drawOutlines, float alpha) voidAddBatchedDraw(double x, double y, double r, double g, double b, double a, boolean drawOutlines) voidAddBatchedDraw(TextDrawHorizontal horz, double x, double y, double r, double g, double b, double a, boolean drawOutlines) voidvoidClear()voidDraw(double x, double y) voidDraw(double x, double y, boolean drawOutlines) voidDraw(double x, double y, boolean drawOutlines, float alpha) voidDraw(double x, double y, double r, double g, double b, double a, boolean drawOutlines) voidDraw(TextDrawHorizontal horz, double x, double y, double r, double g, double b, double a, boolean drawOutlines) voidDrawRaw(TextDrawHorizontal horz, double x, double y, float r, float g, float b, float a, boolean drawOutlines) booleanintintfloatfloatintintgetWidth()booleanstatic voidNoRender(int playerNum) voidReadString(String str) voidReadString(String str, int maxLineWidth) voidReadString(UIFont font, String str, int maxLineWidth) static voidRenderBatch(int playerNum) voidsetAllowAnyImage(boolean _allowAnyImage) voidsetAllowBBcode(boolean _allowBBcode) voidsetAllowChatIcons(boolean _allowChatIcons) voidsetAllowColors(boolean _allowColors) voidsetAllowFonts(boolean _allowFonts) voidsetAllowImages(boolean _allowImages) voidsetAllowLineBreaks(boolean _allowLineBreaks) voidsetCustomImageMaxDimensions(int dim) voidsetCustomTag(String tag) voidsetDefaultColors(float r, float g, float b) voidsetDefaultColors(float r, float g, float b, float a) voidsetDefaultColors(int r, int g, int b) voidsetDefaultColors(int r, int g, int b, int a) voidvoidsetDrawBackground(boolean draw) voidsetEnabled(boolean _enabled) voidsetEqualizeLineHeights(boolean _equalizeLineHeights) voidsetHearRange(int range) voidsetHorizontalAlign(String horz) voidvoidsetInternalTickClock(float ticks) voidsetMaxCharsPerLine(int charsperline) voidsetOutlineColors(float r, float g, float b) voidsetOutlineColors(float r, float g, float b, float a) voidsetOutlineColors(int r, int g, int b) voidsetOutlineColors(int r, int g, int b, int a) voidsetScrambleVal(float value) voidsetSettings(boolean _allowBBcode, boolean _allowImages, boolean _allowChatIcons, boolean _allowColors, boolean _allowFonts, boolean _equalizeLineHeights) voidsetValidFonts(String[] strings) voidsetValidImages(String[] strings) voidsetVisibleRadius(int radius) floatfloatupdateInternalTickClock(float delta)
-
Constructor Details
-
TextDrawObject
public TextDrawObject() -
TextDrawObject
public TextDrawObject(int r, int g, int b, boolean _allowBBcode) -
TextDrawObject
public TextDrawObject(int r, int g, int b, boolean _allowBBcode, boolean _allowImages, boolean _allowChatIcons, boolean _allowColors, boolean _allowFonts, boolean _equalizeLineHeights)
-
-
Method Details
-
setEnabled
public void setEnabled(boolean _enabled) -
getEnabled
public boolean getEnabled() -
setVisibleRadius
public void setVisibleRadius(int radius) -
getVisibleRadius
public int getVisibleRadius() -
setDrawBackground
public void setDrawBackground(boolean draw) -
setAllowImages
public void setAllowImages(boolean _allowImages) -
setAllowChatIcons
public void setAllowChatIcons(boolean _allowChatIcons) -
setAllowColors
public void setAllowColors(boolean _allowColors) -
setAllowFonts
public void setAllowFonts(boolean _allowFonts) -
setAllowBBcode
public void setAllowBBcode(boolean _allowBBcode) -
setAllowAnyImage
public void setAllowAnyImage(boolean _allowAnyImage) -
setAllowLineBreaks
public void setAllowLineBreaks(boolean _allowLineBreaks) -
setEqualizeLineHeights
public void setEqualizeLineHeights(boolean _equalizeLineHeights) -
setSettings
public void setSettings(boolean _allowBBcode, boolean _allowImages, boolean _allowChatIcons, boolean _allowColors, boolean _allowFonts, boolean _equalizeLineHeights) -
setCustomTag
-
getCustomTag
-
setValidImages
-
setValidFonts
-
setMaxCharsPerLine
public void setMaxCharsPerLine(int charsperline) -
setCustomImageMaxDimensions
public void setCustomImageMaxDimensions(int dim) -
setOutlineColors
public void setOutlineColors(int r, int g, int b) -
setOutlineColors
public void setOutlineColors(int r, int g, int b, int a) -
setOutlineColors
public void setOutlineColors(float r, float g, float b) -
setOutlineColors
public void setOutlineColors(float r, float g, float b, float a) -
setDefaultColors
public void setDefaultColors(int r, int g, int b) -
setDefaultColors
public void setDefaultColors(int r, int g, int b, int a) -
setDefaultColors
public void setDefaultColors(float r, float g, float b) -
setDefaultColors
public void setDefaultColors(float r, float g, float b, float a) -
setHorizontalAlign
-
setHorizontalAlign
-
getHorizontalAlign
-
getOriginal
-
getUnformatted
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getDefaultFontEnum
-
isNullOrZeroLength
public boolean isNullOrZeroLength() -
getInternalClock
public float getInternalClock() -
setInternalTickClock
public void setInternalTickClock(float ticks) -
updateInternalTickClock
public float updateInternalTickClock() -
updateInternalTickClock
public float updateInternalTickClock(float delta) -
setScrambleVal
public void setScrambleVal(float value) -
getScrambleVal
public float getScrambleVal() -
setHearRange
public void setHearRange(int range) -
getHearRange
public int getHearRange() -
Clear
public void Clear() -
setDefaultFont
-
ReadString
-
ReadString
-
ReadString
-
calculateDimensions
public void calculateDimensions() -
Draw
public void Draw(double x, double y) -
Draw
public void Draw(double x, double y, boolean drawOutlines) -
Draw
public void Draw(double x, double y, boolean drawOutlines, float alpha) -
Draw
public void Draw(double x, double y, double r, double g, double b, double a, boolean drawOutlines) -
Draw
public void Draw(TextDrawHorizontal horz, double x, double y, double r, double g, double b, double a, boolean drawOutlines) -
AddBatchedDraw
public void AddBatchedDraw(double x, double y) -
AddBatchedDraw
public void AddBatchedDraw(double x, double y, boolean drawOutlines) -
AddBatchedDraw
public void AddBatchedDraw(double x, double y, boolean drawOutlines, float alpha) -
AddBatchedDraw
public void AddBatchedDraw(double x, double y, double r, double g, double b, double a, boolean drawOutlines) -
AddBatchedDraw
public void AddBatchedDraw(TextDrawHorizontal horz, double x, double y, double r, double g, double b, double a, boolean drawOutlines) -
RenderBatch
public static void RenderBatch(int playerNum) -
NoRender
public static void NoRender(int playerNum) -
DrawRaw
public void DrawRaw(TextDrawHorizontal horz, double x, double y, float r, float g, float b, float a, boolean drawOutlines)
-