lua

package
v0.0.0-...-b312986 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfg config.Config, chars []characters.Character, script string)

func TI

func TI(L *lua.LState, m *LuaModel) lua.LValue

Types

type Component

type Component interface {
	ID() string
	UpdateFromLua(*lua.LTable)
	Render() string
}

type Label

type Label struct {
	Text string
}

func (*Label) ID

func (l *Label) ID() string

func (*Label) Render

func (l *Label) Render() string

func (*Label) UpdateFromLua

func (l *Label) UpdateFromLua(tbl *lua.LTable)

type LuaModel

type LuaModel struct {
	L *lua.LState
	// contains filtered or unexported fields
}

func (*LuaModel) Init

func (m *LuaModel) Init() tea.Cmd

func (*LuaModel) Update

func (m *LuaModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LuaModel) View

func (m *LuaModel) View() string

type LuaUI

type LuaUI struct {
	Rendered    string
	ShowMessage string
}

type TextInputComponent

type TextInputComponent struct {
	Model textinput.Model
	Id    string
}

func (*TextInputComponent) ID

func (t *TextInputComponent) ID() string

func (*TextInputComponent) Render

func (t *TextInputComponent) Render() string

func (*TextInputComponent) UpdateFromLua

func (t *TextInputComponent) UpdateFromLua(tbl *lua.LTable)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL