Documentation ¶
Index ¶
Constants ¶
View Source
const ( EffectModeSilence = iota EffectModeFadeIn EffectModeNormal EffectModeFadeOut )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type Chart struct { MusicFS fs.FS Base string // For comparing fsys. Filename string Hash string // md5 with 16 bytes mode.ChartHeader Duration int32 MainBPM float64 MinBPM float64 MaxBPM float64 AddAtTime time.Time LastUpdateAtTime time.Time Level float64 NoteCounts []int // Attributes can be added by user, such as // Genre, Language, Levels from game clients Attributes map[string]any }
Chart contains information of a chart. Favorites and Played count needs to be checked frequently.
func (Chart) FolderNodeName ¶ added in v0.6.0
Music name itself may be duplicated. Artist + Title (Music name) may be unique.
type Node ¶ added in v0.6.0
type Node struct { Parent *Node PrevSibling, NextSibling *Node FirstChild, LastChild *Node Type NodeType Data string }
Inspired by html.Node. But html.Node is too complicated for constructing chart tree.
type PreviewMusicPlayer ¶ added in v0.6.0
type PreviewMusicPlayer struct { *audios.MusicPlayer // MusicVolume *float64 StartTime time.Time EffectMode int }
type Scene ¶
type Scene struct { *scene.Config *scene.Asset ctrl.UIKeyListener PreviewMusicPlayer KeyHandleMusicVolume func() bool KeyHandleSoundVolume func() bool KeyHandleMusicOffset func() bool KeyHandleBackgroundBrightness func() bool KeyHandleDebugPrint func() bool // Todo: key handle mode and sub mode. // Todo: add 'NoRepeat' option to KeyHandle. // KeyHandleMode func() bool // KeyHandleSubMode func() bool KeyHandleSpeedScale func() bool // contains filtered or unexported fields }
func (Scene) Draw ¶
Background brightness at Song select: 60% (153 / 255), confirmed. Score box color: Gray128 with 50% transparent Hovered Score box color: Gray96 with 50% transparent
func (*Scene) HandleEffect ¶ added in v0.6.0
func (s *Scene) HandleEffect()
Memo: osu! seems fading music out when changing music.
Click to show internal directories.
Click to hide internal directories.