aboutsummaryrefslogtreecommitdiff
path: root/source/30-game/EditorCorePrivate.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2023-06-13 16:46:47 -0700
committerrtk0c <[email protected]>2023-06-13 16:46:47 -0700
commit21192a63e1411134b3096da4e5f9a511f913c9b9 (patch)
treec19ceb7fbdc9e0ce226e0dfb4d7a1132c52e7854 /source/30-game/EditorCorePrivate.cpp
parent32e74b9c81b57a9c0284f5374536439d581bc4b6 (diff)
Changeset: 95 Change Uid's serialization format from JSON array to just a string
Diffstat (limited to 'source/30-game/EditorCorePrivate.cpp')
-rw-r--r--source/30-game/EditorCorePrivate.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/30-game/EditorCorePrivate.cpp b/source/30-game/EditorCorePrivate.cpp
index e52c795..3efa33c 100644
--- a/source/30-game/EditorCorePrivate.cpp
+++ b/source/30-game/EditorCorePrivate.cpp
@@ -212,6 +212,17 @@ void EditorContentBrowser::Show(bool* open) {
ImGui::EndPopup();
}
+ ImGui::SameLine();
+ if (ImGui::Button("...")) {
+ ImGui::OpenPopup("More Actions");
+ }
+ if (ImGui::BeginPopup("More Actions")) {
+ if (ImGui::MenuItem("Rewrite all Ires to disk")) {
+ IresManager::instance->OverwriteAllToDisk();
+ }
+ ImGui::EndPopup();
+ }
+
auto& objects = IresManager::instance->GetObjects();
for (auto it = objects.begin(); it != objects.end(); ++it) {
auto ires = it->second.Get();