// // GJOptionsLayer::init from 0x5d6f84 to 0x5d71da (598 bytes) // // 7 xrefs: // > EditorOptionsLayer::init @ 0x5d720c // > GameOptionsLayer::init @ 0x5d7234 // > GJOptionsLayer::create @ 0x5d7314 // > GameLevelOptionsLayer::init @ 0x5d80c6 // > LevelOptionsLayer::init @ 0x6a9fa0 // > SFXSettingsPopup::init @ 0x6c3b24 // > FindObjectOptionsLayer::init @ 0x77afb4 // // 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:54:09 +0000 // cocos2d::CCDirector *__fastcall GJOptionsLayer::init(GJOptionsLayer *this, int a2, float a3) { cocos2d::CCDirector *v4; // r0 cocos2d::CCDirector *v5; // r8 cocos2d::CCDictionary *WinSize; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCDictionary *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCMenu *v10; // r0 int v11; // r0 const char *v12; // r1 int v13; // r5 int v14; // r6 const cocos2d::CCPoint *v15; // r11 void (__fastcall *v16)(int, _BYTE *); // r10 float v17; // s16 const char *v18; // r1 int v19; // r0 int v20; // r0 cocos2d::CCDirector *v21; // r0 void (__fastcall *v22)(int, _BYTE *); // r11 cocos2d::CCDirector *v23; // r0 float v24; // r0 const char *v25; // r1 cocos2d::CCSprite *v26; // r10 int v27; // r0 cocos2d::CCDirector *v28; // r0 int v29; // r9 const cocos2d::CCPoint *v30; // r11 void (__fastcall *v31)(int, _BYTE *); // r10 cocos2d::CCDirector *v32; // r0 float v33; // r0 cocos2d::CCPoint *v35; // [sp+14h] [bp-48h] int v36; // [sp+1Ch] [bp-40h] float v37; // [sp+24h] [bp-38h] BYREF float v38; // [sp+28h] [bp-34h] int v39; // [sp+2Ch] [bp-30h] int v40; // [sp+30h] [bp-2Ch] _DWORD (*v41)(GJOptionsLayer *__hidden, cocos2d::CCObject *); // [sp+34h] [bp-28h] int v42; // [sp+38h] [bp-24h] _DWORD (*v43)(GJOptionsLayer *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-20h] int v44; // [sp+40h] [bp-1Ch] _BYTE v45[8]; // [sp+44h] [bp-18h] BYREF _BYTE v46[8]; // [sp+4Ch] [bp-10h] BYREF v4 = (cocos2d::CCDirector *)SetupTriggerPopup::init(this, nullptr, nullptr, 400.0, a3, a2, 0.0); v5 = v4; if ( v4 ) { *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v4); WinSize = (cocos2d::CCDictionary *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v37); v7 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(WinSize); *((_DWORD *)this + 186) = v7; v8 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v7); v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8); *((_DWORD *)this + 185) = v9; v10 = (cocos2d::CCMenu *)cocos2d::CCObject::retain(v9); v11 = cocos2d::CCMenu::create(v10); *((_DWORD *)this + 111) = v11; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v11, 10); (*(void (__fastcall **)(GJOptionsLayer *))(*(_DWORD *)this + 752))(this); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 80))(v13, 1061997773); v39 = 684; v40 = 1; v14 = CCMenuItemSpriteExtra::create(v13, 0, (int)this, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v14, 1.5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v14); v15 = *((const cocos2d::CCPoint **)this + 111); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v46, (float)((float)(v37 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 3.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v38 * 0.5)) - 3.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v15); v16(v14, v45); v17 = v38 * 0.5; v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v18); v42 = 0; v41 = GJOptionsLayer::onPrevPage; v20 = CCMenuItemSpriteExtra::create(v19, 0, (int)this, (int)GJOptionsLayer::onPrevPage, 0); *((_DWORD *)this + 187) = v20; v21 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v20); v36 = *((_DWORD *)this + 187); v22 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v36 + 92); v35 = *((cocos2d::CCPoint **)this + 111); v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v21); v24 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v23)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v24 + 20.0, v17); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v35); v22(v36, v45); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 187), 1.5); v26 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v25); cocos2d::CCSprite::setFlipX(v26, 1); v43 = GJOptionsLayer::onNextPage; v44 = 0; v27 = CCMenuItemSpriteExtra::create((int)v26, 0, (int)this, (int)GJOptionsLayer::onNextPage, 0); *((_DWORD *)this + 188) = v27; v28 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v27); v29 = *((_DWORD *)this + 188); v30 = *((const cocos2d::CCPoint **)this + 111); v31 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v29 + 92); v32 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v28); v33 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v32)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, v33 - 20.0, v17); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v30); v31(v29, v45); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 188), 1.5); GJOptionsLayer::goToPage((const char **)this, 0); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source