Home
Wiki
Source
Downloads
Discord

Kristal Wiki


General Information


These pages get you ready to use the engine.

  • Main Page
  • Downloading Kristal
  • Installing and Playing Projects
  • Glossary

General Project Creation


These pages teach you about project development.

  • Lua Tutorial
  • Understanding the Basics
  • Creating a Project
  • Writing Text
  • Using Libraries
  • Creating an Item
  • Creating a Shop
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • Releasing Projects

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes
  • Map Properties and Layers
  • Events
  • Battle Areas
  • The World Tool

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Debugging
  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬ Back to Top ⮭

Kristal Wiki


General Information


These pages get you ready to use the engine.

  • Main Page
  • Downloading Kristal
  • Installing and Playing Projects
  • Glossary

General Project Creation


These pages teach you about project development.

  • Lua Tutorial
  • Understanding the Basics
  • Creating a Project
  • Writing Text
  • Using Libraries
  • Creating an Item
  • Creating a Shop
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • Releasing Projects

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes
  • Map Properties and Layers
  • Events
  • Battle Areas
  • The World Tool

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Debugging
  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬ Back to Top ⮭

MainMenuFileSelect

┗> StateClass > Class



Constructor


MainMenuFileSelect(menu: any)

Arguments:

menu: any




Methods


MainMenuFileSelect:draw()



MainMenuFileSelect:getHeartPos()

Returns:

1: integer|unknown
2: integer|unknown


MainMenuFileSelect:getSelectedFile()

Returns:

1: unknown


MainMenuFileSelect:getTitle()

Returns:

1: string


MainMenuFileSelect:onEnter(old_state: any)

Arguments:

old_state: any


MainMenuFileSelect:onKeyPressed(key: any, is_repeat: any)

Arguments:

key: any
is_repeat: any

Returns:

1: boolean


MainMenuFileSelect:onLeave(new_state: any)

Arguments:

new_state: any


MainMenuFileSelect:registerEvents()



MainMenuFileSelect:setResultText(text: any)

Arguments:

text: any


MainMenuFileSelect:setState(state: any, result_text: any)

Arguments:

state: any
result_text: any


MainMenuFileSelect:update()



MainMenuFileSelect:updateSelected()




Fields


MainMenuFileSelect.menu: MainMenu



Undocumented



MainMenuFileSelect.bottom_row_heart: table



MainMenuFileSelect.container: Object

The base class of all objects in Kristal.
When added to the stage, an object will be updated and rendered.



MainMenuFileSelect.copied_button: nil



MainMenuFileSelect.erase_stage: integer



MainMenuFileSelect.files: table



MainMenuFileSelect.focused_button: nil



MainMenuFileSelect.mod: table



MainMenuFileSelect.result_text: nil



MainMenuFileSelect.result_timer: integer



MainMenuFileSelect.selected_x: integer



MainMenuFileSelect.selected_y: integer



MainMenuFileSelect.state: string

SELECT, COPY, ERASE, TRANSITIONING


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