Documentation ¶
Index ¶
- Constants
- func OverlayGameOverMessage(bg string) string
- func OverlayPausedMessage(bg string) string
- func SwitchModeCmd(target Mode, in SwitchModeInput) tea.Cmd
- func WithNewEntry(entry *data.Score) func(input *LeaderboardInput)
- type LeaderboardInput
- type MarathonInput
- type MenuInput
- type Mode
- type SingleInput
- type SwitchModeInput
- type SwitchModeMsg
- type WhitespaceOption
Constants ¶
View Source
const ( ModeMenu = Mode(iota) ModeMarathon ModeSprint ModeUltra ModeLeaderboard )
Variables ¶
This section is empty.
Functions ¶
func OverlayGameOverMessage ¶
func OverlayPausedMessage ¶
func SwitchModeCmd ¶
func SwitchModeCmd(target Mode, in SwitchModeInput) tea.Cmd
func WithNewEntry ¶
func WithNewEntry(entry *data.Score) func(input *LeaderboardInput)
Types ¶
type LeaderboardInput ¶
func NewLeaderboardInput ¶
func NewLeaderboardInput(gameMode string, opts ...func(input *LeaderboardInput)) *LeaderboardInput
type MarathonInput ¶
func NewMarathonInput ¶
func NewMarathonInput(level int, playerName string) *MarathonInput
type SingleInput ¶
func NewSingleInput ¶
func NewSingleInput(mode Mode, level int, playerName string) *SingleInput
type SwitchModeInput ¶
type SwitchModeInput interface {
// contains filtered or unexported methods
}
type SwitchModeMsg ¶
type SwitchModeMsg struct { Target Mode Input SwitchModeInput }
type WhitespaceOption ¶
type WhitespaceOption func(*whitespace)
WhitespaceOption sets a styling rule for rendering whitespace.
Click to show internal directories.
Click to hide internal directories.