// // SetupEnterTriggerPopup::init from 0x14028f260 to 0x14028f7d8 (1400 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x14011cd6e // > @ 0x1406d18d4 // // 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=3 bool SetupEnterTriggerPopup::init(SetupEnterTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool result; // al double v5; // xmm0_8 __int64 v6; // rcx cocos2d::CCDirector *v7; // rax double v8; // xmm0_8 float *v9; // rax double v10; // xmm0_8 float *v11; // rax __int128 v12; // [rsp+88h] [rbp-80h] BYREF __int64 v13; // [rsp+98h] [rbp-70h] __int64 v14; // [rsp+A0h] [rbp-68h] __int128 *v15; // [rsp+A8h] [rbp-60h] BYREF float v16; // [rsp+B0h] [rbp-58h] __int128 *v17; // [rsp+C0h] [rbp-48h] __int128 *v18; // [rsp+C8h] [rbp-40h] __int128 v19; // [rsp+D0h] [rbp-38h] BYREF __int64 v20; // [rsp+E0h] [rbp-28h] __int64 v21; // [rsp+E8h] [rbp-20h] char v22; // [rsp+160h] [rbp+58h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 330.0, 200.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v12 = 0; *(_QWORD *)&v12 = sub_14003AA10(0x20u); v13 = 20; v14 = 31; strcpy((char *)v12, "Enter Effect Trigger"); SetupTriggerPopup::addTitle(a1, &v12); v12 = 0; v13 = 2; v14 = 15; strcpy((char *)&v12, "OK"); SetupTriggerPopup::addCloseButton(a1, &v12); v15 = &v12; v12 = 0; v13 = 0; v14 = 15; *(_QWORD *)&v12 = sub_14003AA10(0xC0u); v13 = 178; v14 = 191; strcpy( (char *)v12, "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."); v19 = 0; v20 = 4; v21 = 15; strcpy((char *)&v19, "Help"); v5 = SetupTriggerPopup::addHelpButton(a1, &v19, &v12); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7); cocos2d::CCPoint::CCPoint(*(float *)&v5, v16 * 0.5); v18 = &v12; *((_QWORD *)&v12 + 1) = 31084; v13 = 10; v14 = 15; *(_QWORD *)&v12 = 0x6E4F0A7265746E45LL; cocos2d::CCPoint::CCPoint(7.2143221e22, -50.0); v8 = cocos2d::CCPoint::operator+(&v22, &v15); cocos2d::CCPoint::CCPoint(*(float *)&v8, 6.0); a1->m_enterOnlyToggler = GameToolbox::createToggleButton( (const char *)&v12, (cocos2d::SEL_MenuHandler *)SetupEnterTriggerPopup::onEnterType, a1->m_enterType == 1, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v15, a1, a1->m_mainLayer, 0.69999999, 0.34999999, 110.0, v9, (const char *)&qword_14052A4D8, 0, 0, nullptr); v17 = &v12; *((_QWORD *)&v12 + 1) = 121; v13 = 9; v14 = 15; *(_QWORD *)&v12 = 0x6C6E4F0A74697845LL; cocos2d::CCPoint::CCPoint(7.3989534e31, 50.0); v10 = cocos2d::CCPoint::operator+(&v22, &v15); cocos2d::CCPoint::CCPoint(*(float *)&v10, 6.0); a1->m_exitOnlyToggler = GameToolbox::createToggleButton( (const char *)&v12, (cocos2d::SEL_MenuHandler *)SetupEnterTriggerPopup::onEnterType, a1->m_enterType == 2, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v15, a1, a1->m_mainLayer, 0.69999999, 0.34999999, 110.0, v11, (const char *)&qword_14052A4D8, 0, 0, nullptr); BYTE1(a1->m_enterOnlyToggler->m_onButton) = 1; a1->m_enterOnlyToggler->setTag(a1->m_enterOnlyToggler, 1); BYTE1(a1->m_exitOnlyToggler->m_onButton) = 1; a1->m_exitOnlyToggler->setTag(a1->m_exitOnlyToggler, 2); v17 = &v12; v12 = 0; v13 = 0; v14 = 15; *(_QWORD *)&v12 = sub_14003AA10(0x20u); v13 = 21; v14 = 31; strcpy((char *)v12, "Target Enter Channel:"); cocos2d::CCPoint::CCPoint(1.1446081e24, 0.0); cocos2d::CCPoint::operator+(&v22, &v15); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 344, (unsigned int)&v12, (unsigned int)&v15, 1060320051, 1, 3, 6, 1, 0, 0, 0, 0, 0, 2, 0); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source