A new button has been added into the context menus of song items that allows playing them once for preview.
SongPlayerBytes now has a new constructor parameter that allows setting whether a song could be played on repeat.
When gameplay starts, the song preview music is stopped if it's found to be playing.
Fixes:
When hovering the mouse over the menu music buttons, their icons disappear due to the way Boxs are rendered. These icons are now Sprites and are added as children into the buttons instead.
Removed unused _playFlag property in SongPlayerBytes.
Closes #21.
New features:
SongPlayerBytes
now has a new constructor parameter that allows setting whether a song could be played on repeat.Fixes:
Box
s are rendered. These icons are nowSprite
s and are added as children into the buttons instead._playFlag
property inSongPlayerBytes
.