mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 20:03:17 +08:00
Load window location/size from the configuration file (#523)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user