Skip to content

Commit

Permalink
Fix some buttons not working after closing PlayLevelMenuPopup
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5abe committed Aug 7, 2024
1 parent 02390cb commit fad6d5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/hooks/cocos2d/CCDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ bool PSCCDirector::replaceScene(CCScene* i_scene) {
}
l_playButtonSprite->removeAllChildrenWithCleanup(true);
l_playButtonSprite->setColor({255, 255, 255});
l_levelInfoLayer->m_songWidget->m_buttonMenu->setTouchEnabled(true);
}

EditLevelLayer* l_editLevelLayer = static_cast<EditLevelLayer*>(CCScene::get()->getChildByID("EditLevelLayer"));
if (l_editLevelLayer) {
// isBusy
l_editLevelLayer->m_exiting = false;
}

LevelSelectLayer* l_mainLayer = static_cast<LevelSelectLayer*>(CCScene::get()->getChildByID("main-layer"));
Expand Down

0 comments on commit fad6d5c

Please sign in to comment.