Fix some elements not selectable
This commit is contained in:
1 parent
4a78dd4b31
commit
204c608000
2 files changed
+3
-3
No files matched your search
@@ -284,7 +284,7 @@ namespace Vocaluxe.Screens
|
||||
|
||||
if (_Buttons[_ButtonBack].Selected)
|
||||
CGraphics.FadeTo(EScreen.Song);
|
||||
else
|
||||
else if (_Buttons[_ButtonStart].Selected)
|
||||
_StartSong();
|
||||
|
||||
break;
|
||||
|
||||
@@ -600,13 +600,13 @@ namespace VocaluxeLib.Menu
|
||||
{
|
||||
case EDirection.Up:
|
||||
case EDirection.Down:
|
||||
if (!other.X.IsInRange(current.X, current.Right) && !other.Right.IsInRange(current.X, current.Right))
|
||||
if (!other.X.IsInRange(current.X, current.Right) && !other.Right.IsInRange(current.X, current.Right) && !current.X.IsInRange(other.X, other.Right))
|
||||
return float.MaxValue;
|
||||
break;
|
||||
|
||||
case EDirection.Left:
|
||||
case EDirection.Right:
|
||||
if (!other.Y.IsInRange(current.Y, current.Bottom) && !other.Bottom.IsInRange(current.Y, current.Bottom))
|
||||
if (!other.Y.IsInRange(current.Y, current.Bottom) && !other.Bottom.IsInRange(current.Y, current.Bottom) && !current.Y.IsInRange(other.Y, other.Bottom))
|
||||
return float.MaxValue;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user