// // EditorUI::replaceGroupID from 0x1003f3138 to 0x1003f338c (596 bytes) // // 1 xrefs: // > EditorUI::dynamicGroupUpdate @ 0x1003f3010 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall EditorUI::replaceGroupID(EditorUI *a1, GameObject *a2, int a3, int a4) { __int64 v4; // x19 __int64 v5; // x21 int v7; // w22 float height; // w23 int m_objectID; // w8 __int64 v10; // x0 __int64 v11; // x22 const char *v12; // x0 cocos2d::CCString *v14; // x0 const char *CString; // x0 int v16; // w8 v4 = *(_QWORD *)&a4; v5 = *(_QWORD *)&a3; if ( a2->m_groupCount >= 1 ) { v7 = 0; while ( GameObject::getGroupID(a2, v7) != (_DWORD)v5 ) { if ( ++v7 >= a2->m_groupCount ) goto LABEL_7; } ((void (__fastcall *)(GameObject *, __int64))a2->removeFromGroup)(a2, v5); ((void (__fastcall *)(GameObject *, __int64))a2->addToGroup)(a2, v4); } LABEL_7: if ( a2->m_classType == Effect ) { height = a2[1].m_obContentSize.height; if ( LODWORD(height) == (_DWORD)v5 ) EffectGameObject::setTargetID((EffectGameObject *)a2, v4); if ( LODWORD(a2[1].m_sAdditionalTransform.a) == (_DWORD)v5 ) EffectGameObject::setTargetID2((EffectGameObject *)a2, v4); if ( *(_DWORD *)&a2[1]._displayedOpacity == (_DWORD)v5 ) *(_DWORD *)&a2[1]._displayedOpacity = v4; if ( *(_DWORD *)(&a2[1].m_bUnkBool2 + 3) == (_DWORD)v5 ) *(_DWORD *)(&a2[1].m_bUnkBool2 + 3) = v4; m_objectID = a2->m_objectID; if ( m_objectID != 899 && m_objectID != 1615 ) { v10 = ((__int64 (__fastcall *)(GameObject *, __int64))a2->getChildByTag)(a2, 999); if ( v10 ) { v11 = v10; v12 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 928LL))(v10); if ( atoi(v12) == LODWORD(height) && LODWORD(a2[1].m_obContentSize.height) != LODWORD(height) ) { v14 = (cocos2d::CCString *)sub_100268F4C("%i", LODWORD(a2[1].m_obContentSize.height)); CString = cocos2d::CCString::getCString(v14); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v11 + 912LL))(v11, CString); } } v16 = a2->m_objectID; if ( v16 > 2067 ) { if ( v16 == 2068 ) { ChanceTriggerGameObject::editChanceObject((ChanceTriggerGameObject *)a2, v5, v4); } else if ( v16 == 2903 ) { if ( *(_DWORD *)&a2[1].m_sQuad.bl.colors == (_DWORD)v5 ) a2[1].m_sQuad.bl.colors = (cocos2d::ccColor4B)v4; if ( LODWORD(a2[1].m_sQuad.bl.texCoords.u) == (_DWORD)v5 ) LODWORD(a2[1].m_sQuad.bl.texCoords.u) = v4; if ( LODWORD(a2[1].m_sQuad.bl.texCoords.v) == (_DWORD)v5 ) LODWORD(a2[1].m_sQuad.bl.texCoords.v) = v4; if ( LODWORD(a2[1].m_sQuad.tr.vertices.x) == (_DWORD)v5 ) LODWORD(a2[1].m_sQuad.tr.vertices.x) = v4; } } else if ( v16 == 901 ) { if ( LODWORD(a2[1].m_sInverse.d) == (_DWORD)v5 ) LODWORD(a2[1].m_sInverse.d) = v4; } else if ( v16 == 1268 ) { SpawnTriggerGameObject::changeRemap((SpawnTriggerGameObject *)a2, v5, v4, 0); SpawnTriggerGameObject::changeRemap((SpawnTriggerGameObject *)a2, v5, v4, 1); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source