Documentation ¶
Index ¶
- func CheckLuaErrors(zones *zone.Manager, s *game.Session) tea.Cmd
- func GettingVisible() tea.Cmd
- func Push(model tea.Model) tea.Cmd
- func PushAll(models ...tea.Model) tea.Cmd
- func PushTransitionFunc(fn func(parent tea.Model) tea.Model) tea.Cmd
- func RemovePushTransitionFunc() tea.Cmd
- func TooltipClear() tea.Cmd
- func TooltipCreate(tip Tooltip) tea.Cmd
- func TooltipDelete(id string) tea.Cmd
- type Model
- type ModelGettingVisibleMsg
- type OnVisibleModel
- type PushModelMsg
- type PushTransitionFuncMsg
- type Tooltip
- type TooltipClearMsg
- type TooltipDeleteMsg
- type TooltipMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLuaErrors ¶
CheckLuaErrors checks if there are any lua errors and pushes them to the stack as lua error model.
func GettingVisible ¶ added in v0.1.8
GettingVisible is a message that is sent to a model when it is getting visible.
func PushTransitionFunc ¶ added in v0.1.8
PushTransitionFunc pushes a new transition model on the root ui that will be shown between models on the stack.
func RemovePushTransitionFunc ¶ added in v0.1.8
RemovePushTransitionFunc removes the transition model from the root ui.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root model of the game. It holds the current model stack and the zone manager. The top model of the internal stack is the current model and will be rendered.
type ModelGettingVisibleMsg ¶ added in v0.1.8
type ModelGettingVisibleMsg struct{}
type OnVisibleModel ¶ added in v0.1.8
type OnVisibleModel struct {
// contains filtered or unexported fields
}
func NewOnVisibleModel ¶ added in v0.1.8
func NewOnVisibleModel(parent tea.Model, fn func(model tea.Model)) OnVisibleModel
func (OnVisibleModel) Init ¶ added in v0.1.8
func (m OnVisibleModel) Init() tea.Cmd
func (OnVisibleModel) View ¶ added in v0.1.8
func (m OnVisibleModel) View() string
type PushModelMsg ¶
type PushTransitionFuncMsg ¶ added in v0.1.8
type TooltipClearMsg ¶
type TooltipClearMsg struct{}
type TooltipDeleteMsg ¶
type TooltipDeleteMsg string
type TooltipMsg ¶
type TooltipMsg Tooltip
Click to show internal directories.
Click to hide internal directories.