// // EditTriggersPopup::init from 0xa224f0 to 0xa227c0 (720 bytes) // // 2 xrefs: // > EditTriggersPopup::create @ 0xa229e8 // > @ 0xad068 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:59:40 +0000 // __int64 __fastcall EditTriggersPopup::init(EditTriggersPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w21 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 const char *v9; // x2 __int64 v10; // x22 void (__fastcall *v11)(__int64, __int64 *); // x26 const char *v12; // x6 __int64 v13; // x0 __int64 v14; // x0 __int64 v15; // x24 cocos2d::CCNode *v16; // x25 void (__fastcall *v17)(__int64, __int64 *); // x22 __int64 v18; // [xsp+60h] [xbp+60h] BYREF _BYTE v19[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v20; // [xsp+70h] [xbp+70h] BYREF __int64 v21[2]; // [xsp+78h] [xbp+78h] BYREF void *v22; // [xsp+88h] [xbp+88h] __int64 v23[2]; // [xsp+90h] [xbp+90h] BYREF void *v24; // [xsp+A0h] [xbp+A0h] v4 = SetupTriggerPopup::init(this, a2, a3, 330.0, 120.0, 1, 0.0); v5 = v4; if ( v4 ) { v7 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(EditTriggersPopup *))(*(_QWORD *)this + 1360LL))(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v18, v8); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Edit Triggers", "goldFont.fnt", v9); (*(void (__fastcall **)(EditTriggersPopup *, __int64))(*(_QWORD *)this + 456LL))(this, v10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.7); v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v20, *(float *)&v18 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v18 + 1) * 0.5)) - 18.0); v11(v10, &v20); v13 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v12, 30.0); v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v14); v21[0] = 0; v21[1] = 0; v22 = nullptr; std::string::__init(v21, "Help", 4u); v23[0] = 0; v23[1] = 0; v24 = nullptr; std::string::__init( v23, "Edit attributes of the selected triggers.\n" "Touch Triggers makes the object activate on player touch.\n" "Spawn Triggered makes the triggers activate from a spawn trigger.", 0xBDu); v15 = InfoAlertButton::create(v21, v23, 1.0); if ( (v23[0] & 1) != 0 ) { operator delete(v24); if ( (v21[0] & 1) == 0 ) goto LABEL_5; } else if ( (v21[0] & 1) == 0 ) { LABEL_5: (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v15); v16 = *((cocos2d::CCNode **)this + 69); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v19, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v18 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v18 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v20, v16, (const cocos2d::CCPoint *)v19); v17(v15, &v20); *((_DWORD *)this + 160) = -1; SetupTriggerPopup::createMultiTriggerItemsDefault(this); return v5; } operator delete(v22); goto LABEL_5; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source