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⮭

ModCreateButton

┗> Object > Class


Constructor


ModCreateButton(width: any, height: any)

Arguments:

width: any
height: any




Methods


ModCreateButton:draw()



ModCreateButton:drawCoolRectangle(x: any, y: any, w: any, h: any)

Arguments:

x: any
y: any
w: any
h: any


ModCreateButton:getDrawColor()

Returns:

1: number
2: number
3: number
4: integer


ModCreateButton:getHeartPos()

Returns:

1: integer
2: number


ModCreateButton:getIconPos()

Returns:

1: number
2: integer


ModCreateButton:onDeselect()



ModCreateButton:onSelect()



ModCreateButton:update()




Fields



Undocumented



ModCreateButton.font: love.Font|nil

temporary



ModCreateButton.name: string



ModCreateButton.selected: boolean



ModCreateButton.selected: boolean



ModCreateButton.selected: boolean



ModCreateButton.subfont: love.Font|nil

Defines the shape of characters that can be drawn onto the screen.

Open in Browser



ModCreateButton.subtitle: string


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