Package zombie.ui
Class TextManager
java.lang.Object
zombie.ui.TextManager
public class TextManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextManager.DeferedTextDraw
-
Field Summary
Fields Modifier and Type Field Description AngelCodeFont
codetext
AngelCodeFont
font
AngelCodeFont
font2
AngelCodeFont
font3
AngelCodeFont
font4
AngelCodeFont
fonttest
AngelCodeFont
handwritten
static TextManager
instance
AngelCodeFont
intro
AngelCodeFont
main1
AngelCodeFont
main2
AngelCodeFont[]
normal
java.util.ArrayList
todoTextList
AngelCodeFont
zombiefontcredits1
AngelCodeFont
zombiefontcredits2
AngelCodeFont
zombienew1
AngelCodeFont
zombienew2
AngelCodeFont
zombienew3
AngelCodeFont
zomboidDialogue
-
Constructor Summary
Constructors Constructor Description TextManager()
-
Method Summary
Modifier and Type Method Description void
DrawString(double x, double y, java.lang.String str)
void
DrawString(double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawString(UIFont font, double x, double y, float zoom, java.lang.String str, double r, double g, double b, double a)
void
DrawString(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringBBcode(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringCentre(double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringCentre(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringCentreDefered(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringRight(double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringRight(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawStringUntrimmed(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)
void
DrawTextFromGameWorld()
void
DrawTextObject(double x, double y, TextDrawObject td)
TextDrawObject
GetDrawTextObject(java.lang.String str, int maxLineWidth, boolean restrictImages)
AngelCodeFont
getFontFromEnum(UIFont font)
AngelCodeFont
getNormalFromFontSize(int points)
void
Init()
int
MeasureFont(UIFont font)
int
MeasureStringX(UIFont font, java.lang.String str)
int
MeasureStringY(UIFont font, java.lang.String str)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
font
-
font2
-
font3
-
font4
-
main1
-
main2
-
zombiefontcredits1
-
zombiefontcredits2
-
zombienew1
-
zombienew2
-
zomboidDialogue
-
codetext
-
fonttest
-
intro
-
handwritten
-
normal
-
zombienew3
-
instance
-
todoTextList
public java.util.ArrayList todoTextList
-
-
Constructor Details
-
TextManager
public TextManager()
-
-
Method Details
-
DrawString
public void DrawString(double x, double y, java.lang.String str) -
DrawString
public void DrawString(double x, double y, java.lang.String str, double r, double g, double b, double a) -
DrawString
public void DrawString(UIFont font, double x, double y, float zoom, java.lang.String str, double r, double g, double b, double a) -
DrawString
public void DrawString(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a) -
DrawStringUntrimmed
public void DrawStringUntrimmed(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a) -
DrawStringCentre
public void DrawStringCentre(double x, double y, java.lang.String str, double r, double g, double b, double a) -
DrawStringCentre
public void DrawStringCentre(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a) -
DrawStringCentreDefered
public void DrawStringCentreDefered(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a) -
DrawTextFromGameWorld
public void DrawTextFromGameWorld() -
DrawStringRight
public void DrawStringRight(double x, double y, java.lang.String str, double r, double g, double b, double a) -
GetDrawTextObject
public TextDrawObject GetDrawTextObject(java.lang.String str, int maxLineWidth, boolean restrictImages) -
DrawTextObject
-
DrawStringBBcode
public void DrawStringBBcode(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a) -
getNormalFromFontSize
-
getFontFromEnum
-
DrawStringRight
public void DrawStringRight(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a) -
Init
public void Init() throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
MeasureStringX
-
MeasureStringY
-
MeasureFont
-