Documentation
¶
Index ¶
Constants ¶
View Source
const REFRESH_GAME_RATE = 5
View Source
const REFRESH_LIST_RATE = 30
View Source
const RESPONSIVE_WIDTH_BREAKPOINT = 130
Variables ¶
View Source
var TABLE_TO_INDEX_MAP = map[string]int{
"awayBatters": 0,
"homeBatters": 1,
}
Functions ¶
Types ¶
type GameScreenKM ¶
type GameScreenKM struct {
Up key.Binding
Down key.Binding
Back key.Binding
Quit key.Binding
PageUp key.Binding
PageDown key.Binding
}
func (GameScreenKM) FullHelp ¶
func (k GameScreenKM) FullHelp() [][]key.Binding
func (*GameScreenKM) SetEnabled ¶
func (k *GameScreenKM) SetEnabled(enabled bool)
func (GameScreenKM) ShortHelp ¶
func (k GameScreenKM) ShortHelp() []key.Binding
type GameScreenModel ¶
type GameScreenModel struct {
// contains filtered or unexported fields
}
func InitGameScreenModel ¶
func InitGameScreenModel(game ncaa.GameNCAA, previousModel Model) *GameScreenModel
func (GameScreenModel) Init ¶
func (m GameScreenModel) Init() tea.Cmd
func (GameScreenModel) View ¶
func (m GameScreenModel) View() string
type GamesListKM ¶
type GamesListKM struct {
Up key.Binding
Down key.Binding
Previous key.Binding
Next key.Binding
Quit key.Binding
Enter key.Binding
FocusPicker key.Binding
Jump key.Binding
}
func (GamesListKM) FullHelp ¶
func (k GamesListKM) FullHelp() [][]key.Binding
func (GamesListKM) ShortHelp ¶
func (k GamesListKM) ShortHelp() []key.Binding
Directories
¶
| Path | Synopsis |
|---|---|
|
Credit to @dylantientcheu for this implementation originally from nbacli https://github.com/dylantientcheu/nbacli/blob/master/ui/gameboard/scoretext/scoretext.go
|
Credit to @dylantientcheu for this implementation originally from nbacli https://github.com/dylantientcheu/nbacli/blob/master/ui/gameboard/scoretext/scoretext.go |
|
Credit to @TypicalAM https://github.com/TypicalAM/goread
|
Credit to @TypicalAM https://github.com/TypicalAM/goread |
Click to show internal directories.
Click to hide internal directories.