// // GameToolbox::createToggleButton from 0x69c614 to 0x69c8f8 (740 bytes) // // 110 xrefs: // > GameToolbox::createToggleButton @ 0x69fcc4 // > ColorSelectPopup::init @ 0x865bdc // > ColorSelectPopup::init @ 0x865e68 // > GJGarageLayer::setupPage @ 0x8c0ab4 // > MoreOptionsLayer::addToggle @ 0x8f09d4 // > MoreVideoOptionsLayer::addToggle @ 0x8f1510 // > ParentalOptionsLayer::addToggle @ 0x8f2754 // > OptionsLayer::customSetup @ 0x8f47b8 // > ParentalOptionsLayer::addMasterToggle @ 0x8f66ac // > SongInfoLayer::init @ 0x904f98 // > SongInfoLayer::init @ 0x905070 // > SongOptionsLayer::init @ 0x981858 // > SongOptionsLayer::init @ 0x981930 // > SongOptionsLayer::init @ 0x981a00 // > SetupEnterTriggerPopup::init @ 0xa22cf8 // > SetupEnterTriggerPopup::init @ 0xa22dc0 // > GJOptionsLayer::addToggleInternal @ 0xa34f3c // > GameOptionsLayer::setupOptions @ 0xa35ff8 // > GameOptionsLayer::setupOptions @ 0xa362d8 // > ConfigureHSVWidget::init @ 0xa3b878 // > ConfigureHSVWidget::init @ 0xa3b92c // > SetupPulsePopup::init @ 0xa47d5c // > SetupPulsePopup::init @ 0xa47e1c // > SetupPulsePopup::init @ 0xa47ee4 // > SetupPulsePopup::init @ 0xa47fa8 // > SetupPulsePopup::init @ 0xa48078 // > SetupPulsePopup::init @ 0xa48154 // > SetupPulsePopup::init @ 0xa48234 // > SetupCameraOffsetTrigger::init @ 0xab0054 // > SetupCameraOffsetTrigger::init @ 0xab0170 // > SetupPortalPopup::init @ 0xab1014 // > SetupPortalPopup::init @ 0xab10dc // > SetupObjectOptionsPopup::init @ 0xabcb94 // > SetupObjectOptionsPopup::init @ 0xabcc54 // > SetupObjectOptionsPopup::init @ 0xabcd14 // > SetupObjectOptionsPopup::init @ 0xabcdd8 // > SetupObjectOptionsPopup::init @ 0xabce9c // > SetupObjectOptionsPopup::init @ 0xabcf60 // > SetupObjectOptionsPopup::init @ 0xabd020 // > SetupObjectOptionsPopup::init @ 0xabd0f8 // > SetupObjectOptionsPopup::init @ 0xabd1b8 // > SetupObjectOptionsPopup::init @ 0xabd278 // > SetupObjectOptionsPopup::init @ 0xabd338 // > SetupObjectOptionsPopup::init @ 0xabd3f8 // > SetupObjectOptionsPopup::init @ 0xabd4b8 // > SetupObjectOptionsPopup::init @ 0xabd578 // > SetupObjectOptionsPopup::init @ 0xabd650 // > SetupObjectOptionsPopup::init @ 0xabd710 // > SetupObjectOptionsPopup::init @ 0xabd7d0 // > SetupObjectOptionsPopup::init @ 0xabd890 // > SetupObjectOptionsPopup::init @ 0xabd950 // > SetupObjectOptionsPopup::init @ 0xabda10 // > SetupObjectOptionsPopup::init @ 0xabdad0 // > SetupObjectOptionsPopup::init @ 0xabdbb4 // > SetupObjectOptionsPopup::init @ 0xabdc7c // > SetupObjectOptionsPopup::init @ 0xabdd48 // > SetGroupIDLayer::init @ 0xabff74 // > SetGroupIDLayer::init @ 0xac004c // > SetGroupIDLayer::init @ 0xac0124 // > SetGroupIDLayer::init @ 0xac0204 // > CreateParticlePopup::init @ 0xb02380 // > CreateParticlePopup::init @ 0xb02488 // > CreateParticlePopup::init @ 0xb02590 // > CreateParticlePopup::init @ 0xb02694 // > CreateParticlePopup::init @ 0xb027a4 // > CreateParticlePopup::init @ 0xb028b0 // > CreateParticlePopup::init @ 0xb03c20 // > CreateParticlePopup::init @ 0xb03d00 // > CreateParticlePopup::init @ 0xb03de0 // > CreateParticlePopup::init @ 0xb03ec0 // > CreateParticlePopup::init @ 0xb03fb0 // > CreateParticlePopup::init @ 0xb04094 // > CreateParticlePopup::init @ 0xb04170 // > CreateParticlePopup::init @ 0xb0424c // > CreateParticlePopup::init @ 0xb0432c // > CreateParticlePopup::init @ 0xb04408 // > CreateParticlePopup::init @ 0xb044f8 // > CreateParticlePopup::init @ 0xb045e8 // > CreateParticlePopup::init @ 0xb046c8 // > CreateParticlePopup::init @ 0xb047a8 // > SetupSmartBlockLayer::init @ 0xb1543c // > SetupSmartBlockLayer::init @ 0xb154fc // > SetupSmartBlockLayer::init @ 0xb155bc // > SetupSmartBlockLayer::init @ 0xb15694 // > SetupSmartBlockLayer::init @ 0xb1576c // > SetupSmartBlockLayer::init @ 0xb1582c // > SetupSmartBlockLayer::init @ 0xb158e8 // > SetupTriggerPopup::createMultiTriggerItems @ 0xb1e444 // > SetupTriggerPopup::createMultiTriggerItems @ 0xb1e4e8 // > SetupTriggerPopup::createMultiTriggerItems @ 0xb1e590 // > SetupTriggerPopup::createToggleButton @ 0xb1f0a8 // > SetupTriggerPopup::createToggleValueControlAdvanced @ 0xb1f27c // > SetupTriggerPopup::createCustomToggleValueControl @ 0xb1f648 // > SetupCameraEdgePopup::init @ 0xb259ec // > SetupCameraEdgePopup::init @ 0xb25ad8 // > SetupCameraEdgePopup::init @ 0xb25bc8 // > SetupCameraEdgePopup::init @ 0xb25cb8 // > SetupTeleportPopup::init @ 0xb28538 // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3e7c4 // > SetupEnterEffectPopup::init @ 0xb44548 // > SetupEnterEffectPopup::init @ 0xb44614 // > SetupCameraModePopup::init @ 0xb46520 // > SetupCameraModePopup::init @ 0xb465e4 // > SetupKeyframePopup::init @ 0xb6acac // > GJPathPage::init @ 0xba75bc // > ShareListLayer::init @ 0xbad61c // > ShareListLayer::init @ 0xbad7d8 // > ClearPlatformerSavesOptionsPopup::init @ 0xc8f4d4 // > ClearPlatformerSavesPopup::init @ 0xc8fe88 // > @ 0xb3998 // // This function is hookable on this platform (idp: arm, 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:50:40 +0000 // CCMenuItemToggler *__fastcall GameToolbox::createToggleButton( __int64 a1, const char *a2, __int64 a3, unsigned __int8 a4, cocos2d::CCNode *a5, const cocos2d::CCPoint *a6, __int64 a7, __int64 a8, float a9, float a10, float a11, float *a12, const char *a13, char a14, unsigned int a15, cocos2d::CCArray *a16) { __int64 v20; // x23 __int64 v22; // x22 const char *v23; // x1 __int64 v24; // x21 CCMenuItemToggler *v25; // x21 cocos2d::CCNode *v26; // x0 void (__fastcall *v27)(CCMenuItemToggler *, __int64 *); // x19 const char *v28; // x2 cocos2d::CCLabelBMFont *v29; // x0 cocos2d::CCLabelBMFont *v30; // x19 void (__fastcall *v31)(cocos2d::CCLabelBMFont *, __int64 *); // x28 __int64 v32; // x0 __int64 (__fastcall *v33)(__int64); // x1 void (__fastcall *v34)(cocos2d::CCLabelBMFont *, __int64 *); // x22 float v35; // s0 float v36; // s1 float v37; // s0 __int64 v39; // x0 __int64 (__fastcall *v40)(__int64); // x1 float v41; // s1 float v45; // [xsp+90h] [xbp+90h] char v48[8]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v49; // [xsp+C0h] [xbp+C0h] BYREF v20 = a8; if ( !a8 ) v20 = a7; v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", a2); v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v23); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, a9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, a9); v25 = (CCMenuItemToggler *)CCMenuItemToggler::create(v24, v22, a7, (__int64)a2, a3); CCMenuItemToggler::toggle(v25, a4); (*(void (__fastcall **)(cocos2d::CCNode *, CCMenuItemToggler *))(*(_QWORD *)a5 + 456LL))(a5, v25); v26 = a5; v27 = *(void (__fastcall **)(CCMenuItemToggler *, __int64 *))(*(_QWORD *)v25 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v49, v26, a6); v27(v25, &v49); CCMenuItemToggler::setSizeMult(v25, 1.5); v29 = (cocos2d::CCLabelBMFont *)(a1 + 1); if ( (*(_BYTE *)a1 & 1) != 0 ) v29 = *(cocos2d::CCLabelBMFont **)(a1 + 16); v30 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v29, a13, v28); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)v20 + 456LL))(v20, v30); if ( a15 ) (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)v30 + 72LL))(v30, a15); v31 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v30 + 296LL); if ( a14 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 0.5, 0.0); v31(v30, &v49); v39 = v22; v40 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL); v34 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v30 + 184LL); v45 = *a12; v41 = *(float *)(v40(v39) + 4); v37 = v45; v36 = a12[1] + (float)((float)(v41 * 0.5) * a9); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 0.0, 0.5); v31(v30, &v49); v32 = v22; v33 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL); v34 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v30 + 184LL); v35 = *(float *)v33(v32); v36 = a12[1]; v37 = *a12 + (float)((float)(v35 * 0.5) * a9); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v37, v36); cocos2d::CCPoint::operator+(&v49, a6); v34(v30, &v49); cocos2d::CCLabelBMFont::limitLabelWidth(v30, a11, a10, 0.0); if ( a16 ) { cocos2d::CCArray::addObject(a16, v25); cocos2d::CCArray::addObject(a16, v30); } return v25; }
GD Web Decomp Icon

GD Web Decomp

Raw Source