summaryrefslogtreecommitdiff
path: root/mm/2s2h/BenGui/BenMenu.cpp
diff options
context:
space:
mode:
authorEblo <7004497+Eblo@users.noreply.github.com>2026-05-25 10:27:13 -0400
committerGitHub <noreply@github.com>2026-05-25 10:27:13 -0400
commit1a5c90d145ba148ef2c7be559b17dbc031bae82e (patch)
treecd46ab15e63e023699bd499747188fb0a616c87f /mm/2s2h/BenGui/BenMenu.cpp
parent1642f0090ed4d5e84c19691ce33aef1ea8459219 (diff)
[Enhancement] Port Extraction Flow, ImGui scaling, file perm check from SoH (#1709)
* Port Extraction Flow, ImGui scaling, file perms * Remove obsolete F1 menu message
Diffstat (limited to 'mm/2s2h/BenGui/BenMenu.cpp')
-rw-r--r--mm/2s2h/BenGui/BenMenu.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/mm/2s2h/BenGui/BenMenu.cpp b/mm/2s2h/BenGui/BenMenu.cpp
index 588a86b88..bdf7e1fdc 100644
--- a/mm/2s2h/BenGui/BenMenu.cpp
+++ b/mm/2s2h/BenGui/BenMenu.cpp
@@ -31,6 +31,13 @@ extern SaveContext gSaveContext;
extern std::unordered_map<s16, const char*> warpPointSceneList;
extern void Warp();
+static std::unordered_map<int32_t, const char*> imguiScaleOptions = {
+ { 0, "Small" },
+ { 1, "Normal" },
+ { 2, "Large" },
+ { 3, "X-Large" },
+};
+
static const std::unordered_map<int32_t, const char*> menuThemeOptions = {
{ UIWidgets::Colors::Red, "Red" },
{ UIWidgets::Colors::DarkRed, "Dark Red" },
@@ -379,6 +386,16 @@ void BenMenu::AddSettings() {
})
.Options(ButtonOptions().Tooltip("Opens the folder that contains the save and mods folders, etc."));
+ AddWidget(path, "ImGui Menu Scaling", WIDGET_CVAR_COMBOBOX)
+ .CVar("gSettings.ImGuiScale")
+ .Options(ComboboxOptions()
+ .ComboMap(&imguiScaleOptions)
+ .Tooltip("Changes the scaling of the ImGui menu elements.")
+ .DefaultIndex(1)
+ .ComponentAlignment(UIWidgets::Right)
+ .LabelPosition(UIWidgets::Far))
+ .Callback([](WidgetInfo& info) { OTRGlobals::Instance->ScaleImGui(); });
+
path.column = SECTION_COLUMN_2;
AddWidget(path, "about", WIDGET_CUSTOM).CustomFunction([](WidgetInfo& info) {
ImGui::BeginChild("about");