From 0aa4a82d487a22f5f1c556bd2b141b90e5f2cfca Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Tue, 9 Sep 2025 21:50:45 -0500 Subject: [PATCH] Add options to list (no logic) Issue is mainly the button scale, that needs to update as soon as the change is made --- MiraAPI/MiraApiSettings.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/MiraAPI/MiraApiSettings.cs b/MiraAPI/MiraApiSettings.cs index aa4b29c..10d99a3 100644 --- a/MiraAPI/MiraApiSettings.cs +++ b/MiraAPI/MiraApiSettings.cs @@ -1,6 +1,7 @@ using BepInEx.Configuration; using MiraAPI.LocalSettings; using MiraAPI.LocalSettings.Attributes; +using MiraAPI.Utilities; using MiraAPI.Utilities.Assets; namespace MiraAPI; @@ -26,6 +27,24 @@ public class MiraApiSettings(ConfigFile config) : LocalSettingsTab(config) [LocalToggleSetting] public ConfigEntry ModifiersHudLeftSide { get; private set; } = config.Bind("Displays", "Show Modifiers HUD on Left Side", false); + /// + /// Gets whether vents and their connections appear on the map. + /// + [LocalToggleSetting] + public ConfigEntry ShowVentsOnMap { get; private set; } = config.Bind("Displays", "Show Vent Layout on Map", true); + + /// + /// Gets whether cooldowns for buttons below 10 seconds appear with decimals. + /// + [LocalToggleSetting] + public ConfigEntry PreciseCooldowns { get; private set; } = config.Bind("Buttons", "Precise Button Cooldowns Under 10s", false); + + /// + /// Gets the size of ability buttons in-game. + /// + [LocalSliderSetting(min: 0.5f, max: 1.5f, displayValue: true, formatString: "0.00", suffixType: MiraNumberSuffixes.Multiplier)] + public ConfigEntry ButtonUiScale { get; private set; } = config.Bind("Buttons", "Button Scale Factor", 0.8f); + /// /// Gets whether to show keybinds in the control mapper. ///