mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-25 22:46:45 +00:00
Add text for setting descriptions
This commit is contained in:
1 parent
136bbde516
commit
798ce451d5
2 files changed
+18
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,21 @@ public interface IMiraPlugin
|
||||
/// </summary>
|
||||
public virtual string CustomOptionMenuNameTwo => "Custom Category 2";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the description for the second custom category in the game options menu, if any.
|
||||
/// </summary>
|
||||
public virtual string ModifierMenuDescription => "Configure modifiers and their settings here!";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the description for the first custom category in the game options menu, if any.
|
||||
/// </summary>
|
||||
public virtual string CustomOptionMenuOneDescription => "Apply game settings for this mod!";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the description for the second custom category in the game options menu, if any.
|
||||
/// </summary>
|
||||
public virtual string CustomOptionMenuTwoDescription => "Apply game settings for this mod!";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the BepInEx configuration file for the plugin.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user