diff --git a/MiraAPI/Patches/Options/GameSettingMenuPatches.cs b/MiraAPI/Patches/Options/GameSettingMenuPatches.cs index 273cef22..89e6f576 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 8e2f2b67..e6b2dbb7 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. ///