// // GJAccountSettingsLayer::createToggleButton from 0x14039e790 to 0x14039e99f (527 bytes) // // 13 xrefs: // > GJAccountSettingsLayer::init @ 0x14039d2ca // > GJAccountSettingsLayer::init @ 0x14039d3a5 // > GJAccountSettingsLayer::init @ 0x14039d472 // > GJAccountSettingsLayer::init @ 0x14039d77e // > GJAccountSettingsLayer::init @ 0x14039d825 // > GJAccountSettingsLayer::init @ 0x14039d8d8 // > GJAccountSettingsLayer::init @ 0x14039dc14 // > GJAccountSettingsLayer::init @ 0x14039dce4 // > GJAccountSettingsLayer::init @ 0x14039dd8e // > GJAccountSettingsLayer::init @ 0x14039dfa7 // > GJAccountSettingsLayer::init @ 0x14039e065 // > GJAccountSettingsLayer::init @ 0x14039e10c // > @ 0x1409233b4 // // This function is hookable on this platform (idp: pc, 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 11:31:16 +0000 // // Hidden C++ exception states: #wind=1 cocos2d::CCMenuItem *__fastcall GJAccountSettingsLayer::createToggleButton( __int64 a1, const char *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, float a7, float a8) { struct cocos2d::CCSprite *v11; // rbp struct cocos2d::CCSprite *v12; // rbx cocos2d::CCMenuItem *v13; // r15 __int64 v14; // rdx __int64 v15; // rbx __int64 v16; // rax const char *v17; // rcx cocos2d::CCLabelBMFont *v18; // rdi __int64 v19; // rbx __int64 v20; // rax float *v21; // rax __int64 v22; // rax _BYTE v24[8]; // [rsp+20h] [rbp-68h] BYREF _BYTE v25[8]; // [rsp+28h] [rbp-60h] BYREF const char *v26; // [rsp+30h] [rbp-58h] v26 = a2; v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 160LL))(v11); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12); v13 = CCMenuItemToggler::create((int)v11, (int)v12, a1, a3); LOBYTE(v14) = 1; CCMenuItemToggler::toggle((__int64)v13, v14); (*(void (__fastcall **)(__int64, cocos2d::CCMenuItem *))(*(_QWORD *)a5 + 464LL))(a5, v13); v15 = *(_QWORD *)v13; cocos2d::CCNode::convertToNodeSpace(a5, v24, a6); (*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(v15 + 184))(v13, v16); *(_DWORD *)(*((_QWORD *)v13 + 47) + 372LL) = 1069547520; *(_DWORD *)(*((_QWORD *)v13 + 48) + 372LL) = 1069547520; CCMenuItemToggler::toggle((__int64)v13, *((unsigned __int8 *)v13 + 392)); v17 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v17 = *(const char **)a2; v18 = cocos2d::CCLabelBMFont::create(v17, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v18); v19 = *(_QWORD *)v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v19 + 288))(v18, v20); v21 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 320LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, (float)((float)(*v21 * 0.5) * 0.5) + 4.0, 0.0); cocos2d::CCPoint::operator+(a6, v24, v22); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v18 + 184LL))(v18, v24); cocos2d::CCLabelBMFont::limitLabelWidth(v18, a7, a8, 0.0); sub_14003D310((__int64)a2); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source