From dc909037e807182a632a5c0b06d1f9012efc80f7 Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Sun, 12 Jul 2026 22:35:54 -0600 Subject: [PATCH] Added shouldConfirm to single selection Begins with default false --- MiraAPI/Hud/CustomMultiSelectMenu.cs | 5 +++-- MiraAPI/Hud/CustomPlayerMenu.cs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MiraAPI/Hud/CustomMultiSelectMenu.cs b/MiraAPI/Hud/CustomMultiSelectMenu.cs index e1f1f12..d95c460 100644 --- a/MiraAPI/Hud/CustomMultiSelectMenu.cs +++ b/MiraAPI/Hud/CustomMultiSelectMenu.cs @@ -108,10 +108,11 @@ public abstract class CustomMultiSelectMenu(IntPtr il2CppPtr) /// /// All entries to give the custom menu. /// Function called when the selection is made. + /// Wheter the set of both selections should be confirmed manually. [HideFromIl2Cpp] - protected void Begin(IEnumerable entries, Action onClick) + protected void Begin(IEnumerable entries, Action onClick, bool shouldConfirm) { - Begin(entries, list => onClick(list?[0]), 1, false); + Begin(entries, list => onClick(list?[0]), 1, shouldConfirm); } /// diff --git a/MiraAPI/Hud/CustomPlayerMenu.cs b/MiraAPI/Hud/CustomPlayerMenu.cs index 59e2803..3da194b 100644 --- a/MiraAPI/Hud/CustomPlayerMenu.cs +++ b/MiraAPI/Hud/CustomPlayerMenu.cs @@ -36,10 +36,11 @@ public class CustomPlayerMenu(IntPtr il2CppPtr) : CustomMultiSelectMenu /// Function to determine if player should show in the custom menu. /// action for player. + /// Wheter the set of both selections should be confirmed manually. [HideFromIl2Cpp] - public void Begin(Func playerMatch, Action onClick) + public void Begin(Func playerMatch, Action onClick, bool shouldConfirm = false) { - Begin(PlayerControl.AllPlayerControls.ToArray().Where(playerMatch), onClick); + Begin(PlayerControl.AllPlayerControls.ToArray().Where(playerMatch), onClick, shouldConfirm); potentialVictims = EntryPanels; }