// // ParentalOptionsLayer::init from 0x8f6af0 to 0x8f7080 (1424 bytes) // // 3 xrefs: // > ParentalOptionsLayer::create @ 0x8f71f0 // > @ 0x64618 // > @ 0x14610c0 // // 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:01 +0000 // __int64 __fastcall ParentalOptionsLayer::init(CCMenuItemToggler **this) { cocos2d::CCDirector *v2; // x0 unsigned int v3; // w23 cocos2d::CCDirector *v4; // x0 __int64 v5; // x24 void (__fastcall *v6)(__int64, _BYTE *); // x26 void (__fastcall *v7)(__int64, _BYTE *); // x26 const char *v8; // x2 __int64 v9; // x24 void (__fastcall *v10)(__int64, _BYTE *); // x26 cocos2d::CCDictionary *v11; // x0 cocos2d::CCObject *v12; // x0 cocos2d::CCDictionary *v13; // x0 cocos2d::CCObject *v14; // x0 cocos2d::CCArray *v15; // x0 cocos2d::CCObject *v16; // x0 cocos2d::CCArray *v17; // x0 cocos2d::CCObject *v18; // x0 cocos2d::CCMenu *v19; // x0 __int64 v20; // x0 const char *v21; // x1 __int64 v22; // x0 __int64 v23; // x24 cocos2d::CCNode *v24; // x27 void (__fastcall *v25)(__int64, __int64 *); // x26 const char *v26; // x1 __int64 v27; // x24 const char *v28; // x1 __int64 v29; // x0 GameManager *v30; // x0 CCMenuItemToggler *v31; // x24 GameManager *v32; // x0 unsigned __int8 GameVariable; // w0 __int64 v34; // x24 cocos2d::CCNode *v35; // x27 void (__fastcall *v36)(__int64, __int64 *); // x26 float v37; // s9 const char *v38; // x1 __int64 v39; // x0 __int64 v40; // x0 __int64 v41; // x26 cocos2d::CCNode *v42; // x28 void (__fastcall *v43)(__int64, __int64 *); // x27 const char *v44; // x1 cocos2d::CCSprite *v45; // x24 __int64 v46; // x0 __int64 v47; // x24 cocos2d::CCNode *v48; // x26 void (__fastcall *v49)(__int64, __int64 *); // x25 __int64 v51; // [xsp+78h] [xbp+78h] BYREF __int64 v52; // [xsp+80h] [xbp+80h] BYREF _BYTE v53[16]; // [xsp+88h] [xbp+88h] BYREF v2 = (cocos2d::CCDirector *)(unsigned __int8)FLAlertLayer::init((FLAlertLayer *)this, 75); v3 = (unsigned __int8)v2; if ( (_BYTE)v2 ) { *((_BYTE *)this + 596) = 1; v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v51, v4); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v53, 0.0, 0.0, 80.0, 80.0); v5 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v53); v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v53, 360.0, 260.0); v6(v5, v53); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v5, 0xFFFFFFFFLL); v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, *(float *)&v51 * 0.5, *((float *)&v51 + 1) * 0.5); v7(v5, v53); v9 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Parental Control", "bigFont.fnt", v8); v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v53, *(float *)&v51 * 0.5, (float)((float)(*((float *)&v51 + 1) * 0.5) + 130.0) - 16.0); v10(v9, v53); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v9); v11 = (cocos2d::CCDictionary *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, 0.6); v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11); *(this + 86) = v12; v13 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v12); v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v13); *(this + 85) = v14; v15 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v14); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); *(this + 90) = v16; v17 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v16); v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17); *(this + 91) = v18; v19 = (cocos2d::CCMenu *)cocos2d::CCObject::retain(v18); v20 = cocos2d::CCMenu::create(v19); *(this + 69) = (CCMenuItemToggler *)v20; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v20, 10); ParentalOptionsLayer::addMasterToggle( (ParentalOptionsLayer *)this, "Safe Mode", "0218", "Blocks all communication.\nOnly approved online levels.", "Safe Mode blocks comments, posts, messages, friend requests, user search and uploads. Online levels are li" "mited to Featured, Daily, Weekly, Events, Gauntlets and Map Packs." " Social links are hidden. Account privacy is set to block messages, friend requests and comments."); ParentalOptionsLayer::addMasterToggle( (ParentalOptionsLayer *)this, "Offline Mode", "0219", "No online levels or profiles.\nIncludes Safe Mode.", "Offline Mode blocks everything Safe Mode blocks, plus online levels, profiles and leaderboards."); ParentalOptionsLayer::addToggle( (ParentalOptionsLayer *)this, "Disable\nComments", "0075", 1u, "Hides level comments and blocks posting them."); ParentalOptionsLayer::addToggle( (ParentalOptionsLayer *)this, "Disable\nPosts", "0076", 1u, "Hides account posts and blocks posting them."); ParentalOptionsLayer::addToggle( (ParentalOptionsLayer *)this, "Disable\nMessaging", "0243", 1u, "Blocks messages, group chats and friend requests. Account privacy is set to block them and the comment history is " "hidden, like Safe Mode."); ParentalOptionsLayer::addToggle( (ParentalOptionsLayer *)this, "Only Curated\nLevels", "0077", 1u, "Limits online levels to Featured, Daily, Weekly, Events, Gauntlets and Map Packs."); ParentalOptionsLayer::updateToggleStates(this); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v21); v23 = CCMenuItemSpriteExtra::create(v22, 0, (__int64)this, (__int64)ParentalOptionsLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v23, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v23); v24 = *(this + 69); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v53, (float)((float)(*(float *)&v51 * 0.5) + -180.0) + 5.0, (float)((float)(*((float *)&v51 + 1) * 0.5) + 130.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(&v52, v24, (const cocos2d::CCPoint *)v53); v25(v23, &v52); v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_open_001.png", v26); v29 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_001.png", v28); v30 = (GameManager *)CCMenuItemToggler::create( v27, v29, (__int64)this, (__int64)ParentalOptionsLayer::onLockToggle, 0); *(this + 89) = v30; v31 = v30; v32 = (GameManager *)GameManager::sharedState(v30); GameVariable = GameManager::getGameVariable(v32, "0228"); CCMenuItemToggler::toggle(v31, GameVariable); CCMenuItemToggler::setSizeMult(*(this + 89), 1.5); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), *(this + 89)); v34 = (__int64)*(this + 89); v35 = *(this + 69); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v53, (float)((float)(*(float *)&v51 * 0.5) + 180.0) - 24.0, (float)((float)(*((float *)&v51 + 1) * 0.5) + -130.0) + 24.0); cocos2d::CCNode::convertToNodeSpace(&v52, v35, (const cocos2d::CCPoint *)v53); v36(v34, &v52); v37 = *((float *)&v51 + 1) * 0.5; v39 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v38); v40 = CCMenuItemSpriteExtra::create(v39, 0, (__int64)this, (__int64)ParentalOptionsLayer::onPrevPage, 0); *(this + 92) = (CCMenuItemToggler *)v40; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v40); v41 = (__int64)*(this + 92); v42 = *(this + 69); v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, (float)(*(float *)&v51 * 0.5) + -224.0, v37); cocos2d::CCNode::convertToNodeSpace(&v52, v42, (const cocos2d::CCPoint *)v53); v43(v41, &v52); v45 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v44); cocos2d::CCSprite::setFlipX(v45, 1); v46 = CCMenuItemSpriteExtra::create((__int64)v45, 0, (__int64)this, (__int64)ParentalOptionsLayer::onNextPage, 0); *(this + 93) = (CCMenuItemToggler *)v46; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v46); v47 = (__int64)*(this + 93); v48 = *(this + 69); v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, (float)(*(float *)&v51 * 0.5) + 224.0, v37); cocos2d::CCNode::convertToNodeSpace(&v52, v48, (const cocos2d::CCPoint *)v53); v49(v47, &v52); ParentalOptionsLayer::goToPage((ParentalOptionsLayer *)this, 0); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source