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 TypeMethodDescriptionvoid
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
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) boolean
int
int
float
float
int
int
getWidth()
boolean
static void
NoRender
(int playerNum) void
ReadString
(String str) void
ReadString
(String str, int maxLineWidth) void
ReadString
(UIFont font, 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
(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
void
setDrawBackground
(boolean draw) void
setEnabled
(boolean _enabled) void
setEqualizeLineHeights
(boolean _equalizeLineHeights) void
setHearRange
(int range) void
setHorizontalAlign
(String horz) void
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
(String[] string) void
setValidImages
(String[] string) void
setVisibleRadius
(int radius) float
float
updateInternalTickClock
(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)
-