Skip to content

Add quick layer push util#2076

Merged
dankmeme01 merged 4 commits into
geode-sdk:mainfrom
BlueWitherer:push-scene-util
Jul 3, 2026
Merged

Add quick layer push util#2076
dankmeme01 merged 4 commits into
geode-sdk:mainfrom
BlueWitherer:push-scene-util

Conversation

@BlueWitherer

@BlueWitherer BlueWitherer commented May 14, 2026

Copy link
Copy Markdown
Contributor

Add a convenient one-line util function to push a scene with your CCLayer without having to create a whole new scene() function and pushing it yourself.

Simply provide a pointer to the layer with your create() method.

geode::pushSceneWithLayer(MyLayer::create());

This will automatically create a new CCScene and push it with a 0.5-second long transition fade.

The intention is simply to help reduce boilerplate in mods' UI code!

@dankmeme01 dankmeme01 merged commit 63faf62 into geode-sdk:main Jul 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants