// // SetupEndPopup::init from 0x636b40 to 0x636f7c (1084 bytes) // // 1 xrefs: // > SetupEndPopup::create @ 0x637024 // // 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:55:20 +0000 // int __fastcall SetupEndPopup::init(SetupEndPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { int v5; // r10 cocos2d::CCDirector *v6; // r0 const char *v7; // r2 int v8; // r5 void (__fastcall *v9)(int, unsigned int (__fastcall **)(unsigned int, cocos2d::CCObject *)); // r11 ButtonSprite *v10; // r0 int v11; // r0 int v12; // r9 void (__fastcall *v13)(int, unsigned int (__fastcall **)(unsigned int, cocos2d::CCObject *)); // r11 int v14; // r9 int v15; // r3 int v16; // r8 int v17; // r8 int v18; // r8 int v20; // [sp+10h] [bp-7Ch] cocos2d::CCPoint *v21; // [sp+24h] [bp-68h] float v22; // [sp+2Ch] [bp-60h] BYREF float v23; // [sp+30h] [bp-5Ch] _BYTE v24[8]; // [sp+34h] [bp-58h] BYREF _BYTE v25[8]; // [sp+3Ch] [bp-50h] BYREF _BYTE v26[8]; // [sp+44h] [bp-48h] BYREF int v27; // [sp+4Ch] [bp-40h] int v28; // [sp+50h] [bp-3Ch] int (__fastcall *v29)(int, cocos2d::CCObject *); // [sp+54h] [bp-38h] int v30; // [sp+58h] [bp-34h] unsigned int (__fastcall *v31)(unsigned int, cocos2d::CCObject *); // [sp+5Ch] [bp-30h] BYREF int v32; // [sp+60h] [bp-2Ch] unsigned int (__fastcall *v33)(unsigned int, cocos2d::CCObject *); // [sp+64h] [bp-28h] BYREF int v34; // [sp+68h] [bp-24h] int v35[3]; // [sp+6Ch] [bp-20h] BYREF int v36; // [sp+78h] [bp-14h] BYREF int v37; // [sp+7Ch] [bp-10h] int v38; // [sp+80h] [bp-Ch] v5 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0); if ( v5 ) { v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SetupEndPopup *))(*(_DWORD *)this + 680))(this); cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v22); v8 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"End Trigger", "goldFont.fnt", v7); (*(void (__fastcall **)(SetupEndPopup *, int))(*(_DWORD *)this + 228))(this, v8); (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 80))(v8, 1060320051); v9 = *(void (__fastcall **)(int, unsigned int (__fastcall **)(unsigned int, cocos2d::CCObject *)))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v33, v22 * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v23 * 0.5)) - 18.0); v9(v8, &v33); v10 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), *(float *)&v20); v27 = 684; v28 = 1; v11 = CCMenuItemSpriteExtra::create((int)v10, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v11); memset(v35, 0, sizeof(v35)); std::string::__init(v35, "Help", 4u); v36 = 0; v37 = 0; v38 = 0; std::string::__init( &v36, "Sets a specific object given by Group ID to be the end of the level when the game type is Classic." " This essentially spawns the endwall at a set location.\n" "Use Reversed if gameplay is reverse at the end.\n" "Lock Y locks the endwall to the ground instead of the group's Y position.", 0x133u); v12 = InfoAlertButton::create((char *)v35, (int)&v36, 1065353216); std::string::~string((int)&v36); std::string::~string((int)v35); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v12); v13 = *(void (__fastcall **)(int, unsigned int (__fastcall **)(unsigned int, cocos2d::CCObject *)))(*(_DWORD *)v12 + 92); v21 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v31, (float)((float)(v22 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v23 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v33, v21); v13(v12, &v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v22 * 0.5, (float)(v23 * 0.5) + 30.0); v36 = 0; v37 = 0; v38 = 0; std::string::__init(&v36, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, (const cocos2d::CCPoint *)v24); v14 = IDNameInput::create((int)this, (int)this + 440, 1, 51, (int)&v36, (int)&v33, 1.0, 6, 0, 0, 0); std::string::~string((int)&v36); if ( v14 ) v15 = *(_DWORD *)(v14 + 300); else v15 = 0; *((_DWORD *)this + 178) = v15; SetupEndPopup::updateTextInputLabel(this); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v25, (float)((float)(v22 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 20.0, (float)((float)(v23 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 60.0); if ( a2 && (*(int (__fastcall **)(EffectGameObject *))(*(_DWORD *)a2 + 900))(a2) == 36 ) { if ( (*(int (__fastcall **)(EffectGameObject *))(*(_DWORD *)a2 + 900))(a2) == 36 ) { v36 = 0; v37 = 0; v38 = 0; std::string::__init(&v36, "Multi\nActivate", 0xEu); v30 = 0; v29 = SetupEndPopup::onMultiActivate; v16 = *((unsigned __int8 *)this + 724); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, -35.0); cocos2d::CCPoint::operator+(&v33, v25, &v31); SetupTriggerPopup::createToggleButton(this, &v36, v29, v30, v16, &v33); std::string::~string((int)&v36); } } else { SetupTriggerPopup::createMultiTriggerItemsDefault(this); } v36 = 0; v37 = 0; v38 = 0; std::string::__init(&v36, "Reversed", 8u); v32 = 0; v17 = *((unsigned __int8 *)this + 716); v31 = SetupEndPopup::onReversed; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, (float)(v22 * 0.5) - 50.0, (float)(v23 * 0.5) - 20.0); SetupTriggerPopup::createToggleButton(this, &v36, v31, v32, v17, &v33); std::string::~string((int)&v36); v36 = 0; v37 = 0; v38 = 0; std::string::__init(&v36, "Lock Y", 6u); v34 = 0; v18 = *((unsigned __int8 *)this + 717); v33 = SetupEndPopup::onLockY; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, (float)(v22 * 0.5) + 50.0, (float)(v23 * 0.5) - 20.0); SetupTriggerPopup::createToggleButton(this, &v36, v33, v34, v18, v26); std::string::~string((int)&v36); *((_BYTE *)this + 568) = 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source