Package | Description |
---|---|
org.lazywizard.lazylib.ui |
Contains classes and methods for rendering text and simple GUI elements.
|
Modifier and Type | Method and Description |
---|---|
LazyFont.DrawableString |
LazyFont.DrawableString.append(String text)
Adds additional text to the end of the current text.
|
LazyFont.DrawableString |
LazyFont.DrawableString.append(String text,
Color color)
Adds a colored substring to the end of the current text.
|
LazyFont.DrawableString |
LazyFont.DrawableString.appendIndented(String text,
Color color,
int indent)
Adds a colored substring to the end of the current text, with indentation.
|
LazyFont.DrawableString |
LazyFont.DrawableString.appendIndented(String text,
int indent)
Adds additional text to the end of the current text, with indentation.
|
@NotNull LazyFont.DrawableString |
LazyFont.createText()
Create a
LazyFont.DrawableString with no text, ready for appending. |
@NotNull LazyFont.DrawableString |
LazyFont.createText(String text)
Create a
LazyFont.DrawableString with the specified initial text. |
@NotNull LazyFont.DrawableString |
LazyFont.createText(String text,
Color baseColor)
Create a
LazyFont.DrawableString with the specified initial text and color. |
@NotNull LazyFont.DrawableString |
LazyFont.createText(String text,
Color baseColor,
float size)
Create a
LazyFont.DrawableString with the specified initial text, color, and font size, with no text wrapping. |
@NotNull LazyFont.DrawableString |
LazyFont.createText(String text,
Color baseColor,
float size,
float maxWidth)
Create a
LazyFont.DrawableString with the specified initial text, color, and font size, with text wrapping. |
@NotNull LazyFont.DrawableString |
LazyFont.createText(String text,
Color baseColor,
float size,
float maxWidth,
float maxHeight)
Create a
LazyFont.DrawableString with the specified initial text, color, and font size, with text wrapping and
a max height - any appended text past that limit will be discarded. |