// // GameToolbox::addRThumbScrollButton from 0x1004ec060 to 0x1004ec1e7 (391 bytes) // // 2 xrefs: // > AchievementsLayer::customSetup @ 0x10035c8ef // > LevelBrowserLayer::init @ 0x100482102 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:31:22 +0000 // __int64 __fastcall GameToolbox::addRThumbScrollButton(__int64 a1, double a2) { __int64 v3; // rax char *v4; // r14 __int64 v5; // rax float v6; // xmm0_4 double v7; // xmm0_8 char *v8; // r15 unsigned __int64 *v9; // r12 double v10; // xmm0_8 char *v11; // r15 unsigned __int64 *v12; // rbx __int64 v14; // [rsp+0h] [rbp-40h] BYREF double v15; // [rsp+8h] [rbp-38h] BYREF unsigned __int64 v16[6]; // [rsp+10h] [rbp-30h] BYREF v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v14, v3); v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_RThumb_001.png", a2); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v4); v5 = cocos2d::CCDirector::sharedDirector(); v6 = sub_100479770(v5); sub_100278250((float *)&v15, v6 + -24.0, (float)(*((float *)&v14 + 1) * 0.5) + 80.0); v7 = (*(double (__fastcall **)(char *, double *))(*(_QWORD *)v4 + 184LL))(v4, &v15); v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_upBtn_001.png", v7); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v8); v9 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 192LL))(v4); sub_100278250((float *)v16, 0.0, 22.0); sub_100278350(&v15, v9, v16); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v8 + 184LL))(v8, &v15); v10 = (*(double (__fastcall **)(char *, float))(*(_QWORD *)v8 + 160LL))(v8, 0.69999999); v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_downBtn_001.png", v10); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v11); v12 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 192LL))(v4); sub_100278250((float *)v16, 0.0, -22.0); sub_100278350(&v15, v12, v16); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v11 + 184LL))(v11, &v15); return (*(__int64 (__fastcall **)(char *, float))(*(_QWORD *)v11 + 160LL))(v11, 0.69999999); }
GD Web Decomp Icon

GD Web Decomp

Raw Source