// // SecretRewardsLayer::scrollLayerMoved from 0x1002ea1b0 to 0x1002ea370 (448 bytes) // // 2 xrefs: // > sub_1002EA370 @ 0x1002ea374 // > @ 0x1007e63c8 // // 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 SecretRewardsLayer::scrollLayerMoved(SecretRewardsLayer *a1, cocos2d::CCPoint a2) { float *v2; // x1 __int64 v3; // x29 __int64 v4; // x30 __int64 v5; // d8 __int64 v6; // d9 float *v7; // x21 cocos2d::CCDirector *v9; // x0 int TotalPages; // w0 int v11; // w20 float i; // s8 __int64 v13; // x1 float v14; // s0 unsigned int v15; // w9 __int64 v16; // x0 float v17; // s0 float v18; // s0 float v19; // s1 _BOOL4 v20; // w8 _BOOL4 v21; // w9 _BOOL8 v22; // x20 cocos2d::ccColor3B v23; // [xsp+4h] [xbp-4Ch] BYREF float v24; // [xsp+8h] [xbp-48h] __int64 v25; // [xsp+10h] [xbp-40h] __int64 v26; // [xsp+18h] [xbp-38h] __int64 v27; // [xsp+40h] [xbp-10h] __int64 v28; // [xsp+48h] [xbp-8h] if ( a1->m_inMainLayer ) { v25 = v6; v26 = v5; v27 = v3; v28 = v4; v7 = v2; v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v9); TotalPages = BoomScrollLayer::getTotalPages(a1->m_mainScrollLayer); v11 = TotalPages; for ( i = (float)-*v7 / v24; i < 0.0; i = i + (float)TotalPages ) ; LODWORD(v13) = 4915270; v14 = (float)(int)floorf(i); v15 = (int)vcvtms_s32_f32(i) % TotalPages; LODWORD(v16) = 4915270; if ( v15 - 1 <= 2 ) v16 = *(_QWORD *)&a222[8 * v15 - 8]; v17 = i - v14; if ( v15 + 1 == v11 ) v15 = -1; if ( v15 <= 2 ) v13 = *(_QWORD *)&a222[8 * v15]; v18 = (float)(v17 / 0.66667) + -0.2; v19 = 1.0; v20 = v18 >= 1.0; v21 = v18 > 0.0 || v18 >= 1.0; if ( v18 <= 0.0 ) v20 = 1; if ( !v21 ) v19 = 0.0; if ( v20 ) v18 = v19; v23 = GameToolbox::multipliedColorValue((cocos2d::ccColor3B)v16, (cocos2d::ccColor3B)v13, v18); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_backgroundSprite->setColor)( a1->m_backgroundSprite, &v23); v22 = a1->m_inMainLayer && (int)llroundf(i) % v11 == 3; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_keysLabel->setVisible)( a1->m_keysLabel, (unsigned int)v22 ^ 1); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_keySprite->setVisible)( a1->m_keySprite, (unsigned int)v22 ^ 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BOOL8))a1->m_goldKeysLabel->setVisible)(a1->m_goldKeysLabel, v22); ((void (__fastcall *)(cocos2d::CCSprite *, _BOOL8))a1->m_goldKeySprite->setVisible)(a1->m_goldKeySprite, v22); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source