Fix some elements not selectable

This commit is contained in:
Flamefire committed 2014-11-27 23:26:37 +01:00
1 parent 4a78dd4b31
commit 204c608000
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -284,7 +284,7 @@ namespace Vocaluxe.Screens
if (_Buttons[_ButtonBack].Selected)
CGraphics.FadeTo(EScreen.Song);
else
else if (_Buttons[_ButtonStart].Selected)
_StartSong();
break;
+2 -2
View File
@@ -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;
}