// // CreateStartPosPopup::init from 0x4903c0 to 0x49079e (990 bytes) // // 1 xrefs: // > CreateStartPosPopup::create @ 0x48f84c // // 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:49:37 +0000 // int __fastcall CreateStartPosPopup::init(const cocos2d::CCPoint **this) { cocos2d::CCDirector *v2; // r0 cocos2d::CCArray *ValueControlAdvanced; // r0 cocos2d::CCArray *v4; // r8 ButtonSprite *v5; // r0 cocos2d::CCObject *v6; // r9 ButtonSprite *v7; // r0 cocos2d::CCObject *v8; // r9 const cocos2d::CCPoint *v9; // r9 int v10; // r11 const cocos2d::CCPoint *v11; // r9 void (__fastcall *v12)(int, _BYTE *); // r8 float v14; // [sp+10h] [bp-C4h] float v15; // [sp+10h] [bp-C4h] int v16; // [sp+18h] [bp-BCh] float v17; // [sp+24h] [bp-B0h] BYREF float v18; // [sp+28h] [bp-ACh] _BYTE v19[8]; // [sp+2Ch] [bp-A8h] BYREF _BYTE v20[8]; // [sp+34h] [bp-A0h] BYREF int v21; // [sp+3Ch] [bp-98h] int v22; // [sp+40h] [bp-94h] _DWORD v23[2]; // [sp+44h] [bp-90h] BYREF int v24[3]; // [sp+4Ch] [bp-88h] BYREF int v25[3]; // [sp+58h] [bp-7Ch] BYREF int v26; // [sp+64h] [bp-70h] BYREF int v27; // [sp+68h] [bp-6Ch] BYREF int v28; // [sp+6Ch] [bp-68h] int v29; // [sp+70h] [bp-64h] _BYTE v30[8]; // [sp+74h] [bp-60h] BYREF int v31; // [sp+7Ch] [bp-58h] char v32; // [sp+80h] [bp-54h] int v33; // [sp+84h] [bp-50h] int v34; // [sp+88h] [bp-4Ch] char v35; // [sp+8Ch] [bp-48h] int v36; // [sp+90h] [bp-44h] int v37; // [sp+94h] [bp-40h] int v38; // [sp+98h] [bp-3Ch] int v39; // [sp+9Ch] [bp-38h] int v40; // [sp+A0h] [bp-34h] int v41; // [sp+A4h] [bp-30h] char v42; // [sp+A8h] [bp-2Ch] char v43; // [sp+A9h] [bp-2Bh] int v44; // [sp+ACh] [bp-28h] int v45[3]; // [sp+B0h] [bp-24h] BYREF int v46; // [sp+BCh] [bp-18h] int v47[3]; // [sp+C0h] [bp-14h] BYREF v16 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 300.0, 180.0, 1, 0.0); if ( v16 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v26 = 0; v27 = 0; v28 = 0; std::string::__init(&v26, "Create StartPos", 0xFu); SetupTriggerPopup::addTitle(this, &v26); v2 = (cocos2d::CCDirector *)std::string::~string((int)&v26); cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v17); v26 = 0; v27 = 0; v28 = 0; v29 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (const cocos2d::CCPoint *)&unk_D2B998); v32 = 0; v31 = 1065353216; v38 = 0; v33 = 2; v39 = 0; v40 = 0; v41 = 2; v42 = 0; v43 = 0; memset(v45, 0, sizeof(v45)); v34 = 6; v35 = 1; v36 = 0; v37 = 0; v44 = 1116471296; std::string::__init(v45, "goldFont.fnt", 0xCu); v46 = 0; memset(v47, 0, sizeof(v47)); std::string::__init(v47, "Num", 3u); v26 = -1; std::string::assign(&v27, "Name:"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v17 * 0.5, (float)(v18 * 0.5) + 15.0); cocos2d::CCPoint::operator=(v30, v23); v44 = 1127481344; v31 = 1061997773; v32 = 1; v43 = 1; v35 = 0; v46 = 1060320051; v33 = 4; v34 = 20; std::string::assign(v47, "StartPos Name"); ValueControlAdvanced = (cocos2d::CCArray *)SetupTriggerPopup::createValueControlAdvanced( (SetupTriggerPopup *)this, (ValueControlSettings *)&v26); v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(ValueControlAdvanced); v5 = ButtonSprite::create( (ButtonSprite *)"Cancel", (const char *)&dword_50, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41E00000, v14); v21 = 684; v22 = 1; v6 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v5, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v6); cocos2d::CCArray::addObject(v4, v6); v7 = ButtonSprite::create( (ButtonSprite *)"Create", (const char *)&dword_50, 0, 0.6, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41E00000, v15); v23[1] = 0; v23[0] = CreateStartPosPopup::onCreate; v8 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v7, 0, (int)this, (int)CreateStartPosPopup::onCreate, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v8); cocos2d::CCArray::addObject(v4, v8); v9 = *(this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v19, v17 * 0.5, (float)((float)(v18 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 30.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v20, v9); GameToolbox::alignItemsHorisontally(*(float *)&v4, 15.0, (int)v20, 0); memset(v24, 0, sizeof(v24)); std::string::__init(v24, "Create Start Pos", 0x10u); memset(v25, 0, sizeof(v25)); std::string::__init( v25, "Creates a start position here with the current settings.\n" "Dual mode and camera settings may not be exact.", 0x70u); v10 = InfoAlertButton::create(v24, v25, 1063675494); std::string::~string((int)v25); std::string::~string((int)v24); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v10); v11 = *(this + 111); v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v19, (float)((float)(*((float *)this + 139) * 0.5) + (float)(v17 * 0.5)) - 15.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v18 * 0.5)) - 15.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v20, v11); v12(v10, v20); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); std::string::~string((int)v47); std::string::~string((int)v45); std::string::~string((int)&v27); } return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source