diff --git a/MiraAPI/Hud/CustomPhoneMenu.cs b/MiraAPI/Hud/CustomPhoneMenu.cs index dcdcf27..6393e88 100644 --- a/MiraAPI/Hud/CustomPhoneMenu.cs +++ b/MiraAPI/Hud/CustomPhoneMenu.cs @@ -25,9 +25,15 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr) ShapeshifterPanel Panel { get; } } + /// + /// Menu Entry used when specifically only the Panel itself is required. + /// + /// The instance. protected record class BasicEntry(ShapeshifterPanel Panel) : IMenuEntry { public static implicit operator ShapeshifterPanel(BasicEntry entry) => entry.Panel; + + public static implicit operator BasicEntry(ShapeshifterPanel panel) => new(panel); } public List menuEntries;