From 1660dd72dcea1147f7af0fac7f009cd55668013c Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Sun, 12 Jul 2026 14:36:49 -0600 Subject: [PATCH] Renamed variables and removed variable --- MiraAPI/Hud/CustomPhoneMenu.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/MiraAPI/Hud/CustomPhoneMenu.cs b/MiraAPI/Hud/CustomPhoneMenu.cs index 37b0f673..c2407d4e 100644 --- a/MiraAPI/Hud/CustomPhoneMenu.cs +++ b/MiraAPI/Hud/CustomPhoneMenu.cs @@ -98,8 +98,8 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr) protected void RegisterPanels( IEnumerable entries, - Action entrySetter, - Func? menuConfig = null) + Action entryPanelConfig, + Func? menuEntryMaker = null) { menuEntries ??= []; @@ -114,9 +114,10 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr) var shapeshifterPanel = Instantiate(panelPrefab, transform); shapeshifterPanel!.transform.localPosition = new Vector3(0f, 0f, -1f); - entrySetter(shapeshifterPanel, index, entry); - var entryMenuConfig = menuConfig ?? ((s, _) => new BasicEntry(s)); - var menuEntry = entryMenuConfig(shapeshifterPanel, entry); + entryPanelConfig(shapeshifterPanel, index, entry); + + menuEntryMaker ??= (s, _) => new BasicEntry(s); + var menuEntry = menuEntryMaker(shapeshifterPanel, entry); menuEntries.Add(menuEntry); } } @@ -124,9 +125,9 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr) protected void RegisterPanels( IEnumerable entries, Action onEntryClick, - Action entrySetter, - Func? menuConfig = null) + Action entryPanelConfig, + Func? menuEntryConfig = null) { - RegisterPanels(entries, (p, i, e) => entrySetter(p, i, e, () => onEntryClick(e)), menuConfig); + RegisterPanels(entries, (p, i, e) => entryPanelConfig(p, i, e, () => onEntryClick(e)), menuEntryConfig); } }