diff --git a/MiraAPI/Hud/CustomPhoneMenu.cs b/MiraAPI/Hud/CustomPhoneMenu.cs index ade867e..26e5cf2 100644 --- a/MiraAPI/Hud/CustomPhoneMenu.cs +++ b/MiraAPI/Hud/CustomPhoneMenu.cs @@ -14,6 +14,17 @@ using UnityEngine.Events; namespace MiraAPI.Hud; +/// +/// Defines an entry in a with a Panel. +/// +public interface IMenuEntry +{ + /// + /// Gets the base Panel of the menu entry. + /// + ShapeshifterPanel Panel { get; } +} + /// /// Custom Phone Menu using the as a base. /// @@ -23,11 +34,6 @@ namespace MiraAPI.Hud; [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401:Fields should be private", Justification = "Unity Convention")] public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr) { - public interface IMenuEntry - { - ShapeshifterPanel Panel { get; } - } - /// /// Menu Entry used when specifically only the Panel itself is required. /// @@ -199,7 +205,7 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr) /// /// The type of menu entries. -public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : CustomPhoneMenu(il2CppPtr) where TMenu : CustomPhoneMenu.IMenuEntry +public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : CustomPhoneMenu(il2CppPtr) where TMenu : IMenuEntry { protected new List MenuEntries {