// // GameToolbox::addRThumbScrollButton from 0x2ec638 to 0x2ec75a (290 bytes) // // 2 xrefs: // > AchievementsLayer::customSetup @ 0x32d940 // > LevelBrowserLayer::init @ 0x3bd108 // // 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 GameToolbox::addRThumbScrollButton(cocos2d::CCLayer *a1) { cocos2d::CCDirector *v2; // r0 cocos2d::CCSprite *v3; // r5 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCDirector *v5; // r0 float v6; // r0 cocos2d::CCSprite *v7; // r7 void (__fastcall *v8)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 int v9; // r11 cocos2d::CCSprite *v10; // r7 void (__fastcall *v11)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r6 int v12; // r5 cocos2d::CCSize v13; // [sp+4h] [bp-20h] BYREF cocos2d::CCPoint v14; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v15; // [sp+14h] [bp-10h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v13, v2); v3 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_RThumb_001.png"); a1->addChild(a1, v3); setPosition = v3->setPosition; v5 = cocos2d::CCDirector::sharedDirector(); v6 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v5)); cocos2d::CCPoint::CCPoint(&v15, v6 - 24.0, (float)(v13.height * 0.5) + 80.0); setPosition(v3, &v15); v7 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png"); a1->addChild(a1, v7); v8 = v7->setPosition; v9 = (int)v3->getPosition(v3); cocos2d::CCPoint::CCPoint(&v14, 0.0, 22.0); cocos2d::CCPoint::operator+(&v15, v9, &v14); v8(v7, &v15); ((void (__fastcall *)(cocos2d::CCSprite *, int))v7->setScale)(v7, 1060320051); v10 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png"); a1->addChild(a1, v10); v11 = v10->setPosition; v12 = (int)v3->getPosition(v3); cocos2d::CCPoint::CCPoint(&v14, 0.0, -22.0); cocos2d::CCPoint::operator+(&v15, v12, &v14); v11(v10, &v15); ((void (__fastcall *)(cocos2d::CCSprite *, int))v10->setScale)(v10, 1060320051); }
GD Web Decomp Icon

GD Web Decomp

Raw Source