mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 01:23:52 +00:00
feat(editor): show camera (x,y,z) in status bar
Helpful for navigation and noting positions for spawn placement, plus diagnostic value when debugging coordinate issues. Shown only after a terrain is loaded.
This commit is contained in:
parent
318f255918
commit
49b7268dc9
1 changed files with 7 additions and 0 deletions
|
|
@ -2748,6 +2748,13 @@ void EditorUI::renderStatusBar(EditorApp& app) {
|
|||
} else {
|
||||
ImGui::Text("[%s] Wowee World Editor", m);
|
||||
}
|
||||
// Camera coordinates display — useful for navigation and debugging.
|
||||
if (app.hasTerrainLoaded()) {
|
||||
glm::vec3 cp = app.getEditorCamera().getCamera().getPosition();
|
||||
ImGui::SameLine(vp->Size.x - 290);
|
||||
ImGui::TextColored(ImVec4(0.6f, 0.7f, 0.8f, 1.0f),
|
||||
"(%.0f, %.0f, %.0f)", cp.x, cp.y, cp.z);
|
||||
}
|
||||
ImGui::SameLine(vp->Size.x - 120);
|
||||
ImGui::Text("%.1f FPS", ImGui::GetIO().Framerate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue