shows the whole in-progress text at once
Destroys this text renderable and optionally its style texture.
Optionaloptions: DestroyOptions
Options parameter. A boolean will act as if all options have been set to that value
changes the colour without rebuilding the style object
avoids the re-render when the text has not actually changed
Shows value progressively, speed characters per second. The game drives the
reveal by calling updateReveal(dt) each frame (a label owns no update loop of
its own, unlike a MessageBox on a WindowStack); completeReveal skips to the
end, for a confirm press mid-reveal.
Optionalspeed: numberadvances an in-progress reveal; returns true when nothing is left to show
A piece of text, styled from the theme.
This is a thin wrapper over Pixi's
Text, and its job is to stop every call site from repeating a style object. Pixi renders text to its own texture, so changing the string costs a re-render: cheap enough for a label, wasteful for something updated every frame, where a value that only changes on whole numbers should be guarded.Example