mainmenu

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChoiceWaiting  = Choice("WAITING")
	ChoiceContinue = Choice("CONTINUE")
	ChoiceNewGame  = Choice("NEW_GAME")
	ChoiceAbout    = Choice("ABOUT")
	ChoiceSettings = Choice("SETTINGS")
	ChoiceMods     = Choice("MODS")
	ChoiceExit     = Choice("EXIT")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice string

type ChoicesModel

type ChoicesModel struct {
	// contains filtered or unexported fields
}

func NewChoicesModel

func NewChoicesModel(zones *zone.Manager, hideSettings bool) ChoicesModel

func (ChoicesModel) Clear

func (m ChoicesModel) Clear() ChoicesModel

func (ChoicesModel) Init

func (m ChoicesModel) Init() tea.Cmd

func (ChoicesModel) Update

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

func (ChoicesModel) View

func (m ChoicesModel) View() string

type Model

type Model struct {
	ui.MenuBase
	// contains filtered or unexported fields
}

func NewModel

func NewModel(zones *zone.Manager, settings settings.Settings, values []uiset.Value, saver uiset.Saver) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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