mirror of https://github.com/AxioDL/metaforce.git
Add area ID/name to Area Info debug overlay
This commit is contained in:
parent
b4268f7504
commit
bed05b1357
|
@ -578,10 +578,15 @@ void ImGuiConsole::ShowDebugOverlay() {
|
|||
layerBits += "0";
|
||||
}
|
||||
}
|
||||
ImGuiStringViewText(fmt::format(FMT_STRING("Area AssetId: 0x{}, Total Objects: {}\n"
|
||||
CGameArea* pArea = g_StateManager->GetWorld()->GetArea(aId);
|
||||
CAssetId stringId = pArea->IGetStringTableAssetId();
|
||||
if (!stringTables.contains(stringId)) {
|
||||
stringTables[stringId] = g_SimplePool->GetObj(SObjectTag{SBIG('STRG'), stringId});
|
||||
}
|
||||
ImGuiStringViewText(fmt::format(FMT_STRING("Area ID: {} Name: {}\nArea AssetId: 0x{}, Total Objects: {}\n"
|
||||
"Active Layer bits: {}\n"),
|
||||
g_StateManager->GetWorld()->GetArea(aId)->GetAreaAssetId(),
|
||||
g_StateManager->GetAllObjectList().size(), layerBits));
|
||||
pArea->GetAreaId(), ReadUtf8String(stringTables[stringId].GetObj(), 0),
|
||||
pArea->GetAreaAssetId(), g_StateManager->GetAllObjectList().size(), layerBits));
|
||||
hasPrevious = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue