mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 09:05:59 +08:00
Comments
This commit is contained in:
parent
59365bbdce
commit
5f538f03ea
@ -203,11 +203,13 @@ namespace osu.Game.Screens.Play
|
|||||||
if (_selectionIndex == value)
|
if (_selectionIndex == value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Deselect the previously-selected button
|
||||||
if (_selectionIndex != -1)
|
if (_selectionIndex != -1)
|
||||||
Buttons[_selectionIndex].Selected.Value = false;
|
Buttons[_selectionIndex].Selected.Value = false;
|
||||||
|
|
||||||
_selectionIndex = value;
|
_selectionIndex = value;
|
||||||
|
|
||||||
|
// Select the newly-selected button
|
||||||
if (_selectionIndex != -1)
|
if (_selectionIndex != -1)
|
||||||
Buttons[_selectionIndex].Selected.Value = true;
|
Buttons[_selectionIndex].Selected.Value = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user