//
// MenuLayer::onCreator from 0x5c2dcc to 0x5c2e24 (88 bytes)
//
// 4 xrefs:
// > MenuLayer::keyDown @ 0x5c4350
// > ??> @ 0x2b980
// > MenuLayer::init @ 0x5c3130
// > ??> @ 0x1229418
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void MenuLayer::onCreator(MenuLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // x19
cocos2d::CCScene *v3; // x0
cocos2d::CCTransitionFade *v4; // x0
if ( !a1->m_showingTOS )
{
MenuLayer::willClose(a1);
GameManager::sharedState()->m_clickedEditor = 1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = CreatorLayer::scene();
v4 = cocos2d::CCTransitionFade::create(0.5, v3);
cocos2d::CCDirector::replaceScene(v2, v4);
}
}