HomeWikiSourceDownloadsDiscord

Kristal Wiki


Getting Started


These pages get you ready to use the engine.

  • Downloading Kristal
  • Installing and Playing Mods

General Mod Creation


These pages teach you about mod development.

  • Understanding the Basics
  • Creating a Mod
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • The UI System

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes

Battles


Everything related to creating battles.

  • Battlers
  • Encounters

API Reference


An auto-generated API reference for Kristal.

⮬Back to Top⮭

TextChoicebox

┗> Textbox > Object > Class


Constructor


TextChoicebox(x: any, y: any, width: any, height: any, default_font: any, default_font_size: any, battle_box: any)

Arguments:

x: any
y: any
width: any
height: any
default_font: any
default_font_size: any
battle_box: any




Methods


TextChoicebox:addChoice(name: any)

Arguments:

name: any


TextChoicebox:clearChoices()



TextChoicebox:draw()



TextChoicebox:isDone()

Returns:

1: boolean


TextChoicebox:setText(text: any, callback: any)

Arguments:

text: any
callback: any


TextChoicebox:transformText(text: any)

Arguments:

text: any

Returns:

1: unknown


TextChoicebox:update()




Fields



Undocumented



TextChoicebox.active: boolean



TextChoicebox.choices: table



TextChoicebox.choices: table



TextChoicebox.current_choice: integer



TextChoicebox.current_choice: integer



TextChoicebox.current_choice: integer



TextChoicebox.current_choice: integer



TextChoicebox.current_choice: integer



TextChoicebox.current_choice: integer



TextChoicebox.done: boolean



TextChoicebox.done: boolean



TextChoicebox.heart: love.Image|nil

Drawable image type.

Open in Browser



TextChoicebox.selected_choice: nil



TextChoicebox.selected_choice: integer



TextChoicebox.visible: boolean


DELTARUNE by Toby Fox. Website designed by NyakoFox. © 2023 Kristal Team. All rights reserved.