protected override void OnPrevious() { CharacterSelectionHelper.SelectionData slot = selectionHelper.SelectionMap[Current]; if (!slot.selected || slot.selectedBySlot != menuManager.PlayerSlot) { base.OnPrevious(); } }
/// <summary> /// Deselects if possible. /// </summary> public bool Deselect() { CharacterSelectionHelper.SelectionData slot = selectionHelper.SelectionMap[Current]; // Only deselect if the current index is selected if (slot.selected) { HandleCharacterSelected(Current); selectionHelper.DeselectAt(Current, menuManager.PlayerSlot); return(true); } return(false); // Nothing was selected }