// // MoreSearchLayer::createToggleButton from 0x6d3894 to 0x6d3b08 (628 bytes) // // 12 xrefs: // > MoreSearchLayer::init @ 0x6d3ec8 // > MoreSearchLayer::init @ 0x6d3f48 // > MoreSearchLayer::init @ 0x6d3fc4 // > MoreSearchLayer::init @ 0x6d4040 // > MoreSearchLayer::init @ 0x6d40bc // > MoreSearchLayer::init @ 0x6d4138 // > MoreSearchLayer::init @ 0x6d41b4 // > MoreSearchLayer::init @ 0x6d4230 // > MoreSearchLayer::init @ 0x6d42ac // > MoreSearchLayer::init @ 0x6d4328 // > MoreSearchLayer::init @ 0x6d43a4 // > @ 0xc7548 // // 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 MoreSearchLayer::createToggleButton( __int64 a1, __int64 a2, void (__cdecl *a3)(cocos2d::CCObject *), size_t a4, bool a5, cocos2d::CCNode *a6, const cocos2d::CCPoint *a7) { cocos2d::CCSprite *v11; // x22 cocos2d::CCSprite *v12; // x21 CCMenuItemToggler *v13; // x21 cocos2d::CCNode *v14; // x0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19 cocos2d::CCLabelBMFont *v16; // x19 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCSprite *v18; // x0 const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x1 void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 float *v21; // x0 float width; // s0 void (__fastcall *v23)(cocos2d::CCLabelBMFont *__hidden, float); // x20 float v24; // s0 float v25; // s1 void (__fastcall *setScale)(cocos2d::CCLabelBMFont *__hidden, float); // x20 float *v28; // x0 cocos2d::CCPoint v29; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v30; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v31; // 0:kr00_8.8 cocos2d::SEL_MenuHandler v32; // 0:^70.16 v32.ptr = a3; v32.adj = a4; v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); v11->setScale(v11, 0.8); v12->setScale(v12, 0.8); v13 = CCMenuItemToggler::create(v11, v12, (cocos2d::CCObject *)a1, v32); CCMenuItemToggler::toggle(v13, a5); a6->addChild(a6, v13); v14 = a6; setPosition = v13->setPosition; v31 = cocos2d::CCNode::convertToNodeSpace(v14, a7); ((void (__fastcall *)(CCMenuItemToggler *, cocos2d::CCPoint *, float, float))setPosition)(v13, &v30, v31.x, v31.y); CCMenuItemToggler::setSizeMult(v13, 1.5); v16 = cocos2d::CCLabelBMFont::create(); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v16); setAnchorPoint = v16->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v30, 0.0, 0.5); setAnchorPoint(v16, &v30); v18 = v11; getContentSize = v11->getContentSize; v20 = v16->setPosition; v21 = (float *)getContentSize(v18); cocos2d::CCPoint::CCPoint(&v29, (float)((float)(*v21 * 0.5) * 0.8) + 8.0, 0.0); cocos2d::CCPoint::operator+(&v30, a7, &v29); v20(v16, &v30); width = v16->getContentSize(v16)->width; if ( width > 80.0 ) { setScale = v16->setScale; v28 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v16->getContentSize)(v16, width); setScale(v16, 80.0 / *v28); } v23 = v16->setScale; v24 = v16->getScale(v16); v25 = 0.35; if ( v24 <= 0.35 ) v25 = v16->getScale(v16); v23(v16, v25); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source