// // GameToolbox::createToggleButton from 0x1000443b0 to 0x100044654 (676 bytes) // // 120 xrefs: // > SetupTeleportPopup::init @ 0x10000ba78 // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x100035484 // > SetGroupIDLayer::init @ 0x10003c760 // > SetGroupIDLayer::init @ 0x10003c81c // > SetGroupIDLayer::init @ 0x10003c8dc // > SetGroupIDLayer::init @ 0x10003c9a8 // > SetupObjectOptionsPopup::init @ 0x10003f660 // > SetupObjectOptionsPopup::init @ 0x10003f704 // > SetupObjectOptionsPopup::init @ 0x10003f7ac // > SetupObjectOptionsPopup::init @ 0x10003f854 // > SetupObjectOptionsPopup::init @ 0x10003f8fc // > SetupObjectOptionsPopup::init @ 0x10003f9a4 // > SetupObjectOptionsPopup::init @ 0x10003fa4c // > SetupObjectOptionsPopup::init @ 0x10003fb00 // > SetupObjectOptionsPopup::init @ 0x10003fbb8 // > SetupObjectOptionsPopup::init @ 0x10003fc5c // > SetupObjectOptionsPopup::init @ 0x10003fd04 // > SetupObjectOptionsPopup::init @ 0x10003fdac // > SetupObjectOptionsPopup::init @ 0x10003fe54 // > SetupObjectOptionsPopup::init @ 0x10003fefc // > SetupObjectOptionsPopup::init @ 0x10003ffa4 // > SetupObjectOptionsPopup::init @ 0x100040058 // > SetupObjectOptionsPopup::init @ 0x100040110 // > SetupObjectOptionsPopup::init @ 0x1000401b4 // > SetupObjectOptionsPopup::init @ 0x10004025c // > SetupObjectOptionsPopup::init @ 0x100040304 // > SetupObjectOptionsPopup::init @ 0x1000403ac // > SetupObjectOptionsPopup::init @ 0x100040454 // > SetupObjectOptionsPopup::init @ 0x1000404fc // > SetupObjectOptionsPopup::init @ 0x1000405c8 // > GameToolbox::createToggleButton_1 @ 0x10004435c // > SetupSmartBlockLayer::init @ 0x10006f6bc // > SetupSmartBlockLayer::init @ 0x10006f760 // > SetupSmartBlockLayer::init @ 0x10006f808 // > SetupSmartBlockLayer::init @ 0x10006f8c8 // > SetupSmartBlockLayer::init @ 0x10006f988 // > SetupSmartBlockLayer::init @ 0x10006fa30 // > SetupSmartBlockLayer::init @ 0x10006fad8 // > CollisionBlockPopup::init @ 0x100085470 // > OptionsLayer::customSetup @ 0x1000ed0a4 // > MoreOptionsLayer::addToggle @ 0x1000ee9c0 // > MoreVideoOptionsLayer::addToggle @ 0x1000f1978 // > ParentalOptionsLayer::addToggle @ 0x1000f2e40 // > SetupCountTriggerPopup::init @ 0x1000f43a4 // > SetupCountTriggerPopup::init @ 0x1000f445c // > SetupCountTriggerPopup::init @ 0x1000f4514 // > ConfigureHSVWidget::init @ 0x1000ff6fc // > ConfigureHSVWidget::init @ 0x1000ff79c // > SetupTriggerPopup::createToggleButton @ 0x10012f1e8 // > SetupTriggerPopup::createMultiTriggerItems @ 0x10012f3e4 // > SetupTriggerPopup::createMultiTriggerItems @ 0x10012f47c // > SetupTriggerPopup::createMultiTriggerItems @ 0x10012f518 // > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x100131e44 // > SetupTriggerPopup::createCustomToggleValueControl @ 0x10013208c // > SongOptionsLayer::init @ 0x10014509c // > SongOptionsLayer::init @ 0x100145154 // > SongOptionsLayer::init @ 0x100145210 // > SearchSFXPopup::init @ 0x10016aa84 // > SetupCameraOffsetTrigger::init @ 0x10018fbbc // > SetupCameraOffsetTrigger::init @ 0x10018fc94 // > SetupKeyframePopup::init @ 0x1001b5408 // > SetupCameraEdgePopup::init @ 0x10023a4fc // > SetupCameraEdgePopup::init @ 0x10023a5c8 // > SetupCameraEdgePopup::init @ 0x10023a694 // > SetupCameraEdgePopup::init @ 0x10023a764 // > ShareListLayer::init @ 0x10024890c // > ShareListLayer::init @ 0x100248aac // > CreateParticlePopup::init @ 0x1002cb290 // > CreateParticlePopup::init @ 0x1002cb378 // > CreateParticlePopup::init @ 0x1002cb464 // > CreateParticlePopup::init @ 0x1002cb54c // > CreateParticlePopup::init @ 0x1002cb640 // > CreateParticlePopup::init @ 0x1002cb730 // > CreateParticlePopup::init @ 0x1002cca64 // > CreateParticlePopup::init @ 0x1002ccb28 // > CreateParticlePopup::init @ 0x1002ccbec // > CreateParticlePopup::init @ 0x1002cccb0 // > CreateParticlePopup::init @ 0x1002ccd80 // > CreateParticlePopup::init @ 0x1002cce48 // > CreateParticlePopup::init @ 0x1002ccf0c // > CreateParticlePopup::init @ 0x1002ccfd0 // > CreateParticlePopup::init @ 0x1002cd094 // > CreateParticlePopup::init @ 0x1002cd154 // > CreateParticlePopup::init @ 0x1002cd22c // > CreateParticlePopup::init @ 0x1002cd300 // > CreateParticlePopup::init @ 0x1002cd3c8 // > CreateParticlePopup::init @ 0x1002cd490 // > SetupEnterTriggerPopup::init @ 0x1002d2ab0 // > SetupEnterTriggerPopup::init @ 0x1002d2b64 // > GJOptionsLayer::addToggleInternal @ 0x1002d36a0 // > GameOptionsLayer::setupOptions @ 0x1002e1904 // > GameOptionsLayer::setupOptions @ 0x1002e1a90 // > GJGarageLayer::setupPage @ 0x1003050d0 // > EditorPauseLayer::customSetup @ 0x10039d230 // > EditorPauseLayer::customSetup @ 0x10039d2d8 // > EditorPauseLayer::customSetup @ 0x10039d380 // > EditorPauseLayer::customSetup @ 0x10039d428 // > EditorPauseLayer::customSetup @ 0x10039d4d0 // > EditorPauseLayer::customSetup @ 0x10039d578 // > EditorPauseLayer::customSetup @ 0x10039d620 // > EditorPauseLayer::customSetup @ 0x10039d6c8 // > EditorPauseLayer::customSetup @ 0x10039d770 // > EditorPauseLayer::customSetup @ 0x10039d818 // > EditorPauseLayer::customSetup @ 0x10039d8c0 // > SongInfoLayer::init @ 0x1003a8548 // > SongInfoLayer::init @ 0x1003a8608 // > SetupCameraModePopup::init @ 0x1003aa708 // > SetupCameraModePopup::init @ 0x1003aa7b4 // > SetupPulsePopup::init @ 0x1003b4888 // > SetupPulsePopup::init @ 0x1003b4934 // > SetupPulsePopup::init @ 0x1003b49f8 // > SetupPulsePopup::init @ 0x1003b4ab8 // > SetupPulsePopup::init @ 0x1003b4b7c // > SetupPulsePopup::init @ 0x1003b4c40 // > SetupPulsePopup::init @ 0x1003b4d0c // > GJPathPage::init @ 0x1003b9c34 // > SetupEnterEffectPopup::init @ 0x100400a18 // > SetupEnterEffectPopup::init @ 0x100400ac8 // > ColorSelectPopup::init @ 0x10041d274 // > ColorSelectPopup::init @ 0x10041d4ec // // 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 // CCMenuItemToggler *__fastcall GameToolbox::createToggleButton( const char *a1, void (__cdecl *a2)(cocos2d::CCObject *), size_t a3, bool a4, cocos2d::CCNode *a5, cocos2d::CCPoint *a6, cocos2d::CCObject *a7, cocos2d::CCObject *a8, float a9, float a10, float a11, float *a12, const char *a13, char a14, int a15, __int64 a16) { cocos2d::CCObject *v26; // x24 cocos2d::CCSprite *v27; // x22 cocos2d::CCSprite *v28; // x25 CCMenuItemToggler *v29; // x20 cocos2d::CCLabelBMFont *v30; // x21 __n128 v31; // q0 __n128 v32; // q1 float v33; // s11 __n128 v34; // q1 __n128 v35; // q0 float *v36; // x0 double v37; // d0 float32x2_t v39; // [xsp+10h] [xbp-90h] BYREF float32x2_t v40; // [xsp+18h] [xbp-88h] BYREF cocos2d::CCPoint v41; // 0:kr00_8.8 cocos2d::SEL_MenuHandler v42; // 0:x3.16 if ( a8 ) v26 = a8; else v26 = a7; v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v27->setScale)(v27, a9); ((void (__fastcall *)(cocos2d::CCSprite *, float))v28->setScale)(v28, a9); v42.ptr = a2; v42.adj = a3; v29 = CCMenuItemToggler::create(v28, v27, a7, v42); CCMenuItemToggler::toggle(v29, a4); ((void (__fastcall *)(cocos2d::CCNode *, CCMenuItemToggler *))a5->addChild)(a5, v29); v41 = cocos2d::CCNode::convertToNodeSpace(a5, a6); ((void (__fastcall *)(CCMenuItemToggler *, float32x2_t *, float, float))v29->setPosition)(v29, &v40, v41.x, v41.y); CCMenuItemToggler::setSizeMult(v29, 1.5); if ( a1[23] < 0 ) a1 = *(const char **)a1; v30 = cocos2d::CCLabelBMFont::create_1(a1, a13); ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCLabelBMFont *))v26->__vftable[5].update)(v26, v30); if ( a15 ) ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v30->setTag)(v30); if ( (a14 & 1) != 0 ) { v31.n128_u32[0] = 0.5; v32.n128_u32[0] = 0; sub_100022980(v31, v32, &v40); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v30->setAnchorPoint)(v30, &v40); v33 = *a12; v34.n128_f32[0] = a12[1] + (float)((float)(*(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))v27->getContentSize)(v27) + 4) * 0.5) * a9); v35.n128_f32[0] = v33; } else { v31.n128_u32[0] = 0; v32.n128_u32[0] = 0.5; sub_100022980(v31, v32, &v40); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v30->setAnchorPoint)(v30, &v40); v36 = (float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v27->getContentSize)(v27); v34.n128_f32[0] = a12[1]; v35.n128_f32[0] = *a12 + (float)((float)(*v36 * 0.5) * a9); } sub_100022980(v35, v34, &v39); *(float32x2_t *)&v37 = sub_1000229DC((float32x2_t *)a6, &v39, &v40); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v30->setPosition)(v30, &v40, v37); cocos2d::CCLabelBMFont::limitLabelWidth(v30, a11, a10, 0.0); if ( a16 ) { sub_10024A2D0(a16, v29); sub_10024A2D0(a16, v30); } return v29; }
GD Web Decomp Icon

GD Web Decomp

Raw Source