//
// FLAlertLayer::show from 0x2eaccc to 0x2eadc0 (244 bytes)
//
// 17 xrefs:
// > TutorialPopup::show @ 0x32a378
// > InfoLayer::show @ 0x42efb6
// > PromoInterstitial::show @ 0x433c42
// > GJPromoPopup::show @ 0x4a9afe
// > ProfilePage::show @ 0x4c4fc2
// > ChallengesPage::show @ 0x4cbb62
// > DailyLevelPage::show @ 0x4d3ce6
// > LevelLeaderboard::show @ 0x4e4afe
// > RewardsPage::show @ 0x4e6a96
// > ShardsPage::show @ 0x4fb0f6
// > WorldLevelPage::show @ 0x4fcb9e
// > FollowRewardPage::show @ 0x4ff82e
// > TopArtistsLayer::show @ 0x500a0e
// > CommunityCreditsPage::show @ 0x506a2a
// > CharacterColorPage::show @ 0x564b06
// > GJPathsLayer::show @ 0x58bc16
// > GJPathPage::show @ 0x58bd1a
//
// 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 FLAlertLayer::show(FLAlertLayer *a1)
{
unsigned __int8 v2; // r6
float v3; // r2
cocos2d::CCEaseElasticOut *v4; // r0
float v5; // r2
cocos2d::CCAction *v6; // r0
cocos2d::CCScene *v7; // r5
cocos2d::CCNode *v8; // r0
int v9; // r0
cocos2d::CCFadeTo *v10; // r0
cocos2d::CCScene *m_pRunningScene; // r5
cocos2d::CCNode *m_scene; // r0
int v13; // r0
if ( a1->m_noElasticity )
{
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
m_scene = a1->m_scene;
if ( !m_scene )
{
if ( cocos2d::CCScene::getHighestChildZ(m_pRunningScene) <= 104 )
v13 = 105;
else
v13 = cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1;
a1->m_ZOrder = v13;
m_scene = m_pRunningScene;
}
if ( !a1->m_ZOrder )
a1->m_ZOrder = 105;
m_scene->addChild_0(m_scene, a1, a1->m_ZOrder);
}
else
{
v2 = a1->getOpacity(a1);
((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_mainLayer->setScale)(a1->m_mainLayer, 1036831949);
v4 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F000000, 1.0, v3);
v6 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v4, (cocos2d::CCActionInterval *)0x3F19999A, v5);
cocos2d::CCNode::runAction(a1->m_mainLayer, v6);
v7 = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
v8 = a1->m_scene;
if ( !v8 )
{
if ( cocos2d::CCScene::getHighestChildZ(v7) <= 104 )
v9 = 105;
else
v9 = cocos2d::CCScene::getHighestChildZ(v7) + 1;
a1->m_ZOrder = v9;
v8 = v7;
}
if ( !a1->m_ZOrder )
a1->m_ZOrder = 105;
v8->addChild_0(v8, a1, a1->m_ZOrder);
a1->setOpacity(a1, 0);
v10 = cocos2d::CCFadeTo::create(0.14, v2);
cocos2d::CCNode::runAction(a1, v10);
}
a1->setVisible(a1, 1);
}