// // DialogLayer::animateIn from 0x4d6730 to 0x4d68c4 (404 bytes) // // 23 xrefs: // > PlayLayer::destroyPlayer @ 0x31423e // > CreatorLayer::onTreasureRoom @ 0x3aad72 // > GJGarageLayer::showUnlockPopup @ 0x405b26 // > LevelPage::onSecretDoor @ 0x408d2c // > SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d886 // > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1996 // > DailyLevelPage::dailyStatusFailed @ 0x4d39d0 // > DialogLayer::animateInRandomSide @ 0x4d692c // > DialogLayer::animateInDialog @ 0x4d693c // > GJShopLayer::showCantAffordMessage @ 0x4e47da // > SecretLayer2::showCompletedLevel @ 0x4ea404 // > SecretLayer3::firstInteractionStep4 @ 0x4ea686 // > SecretLayer3::revealStep2 @ 0x4ea83c // > SecretLayer3::revealStep5 @ 0x4eaa70 // > SecretLayer3::revealStep4 @ 0x4eb0d4 // > SecretLayer3::firstInteractionStep2 @ 0x4eb628 // > SecretLayer3::onClick @ 0x4ebb46 // > SecretLayer4::showFirstDialog @ 0x4f00dc // > SecretLayer4::showDialog @ 0x4f06ae // > GJPathPage::showCantAffordMessage @ 0x58e8ee // > LevelListLayer::onClaimReward @ 0x58ed82 // > SecretLayer5::showFirstDialog @ 0x59c2cc // > SecretLayer5::showDialog @ 0x59d9ea // // 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 DialogLayer::animateIn(DialogLayer *a1, DialogAnimationType a2) { float v4; // s14 float v5; // r2 cocos2d::CCEaseElasticOut *v6; // r0 float v7; // r2 const cocos2d::CCPoint *v8; // r0 cocos2d::CCLayer *m_mainLayer; // r6 cocos2d::CCLayer_vtbl *v10; // r3 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 float v12; // r1 cocos2d::CCDirector *v13; // r0 bool v14; // zf void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 float x; // r7 cocos2d::CCDirector *v17; // r0 float v18; // r0 cocos2d::CCDirector *v19; // r0 float v20; // r0 float v21; // r1 float v22; // s15 cocos2d::CCAction *v23; // r0 cocos2d::CCFadeTo *v24; // r0 unsigned int v25; // [sp+4h] [bp-1Ch] cocos2d::CCPoint v26; // [sp+Ch] [bp-14h] BYREF cocos2d::CCPoint v27; // [sp+14h] [bp-Ch] BYREF a1->setVisible(a1, 1); clock_gettime(0, (struct timespec *)&v27); v4 = (double)SLODWORD(v27.x) + (double)SLODWORD(v27.y) / 1000000000.0; a1->m_animateTime = v4; if ( a2 != FromCenter ) { if ( a2 == Instant || (unsigned int)a2 > FromTop2 ) goto LABEL_17; v8 = a1->m_mainLayer->getPosition(a1->m_mainLayer); cocos2d::CCPoint::CCPoint(&v26, v8); m_mainLayer = a1->m_mainLayer; v10 = m_mainLayer->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a2 == FromLeft ) { setPosition = v10->setPosition; v12 = -191.0; } else { if ( a2 != FromRight ) { v14 = a2 == FromTop; v15 = v10->setPosition; x = v26.x; if ( v14 ) { v17 = cocos2d::CCDirector::sharedDirector(); v18 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v17)); v21 = x; v22 = (float)(v18 + 50.0) + 1.0; } else { v19 = cocos2d::CCDirector::sharedDirector(); v20 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v19)); v21 = x; v22 = (float)(v20 - 50.0) - 1.0; } cocos2d::CCPoint::CCPoint(&v27, v21, v22); v15(m_mainLayer, &v27); goto LABEL_15; } setPosition = v10->setPosition; v13 = cocos2d::CCDirector::sharedDirector(); v12 = (float)(COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v13)) + 190.0) + 1.0; } cocos2d::CCPoint::CCPoint(&v27, v12, v26.y); setPosition(m_mainLayer, &v27); LABEL_15: v6 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v26); goto LABEL_16; } ((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_mainLayer->setScale)(a1->m_mainLayer, 1036831949); v6 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F000000, 1.0, v5); LABEL_16: v23 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v6, (cocos2d::CCActionInterval *)0x3F19999A, v7); cocos2d::CCNode::runAction(a1->m_mainLayer, v23); LABEL_17: v25 = ((int (__fastcall *)(DialogLayer *))a1->getOpacity)(a1); if ( (float)v25 > 0.0 ) { a1->setOpacity(a1, 0); v24 = cocos2d::CCFadeTo::create(0.14, v25); cocos2d::CCNode::runAction(a1, v24); } }