From 3f952da5b24b5aa05a37accbb62b9c2552e2082d Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Sun, 12 Jul 2026 12:42:42 -0600 Subject: [PATCH] Added documentation and reverse implicit operator to BasicEntry --- MiraAPI/Hud/CustomPhoneMenu.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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;