Swap positions of Open Wiki and Close buttons

Hopefully you will quickly learn to not open the wiki constantly. But maybe some will learn that we have a wiki this way.
This commit is contained in:
FakeMichau committed 2026-10-05 23:23:33 +02:00
1 parent 83bd6399e5
commit 899b9488fe
1 file changed
+19 -20
+19 -20
View File
@@ -8312,6 +8312,25 @@ void MenuCommon::RenderMainMenuBottomBar(RenderMenuContext& ctx)
auto& io = ctx.io;
// BOTTOM LINE ---------------
if (ImGui::Button("Open Wiki"))
{
auto pIO = &ImGui::GetPlatformIO();
auto ctx = ImGui::GetCurrentContext();
pIO->Platform_OpenInShellFn(ctx, "https://github.com/optiscaler/OptiScaler/wiki");
}
ShowTooltip("Click to open the OptiScaler Wiki page\nin your default browser\n\n"
"Compatibility list with known game issues\nand workarounds, FG options explained\n"
"and other useful info");
ImGui::SameLine();
auto& style = ImGui::GetStyle();
float rightButtonsWidth =
ImGui::CalcTextSize("Save Settings").x + ImGui::CalcTextSize("Close").x + style.FramePadding.x * 4.0f + 6.0f;
float avail = ImGui::GetContentRegionAvail().x;
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + avail - rightButtonsWidth);
if (ImGui::Button("Save Settings"))
config->SaveIni();
@@ -8330,26 +8349,6 @@ void MenuCommon::RenderMainMenuBottomBar(RenderMenuContext& ctx)
io.WantCaptureKeyboard = false;
io.WantCaptureMouse = false;
}
ImGui::SameLine();
auto textSize = ImGui::CalcTextSize("Open Wiki");
auto& style = ImGui::GetStyle();
textSize.x += style.FramePadding.x * 2.0f;
float avail = ImGui::GetContentRegionAvail().x;
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + avail - textSize.x);
// Make button text underline
if (ImGui::Button("Open Wiki"))
{
auto pIO = &ImGui::GetPlatformIO();
auto ctx = ImGui::GetCurrentContext();
pIO->Platform_OpenInShellFn(ctx, "https://github.com/optiscaler/OptiScaler/wiki");
}
ShowTooltip("Click to open the OptiScaler Wiki page\nin your default browser\n\n"
"Compatibility list with known game issues\nand workarounds, FG options explained\n"
"and other useful info");
}
void MenuCommon::RenderMipmapBiasWindow(RenderMenuContext& ctx, ImGuiWindowFlags flags)