Fix bug in selecting with keyboard.
This commit is contained in:
1 parent
217bbaded0
commit
f11be295f7
1 file changed
+10
-3
@@ -263,7 +263,11 @@ namespace Vocaluxe.Menu
|
|||||||
case Keys.Right:
|
case Keys.Right:
|
||||||
if (_actualSelection + 1 < _Tiles.Count)
|
if (_actualSelection + 1 < _Tiles.Count)
|
||||||
{
|
{
|
||||||
_actualSelection++;
|
if (_Tiles[_actualSelection + 1].PlayerNr != -1)
|
||||||
|
{
|
||||||
|
_actualSelection++;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -301,9 +305,12 @@ namespace Vocaluxe.Menu
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Keys.Down:
|
case Keys.Down:
|
||||||
if (_actualSelection + _NumW < _Tiles.Count - 1)
|
if (_actualSelection + _NumW < _Tiles.Count-1)
|
||||||
{
|
{
|
||||||
_actualSelection += _NumW;
|
if (_Tiles[_actualSelection + _NumW].PlayerNr != -1)
|
||||||
|
{
|
||||||
|
_actualSelection += _NumW;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user