Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DialogueNodeType

[17:14] static extends: object

Helper for FXGL's DialogueNodeType enum (com.almasb.fxgl.cutscene.dialogue.DialogueNodeType). Identifies the kind of node in a DialogueGraph:

  • TEXT — speaker line node with player options.
  • SUBDIALOGUE — node that nests another DialogueGraph.
  • FUNCTION — node that fires a named function call.
  • BRANCH — node that follows an edge based on a condition.

Methods

  • TEXT ()

  • SUBDIALOGUE ()

  • FUNCTION ()

  • BRANCH ()

  • get (string Name)

    Resolves a DialogueNodeType by name.

    • @p Name is one of "TEXT", "SUBDIALOGUE", "FUNCTION", "BRANCH".
  • values ()

    Returns DialogueNodeType[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf strict lookup.