// // EditTriggersPopup::init from 0x14028eee0 to 0x14028f237 (855 bytes) // // 3 xrefs: // > EditTriggersPopup::create @ 0x14028ee9e // > @ 0x1406d18bc // > @ 0x1406d18c8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 bool EditTriggersPopup::init(EditTriggersPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al __int64 v5; // rcx cocos2d::CCDirector *v6; // rax struct cocos2d::CCLabelBMFont *v7; // rdi cocos2d::CCLabelBMFont_vtbl *v8; // rbx const cocos2d::CCPoint *v9; // rax ButtonSprite *v10; // rbx CCMenuItemSpriteExtra *v11; // rax cocos2d::CCNode *v12; // rdi cocos2d::CCNode_vtbl *v13; // rbx struct cocos2d::CCPoint v14; // rax ButtonSprite *v15; // [rsp+58h] [rbp-19h] struct cocos2d::CCPoint v16; // [rsp+60h] [rbp-11h] BYREF __int128 v17; // [rsp+68h] [rbp-9h] BYREF __int64 v18; // [rsp+78h] [rbp+7h] __int64 v19; // [rsp+80h] [rbp+Fh] __int128 v20; // [rsp+88h] [rbp+17h] BYREF __int64 v21; // [rsp+98h] [rbp+27h] __int64 v22; // [rsp+A0h] [rbp+2Fh] float v23; // [rsp+F0h] [rbp+7Fh] float v24; // [rsp+F4h] [rbp+83h] result = SetupTriggerPopup::init(a1, a2, a3, 330.0, 120.0, 1); if ( result ) { a1->determineStartValues(a1); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); v7 = cocos2d::CCLabelBMFont::create("Edit Triggers", "goldFont.fnt"); a1->addChild_1(a1, v7); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v7->setScale_0)(v7); v8 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v24 * 0.5, v23 * 0.5); v8->setPosition_0(v7, v9); v15 = (ButtonSprite *)operator new(0x2C0u); v10 = ButtonSprite::ButtonSprite(v15); if ( v10 ) { if ( ButtonSprite::init_1(v10, "OK", 40, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 30.0) ) { cocos2d::CCObject::autorelease(v10); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v10->~ButtonSprite)(v10, 1); v10 = nullptr; } } v11 = CCMenuItemSpriteExtra::create(v10, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BEF0); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v11); v17 = 0; v18 = 0; v19 = 15; *(_QWORD *)&v17 = sub_14003AA10(0xC0u); v18 = 189; v19 = 191; strcpy( (char *)v17, "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."); v20 = 0; v21 = 4; v22 = 15; strcpy((char *)&v20, "Help"); v12 = (cocos2d::CCNode *)InfoAlertButton::create(&v20, &v17); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v12); v13 = v12->__vftable; cocos2d::CCPoint::CCPoint(a1->m_width * 0.5, (float)((float)(v23 * 0.5) - (float)(a1->m_width * 0.5)) + 18.0); v14 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v16); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v13->setPosition_0)(v12, v14); a1->m_joystickConnected = -1; SetupTriggerPopup::createMultiTriggerItemsDefault(a1); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source