overview

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZoneChoices   = "choices_"
	ZoneCards     = "cards_"
	ZoneArtifacts = "artifacts_"

	ChoiceCharacter = Choice("CHARACTER")
	ChoiceLogs      = Choice("LOGS")
	ChoiceArtifacts = Choice("ARTIFACTS")
	ChoiceCards     = Choice("CARDS")
	ChoiceQuit      = Choice("QUIT")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice string
type MenuModel struct {
	ui.MenuBase

	Session *game.Session
	// contains filtered or unexported fields
}

MenuModel is responsible for showing information about the player, cards, artifacts and the option to leave.

func New

func New(parent tea.Model, zones *zone.Manager, session *game.Session) MenuModel
func (m MenuModel) Init() tea.Cmd
func (m MenuModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (m MenuModel) View() string

Jump to

Keyboard shortcuts

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