Merge remote-tracking branch 'xDarcice/release-0.1' into release-0.1
This commit is contained in:
commit
a1df3029fa
3 files changed
+632
-188
No files matched your search
@@ -827,7 +827,7 @@ namespace Vocaluxe.Base
|
|||||||
Category = -1;
|
Category = -1;
|
||||||
_SongsLoaded = true;
|
_SongsLoaded = true;
|
||||||
|
|
||||||
if (CConfig.Renderer == ERenderer.TR_CONFIG_OPENGL)
|
if (CConfig.Renderer != ERenderer.TR_CONFIG_SOFTWARE)
|
||||||
{
|
{
|
||||||
CLog.StartBenchmark(2, "Load Cover");
|
CLog.StartBenchmark(2, "Load Cover");
|
||||||
for (int i = 0; i < _Songs.Count; i++)
|
for (int i = 0; i < _Songs.Count; i++)
|
||||||
@@ -849,7 +849,7 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static void LoadCover(long WaitTime, int NumLoads)
|
public static void LoadCover(long WaitTime, int NumLoads)
|
||||||
{
|
{
|
||||||
if (CConfig.Renderer == ERenderer.TR_CONFIG_OPENGL)
|
if (CConfig.Renderer != ERenderer.TR_CONFIG_SOFTWARE)
|
||||||
return; //should be removed as soon as the other renderer are ready for queque
|
return; //should be removed as soon as the other renderer are ready for queque
|
||||||
|
|
||||||
if (!SongsLoaded)
|
if (!SongsLoaded)
|
||||||
|
|||||||
+582
-161
File diff suppressed because it is too large.
Load diff
@@ -65,6 +65,12 @@ namespace Vocaluxe.Screens
|
|||||||
if (KeyEvent.Handled)
|
if (KeyEvent.Handled)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (!Char.IsControl(KeyEvent.Unicode))
|
||||||
|
{
|
||||||
|
JumpTo(KeyEvent.Unicode);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
switch (KeyEvent.Key)
|
switch (KeyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
@@ -101,34 +107,34 @@ namespace Vocaluxe.Screens
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Keys.A:
|
//case Keys.A:
|
||||||
if (!_SearchActive && KeyEvent.Mod == Modifier.None)
|
// if (!_SearchActive && KeyEvent.Mod == Modifier.None)
|
||||||
{
|
// {
|
||||||
StartRandomAllSongs();
|
// StartRandomAllSongs();
|
||||||
}
|
// }
|
||||||
if (KeyEvent.Mod == Modifier.Ctrl)
|
// if (KeyEvent.Mod == Modifier.Ctrl)
|
||||||
{
|
// {
|
||||||
StartRandomVisibleSongs();
|
// StartRandomVisibleSongs();
|
||||||
}
|
// }
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
case Keys.F:
|
//case Keys.F:
|
||||||
if (KeyEvent.Mod == Modifier.Ctrl){
|
// if (KeyEvent.Mod == Modifier.Ctrl){
|
||||||
if (_SearchActive)
|
// if (_SearchActive)
|
||||||
{
|
// {
|
||||||
_SearchActive = false;
|
// _SearchActive = false;
|
||||||
_SearchText = String.Empty;
|
// _SearchText = String.Empty;
|
||||||
ApplyNewSearchFilter(_SearchText);
|
// ApplyNewSearchFilter(_SearchText);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
_SearchActive = true;
|
// _SearchActive = true;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
case Keys.R:
|
case Keys.R:
|
||||||
if (CSongs.Category != -1)
|
if (CSongs.Category != -1 && KeyEvent.Mod == Modifier.Ctrl)
|
||||||
{
|
{
|
||||||
SongMenus[htSongMenus(SongMenu)].SetSelectedSong(CSongs.GetRandomSong());
|
SongMenus[htSongMenus(SongMenu)].SetSelectedSong(CSongs.GetRandomSong());
|
||||||
}
|
}
|
||||||
@@ -288,6 +294,23 @@ namespace Vocaluxe.Screens
|
|||||||
CGraphics.FadeTo(EScreens.ScreenNames);
|
CGraphics.FadeTo(EScreens.ScreenNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void JumpTo(char Letter)
|
||||||
|
{
|
||||||
|
int song = SongMenus[htSongMenus(SongMenu)].GetSelectedSong();
|
||||||
|
int id = -1;
|
||||||
|
if (song > -1 && song < CSongs.NumVisibleSongs)
|
||||||
|
{
|
||||||
|
id = CSongs.VisibleSongs[song].ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vocaluxe.Lib.Song.CSong s = Array.Find<Vocaluxe.Lib.Song.CSong>(CSongs.VisibleSongs, element => element.Artist.StartsWith(Letter.ToString(), StringComparison.OrdinalIgnoreCase));
|
||||||
|
if (s != null && s.ID > -1)
|
||||||
|
{
|
||||||
|
id = s.ID;
|
||||||
|
SongMenus[htSongMenus(SongMenu)].SetSelectedSong(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ApplyNewSearchFilter(string NewFilterString)
|
private void ApplyNewSearchFilter(string NewFilterString)
|
||||||
{
|
{
|
||||||
int song = SongMenus[htSongMenus(SongMenu)].GetSelectedSong();
|
int song = SongMenus[htSongMenus(SongMenu)].GetSelectedSong();
|
||||||
|
|||||||
Reference in new issue
Block a user