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 classTextManager.DeferedTextDraw -
Field Summary
Fields Modifier and Type Field Description AngelCodeFontcodetextAngelCodeFontfontAngelCodeFontfont2AngelCodeFontfont3AngelCodeFontfont4AngelCodeFontfonttestAngelCodeFonthandwrittenstatic TextManagerinstanceAngelCodeFontintroAngelCodeFontmain1AngelCodeFontmain2AngelCodeFont[]normaljava.util.ArrayListtodoTextListAngelCodeFontzombiefontcredits1AngelCodeFontzombiefontcredits2AngelCodeFontzombienew1AngelCodeFontzombienew2AngelCodeFontzombienew3AngelCodeFontzomboidDialogue -
Constructor Summary
Constructors Constructor Description TextManager() -
Method Summary
Modifier and Type Method Description voidDrawString(double x, double y, java.lang.String str)voidDrawString(double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawString(UIFont font, double x, double y, float zoom, java.lang.String str, double r, double g, double b, double a)voidDrawString(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringBBcode(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringCentre(double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringCentre(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringCentreDefered(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringRight(double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringRight(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawStringUntrimmed(UIFont font, double x, double y, java.lang.String str, double r, double g, double b, double a)voidDrawTextFromGameWorld()voidDrawTextObject(double x, double y, TextDrawObject td)TextDrawObjectGetDrawTextObject(java.lang.String str, int maxLineWidth, boolean restrictImages)AngelCodeFontgetFontFromEnum(UIFont font)intgetFontHeight(UIFont fontID)AngelCodeFontgetNormalFromFontSize(int points)voidInit()intMeasureFont(UIFont font)intMeasureStringX(UIFont font, java.lang.String str)intMeasureStringY(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
-
getFontHeight
-
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
-