From 6a4938b65cd54d194920a45a6bd8ba79b94ff4d9 Mon Sep 17 00:00:00 2001 From: Panos Karabelas Date: Wed, 15 Jan 2025 11:11:44 +0000 Subject: [PATCH] [misc] repositioned introduction windows so they don't overlap with the world selection window --- editor/EditorWindows.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/editor/EditorWindows.cpp b/editor/EditorWindows.cpp index 8fafa1a28..09b6942ad 100644 --- a/editor/EditorWindows.cpp +++ b/editor/EditorWindows.cpp @@ -49,15 +49,11 @@ namespace const float width = 600.0f; const float height = 240.0f; - // set position ImVec2 display_size = ImGui::GetIO().DisplaySize; - ImVec2 window_pos = ImVec2((display_size.x - width) * 0.5f, (display_size.y - height) * 0.7f); + ImVec2 window_pos = ImVec2((display_size.x - width) * 0.15f, (display_size.y - height) * 0.45f); ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always); - - // set size ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiCond_Always); - // set focus if (ImGui::Begin("What should you expect", &visible, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize)) { ImGui::TextWrapped("This isn't an engine for the average user, it's designed for advanced research and experimentation, ideal for industry veterans looking to experiment."); @@ -75,12 +71,9 @@ namespace const float width = 600.0f; const float height = 240.0f; - // set position ImVec2 display_size = ImGui::GetIO().DisplaySize; - ImVec2 window_pos = ImVec2((display_size.x - width) * 0.5f, (display_size.y - height) * 0.5f); + ImVec2 window_pos = ImVec2((display_size.x - width) * 0.15f, (display_size.y - height) * 0.3f); ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always); - - // set size ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiCond_Always); // set focus