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 void
AddBatchedDraw(double x, double y)
void
AddBatchedDraw(double x, double y, boolean drawOutlines)
void
AddBatchedDraw(double x, double y, boolean drawOutlines, float alpha)
void
AddBatchedDraw(double x, double y, double r, double g, double b, double a, boolean drawOutlines)
void
AddBatchedDraw(TextDrawHorizontal horz, double x, double y, double r, double g, double b, double a, boolean drawOutlines)
void
calculateDimensions()
void
Clear()
void
Draw(double x, double y)
void
Draw(double x, double y, boolean drawOutlines)
void
Draw(double x, double y, boolean drawOutlines, float alpha)
void
Draw(double x, double y, double r, double g, double b, double a, boolean drawOutlines)
void
Draw(TextDrawHorizontal horz, double x, double y, double r, double g, double b, double a, boolean drawOutlines)
void
DrawRaw(TextDrawHorizontal horz, double x, double y, float r, float g, float b, float a, boolean drawOutlines)
java.lang.String
getCustomTag()
UIFont
getDefaultFontEnum()
boolean
getEnabled()
int
getHearRange()
int
getHeight()
TextDrawHorizontal
getHorizontalAlign()
float
getInternalClock()
java.lang.String
getOriginal()
float
getScrambleVal()
java.lang.String
getUnformatted()
int
getVisibleRadius()
int
getWidth()
boolean
isNullOrZeroLength()
void
ReadString(java.lang.String str)
void
ReadString(java.lang.String str, int maxLineWidth)
void
ReadString(UIFont font, java.lang.String str, int maxLineWidth)
static void
RenderBatch(int playerNum)
void
setAllowAnyImage(boolean allowAnyImage)
void
setAllowBBcode(boolean allowBBcode)
void
setAllowChatIcons(boolean allowChatIcons)
void
setAllowColors(boolean allowColors)
void
setAllowFonts(boolean allowFonts)
void
setAllowImages(boolean allowImages)
void
setAllowLineBreaks(boolean allowLineBreaks)
void
setCustomImageMaxDimensions(int dim)
void
setCustomTag(java.lang.String tag)
void
setDefaultColors(float r, float g, float b)
void
setDefaultColors(float r, float g, float b, float a)
void
setDefaultColors(int r, int g, int b)
void
setDefaultColors(int r, int g, int b, int a)
void
setDefaultFont(UIFont f)
void
setEnabled(boolean enabled)
void
setEqualizeLineHeights(boolean equalizeLineHeights)
void
setHearRange(int range)
void
setHorizontalAlign(java.lang.String horz)
void
setHorizontalAlign(TextDrawHorizontal horz)
void
setInternalTickClock(float ticks)
void
setMaxCharsPerLine(int charsperline)
void
setOutlineColors(float r, float g, float b)
void
setOutlineColors(float r, float g, float b, float a)
void
setOutlineColors(int r, int g, int b)
void
setOutlineColors(int r, int g, int b, int a)
void
setScrambleVal(float value)
void
setSettings(boolean allowBBcode, boolean allowImages, boolean allowChatIcons, boolean allowColors, boolean allowFonts, boolean equalizeLineHeights)
void
setValidFonts(java.lang.String[] list)
void
setValidImages(java.lang.String[] list)
void
setVisibleRadius(int radius)
float
updateInternalTickClock()
float
updateInternalTickClock(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)
-