Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: DialogueNode
Wraps FXGL's TextNode (com.almasb.fxgl.cutscene.dialogue.TextNode), a DialogueNode subclass that displays a line of text and offers the player a list of options. Every TextNode starts with one empty option (id 0) so the simplest chain ("just go to the next node") works with no setup.
TextNode (Text = null)
Creates a new TextNode with the given text. Pass null for the adopt path.
Text is the line of text shown to the player.adopt (object Ajo)
Wraps an existing TextNode AussomJavaObject.
Ajo is an AussomJavaObject around a TextNode.A new wrapper.addOption (string OptionText, string Condition = "")
Adds a new option with the given text and (optional) condition string. Returns the new option's id.
OptionText is the option's display text.Condition is an optional FXGL condition string (default "").An int with the new option id.removeOption (int Id)
Removes the option with the given id and returns the removed Option wrapper. Remaining option ids are remapped to keep them contiguous.
Id is the option id to remove.An AussomJavaObject around the removed Option.getOptions ()
Returns the underlying ObservableList
An AussomJavaObject around an ObservableListgetNumOptions ()
Returns the option count.
An int.getLastOptionID ()
Returns the id of the last usable option (size - 1).
An int.getHasUserOptions ()
Returns whether at least one option has non-empty text.
A bool.copy ()
Returns a shallow copy of this TextNode.
A new TextNode wrapper.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.