diff --git a/changelog.md b/changelog.md index a10abd9..61ad3c8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,8 @@ # Changelog +## v4.2.12 (2024-11-09) +* Added proper support for Event Levels +This is the last release for GD 2.206 + ## v4.2.11 (2024-10-18) * Fixed incorrect popup ordering in Filtered Search * Removed filter button from Favorite Lists \ diff --git a/mod.json b/mod.json index 35d927d..78d7699 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { "geode": "3.8.1", - "version": "v4.2.11", + "version": "v4.2.12", "gd": { "win": "2.206", "android": "2.206", diff --git a/src/hooks/CreatorLayer.cpp b/src/hooks/CreatorLayer.cpp index 3ff87ac..19eb418 100644 --- a/src/hooks/CreatorLayer.cpp +++ b/src/hooks/CreatorLayer.cpp @@ -14,9 +14,18 @@ class BI_DLL $modify(BICreatorLayer, CreatorLayer) { * Callbacks */ void onCustomCreatorLayer(CCObject* sender){ - auto browserLayer = CustomCreatorLayer::scene(); + /*auto browserLayer = CustomCreatorLayer::scene(); auto transitionFade = CCTransitionFade::create(0.5, browserLayer); - CCDirector::sharedDirector()->pushScene(transitionFade); + CCDirector::sharedDirector()->pushScene(transitionFade);*/ + + auto GLM = GameLevelManager::sharedState(); + + //GLM->m_eventIDUnk = 200001; + //GLM->m_eventIDUnk = 0; + //GLM->m_eventTimeLeft = 10; + + DailyLevelPage::create(GJTimedLevelType::Event)->show(); + GLM->onGetGJDailyLevelStateCompleted("200001|10|DnPpScFxLfncPCAsBCAcDAA0eBA==|30277190f6c65bbde4b548ab562303aed7ab50e7", "event_state"); } /*