From 42e2c8d309921d2d2d0f8c009e5251ea9bad9ab6 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:49:49 +0200 Subject: [PATCH] Recast: fix level name truncation Make sure the largest map name fits in the window. --- src/naveditor/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/naveditor/main.cpp b/src/naveditor/main.cpp index 2f153652..377f3a28 100644 --- a/src/naveditor/main.cpp +++ b/src/naveditor/main.cpp @@ -990,8 +990,8 @@ int not_main(int argc, char** argv) // Level selection dialog. if (showLevels) { - ImGui::SetNextWindowPos(ImVec2((float)width-10-250-10-200, (float)height-10-900), ImGuiCond_Once); - ImGui::SetNextWindowSize(ImVec2(200.f, 450.f), ImGuiCond_Once); + ImGui::SetNextWindowPos(ImVec2((float)width-10-250-10-250, (float)height-10-900), ImGuiCond_Once); + ImGui::SetNextWindowSize(ImVec2(250.f, 450.f), ImGuiCond_Once); if (ImGui::Begin("Choose Level", nullptr, baseWindowFlags)) { vector::const_iterator fileIter = files.begin(); @@ -1060,8 +1060,8 @@ int not_main(int argc, char** argv) // Test cases if (showTestCases) { - ImGui::SetNextWindowPos(ImVec2((float)width-10-250-10-200, (float)height-10-900), ImGuiCond_Once); - ImGui::SetNextWindowSize(ImVec2(200.f, 450.f), ImGuiCond_Once); + ImGui::SetNextWindowPos(ImVec2((float)width-10-250-10-250, (float)height-10-900), ImGuiCond_Once); + ImGui::SetNextWindowSize(ImVec2(250.f, 450.f), ImGuiCond_Once); if (ImGui::Begin("Choose Test To Run", nullptr, baseWindowFlags)) {