@@ -247,20 +247,20 @@ void SongControlMenu::checkDaSongPositions(float) {
247247 }
248248
249249 SongManager& songManager = SongManager::get ();
250- const bool finished = songManager.getFinishedCalculatingSongLengths () && !songManager.isOverride () && !VANILLA_GD_MENU_LOOP_DISABLED;
251-
252- if (this ->m_currTimeLb ) this ->m_currTimeLb ->setVisible (finished );
253- if (this ->m_totlTimeLb ) this ->m_totlTimeLb ->setVisible (finished );
254- if (this ->m_currProgBar ) this ->m_currProgBar ->setVisible (finished );
255- if (this ->m_darkProgBar ) this ->m_darkProgBar ->setVisible (finished );
256- if (this ->m_increDecreMenu ) this ->m_increDecreMenu ->setVisible (finished );
257- if (this ->m_clipNode ) this ->m_clipNode ->setVisible (finished );
250+ const bool canShowPlaybackProgress = songManager.getFinishedCalculatingSongLengths () && songManager. getUndefined0Alk1m123TouchPrio () && !songManager.isOverride () && !VANILLA_GD_MENU_LOOP_DISABLED;
251+
252+ if (this ->m_currTimeLb ) this ->m_currTimeLb ->setVisible (canShowPlaybackProgress );
253+ if (this ->m_totlTimeLb ) this ->m_totlTimeLb ->setVisible (canShowPlaybackProgress );
254+ if (this ->m_currProgBar ) this ->m_currProgBar ->setVisible (canShowPlaybackProgress );
255+ if (this ->m_darkProgBar ) this ->m_darkProgBar ->setVisible (canShowPlaybackProgress );
256+ if (this ->m_increDecreMenu ) this ->m_increDecreMenu ->setVisible (canShowPlaybackProgress );
257+ if (this ->m_clipNode ) this ->m_clipNode ->setVisible (canShowPlaybackProgress );
258258 if (this ->m_smallLabel ) {
259- this ->m_smallLabel ->setPositionY (finished ? 18 .5f : 15 .f );
260- if (this ->b ) this ->m_smallLabel ->limitLabelWidth ((this ->b ->getContentWidth () - 20 .f ) * (finished ? .85f : 1 .f ), (finished ? .85f : 1 .f ), .0001f );
259+ this ->m_smallLabel ->setPositionY (canShowPlaybackProgress ? 18 .5f : 15 .f );
260+ if (this ->b ) this ->m_smallLabel ->limitLabelWidth ((this ->b ->getContentWidth () - 20 .f ) * (canShowPlaybackProgress ? .85f : 1 .f ), (canShowPlaybackProgress ? .85f : 1 .f ), .0001f );
261261 }
262262
263- if (!finished ) return ;
263+ if (!canShowPlaybackProgress ) return ;
264264 if (!this ->m_currTimeLb || !this ->m_totlTimeLb || !this ->m_currProgBar || !this ->m_darkProgBar ) return ;
265265
266266 FMODAudioEngine* fmod = FMODAudioEngine::get ();
@@ -347,7 +347,7 @@ void SongControlMenu::onSettingsButton(CCObject*) {
347347
348348void SongControlMenu::onSkipBkwdButton (CCObject*) {
349349 SongManager& songManager = SongManager::get ();
350- if (!songManager.getFinishedCalculatingSongLengths ()) return ;
350+ if (!songManager.getFinishedCalculatingSongLengths () || !songManager. getUndefined0Alk1m123TouchPrio () ) return ;
351351
352352 FMODAudioEngine* fmod = FMODAudioEngine::get ();
353353 const std::string& currSong = songManager.getCurrentSong ();
@@ -373,7 +373,7 @@ void SongControlMenu::onSkipBkwdButton(CCObject*) {
373373
374374void SongControlMenu::onSkipFwrdButton (CCObject*) {
375375 SongManager& songManager = SongManager::get ();
376- if (!songManager.getFinishedCalculatingSongLengths ()) return ;
376+ if (!songManager.getFinishedCalculatingSongLengths () || !songManager. getUndefined0Alk1m123TouchPrio () ) return ;
377377
378378 FMODAudioEngine* fmod = FMODAudioEngine::get ();
379379 const std::string& currSong = songManager.getCurrentSong ();
0 commit comments