This commit is contained in:
smoogipoo 2017-12-18 16:34:25 +09:00
parent 59365bbdce
commit 5f538f03ea
1 changed files with 2 additions and 0 deletions

View File

@ -203,11 +203,13 @@ private int selectionIndex
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;
}