// // SetupEventLinkPopup::init from 0x6b3690 to 0x6b396a (730 bytes) // // 1 xrefs: // > SetupEventLinkPopup::create @ 0x6b3a32 // // 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:41 +0000 // GameManager *__fastcall SetupEventLinkPopup::init( const cocos2d::CCPoint **this, EventLinkTrigger *a2, cocos2d::CCArray *a3) { GameManager *v4; // r10 cocos2d::CCDirector *MultiTriggerItemsDefault; // r0 const char *v6; // r1 int v7; // r4 int v8; // r7 const cocos2d::CCPoint *v9; // r11 void (__fastcall *v11)(int, _BYTE *); // [sp+34h] [bp-58h] float v12[2]; // [sp+3Ch] [bp-50h] BYREF _BYTE v13[8]; // [sp+44h] [bp-48h] BYREF _BYTE v14[8]; // [sp+4Ch] [bp-40h] BYREF _BYTE v15[8]; // [sp+54h] [bp-38h] BYREF _BYTE v16[8]; // [sp+5Ch] [bp-30h] BYREF _DWORD v17[2]; // [sp+64h] [bp-28h] BYREF int v18[3]; // [sp+6Ch] [bp-20h] BYREF int v19; // [sp+78h] [bp-14h] BYREF int v20; // [sp+7Ch] [bp-10h] int v21; // [sp+80h] [bp-Ch] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 380.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "Event Link", 0xAu); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v19); std::string::~string((int)&v19); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)&v19); std::string::~string((int)&v19); memset(v18, 0, sizeof(v18)); std::string::__init(v18, "Help", 4u); v19 = 0; v20 = 0; v21 = 0; std::string::__init( &v19, "Activates Group ID upon a specified player action. Select one or multiple from the top right menu.\n" "Extra ID makes the action only apply if the player interacts with a corresponding object, for example if M" "aterial ID matches.\n" "Extra ID2: 0 = All, 1 = P1, 2 = P2", 0x11Bu); SetupTriggerPopup::addHelpButton((int)this, (int)v18, (int)&v19, 1065353216); std::string::~string((int)&v19); std::string::~string((int)v18); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault((SetupTriggerPopup *)this); cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v12[0] * 0.5, v12[1] * 0.5); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "Group ID:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -80.0, 40.0); cocos2d::CCPoint::operator+(v17, v13, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v19, (int)v17, 0.8, 6, 0, 0, 0); std::string::~string((int)&v19); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "Extra ID:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 80.0, 40.0); cocos2d::CCPoint::operator+(v17, v13, v16); SetupTriggerPopup::createValueControlAdvanced( this, 447, (unsigned __int8 *)&v19, (int)v17, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, 0); std::string::~string((int)&v19); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "Extra ID2:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 80.0, -40.0); cocos2d::CCPoint::operator+(v17, v13, v16); SetupTriggerPopup::createValueControlAdvanced( this, 525, (unsigned __int8 *)&v19, (int)v17, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, 0); std::string::~string((int)&v19); v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_menuBtn_001.png", v6); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1057803469); v17[0] = SetupEventLinkPopup::onSelectEvent; v17[1] = 0; v8 = CCMenuItemSpriteExtra::create(v7, 0, (int)this, (int)SetupEventLinkPopup::onSelectEvent, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v8); v9 = *(this + 111); v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v14, (float)(*((float *)this + 139) * 0.5) - 22.0, (float)(*((float *)this + 140) * 0.5) - 22.0); cocos2d::CCPoint::operator+(v15, v13, v14); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v16, v9); v11(v8, v16); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source