// // EditTriggersPopup::init from 0x5d63ac to 0x5d658c (480 bytes) // // 1 xrefs: // > EditTriggersPopup::create @ 0x5d6636 // // 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 EditTriggersPopup::init(EditTriggersPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { int v4; // r8 cocos2d::CCDirector *v5; // r0 const char *v6; // r2 int v7; // r7 void (__fastcall *v8)(int, _DWORD *); // r11 ButtonSprite *v9; // r0 int v10; // r0 int v11; // r9 const cocos2d::CCPoint *v12; // r11 void (__fastcall *v13)(int, _BYTE *); // r10 float v15; // [sp+10h] [bp-44h] float v16; // [sp+14h] [bp-40h] BYREF float v17; // [sp+18h] [bp-3Ch] _BYTE v18[8]; // [sp+1Ch] [bp-38h] BYREF _BYTE v19[8]; // [sp+24h] [bp-30h] BYREF _DWORD v20[2]; // [sp+2Ch] [bp-28h] BYREF int v21[3]; // [sp+34h] [bp-20h] BYREF int v22[3]; // [sp+40h] [bp-14h] BYREF v4 = SetupTriggerPopup::init(this, a2, a3, 330.0, 120.0, 1, 0.0); if ( v4 ) { v5 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditTriggersPopup *))(*(_DWORD *)this + 680))(this); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v16); v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Edit Triggers", "goldFont.fnt", v6); (*(void (__fastcall **)(EditTriggersPopup *, int))(*(_DWORD *)this + 228))(this, v7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1060320051); v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v20, v16 * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v17 * 0.5)) - 18.0); v8(v7, v20); v9 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v15); v20[0] = 684; v20[1] = 1; v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v10); memset(v21, 0, sizeof(v21)); std::string::__init(v21, "Help", 4u); memset(v22, 0, sizeof(v22)); std::string::__init( v22, "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); v11 = InfoAlertButton::create(v21, v22, 1065353216); std::string::~string((int)v22); std::string::~string((int)v21); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v11); v12 = *((const cocos2d::CCPoint **)this + 111); v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, (float)((float)(v16 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v17 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v19, v12); v13(v11, v19); *((_DWORD *)this + 125) = -1; SetupTriggerPopup::createMultiTriggerItemsDefault(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source