1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00
This commit is contained in:
smoogipoo 2017-12-18 16:34:25 +09:00
parent 59365bbdce
commit 5f538f03ea

View File

@ -203,11 +203,13 @@ namespace osu.Game.Screens.Play
if (_selectionIndex == value)
return;
// Deselect the previously-selected button
if (_selectionIndex != -1)
Buttons[_selectionIndex].Selected.Value = false;
_selectionIndex = value;
// Select the newly-selected button
if (_selectionIndex != -1)
Buttons[_selectionIndex].Selected.Value = true;
}