From 6175628fdff7c1a7116121e543b38e5a83e08b09 Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Sun, 12 Jul 2026 19:53:12 -0600 Subject: [PATCH] Moved interface out of class --- MiraAPI/Hud/CustomPhoneMenu.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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 {