From fe9da018fcc1c32f9b7dbb50257d553b54ef3bf7 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 28 Dec 2012 14:51:57 +0100 Subject: [PATCH 01/10] added build dependencies --- Vocaluxe.sln | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Vocaluxe.sln b/Vocaluxe.sln index 3f653674..d414aae2 100644 --- a/Vocaluxe.sln +++ b/Vocaluxe.sln @@ -42,21 +42,35 @@ Global {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugLinux|x64.ActiveCfg = DebugLinux|x64 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugLinux|x64.Build.0 = DebugLinux|x64 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugLinux|x86.ActiveCfg = DebugLinux|x86 + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugLinux|x86.Build.0 = DebugLinux|x86 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugWin|x64.ActiveCfg = DebugWin|x64 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugWin|x64.Build.0 = DebugWin|x64 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugWin|x86.ActiveCfg = DebugWin|x86 + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugWin|x86.Build.0 = DebugWin|x86 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseLinux|x64.ActiveCfg = ReleaseLinux|x64 + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseLinux|x64.Build.0 = ReleaseLinux|x64 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseLinux|x86.ActiveCfg = ReleaseLinux|x86 + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseLinux|x86.Build.0 = ReleaseLinux|x86 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64 + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseWin|x64.Build.0 = ReleaseWin|x64 {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86 + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.ReleaseWin|x86.Build.0 = ReleaseWin|x86 {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugLinux|x64.ActiveCfg = DebugLinux|x64 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugLinux|x64.Build.0 = DebugLinux|x64 {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugLinux|x86.ActiveCfg = DebugLinux|x86 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugLinux|x86.Build.0 = DebugLinux|x86 {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugWin|x64.ActiveCfg = DebugWin|x64 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugWin|x64.Build.0 = DebugWin|x64 {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugWin|x86.ActiveCfg = DebugWin|x86 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.DebugWin|x86.Build.0 = DebugWin|x86 {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseLinux|x64.ActiveCfg = ReleaseLinux|x64 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseLinux|x64.Build.0 = ReleaseLinux|x64 {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseLinux|x86.ActiveCfg = ReleaseLinux|x86 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseLinux|x86.Build.0 = ReleaseLinux|x86 {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseWin|x64.Build.0 = ReleaseWin|x64 {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86 + {6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseWin|x86.Build.0 = ReleaseWin|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 16be28d203365823e153e91995d99605233be160 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 28 Dec 2012 15:11:41 +0100 Subject: [PATCH 02/10] fixed party mode song selection --- Vocaluxe/Screens/CScreenSong.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Vocaluxe/Screens/CScreenSong.cs b/Vocaluxe/Screens/CScreenSong.cs index fac4cc92..684ae0d2 100644 --- a/Vocaluxe/Screens/CScreenSong.cs +++ b/Vocaluxe/Screens/CScreenSong.cs @@ -796,8 +796,8 @@ namespace Vocaluxe.Screens CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, _sso.Sorting.SearchString, _sso.Sorting.ShowDuetSongs); _SearchActive = _sso.Sorting.SearchStringVisible; _SearchText = _sso.Sorting.SearchString; + ClosePlaylist(); - Playlists[htPlaylists(Playlist)].ClosePlaylist(); ToggleSongOptions(ESongOptionsView.None); } @@ -1250,10 +1250,14 @@ namespace Vocaluxe.Screens private void ClosePlaylist() { - SongMenus[htSongMenus(SongMenu)].SetSmallView(false); - _PlaylistActive = false; - Playlists[htPlaylists(Playlist)].Selected = _PlaylistActive; - SongMenus[htSongMenus(SongMenu)].SetActive(!_PlaylistActive); + if (Playlists[htPlaylists(Playlist)].Visible || _PlaylistActive) + { + SongMenus[htSongMenus(SongMenu)].SetSmallView(false); + _PlaylistActive = false; + Playlists[htPlaylists(Playlist)].Selected = _PlaylistActive; + SongMenus[htSongMenus(SongMenu)].SetActive(!_PlaylistActive); + Playlists[htPlaylists(Playlist)].ClosePlaylist(); + } } private void UpdatePlaylistNames() From 8b18e7c3d87245f93c8eb9e96ba57ea74775d93d Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 28 Dec 2012 16:19:51 +0100 Subject: [PATCH 03/10] update to build 0075 --- Vocaluxe/Base/CSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Base/CSettings.cs b/Vocaluxe/Base/CSettings.cs index 77a3098b..b64d1366 100644 --- a/Vocaluxe/Base/CSettings.cs +++ b/Vocaluxe/Base/CSettings.cs @@ -42,7 +42,7 @@ namespace Vocaluxe.Base public const int iVersionSub = 0; // patches public const ERevision VersionRevision = ERevision.Alpha; - public const int iBuild = 74; // Increase on every published version! Never Reset! + public const int iBuild = 75; // Increase on every published version! Never Reset! public const int iDatabaseHighscoreVersion = 2; public const int iDatabaseCoverVersion = 1; From e8179fc41b8779ea204f295e2d3fa1d47275766b Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 28 Dec 2012 17:10:35 +0100 Subject: [PATCH 04/10] roadmap update --- Vocaluxe/Doc/Roadmap.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Doc/Roadmap.txt b/Vocaluxe/Doc/Roadmap.txt index ccd85b0b..6af47fe7 100644 --- a/Vocaluxe/Doc/Roadmap.txt +++ b/Vocaluxe/Doc/Roadmap.txt @@ -77,7 +77,7 @@ - Theme System Update - A nicer Theme! -+ v0.2.0: ++ v0.2.0 (reached: 21.12.2012): - Medley - Sing Short Version Mode - Show Avatars and Player Name in Sing Screen From 3b77b4dfde7070b045b240be3c51cbc332f6037c Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 28 Dec 2012 21:05:52 +0100 Subject: [PATCH 05/10] fixed search handling --- PartyModeChallenge/PartyModeChallenge.cs | 4 +-- Vocaluxe/Base/CSongs.cs | 12 +++++-- Vocaluxe/Screens/CScreenSong.cs | 46 ++++++++++++------------ VocaluxeLib/PartyModes/CPartyModeNone.cs | 8 +++-- VocaluxeLib/PartyModes/IPartyMode.cs | 2 +- 5 files changed, 41 insertions(+), 31 deletions(-) diff --git a/PartyModeChallenge/PartyModeChallenge.cs b/PartyModeChallenge/PartyModeChallenge.cs index af6f6f22..66c1ab61 100644 --- a/PartyModeChallenge/PartyModeChallenge.cs +++ b/PartyModeChallenge/PartyModeChallenge.cs @@ -152,7 +152,7 @@ namespace Vocaluxe.PartyModes _ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" }; _ScreenSongOptions.Sorting.SearchString = String.Empty; - _ScreenSongOptions.Sorting.SearchStringVisible = false; + _ScreenSongOptions.Sorting.SearchActive = false; _ScreenSongOptions.Sorting.ShowDuetSongs = false; _Stage = EStage.NotStarted; @@ -398,7 +398,7 @@ namespace Vocaluxe.PartyModes public override void SetSearchString(string SearchString, bool Visible) { _ScreenSongOptions.Sorting.SearchString = SearchString; - _ScreenSongOptions.Sorting.SearchStringVisible = Visible; + _ScreenSongOptions.Sorting.SearchActive = Visible; } public override int GetMaxPlayer() diff --git a/Vocaluxe/Base/CSongs.cs b/Vocaluxe/Base/CSongs.cs index 4c2ec4a0..a265098b 100644 --- a/Vocaluxe/Base/CSongs.cs +++ b/Vocaluxe/Base/CSongs.cs @@ -62,7 +62,7 @@ namespace Vocaluxe.Base get { return _SearchFilter; } set { - if (value.Length > 0) + if (value != String.Empty) { _Sort(_SongSorting, EOffOn.TR_CONFIG_OFF, _IgnoreArticles, value, false, _ShowDuetSongs); } @@ -406,7 +406,15 @@ namespace Vocaluxe.Base _SongList.Add(song); else { - if (song.Title.ToUpper().Contains(_SearchFilter.ToUpper()) || song.Artist.ToUpper().Contains(_SearchFilter.ToUpper())) + string search = song.Title.ToUpper() + " " + song.Artist.ToUpper() + " " + song.FolderName.ToUpper() + " " + song.FileName.ToUpper(); + string[] searchStrings = _SearchFilter.ToUpper().Split(new char[]{' '}); + bool contains = searchStrings != null; + + foreach (string str in searchStrings) + { + contains &= search.Contains(str); + } + if (contains) _SongList.Add(song); } } diff --git a/Vocaluxe/Screens/CScreenSong.cs b/Vocaluxe/Screens/CScreenSong.cs index 684ae0d2..c41843b4 100644 --- a/Vocaluxe/Screens/CScreenSong.cs +++ b/Vocaluxe/Screens/CScreenSong.cs @@ -659,7 +659,7 @@ namespace Vocaluxe.Screens _sso = CParty.GetSongSelectionOptions(); CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, _sso.Sorting.SearchString, _sso.Sorting.ShowDuetSongs); - _SearchActive = _sso.Sorting.SearchStringVisible; + _SearchActive = _sso.Sorting.SearchActive; _SearchText = _sso.Sorting.SearchString; CGame.EnterNormalGame(); @@ -744,8 +744,6 @@ namespace Vocaluxe.Screens base.OnClose(); CBackgroundMusic.Disabled = false; SongMenus[htSongMenus(SongMenu)].OnHide(); - - CParty.SetSearchString(_SearchText, _SearchActive); } public override void ApplyVolume() @@ -794,7 +792,7 @@ namespace Vocaluxe.Screens if (_sso.Selection.PartyMode) { CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, _sso.Sorting.SearchString, _sso.Sorting.ShowDuetSongs); - _SearchActive = _sso.Sorting.SearchStringVisible; + _SearchActive = _sso.Sorting.SearchActive; _SearchText = _sso.Sorting.SearchString; ClosePlaylist(); @@ -1078,31 +1076,31 @@ namespace Vocaluxe.Screens private void ApplyNewSearchFilter(string NewFilterString) { - int song = SongMenus[htSongMenus(SongMenu)].GetSelectedSong(); - int id = -1; - if (song > -1 && song < CSongs.NumVisibleSongs) - { - id = CSongs.VisibleSongs[song].ID; - } - + CParty.SetSearchString(NewFilterString, _SearchActive); + _sso = CParty.GetSongSelectionOptions(); + + bool refresh = false; _SearchText = NewFilterString; - CSongs.SearchFilter = _SearchText; - if (NewFilterString != String.Empty) - CSongs.Category = 0; - else - CSongs.Category = -1; - - if (id > -1) + int SongIndex = SongMenus[htSongMenus(SongMenu)].GetSelectedSong(); + int SongID = -1; + if (SongIndex != -1 && CSongs.NumVisibleSongs > 0 && CSongs.NumVisibleSongs > SongIndex) { - if (CSongs.NumVisibleSongs > 0) - { - if (id != CSongs.VisibleSongs[0].ID) - SongMenus[htSongMenus(SongMenu)].OnHide(); - } + SongID = CSongs.VisibleSongs[SongIndex].ID; } - if (CSongs.NumVisibleSongs == 0) + if (NewFilterString == String.Empty && _sso.Sorting.Tabs == EOffOn.TR_CONFIG_ON) + { + CSongs.Category = -1; + refresh = true; + } + + CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, NewFilterString, _sso.Sorting.ShowDuetSongs); + + if (SongID == -1 || CSongs.NumVisibleSongs == 0 || CSongs.NumVisibleSongs <= SongIndex || CSongs.VisibleSongs[SongIndex].ID != SongID) + refresh = true; + + if (refresh) SongMenus[htSongMenus(SongMenu)].OnHide(); SongMenus[htSongMenus(SongMenu)].OnShow(); diff --git a/VocaluxeLib/PartyModes/CPartyModeNone.cs b/VocaluxeLib/PartyModes/CPartyModeNone.cs index 623ac0f8..27436373 100644 --- a/VocaluxeLib/PartyModes/CPartyModeNone.cs +++ b/VocaluxeLib/PartyModes/CPartyModeNone.cs @@ -19,7 +19,7 @@ namespace Vocaluxe.PartyModes _ScreenSongOptions.Selection.SongIndex = -1; _ScreenSongOptions.Sorting.SearchString = String.Empty; - _ScreenSongOptions.Sorting.SearchStringVisible = false; + _ScreenSongOptions.Sorting.SearchActive = false; _ScreenSongOptions.Sorting.ShowDuetSongs = true; } @@ -27,6 +27,10 @@ namespace Vocaluxe.PartyModes { _ScreenSongOptions.Sorting.SongSorting = _Base.Config.GetSongSorting(); _ScreenSongOptions.Sorting.Tabs = _Base.Config.GetTabs(); + + if (_ScreenSongOptions.Sorting.SearchActive) + _ScreenSongOptions.Sorting.Tabs = EOffOn.TR_CONFIG_OFF; + _ScreenSongOptions.Sorting.IgnoreArticles = _Base.Config.GetIgnoreArticles(); return _ScreenSongOptions; @@ -35,7 +39,7 @@ namespace Vocaluxe.PartyModes public override void SetSearchString(string SearchString, bool Visible) { _ScreenSongOptions.Sorting.SearchString = SearchString; - _ScreenSongOptions.Sorting.SearchStringVisible = Visible; + _ScreenSongOptions.Sorting.SearchActive = Visible; } } } diff --git a/VocaluxeLib/PartyModes/IPartyMode.cs b/VocaluxeLib/PartyModes/IPartyMode.cs index 4ef1a7f2..3248db10 100644 --- a/VocaluxeLib/PartyModes/IPartyMode.cs +++ b/VocaluxeLib/PartyModes/IPartyMode.cs @@ -19,7 +19,7 @@ namespace Vocaluxe.PartyModes public EOffOn Tabs; public EOffOn IgnoreArticles; public string SearchString; - public bool SearchStringVisible; + public bool SearchActive; public bool ShowDuetSongs; } From 3e7a0cc9840c9e6d92485dd62bd8490dd14be7e3 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 28 Dec 2012 21:48:06 +0100 Subject: [PATCH 06/10] fixed import of usdx 1.1 highscores (if the contain date NULL) --- Vocaluxe/Base/CDataBase.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Base/CDataBase.cs b/Vocaluxe/Base/CDataBase.cs index 481d6913..fc878e72 100644 --- a/Vocaluxe/Base/CDataBase.cs +++ b/Vocaluxe/Base/CDataBase.cs @@ -716,7 +716,15 @@ namespace Vocaluxe.Base SData data = new SData(); data.id = reader.GetInt32(0); data.str1 = reader.GetString(1); - data.ticks = UnixTimeToTicks((int)reader.GetInt64(2)); + Int64 ticks = 0; + + try + { + ticks = reader.GetInt64(2); + } + catch { } + + data.ticks = UnixTimeToTicks((int)ticks); scores.Add(data); } From 3ffc211571b15e884dd05b6b02132f18ac1d069a Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sat, 29 Dec 2012 12:57:57 +0100 Subject: [PATCH 07/10] fixed searching (one more time) --- Vocaluxe/Screens/CScreenSong.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vocaluxe/Screens/CScreenSong.cs b/Vocaluxe/Screens/CScreenSong.cs index c41843b4..dfebbfd5 100644 --- a/Vocaluxe/Screens/CScreenSong.cs +++ b/Vocaluxe/Screens/CScreenSong.cs @@ -1095,6 +1095,12 @@ namespace Vocaluxe.Screens refresh = true; } + if (NewFilterString != String.Empty && CSongs.Category != 0) + { + CSongs.Category = 0; + refresh = true; + } + CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, NewFilterString, _sso.Sorting.ShowDuetSongs); if (SongID == -1 || CSongs.NumVisibleSongs == 0 || CSongs.NumVisibleSongs <= SongIndex || CSongs.VisibleSongs[SongIndex].ID != SongID) From 524852d3c80fae824e3e341b3ae33fdc35d0dac4 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sun, 30 Dec 2012 17:57:11 +0100 Subject: [PATCH 08/10] fixed num round table visible --- PartyModeChallenge/PartyScreenChallengeMain.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PartyModeChallenge/PartyScreenChallengeMain.cs b/PartyModeChallenge/PartyScreenChallengeMain.cs index 717bc7de..547aa6f5 100644 --- a/PartyModeChallenge/PartyScreenChallengeMain.cs +++ b/PartyModeChallenge/PartyScreenChallengeMain.cs @@ -421,6 +421,9 @@ namespace Vocaluxe.PartyModes int NumPlayerInOneRow = 3; if (GameState.NumPlayerAtOnce <= NumPlayerInOneRow) NumRoundsVisible = 5; + else + NumRoundsVisible = 3; + if (NumRoundsVisible > GameState.Combs.Count) NumRoundsVisible = GameState.Combs.Count; @@ -496,9 +499,14 @@ namespace Vocaluxe.PartyModes RoundsTable[i].TextScores[p].Visible = false; } } - if (GameState.Combs.Count < i + RoundsTableOffset) + if (GameState.Combs.Count < i + RoundsTableOffset || i + 1 > NumRoundsVisible) { RoundsTable[i].Number.Visible = false; + for (int p = 0; p < RoundsTable[i].TextPlayer.Count; p++) + { + RoundsTable[i].TextPlayer[p].Visible = false; + RoundsTable[i].TextScores[p].Visible = false; + } } } From ff254dbc43600fcee345ee2a613ef9682f58ac76 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sun, 30 Dec 2012 18:07:40 +0100 Subject: [PATCH 09/10] renamed SumSingPoints to NumSingPoints, fixed player position calculation (considering sing points) --- PartyModeChallenge/PartyModeChallenge.cs | 16 +++++++++------- PartyModeChallenge/PartyScreenChallengeMain.cs | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/PartyModeChallenge/PartyModeChallenge.cs b/PartyModeChallenge/PartyModeChallenge.cs index 66c1ab61..26f09eeb 100644 --- a/PartyModeChallenge/PartyModeChallenge.cs +++ b/PartyModeChallenge/PartyModeChallenge.cs @@ -38,7 +38,7 @@ namespace Vocaluxe.PartyModes public int NumPlayed; public int NumRounds; public int NumWon; - public int SumSingPoints; + public int NumSingPoints; public int NumGamePoints; public int CompareTo(object obj) @@ -50,7 +50,7 @@ namespace Vocaluxe.PartyModes int res = row.NumGamePoints.CompareTo(NumGamePoints); if (res == 0) { - res = row.SumSingPoints.CompareTo(SumSingPoints); + res = row.NumSingPoints.CompareTo(NumSingPoints); if (res == 0) { res = row.NumWon.CompareTo(NumWon); @@ -575,7 +575,7 @@ namespace Vocaluxe.PartyModes row.NumPlayed = 0; row.NumRounds = 0; row.NumWon = 0; - row.SumSingPoints = 0; + row.NumSingPoints = 0; row.NumGamePoints = 0; GameData.ResultTable.Add(row); } @@ -624,7 +624,7 @@ namespace Vocaluxe.PartyModes row.NumPlayed++; row.NumWon += points[i].Won; row.NumRounds += 1; - row.SumSingPoints += points[i].SingPoints; + row.NumSingPoints += points[i].SingPoints; row.NumGamePoints += points[i].GamePoints; GameData.ResultTable[index] = row; @@ -636,13 +636,15 @@ namespace Vocaluxe.PartyModes //Update position-number int pos = 1; - int last_points = 0; + int lastPoints = 0; + int lastSingPoints = 0; for (int i = 0; i < GameData.ResultTable.Count; i++ ) { - if (last_points > GameData.ResultTable[i].NumGamePoints) + if (lastPoints > GameData.ResultTable[i].NumGamePoints || lastSingPoints > GameData.ResultTable[i].NumSingPoints) pos++; GameData.ResultTable[i].Position = pos; - last_points = GameData.ResultTable[i].NumGamePoints; + lastPoints = GameData.ResultTable[i].NumGamePoints; + lastSingPoints = GameData.ResultTable[i].NumSingPoints; } } diff --git a/PartyModeChallenge/PartyScreenChallengeMain.cs b/PartyModeChallenge/PartyScreenChallengeMain.cs index 547aa6f5..072b82a6 100644 --- a/PartyModeChallenge/PartyScreenChallengeMain.cs +++ b/PartyModeChallenge/PartyScreenChallengeMain.cs @@ -588,7 +588,7 @@ namespace Vocaluxe.PartyModes row.Name.Text = profiles[GameState.ResultTable[i+PlayerTableOffset].PlayerID].PlayerName; row.Rounds.Text = GameState.ResultTable[i+PlayerTableOffset].NumRounds.ToString(); row.Won.Text = GameState.ResultTable[i+PlayerTableOffset].NumWon.ToString(); - row.SingPoints.Text = GameState.ResultTable[i+PlayerTableOffset].SumSingPoints.ToString(); + row.SingPoints.Text = GameState.ResultTable[i+PlayerTableOffset].NumSingPoints.ToString(); row.GamePoints.Text = GameState.ResultTable[i+PlayerTableOffset].NumGamePoints.ToString(); } else From 0a3cd3e7fae323a1a28b6f80e7c124e6bb232347 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sun, 30 Dec 2012 18:16:11 +0100 Subject: [PATCH 10/10] moved PartyModeChallenge to new sub dir PartyModes --- .../PartyModeChallenge}/ChallengeRounds.cs | 0 .../PartyModeChallenge}/PartyModeChallenge.cs | 0 .../PartyModeChallenge.csproj | 18 +++++++++--------- .../PartyScreenChallengeConfig.cs | 0 .../PartyScreenChallengeMain.cs | 0 .../PartyScreenChallengeNames.cs | 0 Vocaluxe.sln | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) rename {PartyModeChallenge => PartyModes/PartyModeChallenge}/ChallengeRounds.cs (100%) rename {PartyModeChallenge => PartyModes/PartyModeChallenge}/PartyModeChallenge.cs (100%) rename {PartyModeChallenge => PartyModes/PartyModeChallenge}/PartyModeChallenge.csproj (90%) rename {PartyModeChallenge => PartyModes/PartyModeChallenge}/PartyScreenChallengeConfig.cs (100%) rename {PartyModeChallenge => PartyModes/PartyModeChallenge}/PartyScreenChallengeMain.cs (100%) rename {PartyModeChallenge => PartyModes/PartyModeChallenge}/PartyScreenChallengeNames.cs (100%) diff --git a/PartyModeChallenge/ChallengeRounds.cs b/PartyModes/PartyModeChallenge/ChallengeRounds.cs similarity index 100% rename from PartyModeChallenge/ChallengeRounds.cs rename to PartyModes/PartyModeChallenge/ChallengeRounds.cs diff --git a/PartyModeChallenge/PartyModeChallenge.cs b/PartyModes/PartyModeChallenge/PartyModeChallenge.cs similarity index 100% rename from PartyModeChallenge/PartyModeChallenge.cs rename to PartyModes/PartyModeChallenge/PartyModeChallenge.cs diff --git a/PartyModeChallenge/PartyModeChallenge.csproj b/PartyModes/PartyModeChallenge/PartyModeChallenge.csproj similarity index 90% rename from PartyModeChallenge/PartyModeChallenge.csproj rename to PartyModes/PartyModeChallenge/PartyModeChallenge.csproj index 3155de6c..83f7959f 100644 --- a/PartyModeChallenge/PartyModeChallenge.csproj +++ b/PartyModes/PartyModeChallenge/PartyModeChallenge.csproj @@ -20,7 +20,7 @@ true full false - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code TRACE;DEBUG;WIN prompt 4 @@ -30,7 +30,7 @@ AnyCPU none true - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code prompt 4 false @@ -42,7 +42,7 @@ true full false - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code TRACE;DEBUG;WIN prompt 4 @@ -52,7 +52,7 @@ AnyCPU none true - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code prompt 4 false @@ -64,7 +64,7 @@ true full false - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code TRACE;DEBUG;LINUX prompt 4 @@ -74,7 +74,7 @@ AnyCPU none true - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code prompt 4 false @@ -86,7 +86,7 @@ true full false - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code TRACE;DEBUG;LINUX prompt 4 @@ -96,7 +96,7 @@ AnyCPU none true - ..\Output\PartyModes\Challenge\Code + ..\..\Output\PartyModes\Challenge\Code prompt 4 false @@ -124,7 +124,7 @@ - + {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC} VocaluxeLib False diff --git a/PartyModeChallenge/PartyScreenChallengeConfig.cs b/PartyModes/PartyModeChallenge/PartyScreenChallengeConfig.cs similarity index 100% rename from PartyModeChallenge/PartyScreenChallengeConfig.cs rename to PartyModes/PartyModeChallenge/PartyScreenChallengeConfig.cs diff --git a/PartyModeChallenge/PartyScreenChallengeMain.cs b/PartyModes/PartyModeChallenge/PartyScreenChallengeMain.cs similarity index 100% rename from PartyModeChallenge/PartyScreenChallengeMain.cs rename to PartyModes/PartyModeChallenge/PartyScreenChallengeMain.cs diff --git a/PartyModeChallenge/PartyScreenChallengeNames.cs b/PartyModes/PartyModeChallenge/PartyScreenChallengeNames.cs similarity index 100% rename from PartyModeChallenge/PartyScreenChallengeNames.cs rename to PartyModes/PartyModeChallenge/PartyScreenChallengeNames.cs diff --git a/Vocaluxe.sln b/Vocaluxe.sln index d414aae2..301a30e2 100644 --- a/Vocaluxe.sln +++ b/Vocaluxe.sln @@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vocaluxe", "Vocaluxe\Vocalu EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VocaluxeLib", "VocaluxeLib\VocaluxeLib.csproj", "{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyModeChallenge", "PartyModeChallenge\PartyModeChallenge.csproj", "{6F3E1874-F28A-40E9-AFBD-31934D593679}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyModeChallenge", "PartyModes\PartyModeChallenge\PartyModeChallenge.csproj", "{6F3E1874-F28A-40E9-AFBD-31934D593679}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution