From 798ce451d54017eae22d3e3f727b0770ca8ebbb0 Mon Sep 17 00:00:00 2001
From: Atony <75191600+AtonyGit@users.noreply.github.com>
Date: Sat, 29 Nov 2025 14:21:25 -0600
Subject: [PATCH] Add text for setting descriptions
---
MiraAPI/Patches/Options/GameSettingMenuPatches.cs | 3 +++
MiraAPI/PluginLoading/IMiraPlugin.cs | 15 +++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/MiraAPI/Patches/Options/GameSettingMenuPatches.cs b/MiraAPI/Patches/Options/GameSettingMenuPatches.cs
index 273cef2..89e6f57 100644
--- a/MiraAPI/Patches/Options/GameSettingMenuPatches.cs
+++ b/MiraAPI/Patches/Options/GameSettingMenuPatches.cs
@@ -110,12 +110,15 @@ internal static class GameSettingMenuPatches
{
case 3:
_modifiersButton?.SelectButton(true);
+ __instance.MenuDescriptionText.text = SelectedMod != null ? SelectedMod.MiraPlugin.ModifierMenuDescription : "Configure modifiers and their settings here!";
break;
case 4:
_customOneButton?.SelectButton(true);
+ __instance.MenuDescriptionText.text = SelectedMod != null ? SelectedMod.MiraPlugin.CustomOptionMenuOneDescription : "Apply game settings for this mod!";
break;
case 5:
_customTwoButton?.SelectButton(true);
+ __instance.MenuDescriptionText.text = SelectedMod != null ? SelectedMod.MiraPlugin.CustomOptionMenuTwoDescription : "Apply game settings for this mod!";
break;
}
}
diff --git a/MiraAPI/PluginLoading/IMiraPlugin.cs b/MiraAPI/PluginLoading/IMiraPlugin.cs
index 8e2f2b6..e6b2dbb 100644
--- a/MiraAPI/PluginLoading/IMiraPlugin.cs
+++ b/MiraAPI/PluginLoading/IMiraPlugin.cs
@@ -22,6 +22,21 @@ public interface IMiraPlugin
///
public virtual string CustomOptionMenuNameTwo => "Custom Category 2";
+ ///
+ /// Gets the description for the second custom category in the game options menu, if any.
+ ///
+ public virtual string ModifierMenuDescription => "Configure modifiers and their settings here!";
+
+ ///
+ /// Gets the description for the first custom category in the game options menu, if any.
+ ///
+ public virtual string CustomOptionMenuOneDescription => "Apply game settings for this mod!";
+
+ ///
+ /// Gets the description for the second custom category in the game options menu, if any.
+ ///
+ public virtual string CustomOptionMenuTwoDescription => "Apply game settings for this mod!";
+
///
/// Gets the BepInEx configuration file for the plugin.
///