// // GameToolbox::createToggleButton from 0x3cd290 to 0x3cd45a (458 bytes) // // 109 xrefs: // > GameToolbox::createToggleButton @ 0x3cf768 // > ColorSelectPopup::init @ 0x4e06d8 // > ColorSelectPopup::init @ 0x4e092a // > GJGarageLayer::setupPage @ 0x50f582 // > MoreOptionsLayer::addToggle @ 0x52e0f8 // > MoreVideoOptionsLayer::addToggle @ 0x52e9f2 // > ParentalOptionsLayer::addToggle @ 0x52f638 // > OptionsLayer::customSetup @ 0x530b46 // > ParentalOptionsLayer::addMasterToggle @ 0x531f74 // > SongInfoLayer::init @ 0x53b97a // > SongInfoLayer::init @ 0x53ba28 // > SongOptionsLayer::init @ 0x57d0f0 // > SongOptionsLayer::init @ 0x57d18c // > SongOptionsLayer::init @ 0x57d226 // > SetupEnterTriggerPopup::init @ 0x5d6806 // > SetupEnterTriggerPopup::init @ 0x5d68a2 // > GJOptionsLayer::addToggleInternal @ 0x5e16e0 // > GameOptionsLayer::setupOptions @ 0x5e2294 // > GameOptionsLayer::setupOptions @ 0x5e23cc // > ConfigureHSVWidget::init @ 0x5e5b80 // > ConfigureHSVWidget::init @ 0x5e5c08 // > SetupPulsePopup::init @ 0x5ee0d6 // > SetupPulsePopup::init @ 0x5ee166 // > SetupPulsePopup::init @ 0x5ee20a // > SetupPulsePopup::init @ 0x5ee31a // > SetupPulsePopup::init @ 0x5ee3d4 // > SetupPulsePopup::init @ 0x5ee482 // > SetupPulsePopup::init @ 0x5ee538 // > SetupCameraOffsetTrigger::init @ 0x633a06 // > SetupCameraOffsetTrigger::init @ 0x633a6c // > SetupPortalPopup::init @ 0x6344f8 // > SetupPortalPopup::init @ 0x6345a0 // > SetupObjectOptionsPopup::init @ 0x63b898 // > SetupObjectOptionsPopup::init @ 0x63b98e // > SetupObjectOptionsPopup::init @ 0x63ba1a // > SetupObjectOptionsPopup::init @ 0x63baae // > SetupObjectOptionsPopup::init @ 0x63bb42 // > SetupObjectOptionsPopup::init @ 0x63bbd6 // > SetupObjectOptionsPopup::init @ 0x63bc68 // > SetupObjectOptionsPopup::init @ 0x63bd6a // > SetupObjectOptionsPopup::init @ 0x63be10 // > SetupObjectOptionsPopup::init @ 0x63beb2 // > SetupObjectOptionsPopup::init @ 0x63bf3e // > SetupObjectOptionsPopup::init @ 0x63bfca // > SetupObjectOptionsPopup::init @ 0x63c056 // > SetupObjectOptionsPopup::init @ 0x63c150 // > SetupObjectOptionsPopup::init @ 0x63c1da // > SetupObjectOptionsPopup::init @ 0x63c270 // > SetupObjectOptionsPopup::init @ 0x63c310 // > SetupObjectOptionsPopup::init @ 0x63c39e // > SetupObjectOptionsPopup::init @ 0x63c436 // > SetupObjectOptionsPopup::init @ 0x63c52e // > SetupObjectOptionsPopup::init @ 0x63c5be // > SetupObjectOptionsPopup::init @ 0x63c646 // > SetupObjectOptionsPopup::init @ 0x63c6cc // > SetupObjectOptionsPopup::init @ 0x63c77a // > SetGroupIDLayer::init @ 0x63e4c6 // > SetGroupIDLayer::init @ 0x63e566 // > SetGroupIDLayer::init @ 0x63e606 // > SetGroupIDLayer::init @ 0x63e712 // > CreateParticlePopup::init @ 0x667ec6 // > CreateParticlePopup::init @ 0x667f92 // > CreateParticlePopup::init @ 0x66809a // > CreateParticlePopup::init @ 0x668166 // > CreateParticlePopup::init @ 0x66823e // > CreateParticlePopup::init @ 0x668310 // > CreateParticlePopup::init @ 0x6690c0 // > CreateParticlePopup::init @ 0x6691b6 // > CreateParticlePopup::init @ 0x66925a // > CreateParticlePopup::init @ 0x669300 // > CreateParticlePopup::init @ 0x6693ae // > CreateParticlePopup::init @ 0x66945c // > CreateParticlePopup::init @ 0x669554 // > CreateParticlePopup::init @ 0x6695fa // > CreateParticlePopup::init @ 0x66969c // > CreateParticlePopup::init @ 0x66973e // > CreateParticlePopup::init @ 0x6697ee // > CreateParticlePopup::init @ 0x6698f8 // > CreateParticlePopup::init @ 0x6699a4 // > CreateParticlePopup::init @ 0x669a4a // > SetupSmartBlockLayer::init @ 0x67347c // > SetupSmartBlockLayer::init @ 0x67350a // > SetupSmartBlockLayer::init @ 0x6735a0 // > SetupSmartBlockLayer::init @ 0x673644 // > SetupSmartBlockLayer::init @ 0x6736ec // > SetupSmartBlockLayer::init @ 0x6737e6 // > SetupSmartBlockLayer::init @ 0x67387e // > SetupTriggerPopup::createMultiTriggerItems @ 0x679820 // > SetupTriggerPopup::createMultiTriggerItems @ 0x6798ac // > SetupTriggerPopup::createMultiTriggerItems @ 0x679930 // > SetupTriggerPopup::createToggleButton @ 0x679ff6 // > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x67a0d6 // > SetupTriggerPopup::createCustomToggleValueControl @ 0x67a2e6 // > SetupCameraEdgePopup::init @ 0x67f0f8 // > SetupCameraEdgePopup::init @ 0x67f19e // > SetupCameraEdgePopup::init @ 0x67f244 // > SetupCameraEdgePopup::init @ 0x67f2f6 // > SetupTeleportPopup::init @ 0x680e5c // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x68f7d8 // > SetupEnterEffectPopup::init @ 0x694efc // > SetupEnterEffectPopup::init @ 0x694f8e // > SetupCameraModePopup::init @ 0x695b2e // > SetupCameraModePopup::init @ 0x695bc6 // > SetupKeyframePopup::init @ 0x6aed74 // > GJPathPage::init @ 0x6d3d1c // > ShareListLayer::init @ 0x6d7adc // > ShareListLayer::init @ 0x6d7c48 // > ClearPlatformerSavesOptionsPopup::init @ 0x761cf2 // > ClearPlatformerSavesPopup::init @ 0x76224a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:46:38 +0000 // cocos2d::CCNodeRGBA *__fastcall GameToolbox::createToggleButton( int a1, int a2, int a3, int a4, const cocos2d::CCPoint *a5, int a6, int a7, int a8, float a9, float a10, float a11, int a12, const char *a13, char a14, int a15, cocos2d::CCArray *a16) { int v18; // r8 int v19; // r5 const char *v20; // r1 int v21; // r6 cocos2d::CCNodeRGBA *v22; // r6 const char *v23; // r2 cocos2d::CCLabelBMFont *v24; // r0 cocos2d::CCLabelBMFont *v25; // r7 void (__fastcall *v26)(cocos2d::CCLabelBMFont *, _BYTE *); // r8 void (__fastcall *v27)(cocos2d::CCLabelBMFont *, _BYTE *); // r8 float *v28; // r0 float v29; // r2 float v30; // r1 int v31; // r0 char *v33; // [sp+Ch] [bp-30h] void (__fastcall *v34)(cocos2d::CCNodeRGBA *, _BYTE *); // [sp+14h] [bp-28h] _BYTE v37[8]; // [sp+24h] [bp-18h] BYREF _BYTE v38[8]; // [sp+2Ch] [bp-10h] BYREF const char *v39; // [sp+34h] [bp-8h] v18 = a8; if ( !a8 ) v18 = a7; v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v39); v21 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v20); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v19 + 80))(v19, LODWORD(a9)); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v21 + 80))(v21, LODWORD(a9)); v22 = CCMenuItemToggler::create(v21, v19, a7, a2, a3); CCMenuItemToggler::toggle(v22, a4); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCNodeRGBA *))(*(_DWORD *)a5 + 228))(a5, v22); v34 = *(void (__fastcall **)(cocos2d::CCNodeRGBA *, _BYTE *))(*(_DWORD *)v22 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v38, a5); v34(v22, v38); CCMenuItemToggler::setSizeMult(v22, 1.5); if ( (*(_BYTE *)a1 & 1) != 0 ) v24 = *(cocos2d::CCLabelBMFont **)(a1 + 8); else v24 = (cocos2d::CCLabelBMFont *)(a1 + 1); v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v24, a13, v23); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v18 + 228))(v18, v25); if ( a15 ) (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v25 + 36))(v25, a15); v26 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v25 + 148); if ( a14 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 0.5, 0.0); v26(v25, v38); v27 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v25 + 92); v33 = *(char **)a12; v31 = (*(int (__fastcall **)(int))(*(_DWORD *)v19 + 164))(v19); v30 = *(float *)&v33; v29 = *(float *)(a12 + 4) + (float)((float)(*(float *)(v31 + 4) * 0.5) * a9); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 0.0, 0.5); v26(v25, v38); v27 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v25 + 92); v28 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v19 + 164))(v19); v29 = *(float *)(a12 + 4); v30 = *(float *)a12 + (float)((float)(*v28 * 0.5) * a9); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v30, v29); cocos2d::CCPoint::operator+(v38, a6, v37); v27(v25, v38); cocos2d::CCLabelBMFont::limitLabelWidth(v25, a11, a10, 0.0); if ( a16 ) { cocos2d::CCArray::addObject(a16, v22); cocos2d::CCArray::addObject(a16, v25); } return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source