// // ParentalOptionsLayer::init from 0x532228 to 0x5326f0 (1224 bytes) // // 1 xrefs: // > ParentalOptionsLayer::create @ 0x52d668 // // 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:52:05 +0000 // GameManager *__fastcall ParentalOptionsLayer::init(CCMenuItemToggler **this) { GameManager *v2; // r0 int v3; // r6 void (__fastcall *v4)(int, _BYTE *); // r7 void (__fastcall *v5)(int, _BYTE *); // r7 const char *v6; // r2 int v7; // r6 void (__fastcall *v8)(int, _BYTE *); // r7 cocos2d::CCDictionary *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCDictionary *v11; // r0 cocos2d::CCObject *v12; // r0 cocos2d::CCArray *v13; // r0 cocos2d::CCObject *v14; // r0 cocos2d::CCArray *v15; // r0 cocos2d::CCObject *v16; // r0 cocos2d::CCMenu *v17; // r0 CCMenuItemToggler *v18; // r0 const char *v19; // r1 int v20; // r0 int v21; // r10 void (__fastcall *v22)(int, _BYTE *); // r11 const char *v23; // r1 int v24; // r10 const char *v25; // r1 int v26; // r0 cocos2d::CCNodeRGBA *v27; // r0 CCMenuItemToggler *v28; // r10 GameManager *v29; // r0 int GameVariable; // r0 const cocos2d::CCPoint *v31; // r11 void (__fastcall *v32)(cocos2d::CCPoint *, _BYTE *); // r10 float v33; // s17 const char *v34; // r1 int v35; // r0 float v36; // s17 int v37; // r0 void (__fastcall *v38)(int, _BYTE *); // r11 const char *v39; // r1 cocos2d::CCSprite *v40; // r10 int v41; // r0 int v42; // r8 const cocos2d::CCPoint *v43; // r10 void (__fastcall *v44)(int, _BYTE *); // r9 GameManager *v46; // [sp+8h] [bp-5Ch] cocos2d::CCPoint *v47; // [sp+Ch] [bp-58h] cocos2d::CCPoint *v48; // [sp+Ch] [bp-58h] cocos2d::CCPoint *v49; // [sp+Ch] [bp-58h] int v50; // [sp+14h] [bp-50h] float v51; // [sp+1Ch] [bp-48h] BYREF float v52; // [sp+20h] [bp-44h] int (__fastcall *v53)(ParentalOptionsLayer *, cocos2d::CCObject *); // [sp+24h] [bp-40h] int v54; // [sp+28h] [bp-3Ch] const char *(__fastcall *v55)(ParentalOptionsLayer *, cocos2d::CCObject *); // [sp+2Ch] [bp-38h] int v56; // [sp+30h] [bp-34h] const char **(__fastcall *v57)(const char **, cocos2d::CCObject *); // [sp+34h] [bp-30h] int v58; // [sp+38h] [bp-2Ch] const char **(__fastcall *v59)(const char **, cocos2d::CCObject *); // [sp+3Ch] [bp-28h] int v60; // [sp+40h] [bp-24h] _BYTE v61[8]; // [sp+44h] [bp-20h] BYREF _BYTE v62[16]; // [sp+4Ch] [bp-18h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 75); v46 = v2; if ( v2 ) { *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v51); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v62, 0.0, 0.0, 80.0, 80.0); v3 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v62); v4 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v62, 360.0, 260.0); v4(v3, v62); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v3, -1); v5 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v51 * 0.5, v52 * 0.5); v5(v3, v62); v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Parental Control", "bigFont.fnt", v6); v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v51 * 0.5, (float)((float)(v52 * 0.5) + 130.0) - 16.0); v8(v7, v62); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v7); v9 = (cocos2d::CCDictionary *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1058642330); v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9); *(this + 135) = v10; v11 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11); *(this + 134) = v12; v13 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v12); v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13); *(this + 139) = v14; v15 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v14); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); *(this + 140) = v16; v17 = (cocos2d::CCMenu *)cocos2d::CCObject::retain(v16); v18 = (CCMenuItemToggler *)cocos2d::CCMenu::create(v17); *(this + 111) = v18; (*(void (__fastcall **)(_DWORD, CCMenuItemToggler *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v18, 10); ParentalOptionsLayer::addMasterToggle( 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( 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", (_BYTE *)&dword_0 + 1, "Hides level comments and blocks posting them."); ParentalOptionsLayer::addToggle( (ParentalOptionsLayer *)this, "Disable\nPosts", "0076", (_BYTE *)&dword_0 + 1, "Hides account posts and blocks posting them."); ParentalOptionsLayer::addToggle( (ParentalOptionsLayer *)this, "Disable\nMessaging", "0243", (_BYTE *)&dword_0 + 1, "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", (_BYTE *)&dword_0 + 1, "Limits online levels to Featured, Daily, Weekly, Events, Gauntlets and Map Packs."); ParentalOptionsLayer::updateToggleStates(this); v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v19); v54 = 0; v53 = ParentalOptionsLayer::onClose; v21 = CCMenuItemSpriteExtra::create(v20, 0, (int)this, (int)ParentalOptionsLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v21, 1.5); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v21); v22 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v21 + 92); v47 = *(this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)((float)(v51 * 0.5) - 180.0) + 5.0, (float)((float)(v52 * 0.5) + 130.0) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v47); v22(v21, v61); v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_open_001.png", v23); v26 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_001.png", v25); v56 = 0; v55 = ParentalOptionsLayer::onLockToggle; v27 = CCMenuItemToggler::create(v24, v26, (int)this, (int)ParentalOptionsLayer::onLockToggle, 0); *(this + 138) = v27; v28 = v27; v29 = (GameManager *)GameManager::sharedState(v27); GameVariable = GameManager::getGameVariable(v29, "0228"); CCMenuItemToggler::toggle(v28, GameVariable); CCMenuItemToggler::setSizeMult(*(this + 138), 1.5); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), *(this + 138)); v31 = *(this + 111); v48 = *(this + 138); v32 = *(void (__fastcall **)(cocos2d::CCPoint *, _BYTE *))(*(_DWORD *)v48 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)((float)(v51 * 0.5) + 180.0) - 24.0, (float)((float)(v52 * 0.5) - 130.0) + 24.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v31); v32(v48, v61); v33 = v52; v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v34); v36 = v33 * 0.5; v58 = 0; v57 = ParentalOptionsLayer::onPrevPage; v37 = CCMenuItemSpriteExtra::create(v35, 0, (int)this, (int)ParentalOptionsLayer::onPrevPage, 0); *(this + 141) = (CCMenuItemToggler *)v37; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v37); v50 = (int)*(this + 141); v38 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v50 + 92); v49 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, (float)(v51 * 0.5) - 224.0, v36); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v49); v38(v50, v61); v40 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v39); cocos2d::CCSprite::setFlipX(v40, 1); v60 = 0; v59 = ParentalOptionsLayer::onNextPage; v41 = CCMenuItemSpriteExtra::create((int)v40, 0, (int)this, (int)ParentalOptionsLayer::onNextPage, 0); *(this + 142) = (CCMenuItemToggler *)v41; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v41); v42 = (int)*(this + 142); v43 = *(this + 111); v44 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v42 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, (float)(v51 * 0.5) + 224.0, v36); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v61, v43); v44(v42, v61); ParentalOptionsLayer::goToPage((const char **)this, 0); } return v46; }
GD Web Decomp Icon

GD Web Decomp

Raw Source