// // MapSelectLayer::scrollWheel from 0x50dad0 to 0x50dc76 (422 bytes) // // 1 xrefs: // > `non-virtual thunk to'MapSelectLayer::scrollWheel @ 0x50dc90 // // 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 MapSelectLayer::scrollWheel(MapSelectLayer *a1, float a2, float a3) { cocos2d::CCDirector *v5; // r0 float v6; // s16 GJBigSprite *m_bigSprite; // r7 float v8; // r0 float v9; // s18 float v10; // s16 float v11; // r0 float v12; // s15 float v13; // r0 float v14; // s15 float v15; // r0 GJBigSprite *v16; // r7 GJBigSprite *v17; // r4 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int v19; // r0 cocos2d::CCSize v20; // [sp+4h] [bp-30h] BYREF cocos2d::CCPoint v21; // [sp+Ch] [bp-28h] BYREF cocos2d::CCPoint v22; // [sp+14h] [bp-20h] BYREF _BYTE v23[8]; // [sp+1Ch] [bp-18h] BYREF cocos2d::CCPoint v24; // [sp+24h] [bp-10h] BYREF v5 = cocos2d::CCDirector::sharedDirector(); v6 = -0.01; cocos2d::CCDirector::getWinSize(&v20, v5); m_bigSprite = a1->m_bigSprite; cocos2d::CCPoint::CCPoint(&v24, v20.width * 0.5, v20.height * 0.5); cocos2d::CCNode::convertToNodeSpace(&v21, m_bigSprite, &v24); v8 = COERCE_FLOAT(((int (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite)); if ( a2 > 0.0 ) v9 = -0.01; else v9 = 0.01; if ( (float)(v8 + v9) > 1.2 ) goto LABEL_5; v15 = COERCE_FLOAT(((int (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite)); if ( a2 <= 0.0 ) v6 = 0.01; v14 = 0.7; if ( (float)(v15 + v6) > 0.7 ) { LABEL_5: v10 = -0.01; v11 = COERCE_FLOAT(((int (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite)); if ( a2 > 0.0 ) v12 = -0.01; else v12 = 0.01; if ( (float)(v11 + v12) > 1.2 ) { v14 = 1.2; } else { v13 = COERCE_FLOAT(((int (__fastcall *)(GJBigSprite *))a1->m_bigSprite->getScale)(a1->m_bigSprite)); if ( a2 <= 0.0 ) v10 = 0.01; v14 = v13 + v10; } } ((void (__fastcall *)(GJBigSprite *, _DWORD))a1->m_bigSprite->setScale)(a1->m_bigSprite, LODWORD(v14)); v16 = a1->m_bigSprite; cocos2d::CCPoint::CCPoint(&v24, v20.width * 0.5, v20.height * 0.5); cocos2d::CCNode::convertToNodeSpace(&v22, v16, &v24); cocos2d::CCPoint::operator-(v23, &v22, &v21); v17 = a1->m_bigSprite; setPosition = v17->setPosition; v19 = (int)v17->getPosition(v17); cocos2d::CCPoint::operator+(&v24, v19, v23); setPosition(v17, &v24); }
GD Web Decomp Icon

GD Web Decomp

Raw Source