Versions in this module Expand all Collapse all v0 v0.6.1 Jul 23, 2023 v0.6.0 Jul 23, 2023 Changes in this version + const EffectModeFadeIn + const EffectModeFadeOut + const EffectModeNormal + const EffectModeSilence type Chart + AddAtTime time.Time + Attributes map[string]any + Base string + Duration int32 + Filename string + Hash string + LastUpdateAtTime time.Time + Level float64 + MainBPM float64 + MaxBPM float64 + MinBPM float64 + MusicFS fs.FS + NoteCounts []int + func (c Chart) FolderNodeName() string + func (c Chart) NodeName() string + type Node struct + Data string + FirstChild *Node + LastChild *Node + NextSibling *Node + Parent *Node + PrevSibling *Node + Type NodeType + func (n *Node) AppendChild(child *Node) + func (n *Node) Next() *Node + func (n *Node) Prev() *Node + func (root Node) LeafData() string + type NodeType int + const ChartNode + const FolderNode + const LeafNode + const RootNode + type PreviewMusicPlayer struct + EffectMode int + StartTime time.Time type Scene + KeyHandleBackgroundBrightness func() bool + KeyHandleDebugPrint func() bool + KeyHandleMusicOffset func() bool + KeyHandleMusicVolume func() bool + KeyHandleSoundVolume func() bool + KeyHandleSpeedScale func() bool + func (s *Scene) HandleEffect() v0.3.1 Nov 28, 2022 Changes in this version + const APIBeatmap + const Approved + const FocusChart + const FocusChartSet + const FocusKeySettings + const FocusSearch + const Large + const Loved + const ModeDrum + const ModePiano4 + const ModePiano7 + const Qualified + const Ranked + const RowCount + const RowHeight + const RowShrink + const RowWidth + const ScreenSizeX + const ScreenSizeY + const StatusApproved + const StatusGraveyard + const StatusLoved + const StatusPending + const StatusQualified + const StatusRanked + const StatusWIP + const TPS + const Unranked + var DefaultBackground = draws.NewImage(ScreenSizeX, 444) + var DefaultCover = draws.NewImage(400, 140) + func Level(sr float64) int + func ZipFS(name string) (fs.FS, error) + type Chart struct + AR float64 + BPM float64 + BeatmapId int + CS float64 + DiffName string + DifficultyRating float64 + DownloadPath string + FileMD5 string + HP float64 + HitLength int + MaxCombo int + Mode int + OD float64 + OsuFile string + ParentSetId int + Passcount int + Playcount int + TotalLength int + func (c Chart) Choose() (fsys fs.FS, name string, err error) + func (c Chart) URLDownload() string + type ChartList struct + Charts []*Chart + func (l *ChartList) Update() + func (l ChartList) Current() *Chart + func (l ChartList) Draw(dst draws.Image) + type ChartPanel struct + BPM draws.Sprite + ChartName draws.Sprite + Duration draws.Sprite + Level draws.Sprite + NoteCount draws.Sprite + func NewChartPanel(sp *ChartSetPanel, c *Chart) *ChartPanel + func (p *ChartPanel) Update() + func (p ChartPanel) Draw(dst draws.Image) + type ChartSet struct + ApprovedDate string + Artist string + ChildrenBeatmaps []*Chart + Creator string + Disabled int + Favourites int + Genre int + HasVideo bool + Language int + LastChecked string + LastUpdate string + RankedStatus int + SetId int + Source string + Tags string + Title string + func Search(query string, mode, page int, lvLimit, rankedOnly bool) (css []*ChartSet, err error) + func (c ChartSet) URLCover(kind, suffix string) string + func (c ChartSet) URLDownload() string + func (c ChartSet) URLPreview() string + func (cset ChartSet) NewChartRow(i int) (r Row) + type ChartSetList struct + ChartSets []*ChartSet + func NewChartSetList(css []*ChartSet) (l ChartSetList) + func (l *ChartSetList) Update() (fired bool, state int) + func (l ChartSetList) Current() *ChartSet + func (l ChartSetList) Draw(dst draws.Image) + type ChartSetPanel struct + Artist draws.Sprite + BPM draws.Sprite + Charter draws.Sprite + Duration draws.Sprite + MusicName draws.Sprite + UpdateDate draws.Sprite + func NewChartSetPanel(cs *ChartSet) *ChartSetPanel + func (p *ChartSetPanel) Update() + func (p ChartSetPanel) Draw(dst draws.Image) + type KeySettingsDrawer struct + func (d KeySettingsDrawer) Draw(dst draws.Image) + type List struct + Cursor ctrl.KeyHandler + Rows []Row + func NewList(rows []Row) *List + func (l *List) Update() (bool, int) + func (l List) Draw(dst draws.Image) + type LoadingDrawer struct + func NewLoadingDrawer() LoadingDrawer + func (d *LoadingDrawer) Update() + func (d LoadingDrawer) Draw(dst draws.Image) + type PreviewPlayer struct + Closer func() error + Tick int + Volume float64 + func NewPreviewPlayer(rc io.ReadCloser) (p PreviewPlayer, err error) + func (p *PreviewPlayer) Update() + func (p PreviewPlayer) Close() + func (p PreviewPlayer) IsValid() bool + type Return struct + FS fs.FS + Mode int + Mods interface{} + Name string + Replay *osr.Format + type Row struct + Card draws.Sprite + First draws.Sprite + Mask draws.Sprite + Second draws.Sprite + Thumb draws.Sprite + func NewRow(cardURL, thumbURL, first, second string) Row + func (r *Row) Update() + func (r Row) Draw(dst draws.Image) + type Scene struct + Background mode.BackgroundDrawer + ChartSets ChartSetList + Charts ChartList + Focus int + LevelLimit ctrl.KeyHandler + Loading LoadingDrawer + Preview PreviewPlayer + Query input.TypeWriter + func NewScene() *Scene + func (s *Scene) LoadChartList() + func (s *Scene) LoadChartSetList() (err error) + func (s *Scene) Update() any + func (s Scene) DebugPrint(screen draws.Image) + func (s Scene) Draw(screen draws.Image) + type SearchDrawer struct + func NewSearchDrawer(query *string) SearchDrawer + func (d *SearchDrawer) Update() + func (d SearchDrawer) Draw(dst draws.Image)