Package arc.flabel
Class FConfig
java.lang.Object
arc.flabel.FConfig
Configuration class that easily allows the user to fine tune the library's functionality.
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
Defines how many chars can appear per frame.static Color
Default color for theCLEARCOLOR
token.static float
Time in seconds that takes for each char to appear in the default speed.static float
Default time in seconds that an emptyWAIT
token should wait for.static boolean
Whether or not LibGDX's Color Markup Language should be enabled when parsing aFLabel
.Map of global variables that affect allFLabel
instances at once.static ObjectFloatMap<Character>
Returns a map of characters and their respective interval multipliers, of which the interval to the next char should be multiplied for. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerEffect
(String tokenName, Prov<FEffect> effect) Registers a new effect to TypeLabel.static void
unregisterEffect
(String tokenName) Unregisters an effect from TypeLabel.
-
Field Details
-
forceColorMarkupByDefault
public static boolean forceColorMarkupByDefaultWhether or not LibGDX's Color Markup Language should be enabled when parsing aFLabel
. Note that this library doesn't truly handle colors, but simply convert them to the markup format. If markup is disabled, color tokens will be ignored. -
defaultWaitValue
public static float defaultWaitValueDefault time in seconds that an emptyWAIT
token should wait for. Default value is0.250
. -
defaultSpeedPerChar
public static float defaultSpeedPerCharTime in seconds that takes for each char to appear in the default speed. Default value is0.035
. -
charLimitPerFrame
public static int charLimitPerFrameDefines how many chars can appear per frame. Use a value less than1
to disable this limit. Default value is-1
. -
defaultClearColor
Default color for theCLEARCOLOR
token. Can be overriden byFLabel.getClearColor()
. -
intervalMultipliersByChar
Returns a map of characters and their respective interval multipliers, of which the interval to the next char should be multiplied for. -
globalVars
Map of global variables that affect allFLabel
instances at once.
-
-
Constructor Details
-
FConfig
public FConfig()
-
-
Method Details
-
registerEffect
Registers a new effect to TypeLabel.- Parameters:
tokenName
- Name of the token that starts the effect, such as WAVE.
-
unregisterEffect
Unregisters an effect from TypeLabel.- Parameters:
tokenName
- Name of the token that starts the effect, such as WAVE.
-