Package com.github.tommyettinger.textra
package com.github.tommyettinger.textra
Contains the core of the library, such as the TypingLabel and Font classes.
-
ClassDescriptionA utility class for loading
BitmapFont
instances from Structured JSON files (which use .json or .dat).Mainly for internal use; allows loading BitmapFontData from a Structured JSON Font instead of a .fnt file.Allows looking up an RGBA8888 int color given a String key, returning either the color or 256 if none was found.Abstract text effect.A functional interface that is meant to be used with the 2-parameter constructor available for all Effects here, using a method reference such asWaveEffect::new
.A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects.Defines what types of distance field font this can use and render.Holds up to 16 Font values, accessible by index or by name, that markup can switch between while rendering.Describes the region of a glyph in a larger TextureRegion, carrying a little more info about the offsets that apply to where the glyph is rendered.A subclass ofSkin
that includes a serializer for Structured JSON Fonts, which are typically generated by fontwriter (hence the "FW" in the name).AnAssetLoader
to load aFWSkin
.A button with a childImage
andTextraLabel
.A button with a childImage
andTypingLabel
.Preconfigured staticFont
instances, with any important metric adjustments already applied.A replacement for libGDX's GlyphLayout, more or less; stores one or more (possibly empty)Line
s of text, which can use color and style markup fromFont
, and can be drawn withFont.drawGlyphs(Batch, Layout, float, float, int)
.One line of possibly-colorful, possibly-styled text, with a width and height set byFont.markup(String, Layout)
on Lines in aLayout
.Utility class to parse tokens from aTypingLabel
; not intended for external use in most situations.An outer class that holds all styles for TextraTypist widgets.The style for a select box, seeTextraCheckBox
orTypingCheckBox
.The style for an image text button, seeImageTextraButton
.The style for aTextraLabel
orTypingLabel
.The style for a ListBox, seeTextraListBox
.The style for a select box, seeTextraSelectBox
.The style for a text button, seeTextraButton
orTypingButton
.The style for a text tooltip, seeTextraTooltip
orTypingTooltip
.The style for a window, seeTextraWindow
orTypingWindow
.A button with a childTextraLabel
to display text.A checkbox is a button that contains an image indicating the checked or unchecked state and aTextraLabel
.Displays a dialog, which is a window with a title, a content table, and a button table.A single-line text input field.The defaultTextraField.OnscreenKeyboard
used by allTextraField
instances.An interface for onscreen keyboards.Interface for filtering characters entered into the text field.Interface for listening to typed characters.A scene2d.ui Widget that displays text using aFont
rather than a libGDX BitmapFont.TextraListBox<T extends TextraLabel>A TextraListBox (based onList
) displaysTextraLabel
s and highlights the currently selected item.A select box (aka a drop-down list) allows a user to choose one of a number of values from a list.The scroll pane shown when a select box is open.A tooltip that shows a TextraLabel.A table that can be dragged and act as a modal window.Simple listener for label events.A button with a childTypingLabel
to display text.A checkbox is a button that contains an image indicating the checked or unchecked state and aTypingLabel
.Configuration class that easily allows the user to fine tune the library's functionality.Displays a dialog, which is aTypingWindow
with aTypingLabel
for a title, a content table, and a button table.An extension ofTextraLabel
that progressively shows the text as if it was being typed in real time, and allows the use of tokens in the format:{TOKEN=PARAMETER;ANOTHER_PARAMETER;MORE}
.TypingListBox<T extends TypingLabel>A TypingListBox (based onList
) displaysTypingLabel
s and highlights the currently selected item.Simple listener for label events.A select box (aka a drop-down list) allows a user to choose one of a number of values from a list.A tooltip that shows a TypingLabel.A table that can be dragged and act as a modal window.