// // DialogLayer::animateIn from 0x100087574 to 0x100087768 (500 bytes) // // 20 xrefs: // > SecretLayer5::showFirstDialog @ 0x100075554 // > DialogLayer::animateInRandomSide @ 0x100087570 // > CreatorLayer::onTreasureRoom @ 0x1000b68d4 // > PlayLayer::destroyPlayer @ 0x10011efc0 // > GJShopLayer::showCantAffordMessage @ 0x10014c1a0 // > DailyLevelPage::dailyStatusFailed @ 0x1001ba588 // > LevelListLayer::onClaimReward @ 0x100246294 // > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f90 // > GJGarageLayer::showUnlockPopup @ 0x100306884 // > SecretLayer2::showCompletedLevel @ 0x10030c18c // > SecretLayer3::onClick @ 0x10030f950 // > SecretLayer3::firstInteractionStep2 @ 0x1003100b4 // > SecretLayer3::firstInteractionStep4 @ 0x10031050c // > SecretLayer3::revealStep2 @ 0x100310c74 // > SecretLayer3::revealStep4 @ 0x10031112c // > SecretLayer3::revealStep5 @ 0x100311518 // > SecretLayer4::showFirstDialog @ 0x100354ae4 // > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bfc // > GJPathPage::showCantAffordMessage @ 0x1003ba8f0 // > LevelPage::onSecretDoor @ 0x1004057b4 // // 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 __fastcall DialogLayer::animateIn(DialogLayer *a1, DialogAnimationType a2) { float v4; // s0 __int64 *v5; // x0 __n128 v6; // q0 __n128 v7; // q1 cocos2d::CCLayer *m_mainLayer; // x20 cocos2d::CCActionInterval *v9; // x0 unsigned __int32 time; // s8 cocos2d::CCDirector *v11; // x0 float v12; // s0 float v13; // s1 cocos2d::CCDirector *v14; // x0 cocos2d::CCEaseElasticOut *v15; // x0 int v16; // w0 unsigned __int8 v17; // w20 cocos2d::CCFadeTo *v18; // x0 int v19; // [xsp+8h] [xbp-48h] BYREF timeb v20; // [xsp+10h] [xbp-40h] BYREF ((void (__fastcall *)(DialogLayer *, __int64))a1->setVisible)(a1, 1); ftime(&v20); v4 = (double)(v20.millitm + 1000 * (unsigned __int64)(v20.time & 0xFFFFF)) / 1000.0; a1->m_animateTime = v4; if ( (unsigned int)(a2 - 2) >= 4 ) { if ( a2 != FromCenter ) goto LABEL_14; ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(a1->m_mainLayer, 0.1); v9 = cocos2d::CCScaleTo::create_1(0.5, 1.0); } else { v5 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer); sub_1000229B8(&v20.time, v5); m_mainLayer = a1->m_mainLayer; if ( a2 > FromRight ) { time = v20.time; v11 = cocos2d::CCDirector::sharedDirector(); v6.n128_f64[0] = sub_1001768C8(v11); if ( a2 == FromTop ) { v12 = v6.n128_f32[0] + 50.0; v13 = 1.0; } else { v12 = v6.n128_f32[0] + -50.0; v13 = -1.0; } v7.n128_f32[0] = v12 + v13; v6.n128_u32[0] = time; } else if ( a2 == FromLeft ) { v7.n128_u32[0] = HIDWORD(v20.time); v6.n128_u32[0] = -1019281408; } else { v14 = cocos2d::CCDirector::sharedDirector(); v6.n128_f32[0] = (float)(sub_1001768E0(v14) + 190.0) + 1.0; v7.n128_u32[0] = HIDWORD(v20.time); } sub_100022980(v6, v7, &v19); ((void (__fastcall *)(cocos2d::CCLayer *, int *))m_mainLayer->setPosition)(m_mainLayer, &v19); v9 = cocos2d::CCMoveTo::create(0.5, (const cocos2d::CCPoint *)&v20); } v15 = cocos2d::CCEaseElasticOut::create(v9, 0.6); cocos2d::CCNode::runAction(a1->m_mainLayer, v15); LABEL_14: v16 = ((__int64 (__fastcall *)(DialogLayer *))a1->getOpacity)(a1); if ( v16 ) { v17 = v16; ((void (__fastcall *)(DialogLayer *, _QWORD))a1->setOpacity)(a1, 0); v18 = cocos2d::CCFadeTo::create(0.14, v17); cocos2d::CCNode::runAction(a1, v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source