// // ColorSelectLiveOverlay::createToggleButton from 0x601338 to 0x601478 (320 bytes) // // 0 xrefs: // // 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:54:40 +0000 // cocos2d::CCNodeRGBA *__fastcall ColorSelectLiveOverlay::createToggleButton( int a1, int a2, int a3, int a4, bool a5, const cocos2d::CCPoint *a6, int a7) { int v9; // r10 const char *v10; // r1 int v11; // r6 cocos2d::CCNodeRGBA *v12; // r7 const char *v13; // r2 cocos2d::CCLabelBMFont *v14; // r0 cocos2d::CCLabelBMFont *v15; // r5 void (__fastcall *v16)(cocos2d::CCLabelBMFont *, _BYTE *); // r9 void (__fastcall *v17)(cocos2d::CCLabelBMFont *, _BYTE *); // r11 float *v18; // r0 void (__fastcall *v20)(cocos2d::CCNodeRGBA *, _BYTE *); // [sp+Ch] [bp-28h] char v21[4]; // [sp+10h] [bp-24h] BYREF int v22; // [sp+14h] [bp-20h] _BYTE v23[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v24[8]; // [sp+24h] [bp-10h] BYREF *(_DWORD *)v21 = a3; v22 = a4; v9 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v21); v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v10); (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, 1060320051); (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 80))(v11, 1060320051); v12 = CCMenuItemToggler::create(v9, v11, a1, *(int *)v21, v22); CCMenuItemToggler::toggle(v12, a5); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCNodeRGBA *))(*(_DWORD *)a6 + 228))(a6, v12); v20 = *(void (__fastcall **)(cocos2d::CCNodeRGBA *, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v24, a6); v20(v12, v24); CCMenuItemToggler::setSizeMult(v12, 1.5); if ( (*(_BYTE *)a2 & 1) != 0 ) v14 = *(cocos2d::CCLabelBMFont **)(a2 + 8); else v14 = (cocos2d::CCLabelBMFont *)(a2 + 1); v15 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v14, "bigFont.fnt", v13); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v15, 2); v16 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v15 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, 0.5); v16(v15, v24); v17 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v15 + 92); v18 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 164))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)((float)(*v18 * 0.5) * 0.7) + 6.0, 0.0); cocos2d::CCPoint::operator+(v24, a7, v23); v17(v15, v24); cocos2d::CCLabelBMFont::limitLabelWidth(v15, 110.0, 0.35, 0.0); return v12; }