// // SelectPremadeLayer::init from 0x699ae4 to 0x699dd8 (756 bytes) // // 1 xrefs: // > SelectPremadeLayer::create @ 0x69650e // // 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:56:17 +0000 // GameManager *__fastcall SelectPremadeLayer::init(const cocos2d::CCPoint **this) { GameManager *v2; // r0 GameManager *v3; // r10 int v4; // r6 void (__fastcall *v5)(int, _DWORD *); // r7 void (__fastcall *v6)(int, _DWORD *); // r7 const char *v7; // r2 int v8; // r6 void (__fastcall *v9)(int, _DWORD *); // r7 cocos2d::CCMenu *v10; // r0 const cocos2d::CCPoint *v11; // r0 const cocos2d::CCPoint *v12; // r6 int i; // r6 char *v14; // r1 ButtonSprite *v15; // r0 ButtonSprite *v16; // r0 int v17; // r8 ButtonSprite *v18; // r0 int v19; // r6 const cocos2d::CCPoint *v20; // r5 void (__fastcall *v21)(int, _BYTE *); // r7 float v23; // [sp+10h] [bp-6Ch] void (__fastcall *v24)(int, _DWORD *); // [sp+14h] [bp-68h] float v25; // [sp+30h] [bp-4Ch] BYREF float v26; // [sp+34h] [bp-48h] _BYTE v27[8]; // [sp+38h] [bp-44h] BYREF char v28[8]; // [sp+40h] [bp-3Ch] BYREF _BYTE v29[8]; // [sp+48h] [bp-34h] BYREF int (__fastcall *v30)(SelectPremadeLayer *, cocos2d::CCObject *); // [sp+50h] [bp-2Ch] int v31; // [sp+54h] [bp-28h] int v32[2]; // [sp+58h] [bp-24h] BYREF ButtonSprite *v33; // [sp+60h] [bp-1Ch] _DWORD v34[4]; // [sp+64h] [bp-18h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 150); v3 = v2; if ( v2 ) { cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v25); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v34, 0.0, 0.0, 80.0, 80.0); v4 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v34); v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v34, 360.0, 260.0); v5(v4, v34); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v4, -1); v6 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v25 * 0.5, v26 * 0.5); v6(v4, v34); v8 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select Premade", "bigFont.fnt", v7); v9 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v25 * 0.5, (float)((float)(v26 * 0.5) + 130.0) - 20.0); v9(v8, v34); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v8); v10 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v8 + 80))(v8, 1063675494); v11 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v10); *(this + 111) = v11; (*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))( *(this + 115), v11, 10); v12 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v25 * 0.5, (float)((float)(v26 * 0.5) + 22.5) + 50.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v27, v12); for ( i = 0; ; i = 1 ) { v32[0] = 0; v32[1] = 0; v33 = nullptr; std::string::__init(v32, "-", 1u); v14 = i ? "Homing\nBall" : "Homing\nMissile"; std::string::assign(v32, v14); v15 = (v32[0] & 1) != 0 ? v33 : (ButtonSprite *)((char *)v32 + 1); v16 = ButtonSprite::create( v15, (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41F00000, v23); v31 = 0; v30 = SelectPremadeLayer::onSelectPremade; v17 = CCMenuItemSpriteExtra::create((int)v16, 0, (int)this, (int)SelectPremadeLayer::onSelectPremade, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v17); (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 36))(v17, i); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, (float)((float)((float)(i % 3) * 110.0) - 110.0) + 55.0, -0.0); cocos2d::CCPoint::operator+(v34, v27, v29); v24(v17, v34); std::string::~string((int)v32); if ( i ) break; } v18 = ButtonSprite::create( (ButtonSprite *)"Cancel", (const char *)&word_28, 0, 0.8, i, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v23); v34[0] = SelectPremadeLayer::onClose; v34[1] = 0; v19 = CCMenuItemSpriteExtra::create((int)v18, 0, (int)this, (int)SelectPremadeLayer::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v19); v20 = *(this + 111); v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, v25 * 0.5, (float)((float)(v26 * 0.5) - 130.0) + 25.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v29, v20); v21(v19, v29); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source