extends Node

var rootUi:RootUI = null

# True for the entire duration of a DialogueAction run, including the frames
# between lines where the textbox is momentarily closed.
var dialogueActive:bool = false

var DEBUG_MENU:
  get():
    if rootUi && rootUi.debugMenu:
      return rootUi.debugMenu
    return null

var TEXTBOX:
  get():
    if rootUi && rootUi.textBox:
      return rootUi.textBox
    return null

var GAME_MENU:
  get():
    if rootUi && rootUi.gameMenu:
      return rootUi.gameMenu
    return null

var PAUSE_MENU:
  get():
    if rootUi && rootUi.pauseMenu:
      return rootUi.pauseMenu
    return null
