mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): undo/redo status in Info panel
This commit is contained in:
parent
d8c249e08f
commit
0907bb5ca2
1 changed files with 5 additions and 0 deletions
|
|
@ -1824,6 +1824,11 @@ void EditorUI::renderPropertiesPanel(EditorApp& app) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
// Undo/redo status
|
||||||
|
auto& hist = app.getTerrainEditor().history();
|
||||||
|
if (hist.canUndo() || hist.canRedo())
|
||||||
|
ImGui::Text("Undo: %zu Redo: %zu", hist.undoCount(), hist.redoCount());
|
||||||
|
|
||||||
if (app.getTerrainEditor().hasUnsavedChanges())
|
if (app.getTerrainEditor().hasUnsavedChanges())
|
||||||
ImGui::TextColored(ImVec4(1, 0.8f, 0.3f, 1), "* Unsaved (Ctrl+S to save)");
|
ImGui::TextColored(ImVec4(1, 0.8f, 0.3f, 1), "* Unsaved (Ctrl+S to save)");
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue