mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 09:33:51 +00:00
feat(editor): status bar asterisk also reflects unsaved object/NPC/quest changes
This commit is contained in:
parent
848947604e
commit
7822790c60
2 changed files with 4 additions and 1 deletions
|
|
@ -2788,9 +2788,11 @@ void EditorUI::renderStatusBar(EditorApp& app) {
|
|||
const char* ms[] = {"Sculpt", "Paint", "Objects", "Water", "NPCs", "Quests"};
|
||||
const char* m = ms[static_cast<int>(app.getMode())];
|
||||
if (app.hasTerrainLoaded()) {
|
||||
bool dirty = app.getTerrainEditor().hasUnsavedChanges() ||
|
||||
app.hasUnsavedNonTerrainChanges();
|
||||
ImGui::Text("[%s] %s [%d,%d]%s", m, app.getLoadedMap().c_str(),
|
||||
app.getLoadedTileX(), app.getLoadedTileY(),
|
||||
app.getTerrainEditor().hasUnsavedChanges() ? " *" : "");
|
||||
dirty ? " *" : "");
|
||||
ImGui::SameLine(vp->Size.x * 0.35f);
|
||||
ImGui::Text("Obj:%zu NPC:%zu Q:%zu",
|
||||
app.getObjectPlacer().objectCount(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue