Commit 6c09f13a authored by TheNumbat's avatar TheNumbat
Browse files

auto size save dialog

parent 3acc29f7
...@@ -914,9 +914,8 @@ void Manager::UIsavefirst(Scene& scene, Undo& undo) { ...@@ -914,9 +914,8 @@ void Manager::UIsavefirst(Scene& scene, Undo& undo) {
Vec2 center = window_dim / 2.0f; Vec2 center = window_dim / 2.0f;
ImGui::SetNextWindowPos(Vec2{center.x, center.y}, 0, Vec2{0.5f, 0.5f}); ImGui::SetNextWindowPos(Vec2{center.x, center.y}, 0, Vec2{0.5f, 0.5f});
ImGui::SetNextWindowSize(Vec2{150.0f, 50.0f});
ImGui::Begin("Save Changes?", &save_first_shown, ImGui::Begin("Save Changes?", &save_first_shown,
ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize); ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize);
if(ImGui::Button("Yes")) { if(ImGui::Button("Yes")) {
save_first_shown = false; save_first_shown = false;
after_save(save_scene(scene, undo)); after_save(save_scene(scene, undo));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment