mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-06 14:33:27 +00:00
Fix oversight in Connection lists
This commit is contained in:
parent
e400506017
commit
bc7ff9afaf
@ -201,28 +201,31 @@ void CEntity::ImGuiInspect() {
|
|||||||
ImGui::TableSetupScrollFreeze(0, 1);
|
ImGui::TableSetupScrollFreeze(0, 1);
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
for (const auto& item : x20_conns) {
|
for (const auto& item : x20_conns) {
|
||||||
const auto uid = g_StateManager->GetIdForScript(item.x8_objId);
|
const auto search = g_StateManager->GetIdListForScript(item.x8_objId);
|
||||||
if (uid == kInvalidUniqueId) {
|
for (auto it = search.first; it != search.second; ++it) {
|
||||||
continue;
|
const auto uid = it->second;
|
||||||
|
if (uid == kInvalidUniqueId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
ImGuiEntityEntry& entry = ImGuiConsole::entities[uid.Value()];
|
||||||
|
if (entry.uid == kInvalidUniqueId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
ImGuiConsole::BeginEntityRow(entry);
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(entry.type);
|
||||||
|
}
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(entry.name);
|
||||||
|
}
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(ScriptObjectStateToStr(item.x0_state));
|
||||||
|
}
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(ScriptObjectMessageToStr(item.x4_msg));
|
||||||
|
}
|
||||||
|
ImGuiConsole::EndEntityRow(entry);
|
||||||
}
|
}
|
||||||
ImGuiEntityEntry& entry = ImGuiConsole::entities[uid.Value()];
|
|
||||||
if (entry.uid == kInvalidUniqueId) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
ImGuiConsole::BeginEntityRow(entry);
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(entry.type);
|
|
||||||
}
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(entry.name);
|
|
||||||
}
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(ScriptObjectStateToStr(item.x0_state));
|
|
||||||
}
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(ScriptObjectMessageToStr(item.x4_msg));
|
|
||||||
}
|
|
||||||
ImGuiConsole::EndEntityRow(entry);
|
|
||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
@ -240,28 +243,31 @@ void CEntity::ImGuiInspect() {
|
|||||||
ImGui::TableSetupScrollFreeze(0, 1);
|
ImGui::TableSetupScrollFreeze(0, 1);
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
for (const auto& item : *m_incomingConnections) {
|
for (const auto& item : *m_incomingConnections) {
|
||||||
const auto uid = g_StateManager->GetIdForScript(item.x8_objId);
|
const auto search = g_StateManager->GetIdListForScript(item.x8_objId);
|
||||||
if (uid == kInvalidUniqueId) {
|
for (auto it = search.first; it != search.second; ++it) {
|
||||||
continue;
|
auto uid = it->second;
|
||||||
|
if (uid == kInvalidUniqueId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
ImGuiEntityEntry& entry = ImGuiConsole::entities[uid.Value()];
|
||||||
|
if (entry.uid == kInvalidUniqueId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
ImGuiConsole::BeginEntityRow(entry);
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(entry.type);
|
||||||
|
}
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(entry.name);
|
||||||
|
}
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(ScriptObjectStateToStr(item.x0_state));
|
||||||
|
}
|
||||||
|
if (ImGui::TableNextColumn()) {
|
||||||
|
ImGuiStringViewText(ScriptObjectMessageToStr(item.x4_msg));
|
||||||
|
}
|
||||||
|
ImGuiConsole::EndEntityRow(entry);
|
||||||
}
|
}
|
||||||
ImGuiEntityEntry& entry = ImGuiConsole::entities[uid.Value()];
|
|
||||||
if (entry.uid == kInvalidUniqueId) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
ImGuiConsole::BeginEntityRow(entry);
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(entry.type);
|
|
||||||
}
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(entry.name);
|
|
||||||
}
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(ScriptObjectStateToStr(item.x0_state));
|
|
||||||
}
|
|
||||||
if (ImGui::TableNextColumn()) {
|
|
||||||
ImGuiStringViewText(ScriptObjectMessageToStr(item.x4_msg));
|
|
||||||
}
|
|
||||||
ImGuiConsole::EndEntityRow(entry);
|
|
||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user