// // GameToolbox::addRThumbScrollButton from 0x100044b64 to 0x100044d14 (432 bytes) // // 2 xrefs: // > LevelBrowserLayer::init @ 0x100415840 // > AchievementsLayer::customSetup @ 0x10042207c // // 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 GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *a1) { cocos2d::CCDirector *v2; // x0 cocos2d::CCSprite *v3; // x20 cocos2d::CCDirector *v4; // x0 __n128 v5; // q0 __n128 v6; // q1 cocos2d::CCSprite *v7; // x21 float32x2_t *v8; // x22 __n128 v9; // q0 __n128 v10; // q1 double v11; // d0 cocos2d::CCSprite *v12; // x21 float32x2_t *v13; // x19 __n128 v14; // q0 __n128 v15; // q1 double v16; // d0 float32x2_t v17; // [xsp+8h] [xbp-48h] BYREF float32x2_t v18; // [xsp+10h] [xbp-40h] BYREF float v19; // [xsp+1Ch] [xbp-34h] v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_RThumb_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v3); v4 = cocos2d::CCDirector::sharedDirector(); v5.n128_f32[0] = sub_1001768E0(v4) + -24.0; v6.n128_f32[0] = (float)(v19 * 0.5) + 80.0; sub_100022980(v5, v6, &v18); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v3->setPosition)(v3, &v18); v7 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v7); v8 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getPosition)(v3); v9.n128_u32[0] = 0; v10.n128_u32[0] = 22.0; sub_100022980(v9, v10, &v17); *(float32x2_t *)&v11 = sub_1000229DC(v8, &v17, &v18); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v7->setPosition)(v7, &v18, v11); ((void (__fastcall *)(cocos2d::CCSprite *, float))v7->setScale)(v7, 0.7); v12 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v12); v13 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->getPosition)(v3); v14.n128_u32[0] = 0; v15.n128_u32[0] = -22.0; sub_100022980(v14, v15, &v17); *(float32x2_t *)&v16 = sub_1000229DC(v13, &v17, &v18); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v12->setPosition)(v12, &v18, v16); ((void (__fastcall *)(cocos2d::CCSprite *, float))v12->setScale)(v12, 0.7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source