//
// WorldLevelPage::show from 0x95e2e0 to 0x95e40c (300 bytes)
//
// 2 xrefs:
// > ??> @ 0x9b8e0
// > ??> @ 0x11bca48
//
// 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 WorldLevelPage::show(WorldLevelPage *a1)
{
unsigned __int8 v2; // w20
cocos2d::CCScaleTo *v3; // x0
cocos2d::CCEaseElasticOut *v4; // x0
cocos2d::CCActionInterval *v5; // x1
cocos2d::CCAction *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCScene *m_pRunningScene; // x21
cocos2d::CCNode *m_scene; // x1
cocos2d::CCFadeTo *v10; // x0
int HighestChildZ; // w0
int v12; // w2
if ( !a1->m_noElasticity )
{
v2 = a1->getOpacity(a1);
v3 = (cocos2d::CCScaleTo *)((__int64 (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(
a1->m_mainLayer,
0.1);
v4 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create(v3, 0.5, 1.0);
v6 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v4, v5, 0.7);
cocos2d::CCNode::runAction(a1->m_mainLayer, v6);
v7 = cocos2d::CCDirector::sharedDirector();
m_pRunningScene = v7->m_pRunningScene;
m_scene = a1->m_scene;
if ( m_scene )
{
if ( a1->m_ZOrder )
{
LABEL_5:
((void (__fastcall *)(cocos2d::CCNode *, WorldLevelPage *))m_scene->addChild_0)(m_scene, a1);
a1->setOpacity(a1, 0);
v10 = cocos2d::CCFadeTo::create(0.14, v2);
cocos2d::CCNode::runAction(a1, v10);
a1->setVisible(a1, 1);
return;
}
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v7->m_pRunningScene);
v12 = 105;
if ( HighestChildZ > 104 )
v12 = cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1;
a1->m_ZOrder = v12;
m_scene = m_pRunningScene;
if ( v12 )
goto LABEL_5;
}
a1->m_ZOrder = 105;
goto LABEL_5;
}
FLAlertLayer::show(a1);
}