From 2f7d2f98e8c037fc4bc79beafbcf3636648d7d62 Mon Sep 17 00:00:00 2001 From: Jiiniasu Date: Sun, 10 Apr 2016 12:26:47 +0200 Subject: [PATCH 01/44] Make screenshots save as PNG --- Vocaluxe/Lib/Draw/CDirect3D.cs | 6 +++--- Vocaluxe/Lib/Draw/CDrawWinForm.cs | 2 +- Vocaluxe/Lib/Draw/COpenGL.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Vocaluxe/Lib/Draw/CDirect3D.cs b/Vocaluxe/Lib/Draw/CDirect3D.cs index fc58ebb1..df93e1a8 100644 --- a/Vocaluxe/Lib/Draw/CDirect3D.cs +++ b/Vocaluxe/Lib/Draw/CDirect3D.cs @@ -556,13 +556,13 @@ namespace Vocaluxe.Lib.Draw /// public void MakeScreenShot() { - string file = CHelper.GetUniqueFileName(Path.Combine(CSettings.DataFolder, CSettings.FolderNameScreenshots), "Screenshot.bmp"); + string file = CHelper.GetUniqueFileName(Path.Combine(CSettings.DataFolder, CSettings.FolderNameScreenshots), "Screenshot.png"); //create a surface of the frame using (Surface surface = _Device.GetBackBuffer(0, 0)) { - var screen = new Bitmap(Surface.ToStream(surface, ImageFileFormat.Bmp)); - screen.Save(file, ImageFormat.Bmp); + var screen = new Bitmap(Surface.ToStream(surface, ImageFileFormat.Png)); + screen.Save(file, ImageFormat.Png); screen.Dispose(); } } diff --git a/Vocaluxe/Lib/Draw/CDrawWinForm.cs b/Vocaluxe/Lib/Draw/CDrawWinForm.cs index 6a1b94a7..b06d0929 100644 --- a/Vocaluxe/Lib/Draw/CDrawWinForm.cs +++ b/Vocaluxe/Lib/Draw/CDrawWinForm.cs @@ -303,7 +303,7 @@ namespace Vocaluxe.Lib.Draw public void MakeScreenShot() { - string file = CHelper.GetUniqueFileName(Path.Combine(CSettings.DataFolder, CSettings.FolderNameScreenshots), "Screenshot.bmp"); + string file = CHelper.GetUniqueFileName(Path.Combine(CSettings.DataFolder, CSettings.FolderNameScreenshots), "Screenshot.png"); _Backbuffer.Save(file, ImageFormat.Png); } diff --git a/Vocaluxe/Lib/Draw/COpenGL.cs b/Vocaluxe/Lib/Draw/COpenGL.cs index 46cb7d15..a2d46014 100644 --- a/Vocaluxe/Lib/Draw/COpenGL.cs +++ b/Vocaluxe/Lib/Draw/COpenGL.cs @@ -291,7 +291,7 @@ namespace Vocaluxe.Lib.Draw public void MakeScreenShot() { - string file = CHelper.GetUniqueFileName(Path.Combine(CSettings.DataFolder, CSettings.FolderNameScreenshots), "Screenshot.bmp"); + string file = CHelper.GetUniqueFileName(Path.Combine(CSettings.DataFolder, CSettings.FolderNameScreenshots), "Screenshot.png"); int width = GetScreenWidth(); int height = GetScreenHeight(); @@ -304,7 +304,7 @@ namespace Vocaluxe.Lib.Draw screen.UnlockBits(bmpData); screen.RotateFlip(RotateFlipType.RotateNoneFlipY); - screen.Save(file, ImageFormat.Bmp); + screen.Save(file, ImageFormat.Png); } } From d41376517866d924bdd95029076afb7f0c9813a3 Mon Sep 17 00:00:00 2001 From: Jiiniasu Date: Sun, 4 Sep 2016 18:32:24 +0200 Subject: [PATCH 02/44] Add Highscore Style Setting Add ability to select whether the highscore screen should display all scores or only the best score for each player, difficulty and duet-track. --- Output/Languages/English.xml | 3 + .../Ambient/Screens/ScreenOptionsGame.xml | 58 ++++++++++++++++++- .../Changelog/Changelog_ScreenOptionsGame.txt | 6 ++ Vocaluxe/Base/CConfig.cs | 1 + Vocaluxe/Base/CMain.cs | 5 ++ Vocaluxe/Lib/Database/CHighscoreDB.cs | 9 ++- Vocaluxe/Screens/CScreenOptionsGame.cs | 7 ++- VocaluxeLib/Enums.cs | 6 ++ VocaluxeLib/IBasic.cs | 2 + 9 files changed, 92 insertions(+), 5 deletions(-) diff --git a/Output/Languages/English.xml b/Output/Languages/English.xml index f5fc89bc..c3aefaf8 100644 --- a/Output/Languages/English.xml +++ b/Output/Languages/English.xml @@ -73,6 +73,8 @@ Total Normal Expanded + List all + List best Own music and background-music No own music Only own music @@ -183,6 +185,7 @@ Tabs Game difficulty Timer mode + Highscore style Record Options Device Input diff --git a/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml b/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml index 5b3b6ec4..c546c94a 100644 --- a/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml +++ b/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml @@ -2,7 +2,7 @@ ScreenOptionsGame - 2 + 3 @@ -191,6 +191,20 @@ Outline TR_SCREENOGAME_TIMERMODE + + 75 + 467 + 0 + 27 + 0 + + + Left + Center + + Outline + TR_SCREENOGAME_HIGHSCORESTYLE +