// // LevelFeatureLayer::init from 0x9510a8 to 0x951838 (1936 bytes) // // 2 xrefs: // > LevelFeatureLayer::create @ 0x95199c // > @ 0xdd740 // // 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:57:23 +0000 // __int64 __fastcall LevelFeatureLayer::init(cocos2d::CCNode **this, int a2) { unsigned __int8 v4; // w0 unsigned int v5; // w23 cocos2d::CCDirector *v6; // x0 __int64 v7; // x24 void (__fastcall *v8)(__int64, _BYTE *); // x26 void (__fastcall *v9)(__int64, _BYTE *); // x26 const char *v10; // x2 __int64 v11; // x26 void (__fastcall *v12)(__int64, _BYTE *); // x27 cocos2d::CCMenu *v13; // x0 __int64 v14; // x0 cocos2d::CCArray *v15; // x0 cocos2d::CCArray *v16; // x26 const char *v17; // x1 __int64 v18; // x2 __int64 v19; // x3 bool v20; // w4 __int64 v21; // x5 const char *v22; // x6 __int64 v23; // x0 cocos2d::CCObject *v24; // x27 const char *v25; // x1 __int64 v26; // x2 __int64 v27; // x3 bool v28; // w4 __int64 v29; // x5 const char *v30; // x6 __int64 v31; // x0 cocos2d::CCObject *v32; // x27 cocos2d::CCNode *v33; // x28 const char *v34; // x1 __int64 v35; // x2 __int64 v36; // x3 bool v37; // w4 __int64 v38; // x5 const char *v39; // x6 __int64 v40; // x26 __int64 v41; // x26 cocos2d::CCObject *v42; // x0 __int64 (__fastcall *v43)(cocos2d::CCObject *); // x1 void (__fastcall *v44)(__int64, __int64 *); // x27 __int64 v45; // x28 const char *v46; // x2 __int64 v47; // x0 const char *v48; // x1 __int64 v49; // x0 __int64 v50; // x24 cocos2d::CCNode *v51; // x27 void (__fastcall *v52)(__int64, __int64 *); // x26 const char *v53; // x1 __int64 v54; // x0 __int64 v55; // x24 cocos2d::CCNode *v56; // x26 void (__fastcall *v57)(__int64, __int64 *); // x25 const char *v58; // x1 __int64 v59; // x0 __int64 v60; // x24 cocos2d::CCNode *v61; // x27 void (__fastcall *v62)(__int64, __int64 *); // x26 const char *v63; // x1 __int64 v64; // x0 __int64 v65; // x24 cocos2d::CCNode *v66; // x26 void (__fastcall *v67)(__int64, __int64 *); // x25 const char *v68; // x1 __int64 v69; // x0 __int64 v70; // x24 cocos2d::CCNode *v71; // x26 void (__fastcall *v72)(__int64, __int64 *); // x25 const char *v73; // x1 __int64 v74; // x0 __int64 v75; // x24 cocos2d::CCNode *v76; // x26 void (__fastcall *v77)(__int64, __int64 *); // x25 __int64 v78; // x0 void (__fastcall *v79)(__int64, _BYTE *); // x3 __int64 v81; // [xsp+90h] [xbp+90h] BYREF float v82; // [xsp+98h] [xbp+98h] BYREF float v83; // [xsp+9Ch] [xbp+9Ch] __int64 v84; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v85[16]; // [xsp+A8h] [xbp+A8h] BYREF v4 = FLAlertLayer::init((FLAlertLayer *)this, 75); v5 = v4; if ( v4 ) { *((_DWORD *)this + 168) = a2; *((_DWORD *)this + 169) = (unsigned int)&elf_hash_bucket[6149] + 3; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&elf_hash_bucket[6149] + 3)); cocos2d::CCDirector::getWinSize(&v81, v6); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v85, 0.0, 0.0, 80.0, 80.0); v7 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v85); v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v85, 360.0, 180.0); v8(v7, v85); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v7, 0xFFFFFFFFLL); v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, *(float *)&v81 * 0.5, *((float *)&v81 + 1) * 0.5); v9(v7, v85); v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Set Featured", "bigFont.fnt", v10); v12 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v85, *(float *)&v81 * 0.5, (float)((float)(*((float *)&v81 + 1) * 0.5) + 90.0) - 20.0); v12(v11, v85); v13 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))( *(this + 73), v11); v14 = cocos2d::CCMenu::create(v13); *(this + 69) = (cocos2d::CCNode *)v14; v15 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v14, 10); v16 = (cocos2d::CCArray *)cocos2d::CCArray::create(v15); v23 = ButtonSprite::create((ButtonSprite *)"Cancel", v17, v18, v19, v20, v21, v22); v24 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v23, 0, (__int64)this, (__int64)LevelFeatureLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v24); cocos2d::CCArray::addObject(v16, v24); v31 = ButtonSprite::create((ButtonSprite *)"Submit", v25, v26, v27, v28, v29, v30); v32 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v31, 0, (__int64)this, (__int64)LevelFeatureLayer::onSetFeatured, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v32); cocos2d::CCArray::addObject(v16, v32); v33 = *(this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v85, *(float *)&v81 * 0.5, (float)((float)(*((float *)&v81 + 1) * 0.5) + -90.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(&v84, v33, (const cocos2d::CCPoint *)v85); GameToolbox::alignItemsHorisontally((__int64)v16, (__int64)&v84, 0, 15.0); v40 = ButtonSprite::create((ButtonSprite *)"Epic\nOnly", v34, v35, v36, v37, v38, v39); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, 0.4); v41 = CCMenuItemSpriteExtra::create(v40, 0, (__int64)this, (__int64)LevelFeatureLayer::onSetEpicOnly, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v41); v42 = v32; v43 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v32 + 192LL); v44 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); v45 = v43(v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, 90.0, 0.0); cocos2d::CCPoint::operator+(&v84, v45); v44(v41, &v84); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, *(float *)&v81 * 0.5, *((float *)&v81 + 1) * 0.5); v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"0", "bigFont.fnt", v46); *(this + 83) = (cocos2d::CCNode *)v47; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v47); (*(void (__fastcall **)(_QWORD, float *))(*(_QWORD *)*(this + 83) + 184LL))(*(this + 83), &v82); v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_02_001.png", v48); v50 = CCMenuItemSpriteExtra::create(v49, 0, (__int64)this, (__int64)LevelFeatureLayer::onDown, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v50); v51 = *(this + 69); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, v82 - 100.0, v83); cocos2d::CCNode::convertToNodeSpace(&v84, v51, (const cocos2d::CCPoint *)v85); v52(v50, &v84); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 360LL))(v50, -90.0); CCMenuItemSpriteExtra::setSizeMult(v50, 1.5); v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_02_001.png", v53); v55 = CCMenuItemSpriteExtra::create(v54, 0, (__int64)this, (__int64)LevelFeatureLayer::onUp, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v55); v56 = *(this + 69); v57 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, v82 + 100.0, v83); cocos2d::CCNode::convertToNodeSpace(&v84, v56, (const cocos2d::CCPoint *)v85); v57(v55, &v84); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 360LL))(v55, 90.0); CCMenuItemSpriteExtra::setSizeMult(v55, 1.5); v59 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v58); v60 = CCMenuItemSpriteExtra::create(v59, 0, (__int64)this, (__int64)LevelFeatureLayer::onDown2, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v60); v61 = *(this + 69); v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v60 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, v82 - 150.0, v83); cocos2d::CCNode::convertToNodeSpace(&v84, v61, (const cocos2d::CCPoint *)v85); v62(v60, &v84); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v60 + 360LL))(v60, -90.0); CCMenuItemSpriteExtra::setSizeMult(v60, 1.5); v64 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v63); v65 = CCMenuItemSpriteExtra::create(v64, 0, (__int64)this, (__int64)LevelFeatureLayer::onUp2, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v65); v66 = *(this + 69); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, v82 + 150.0, v83); cocos2d::CCNode::convertToNodeSpace(&v84, v66, (const cocos2d::CCPoint *)v85); v67(v65, &v84); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 360LL))(v65, 90.0); CCMenuItemSpriteExtra::setSizeMult(v65, 1.5); LevelFeatureLayer::updateStars((LevelFeatureLayer *)this); v69 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v68); v70 = CCMenuItemSpriteExtra::create(v69, 0, (__int64)this, (__int64)LevelFeatureLayer::onRemoveValues, 0); CCMenuItemSpriteExtra::setSizeMult(v70, 1.6); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v70); v71 = *(this + 69); v72 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v85, (float)(*(float *)&v81 * 0.5) + 180.0, (float)(*((float *)&v81 + 1) * 0.5) + 90.0); cocos2d::CCNode::convertToNodeSpace(&v84, v71, (const cocos2d::CCPoint *)v85); v72(v70, &v84); v74 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_epicCoin_001.png", v73); *(this + 86) = (cocos2d::CCNode *)v74; v75 = CCMenuItemSpriteExtra::create(v74, 0, (__int64)this, (__int64)LevelFeatureLayer::onToggleEpic, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v75); v76 = *(this + 69); v77 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v75 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v85, (float)(*(float *)&v81 * 0.5) + -180.0, (float)(*((float *)&v81 + 1) * 0.5) + 90.0); cocos2d::CCNode::convertToNodeSpace(&v84, v76, (const cocos2d::CCPoint *)v85); v77(v75, &v84); *((_BYTE *)this + 680) = 0; v78 = (__int64)*(this + 86); v79 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v78 + 960LL); memset(v85, 50, 3); v79(v78, v85); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source