From 638db813357cf57d514936ee2e692b7bd7b7502c Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Sat, 18 Jul 2026 17:56:29 -0600 Subject: [PATCH] Renamed parameters to match/improve documentation --- MiraAPI/Hud/CustomPhoneMenu.cs | 6 +++--- MiraAPI/Hud/CustomPlayerMenu.cs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/MiraAPI/Hud/CustomPhoneMenu.cs b/MiraAPI/Hud/CustomPhoneMenu.cs index 29677b7..9dbcb2b 100644 --- a/MiraAPI/Hud/CustomPhoneMenu.cs +++ b/MiraAPI/Hud/CustomPhoneMenu.cs @@ -208,15 +208,15 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr), I /// /// Action to perform when a given entry is clicked on. /// Argument will be if the back button was clicked instead. - /// Function to configure the menu's panel once created, given its index, entry, and onClick action. + /// Function to configure the menu's panel once created, given its index, entry, and onClick action. /// protected void RegisterPanels( IEnumerable entries, Action onEntryClick, - Action entryPanelConfig, + Action entryPanelActionConfig, Func? menuEntryMaker = null) { - RegisterPanels(entries, (p, i, e) => entryPanelConfig(p, i, e, () => onEntryClick(e)), menuEntryMaker); + RegisterPanels(entries, (p, i, e) => entryPanelActionConfig(p, i, e, () => onEntryClick(e)), menuEntryMaker); } /// diff --git a/MiraAPI/Hud/CustomPlayerMenu.cs b/MiraAPI/Hud/CustomPlayerMenu.cs index 80a231f..d4c4fe1 100644 --- a/MiraAPI/Hud/CustomPlayerMenu.cs +++ b/MiraAPI/Hud/CustomPlayerMenu.cs @@ -59,10 +59,10 @@ public class CustomPlayerMenu(IntPtr il2CppPtr) : CustomMultiSelectMenu - protected override void SetupPanelEntry(ShapeshifterPanel panel, int i, PlayerControl player, Action onClick) + protected override void SetupPanelEntry(ShapeshifterPanel panel, int i, PlayerControl entry, Action onClick) { - var flag = PlayerControl.LocalPlayer.Data.Role.NameColor == player.Data.Role.NameColor; - panel.SetPlayer(i, player.Data, (Il2CppSystem.Action)onClick); - panel.NameText.color = flag ? player.Data.Role.NameColor : Color.white; + var flag = PlayerControl.LocalPlayer.Data.Role.NameColor == entry.Data.Role.NameColor; + panel.SetPlayer(i, entry.Data, (Il2CppSystem.Action)onClick); + panel.NameText.color = flag ? entry.Data.Role.NameColor : Color.white; } }