// // EditorUI::onTargetIDChange from 0x1003f7d64 to 0x1003f7e98 (308 bytes) // // 1 xrefs: // > EditorUI::keyDown @ 0x1003fa454 // // 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 // void __fastcall EditorUI::onTargetIDChange(EditorUI *a1, int a2) { GameObject *m_selectedObject; // x0 cocos2d::CCArray *m_selectedObjects; // x20 unsigned int v6; // w21 GameObject *v7; // x0 unsigned int v8; // w21 EffectGameObject *v9; // x23 int m_targetGroupID; // w8 __int64 v11; // x0 __int64 v12; // x24 cocos2d::CCString *v13; // x0 const char *CString; // x0 m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) m_selectedObjects = (cocos2d::CCArray *)sub_10024A1B8((__int64)m_selectedObject); else m_selectedObjects = a1->m_selectedObjects; if ( (unsigned int)sub_10024A36C((__int64)m_selectedObjects) ) { if ( (unsigned int)sub_10024A36C((__int64)m_selectedObjects) ) { v6 = 0; while ( 1 ) { v7 = (GameObject *)sub_10024A388((__int64)m_selectedObjects, v6); if ( !GameObject::isTrigger(v7) ) break; if ( ++v6 >= (unsigned int)sub_10024A36C((__int64)m_selectedObjects) ) goto LABEL_9; } } else { LABEL_9: if ( (unsigned int)sub_10024A36C((__int64)m_selectedObjects) ) { v8 = 0; do { v9 = (EffectGameObject *)sub_10024A388((__int64)m_selectedObjects, v8); if ( GameObject::isTrigger(v9) ) { m_targetGroupID = v9->m_targetGroupID; if ( m_targetGroupID >= 1 ) { EffectGameObject::setTargetID(v9, m_targetGroupID + a2); v11 = ((__int64 (__fastcall *)(EffectGameObject *, __int64))v9->getChildByTag)(v9, 999); if ( v11 ) { v12 = v11; v13 = (cocos2d::CCString *)sub_100268F4C("%i", v9->m_targetGroupID); CString = cocos2d::CCString::getCString(v13); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 912LL))(v12, CString); } } } ++v8; } while ( v8 < (unsigned int)sub_10024A36C((__int64)m_selectedObjects) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source