Renamed parameters to match/improve documentation

This commit is contained in:
David Higueros committed 2026-07-18 17:59:23 -06:00
1 parent d603f5c953
commit 638db81335
2 files changed
+7 -7

No files matched your search

+3 -3
View File
@@ -208,15 +208,15 @@ public abstract class CustomPhoneMenu(IntPtr il2CppPtr) : Minigame(il2CppPtr), I
/// <param name="entries"></param>
/// <param name="onEntryClick">Action to perform when a given entry is clicked on.
/// Argument will be <see langword="null"/> if the back button was clicked instead.</param>
/// <param name="entryPanelConfig">Function to configure the menu's panel once created, given its index, entry, and onClick action.</param>
/// <param name="entryPanelActionConfig">Function to configure the menu's panel once created, given its index, entry, and onClick action.</param>
/// <param name="menuEntryMaker"></param>
protected void RegisterPanels<TEntry>(
IEnumerable<TEntry> entries,
Action<TEntry?> onEntryClick,
Action<ShapeshifterPanel, int, TEntry, Action> entryPanelConfig,
Action<ShapeshifterPanel, int, TEntry, Action> entryPanelActionConfig,
Func<ShapeshifterPanel, TEntry, IMenuEntry>? 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);
}
/// <summary>
+4 -4
View File
@@ -59,10 +59,10 @@ public class CustomPlayerMenu(IntPtr il2CppPtr) : CustomMultiSelectMenu<PlayerCo
}
/// <inheritdoc/>
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;
}
}