// // DialogLayer::animateIn from 0x917530 to 0x91779c (620 bytes) // // 26 xrefs: // > PlayLayer::destroyPlayer @ 0x5d21f8 // > CreatorLayer::onTreasureRoom @ 0x6cb638 // > GJGarageLayer::showUnlockPopup @ 0x7966c8 // > LevelPage::onSecretDoor @ 0x79c124 // > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de398 // > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5984 // > DailyLevelPage::dailyStatusFailed @ 0x912eb0 // > DialogLayer::animateInRandomSide @ 0x917808 // > DialogLayer::animateInRandomSide @ 0x917818 // > DialogLayer::animateInRandomSide @ 0x91782c // > DialogLayer::animateInDialog @ 0x917840 // > GJShopLayer::showCantAffordMessage @ 0x930b14 // > SecretLayer3::revealStep2 @ 0x93b304 // > SecretLayer3::firstInteractionStep4 @ 0x93b7d0 // > SecretLayer3::firstInteractionStep2 @ 0x93bd30 // > SecretLayer3::revealStep5 @ 0x93c308 // > SecretLayer3::revealStep4 @ 0x93ca3c // > SecretLayer2::showCompletedLevel @ 0x93d628 // > SecretLayer3::onClick @ 0x93e654 // > SecretLayer4::showFirstDialog @ 0x946bf0 // > SecretLayer4::showDialog @ 0x9472ec // > GJPathPage::showCantAffordMessage @ 0xa7194c // > LevelListLayer::onClaimReward @ 0xa738f8 // > SecretLayer5::showFirstDialog @ 0xa90480 // > SecretLayer5::showDialog @ 0xa92cfc // > @ 0x35cb8 // // 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; // s0 const cocos2d::CCPoint *v5; // x0 bool v6; // zf cocos2d::CCLayer *v7; // x22 float x; // s8 void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v10; // x0 float v11; // s0 cocos2d::CCEaseElasticOut *v12; // x0 cocos2d::CCActionInterval *v13; // x1 cocos2d::CCAction *v14; // x0 unsigned __int8 v15; // w21 cocos2d::CCFadeTo *v16; // x0 cocos2d::CCScaleTo *v17; // x0 cocos2d::CCLayer *m_mainLayer; // x22 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCLayer *v20; // x22 void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCDirector *v22; // x0 float v23; // s0 cocos2d::CCDirector *v24; // x0 float v25; // s0 cocos2d::CCPoint v26; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint v27[2]; // [xsp+58h] [xbp+58h] BYREF a1->setVisible(a1, 1); clock_gettime(0, (struct timespec *)v27); v4 = (double)(__int64)v27[0] + (double)(__int64)v27[1] / 1000000000.0; a1->m_animateTime = v4; if ( a2 == FromCenter ) { v17 = (cocos2d::CCScaleTo *)((__int64 (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)( a1->m_mainLayer, 0.1); v12 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create(v17, 0.5, 1.0); } else { if ( a2 == Instant || (unsigned int)a2 > FromTop2 ) goto LABEL_11; v5 = a1->m_mainLayer->getPosition(a1->m_mainLayer); cocos2d::CCPoint::CCPoint(&v26, v5); if ( a2 == FromLeft ) { m_mainLayer = a1->m_mainLayer; setPosition = m_mainLayer->setPosition; cocos2d::CCPoint::CCPoint(v27, -191.0, v26.y); setPosition(m_mainLayer, v27); } else if ( a2 == FromRight ) { v20 = a1->m_mainLayer; v21 = v20->setPosition; v22 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v22); cocos2d::CCPoint::CCPoint(v27, (float)(v23 + 190.0) + 1.0, v26.y); v21(v20, v27); } else { v6 = a2 == FromTop; v7 = a1->m_mainLayer; x = v26.x; v9 = v7->setPosition; if ( v6 ) { v24 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v24); cocos2d::CCPoint::CCPoint(v27, x, (float)(v25 + 50.0) + 1.0); } else { v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenTop(v10); cocos2d::CCPoint::CCPoint(v27, x, (float)(v11 - 50.0) - 1.0); } v9(v7, v27); } v12 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create(0.5, &v26); } v14 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v12, v13, 0.6); cocos2d::CCNode::runAction(a1->m_mainLayer, v14); LABEL_11: v15 = a1->getOpacity(a1); if ( (float)v15 > 0.0 ) { a1->setOpacity(a1, 0); v16 = cocos2d::CCFadeTo::create(0.14, v15); cocos2d::CCNode::runAction(a1, v16); } }