Add options to list (no logic)

Issue is mainly the button scale, that needs to update as soon as the change is made
This commit is contained in:
Atony committed 2025-09-09 21:50:45 -05:00
1 parent da7aab9aa2
commit 0aa4a82d48
1 file changed
+19
+19
View File
@@ -1,6 +1,7 @@
using BepInEx.Configuration; using BepInEx.Configuration;
using MiraAPI.LocalSettings; using MiraAPI.LocalSettings;
using MiraAPI.LocalSettings.Attributes; using MiraAPI.LocalSettings.Attributes;
using MiraAPI.Utilities;
using MiraAPI.Utilities.Assets; using MiraAPI.Utilities.Assets;
namespace MiraAPI; namespace MiraAPI;
@@ -26,6 +27,24 @@ public class MiraApiSettings(ConfigFile config) : LocalSettingsTab(config)
[LocalToggleSetting] [LocalToggleSetting]
public ConfigEntry<bool> ModifiersHudLeftSide { get; private set; } = config.Bind("Displays", "Show Modifiers HUD on Left Side", false); public ConfigEntry<bool> ModifiersHudLeftSide { get; private set; } = config.Bind("Displays", "Show Modifiers HUD on Left Side", false);
/// <summary>
/// Gets whether vents and their connections appear on the map.
/// </summary>
[LocalToggleSetting]
public ConfigEntry<bool> ShowVentsOnMap { get; private set; } = config.Bind("Displays", "Show Vent Layout on Map", true);
/// <summary>
/// Gets whether cooldowns for buttons below 10 seconds appear with decimals.
/// </summary>
[LocalToggleSetting]
public ConfigEntry<bool> PreciseCooldowns { get; private set; } = config.Bind("Buttons", "Precise Button Cooldowns Under 10s", false);
/// <summary>
/// Gets the size of ability buttons in-game.
/// </summary>
[LocalSliderSetting(min: 0.5f, max: 1.5f, displayValue: true, formatString: "0.00", suffixType: MiraNumberSuffixes.Multiplier)]
public ConfigEntry<float> ButtonUiScale { get; private set; } = config.Bind("Buttons", "Button Scale Factor", 0.8f);
/// <summary> /// <summary>
/// Gets whether to show keybinds in the control mapper. /// Gets whether to show keybinds in the control mapper.
/// </summary> /// </summary>