Skip to content

Commit

Permalink
run lists exclamation check in init
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Aug 4, 2024
1 parent 81d7f99 commit dce676c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/hooks/CreatorLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ class BI_DLL $modify(BICreatorLayer, CreatorLayer) {
}

/*
* Hooks
* Helpers
*/
void sceneWillResume() {
CreatorLayer::sceneWillResume();
void checkListsExclamation() {
//this needs to be ran from init as well
//bc sceneWillResume is inlined into init on mac

auto menu = static_cast<CCMenu*>(this->getChildByID("creator-buttons-menu"));
auto GSM = GameStatsManager::sharedState();
Expand Down Expand Up @@ -51,6 +52,15 @@ class BI_DLL $modify(BICreatorLayer, CreatorLayer) {
listsSprite->addChild(exMark);
}

/*
* Hooks
*/
void sceneWillResume() {
CreatorLayer::sceneWillResume();

this->checkListsExclamation();
}

bool init() {
if(!CreatorLayer::init()) return false;

Expand Down Expand Up @@ -82,6 +92,7 @@ class BI_DLL $modify(BICreatorLayer, CreatorLayer) {
Mod::get()->setSavedValue<std::string>("last_launch_version", Mod::get()->getVersion().toVString());

//showQuestExclamationMark();
this->checkListsExclamation();

return true;
}
Expand Down

0 comments on commit dce676c

Please sign in to comment.