Fix double-click for starting song.
This commit is contained in:
1 parent
a199d7fba3
commit
d5c39ceb1a
2 files changed
+12
-1
No files matched your search
@@ -299,7 +299,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
CBase.Drawing.DrawTexture(CBase.BackgroundMusic.GetVideoTexture(), new SRectF(0, 0, 1280, 720, 0));
|
CBase.Drawing.DrawTexture(CBase.BackgroundMusic.GetVideoTexture(), new SRectF(0, 0, 1280, 720, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsMouseOverSelectedSong(SMouseEvent mEvent)
|
public virtual bool IsMouseOverSelectedSong(SMouseEvent mEvent)
|
||||||
{
|
{
|
||||||
CStatic selCov = GetSelectedSongCover();
|
CStatic selCov = GetSelectedSongCover();
|
||||||
return selCov != null && CHelper.IsInBounds(selCov.Rect.Scale(SelectedTileZoomFactor), mEvent);
|
return selCov != null && CHelper.IsInBounds(selCov.Rect.Scale(SelectedTileZoomFactor), mEvent);
|
||||||
|
|||||||
@@ -530,6 +530,17 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
return _Tiles.FirstOrDefault(tile => tile.Selected);
|
return _Tiles.FirstOrDefault(tile => tile.Selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool IsMouseOverSelectedSong(SMouseEvent mEvent)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < _Tiles.Count; i++)
|
||||||
|
{
|
||||||
|
if (!_Tiles[i].Selected)
|
||||||
|
continue;
|
||||||
|
return CHelper.IsInBounds(_Tiles[i].Rect, mEvent) || CHelper.IsInBounds(_Texts[i].Rect, mEvent);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void _EnterCategory(int categoryNr)
|
protected override void _EnterCategory(int categoryNr)
|
||||||
{
|
{
|
||||||
base._EnterCategory(categoryNr);
|
base._EnterCategory(categoryNr);
|
||||||
|
|||||||
Reference in new issue
Block a user