Package com.shr4pnel.casino.builders
Class LabelBuilder
java.lang.Object
com.shr4pnel.casino.builders.LabelBuilder
Create Scene2D labels on-the-fly
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlign the label to the center of its containercom.rafaskoberg.gdx.typinglabel.TypingLabelbuild()Build the label, after setting parametersnoDelay()Instead of typing out the label, display all text immediatelysetColour(com.badlogic.gdx.graphics.Color color) Set the colour of the textBegin building a new label
-
Constructor Details
-
LabelBuilder
public LabelBuilder()
-
-
Method Details
-
build
public com.rafaskoberg.gdx.typinglabel.TypingLabel build()Build the label, after setting parameters- Returns:
- A TypingLabel, which can also be assigned to a normal Scene2D Label
-
start
Begin building a new label- Parameters:
text- The text inside the label- Returns:
- The current LabelBuilder instance
-
setColour
Set the colour of the text- Parameters:
color- The color!!!!!- Returns:
- The current LabelBuilder instance
-
alignCenter
Align the label to the center of its container- Returns:
- The current LabelBuilder instance
-
noDelay
Instead of typing out the label, display all text immediately- Returns:
- The current LabelBuilder instance
-