// // SetupEnterTriggerPopup::init from 0x5d6664 to 0x5d6978 (788 bytes) // // 1 xrefs: // > SetupEnterTriggerPopup::create @ 0x5d6a48 // // 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 // int __fastcall SetupEnterTriggerPopup::init(SetupEnterTriggerPopup *this, EnterEffectObject *a2, cocos2d::CCArray *a3) { int v4; // r3 cocos2d::CCDirector *MultiTriggerItemsDefault; // r0 _BOOL4 v6; // r9 const cocos2d::CCPoint *v7; // r11 int v8; // r10 const cocos2d::CCPoint *v9; // r11 _BOOL4 v10; // r10 int v11; // r9 int v13; // [sp+34h] [bp-68h] float v14[2]; // [sp+44h] [bp-58h] BYREF _BYTE v15[8]; // [sp+4Ch] [bp-50h] BYREF _BYTE v16[8]; // [sp+54h] [bp-48h] BYREF _BYTE v17[8]; // [sp+5Ch] [bp-40h] BYREF _BYTE v18[8]; // [sp+64h] [bp-38h] BYREF unsigned int (__fastcall *v19)(SetupEnterTriggerPopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-30h] int v20; // [sp+70h] [bp-2Ch] unsigned int (__fastcall *v21)(SetupEnterTriggerPopup *, cocos2d::CCObject *); // [sp+74h] [bp-28h] BYREF int v22; // [sp+78h] [bp-24h] int v23[3]; // [sp+7Ch] [bp-20h] BYREF int v24; // [sp+88h] [bp-14h] BYREF int v25; // [sp+8Ch] [bp-10h] int v26; // [sp+90h] [bp-Ch] v13 = SetupTriggerPopup::init(this, a2, a3, 330.0, 200.0, 1, 0.0); if ( v13 ) { v4 = *(_DWORD *)this; *((_BYTE *)this + 568) = 1; (*(void (__fastcall **)(SetupEnterTriggerPopup *))(v4 + 680))(this); v24 = 0; v25 = 0; v26 = 0; std::string::__init(&v24, "Enter Effect Trigger", 0x14u); SetupTriggerPopup::addTitle(this, &v24); std::string::~string((int)&v24); v24 = 0; v25 = 0; v26 = 0; std::string::__init(&v24, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v24); std::string::~string((int)&v24); memset(v23, 0, sizeof(v23)); std::string::__init(v23, "Help", 4u); v24 = 0; v25 = 0; v26 = 0; std::string::__init( &v24, "Target Enter Channel lets you target only objects with a set Enter Channel.\n" "Enter and Exit Only makes the effect only apply upon entering or exiting respectively.", 0xB2u); SetupTriggerPopup::addHelpButton(this, v23, &v24, 1065353216); std::string::~string((int)&v24); std::string::~string((int)v23); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v14[0] * 0.5, (float)(v14[1] * 0.5) - 25.0); v24 = 0; v25 = 0; v26 = 0; std::string::__init(&v24, "Enter\nOnly", 0xAu); v6 = *((_DWORD *)this + 180) == 1; v19 = SetupEnterTriggerPopup::onEnterType; v20 = 0; v7 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -50.0, 0.0); cocos2d::CCPoint::operator+(v18, v15, v17); v8 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 6.0, 0.0); *((_DWORD *)this + 178) = GameToolbox::createToggleButton( (int)&v24, (int)v19, v20, v6, v7, (int)v18, (int)this, v8, 0.7, 0.35, 110.0, (int)&v21, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)&v24); v24 = 0; v25 = 0; v26 = 0; std::string::__init(&v24, "Exit\nOnly", 9u); v22 = 0; v21 = SetupEnterTriggerPopup::onEnterType; v9 = *((const cocos2d::CCPoint **)this + 111); v10 = *((_DWORD *)this + 180) == 2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 50.0, 0.0); cocos2d::CCPoint::operator+(v17, v15, v16); v11 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 6.0, 0.0); *((_DWORD *)this + 179) = GameToolbox::createToggleButton( (int)&v24, (int)v21, v22, v10, v9, (int)v17, (int)this, v11, 0.7, 0.35, 110.0, (int)v18, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)&v24); *(_BYTE *)(*((_DWORD *)this + 178) + 309) = 1; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 178) + 36))(*((_DWORD *)this + 178), 1); *(_BYTE *)(*((_DWORD *)this + 179) + 309) = 1; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 179) + 36))(*((_DWORD *)this + 179), 2); v24 = 0; v25 = 0; v26 = 0; std::string::__init(&v24, "Target Enter Channel:", 0x15u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, 50.0); cocos2d::CCPoint::operator+(v18, v15, v17); IDNameInput::create((int)this, (int)this + 440, 8, 344, (int)&v24, (int)v18, 0.7, 6, 0, 0, 0); std::string::~string((int)&v24); (*(void (__fastcall **)(SetupEnterTriggerPopup *))(*(_DWORD *)this + 716))(this); *((_BYTE *)this + 568) = 0; } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source