Load window location/size from the configuration file (#523)

This commit is contained in:
daobashun
2025-06-21 21:35:51 +08:00
committed by GitHub
parent b50c32cf7b
commit bb6553bed3
3 changed files with 6 additions and 6 deletions
@@ -11,8 +11,8 @@ namespace YimMenu
float centerY = *YimMenu::Pointers.ScreenResY / 5.0f;
ImVec2 windowSize(windowWidth, *YimMenu::Pointers.ScreenResY / 2.5f);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY), ImGuiCond_Once);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY), ImGuiCond_FirstUseEver);
ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse;
auto pos = ImGui::GetCursorPos();
@@ -127,8 +127,8 @@ namespace YimMenu
float centerY = *YimMenu::Pointers.ScreenResY / 5.0f;
ImVec2 windowSize(windowWidth, *YimMenu::Pointers.ScreenResY / 2.5f);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY), ImGuiCond_Once);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY), ImGuiCond_FirstUseEver);
ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse;
if (ImGui::Begin("##Categories&Content", nullptr, flags))
@@ -128,8 +128,8 @@ namespace YimMenu
float centerY = *YimMenu::Pointers.ScreenResY / 5.0f;
ImVec2 windowSize(windowWidth, *YimMenu::Pointers.ScreenResY / 2.5f);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY), ImGuiCond_Once);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY), ImGuiCond_FirstUseEver);
ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse;
if (ImGui::Begin("##Categories&Content", nullptr, flags))