@@ -187,6 +187,7 @@ bool SongControlMenu::setup() {
187187
188188 this ->b ->setID (" trans-bg" _spr);
189189 this ->m_title ->setID (" title" _spr);
190+ this ->m_clipNode ->setID (" clip-node" _spr);
190191 this ->m_bgSprite ->setID (" background" _spr);
191192 this ->m_closeBtn ->setID (" close-button" _spr);
192193 this ->m_buttonMenu ->setID (" close-menu" _spr);
@@ -202,6 +203,7 @@ bool SongControlMenu::setup() {
202203 this ->m_theTimeoutCorner ->setID (" timeout-corner" _spr);
203204 this ->m_openSongListMenu ->setID (" song-list-menu" _spr);
204205 this ->m_songControlsMenu ->setID (" song-controls-menu" _spr);
206+ this ->m_bgSprite ->_scale9Image ->setID (" the-less-darned-sprite-9" _spr);
205207
206208 this ->m_noElasticity = true ;
207209
@@ -345,6 +347,8 @@ void SongControlMenu::onSettingsButton(CCObject*) {
345347
346348void SongControlMenu::onSkipBkwdButton (CCObject*) {
347349 SongManager& songManager = SongManager::get ();
350+ if (!songManager.getFinishedCalculatingSongLengths ()) return ;
351+
348352 FMODAudioEngine* fmod = FMODAudioEngine::get ();
349353 const std::string& currSong = songManager.getCurrentSong ();
350354 if (fmod->getActiveMusic (0 ) != currSong || !songManager.getSongToSongDataEntries ().contains (currSong)) return ;
@@ -365,6 +369,8 @@ void SongControlMenu::onSkipBkwdButton(CCObject*) {
365369
366370void SongControlMenu::onSkipFwrdButton (CCObject*) {
367371 SongManager& songManager = SongManager::get ();
372+ if (!songManager.getFinishedCalculatingSongLengths ()) return ;
373+
368374 FMODAudioEngine* fmod = FMODAudioEngine::get ();
369375 const std::string& currSong = songManager.getCurrentSong ();
370376 if (fmod->getActiveMusic (0 ) != currSong || !songManager.getSongToSongDataEntries ().contains (currSong)) return ;
0 commit comments