From dce676c559852b4f37d027d5bef6ad265528d275 Mon Sep 17 00:00:00 2001 From: Cvolton Date: Sun, 4 Aug 2024 16:40:34 +0200 Subject: [PATCH] run lists exclamation check in init --- src/hooks/CreatorLayer.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/hooks/CreatorLayer.cpp b/src/hooks/CreatorLayer.cpp index 7e31a71..3ff87ac 100644 --- a/src/hooks/CreatorLayer.cpp +++ b/src/hooks/CreatorLayer.cpp @@ -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(this->getChildByID("creator-buttons-menu")); auto GSM = GameStatsManager::sharedState(); @@ -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; @@ -82,6 +92,7 @@ class BI_DLL $modify(BICreatorLayer, CreatorLayer) { Mod::get()->setSavedValue("last_launch_version", Mod::get()->getVersion().toVString()); //showQuestExclamationMark(); + this->checkListsExclamation(); return true; }