mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Added case for selecting a panel past the max selections
This commit is contained in:
1 parent
6b3ce1971d
commit
a776edc1f6
1 file changed
+5
@@ -168,6 +168,11 @@ public abstract class CustomMultiSelectMenu<TEntry>(IntPtr il2CppPtr)
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedEntries.Count >= totalSelections) // Do not go past total selections.
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
selectedEntries.Add(menuEntry);
|
||||
if (selectedEntries.Count < totalSelections) // Add choice to list of selections
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user