Package zombie.ui
Class TextDrawObject
java.lang.Object
zombie.ui.TextDrawObject
public class TextDrawObject
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description TextDrawObject()TextDrawObject(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 Type Method Description voidAddBatchedDraw(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)voidcalculateDimensions()voidClear()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)java.lang.StringgetCustomTag()UIFontgetDefaultFontEnum()booleangetEnabled()intgetHearRange()intgetHeight()TextDrawHorizontalgetHorizontalAlign()floatgetInternalClock()java.lang.StringgetOriginal()floatgetScrambleVal()java.lang.StringgetUnformatted()intgetVisibleRadius()intgetWidth()booleanisNullOrZeroLength()voidReadString(java.lang.String str)voidReadString(java.lang.String str, int maxLineWidth)voidReadString(UIFont font, java.lang.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(java.lang.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)voidsetDefaultFont(UIFont f)voidsetEnabled(boolean enabled)voidsetEqualizeLineHeights(boolean equalizeLineHeights)voidsetHearRange(int range)voidsetHorizontalAlign(java.lang.String horz)voidsetHorizontalAlign(TextDrawHorizontal horz)voidsetInternalTickClock(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(java.lang.String[] list)voidsetValidImages(java.lang.String[] list)voidsetVisibleRadius(int radius)floatupdateInternalTickClock()floatupdateInternalTickClock(float delta)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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() -
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
public void setCustomTag(java.lang.String tag) -
getCustomTag
public java.lang.String getCustomTag() -
setValidImages
public void setValidImages(java.lang.String[] list) -
setValidFonts
public void setValidFonts(java.lang.String[] list) -
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
public void setHorizontalAlign(java.lang.String horz) -
setHorizontalAlign
-
getHorizontalAlign
-
getOriginal
public java.lang.String getOriginal() -
getUnformatted
public java.lang.String 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
public void ReadString(java.lang.String str) -
ReadString
public void ReadString(java.lang.String str, int maxLineWidth) -
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) -
DrawRaw
public void DrawRaw(TextDrawHorizontal horz, double x, double y, float r, float g, float b, float a, boolean drawOutlines)
-