// // ShareLevelSettingsLayer::init from 0x7f2bc4 to 0x7f353c (2424 bytes) // // 2 xrefs: // > ShareLevelSettingsLayer::create @ 0x7f36c0 // > @ 0xaea90 // // This function is hookable on this platform (idp: arm, 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 12:54:36 +0000 // __int64 __fastcall ShareLevelSettingsLayer::init(cocos2d::CCNode **this, GJGameLevel *a2, ShareLevelLayer *a3) { cocos2d::CCDirector *v5; // x0 unsigned int v6; // w25 cocos2d::CCDirector *v8; // x0 __int64 v9; // x21 void (__fastcall *v10)(__int64, __int64 *); // x24 void (__fastcall *v11)(__int64, __int64 *); // x24 const char *v12; // x2 __int64 v13; // x21 void (__fastcall *v14)(__int64, __int64 *); // x24 __int64 v15; // x0 __int64 v16; // x24 cocos2d::CCNode *v17; // x26 void (__fastcall *v18)(__int64, __int64 *); // x21 const char *v19; // x1 __int64 v20; // x0 __int64 v21; // x21 cocos2d::CCNode *v22; // x26 void (__fastcall *v23)(__int64, __int64 *); // x24 const char *v24; // x2 __int64 v25; // x0 __int64 v26; // x21 void (__fastcall *v27)(__int64, __int64 *); // x24 const char *v28; // x1 __int64 v29; // x24 const char *v30; // x1 __int64 v31; // x27 CCMenuItemToggler *v32; // x26 void (__fastcall *v33)(CCMenuItemToggler *, __int64 *); // x21 const char *v34; // x2 __int64 v35; // x21 float *v36; // x0 float v37; // s0 __int64 v38; // x0 const char *v39; // x1 __int64 v40; // x21 const char *v41; // x1 __int64 v42; // x24 CCMenuItemToggler *v43; // x0 __int64 v44; // x24 void (__fastcall *v45)(__int64, __int64 *); // x27 const char *v46; // x2 __int64 v47; // x0 __int64 v48; // x24 void (__fastcall *v49)(__int64, __int64 *); // x27 __int64 v50; // x24 __int64 v51; // x0 __int64 (__fastcall *v52)(__int64); // x1 void (__fastcall *v53)(__int64, __int64 *); // x21 float *v54; // x0 __int64 v55; // x21 void (__fastcall *v56)(__int64, __int64 *); // x19 float *v57; // x0 cocos2d::CCPoint *v59; // [xsp+98h] [xbp+98h] cocos2d::CCPoint *v60; // [xsp+98h] [xbp+98h] cocos2d::CCPoint *v61; // [xsp+98h] [xbp+98h] cocos2d::CCPoint *v62; // [xsp+98h] [xbp+98h] __int64 v63; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v64[4]; // [xsp+B0h] [xbp+B0h] BYREF float v65; // [xsp+B4h] [xbp+B4h] _BYTE v66[8]; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v67[8]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v68[2]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v69[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v70; // [xsp+E8h] [xbp+E8h] __int64 v71; // [xsp+F0h] [xbp+F0h] BYREF __int64 v72; // [xsp+F8h] [xbp+F8h] void *v73; // [xsp+100h] [xbp+100h] v5 = (cocos2d::CCDirector *)(unsigned __int8)FLAlertLayer::init((FLAlertLayer *)this, 75); v6 = (unsigned __int8)v5; if ( (_BYTE)v5 ) { *(this + 88) = a3; *(this + 85) = a2; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(&v63, v8); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v68, 0.0, 0.0, 80.0, 80.0); v9 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v68); v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v9 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, 360.0, 220.0); v10(v9, v68); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v9, 0xFFFFFFFFLL); v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, *(float *)&v63 * 0.5, *((float *)&v63 + 1) * 0.5); v11(v9, v68); v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Settings", "bigFont.fnt", v12); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v68, *(float *)&v63 * 0.5, (float)((float)(*((float *)&v63 + 1) * 0.5) + 110.0) - 20.0); v14(v13, v68); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v13); *((_DWORD *)this + 160) = -1; v15 = cocos2d::CCMenu::create((cocos2d::CCMenu *)0xFFFFFFFFLL); *(this + 69) = (cocos2d::CCNode *)v15; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v15, 10); v69[0] = 0; v69[1] = 0; v70 = nullptr; std::string::__init(v69, "Help", 4u); v71 = 0; v72 = 0; v73 = nullptr; std::string::__init( &v71, "Unlisted makes it so that your level can only be found by searching for the exact ID. It will " "not be visible on your profile, from search, or anywhere else. Unlisted levels do not have to be v" "erified to be uploaded.\n" "Friends Only makes it so that only friends who search the exact ID can find it.", 0x15Fu); v16 = InfoAlertButton::create(v69, &v71, 1.0); if ( (v71 & 1) != 0 ) operator delete(v73); if ( (v69[0] & 1) != 0 ) operator delete(v70); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v16); v17 = *(this + 69); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v67, (float)((float)(*(float *)&v63 * 0.5) + 180.0) - 20.0, (float)((float)(*((float *)&v63 + 1) * 0.5) + 110.0) - 20.0); cocos2d::CCNode::convertToNodeSpace(v68, v17, (const cocos2d::CCPoint *)v67); v18(v16, v68); v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v19); v21 = CCMenuItemSpriteExtra::create(v20, 0, (__int64)this, (__int64)ShareLevelSettingsLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v21, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v21); v22 = *(this + 69); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v67, (float)((float)(*(float *)&v63 * 0.5) + -180.0) + 5.0, (float)((float)(*((float *)&v63 + 1) * 0.5) + 110.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(v68, v22, (const cocos2d::CCPoint *)v67); v23(v21, v68); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "goldFont.fnt", v24); *(this + 84) = (cocos2d::CCNode *)v25; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v25); v26 = (__int64)*(this + 84); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v68, *(float *)&v63 * 0.5, (float)((float)(*((float *)&v63 + 1) * 0.5) + -110.0) + 80.0); v27(v26, v68); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 84) + 160LL))(*(this + 84), 0.6); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v64, (float)(*(float *)&v63 * 0.5) + -140.0, (float)(*((float *)&v63 + 1) * 0.5) + 45.0); v29 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v28); v31 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v30); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v29 + 160LL))(v29, 0.8); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.8); v32 = (CCMenuItemToggler *)CCMenuItemToggler::create( v29, v31, (__int64)this, (__int64)ShareLevelSettingsLayer::onUnlisted, 0); CCMenuItemToggler::toggle(v32, *((_BYTE *)*(this + 85) + 616) ^ 1); (*(void (__fastcall **)(_QWORD, CCMenuItemToggler *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v32); v33 = *(void (__fastcall **)(CCMenuItemToggler *, __int64 *))(*(_QWORD *)v32 + 184LL); cocos2d::CCNode::convertToNodeSpace(v68, *(this + 69), (const cocos2d::CCPoint *)v64); v33(v32, v68); CCMenuItemToggler::setSizeMult(v32, 1.5); v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Unlisted", "bigFont.fnt", v34); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v35); v59 = *(cocos2d::CCPoint **)(*(_QWORD *)v35 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, 0.0, 0.5); ((void (__fastcall *)(__int64, __int64 *))v59)(v35, v68); v60 = *(cocos2d::CCPoint **)(*(_QWORD *)v35 + 184LL); v36 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 328LL))(v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v67, (float)((float)(*v36 * 0.5) * 0.8) + 8.0, 0.0); cocos2d::CCPoint::operator+(v68, v64); ((void (__fastcall *)(__int64, __int64 *))v60)(v35, v68); v37 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 328LL))(v35); if ( v37 > 110.0 ) { v62 = *(cocos2d::CCPoint **)(*(_QWORD *)v35 + 160LL); v57 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 328LL))(v35, v37); ((void (__fastcall *)(__int64, float))v62)(v35, 110.0 / *v57); } v61 = *(cocos2d::CCPoint **)(*(_QWORD *)v35 + 160LL); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v35 + 168LL))(v35) <= 0.35 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 168LL))(v35, 0.35); ((void (__fastcall *)(__int64))v61)(v35); v38 = (__int64)*(this + 85); if ( *(_BYTE *)(v38 + 785) || *(int *)(v38 + 788) > 1 ) { (*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(*(_QWORD *)v32 + 1056LL))(v32, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v29 + 960LL))(v29, &unk_11455C0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v31 + 960LL))(v31, &unk_11455C0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v35 + 1072LL))(v35, &unk_11455C0); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, (float)(*(float *)&v63 * 0.5) + 40.0, v65); v40 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v39); v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v41); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, 0.8); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 160LL))(v42, 0.8); v43 = (CCMenuItemToggler *)CCMenuItemToggler::create( v42, v40, (__int64)this, (__int64)ShareLevelSettingsLayer::onUnlistedFriendsOnly, 0); *(this + 86) = v43; CCMenuItemToggler::toggle(v43, *((_BYTE *)*(this + 85) + 617)); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), *(this + 86)); v44 = (__int64)*(this + 86); v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL); cocos2d::CCNode::convertToNodeSpace(v68, *(this + 69), (const cocos2d::CCPoint *)v66); v45(v44, v68); CCMenuItemToggler::setSizeMult(*(this + 86), 1.5); v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Friends Only", "bigFont.fnt", v46); *(this + 87) = (cocos2d::CCNode *)v47; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v47); v48 = (__int64)*(this + 87); v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, 0.0, 0.5); v49(v48, v68); v50 = (__int64)*(this + 87); v51 = v40; v52 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 328LL); v53 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); v54 = (float *)v52(v51); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v67, (float)((float)(*v54 * 0.5) * 0.8) + 8.0, 0.0); cocos2d::CCPoint::operator+(v68, v66); v53(v50, v68); cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 87), 110.0, 0.35, 0.0); ShareLevelSettingsLayer::updateSettingsState((ShareLevelSettingsLayer *)this); v71 = 0; v72 = 0; v73 = nullptr; std::string::__init( &v71, "Starting in 2.2, all new levels are free to copy.\n(Older levels retain any copy settings.)", 0x5Au); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, 0.5, 1.0); v55 = TextArea::create((char *)&v71, "chatFont.fnt", (const cocos2d::CCPoint *)v68, 0, 0, 1.0, 320.0, 20.0); if ( (v71 & 1) != 0 ) operator delete(v73); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v55); v56 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v68, *(float *)&v63 * 0.5, (float)((float)(*((float *)&v63 + 1) * 0.5) + -110.0) + 35.0); v56(v55, v68); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL))(v55, 0.65); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source