Merge remote-tracking branch 'remotes/Upstream/develop' into tic-tac-toe
Conflicts: Vocaluxe.sln
This commit is contained in:
commit
6308e0fc17
19 files changed
+140
-88
No files matched your search
File renamed without changes.
+11
-9
@@ -38,7 +38,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int NumPlayed;
|
public int NumPlayed;
|
||||||
public int NumRounds;
|
public int NumRounds;
|
||||||
public int NumWon;
|
public int NumWon;
|
||||||
public int SumSingPoints;
|
public int NumSingPoints;
|
||||||
public int NumGamePoints;
|
public int NumGamePoints;
|
||||||
|
|
||||||
public int CompareTo(object obj)
|
public int CompareTo(object obj)
|
||||||
@@ -50,7 +50,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
int res = row.NumGamePoints.CompareTo(NumGamePoints);
|
int res = row.NumGamePoints.CompareTo(NumGamePoints);
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
{
|
{
|
||||||
res = row.SumSingPoints.CompareTo(SumSingPoints);
|
res = row.NumSingPoints.CompareTo(NumSingPoints);
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
{
|
{
|
||||||
res = row.NumWon.CompareTo(NumWon);
|
res = row.NumWon.CompareTo(NumWon);
|
||||||
@@ -152,7 +152,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
||||||
|
|
||||||
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
||||||
_ScreenSongOptions.Sorting.SearchStringVisible = false;
|
_ScreenSongOptions.Sorting.SearchActive = false;
|
||||||
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
||||||
|
|
||||||
_Stage = EStage.NotStarted;
|
_Stage = EStage.NotStarted;
|
||||||
@@ -398,7 +398,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public override void SetSearchString(string SearchString, bool Visible)
|
public override void SetSearchString(string SearchString, bool Visible)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
||||||
_ScreenSongOptions.Sorting.SearchStringVisible = Visible;
|
_ScreenSongOptions.Sorting.SearchActive = Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetMaxPlayer()
|
public override int GetMaxPlayer()
|
||||||
@@ -575,7 +575,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
row.NumPlayed = 0;
|
row.NumPlayed = 0;
|
||||||
row.NumRounds = 0;
|
row.NumRounds = 0;
|
||||||
row.NumWon = 0;
|
row.NumWon = 0;
|
||||||
row.SumSingPoints = 0;
|
row.NumSingPoints = 0;
|
||||||
row.NumGamePoints = 0;
|
row.NumGamePoints = 0;
|
||||||
GameData.ResultTable.Add(row);
|
GameData.ResultTable.Add(row);
|
||||||
}
|
}
|
||||||
@@ -624,7 +624,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
row.NumPlayed++;
|
row.NumPlayed++;
|
||||||
row.NumWon += points[i].Won;
|
row.NumWon += points[i].Won;
|
||||||
row.NumRounds += 1;
|
row.NumRounds += 1;
|
||||||
row.SumSingPoints += points[i].SingPoints;
|
row.NumSingPoints += points[i].SingPoints;
|
||||||
row.NumGamePoints += points[i].GamePoints;
|
row.NumGamePoints += points[i].GamePoints;
|
||||||
|
|
||||||
GameData.ResultTable[index] = row;
|
GameData.ResultTable[index] = row;
|
||||||
@@ -636,13 +636,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
//Update position-number
|
//Update position-number
|
||||||
int pos = 1;
|
int pos = 1;
|
||||||
int last_points = 0;
|
int lastPoints = 0;
|
||||||
|
int lastSingPoints = 0;
|
||||||
for (int i = 0; i < GameData.ResultTable.Count; i++ )
|
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++;
|
pos++;
|
||||||
GameData.ResultTable[i].Position = pos;
|
GameData.ResultTable[i].Position = pos;
|
||||||
last_points = GameData.ResultTable[i].NumGamePoints;
|
lastPoints = GameData.ResultTable[i].NumGamePoints;
|
||||||
|
lastSingPoints = GameData.ResultTable[i].NumSingPoints;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+10
-10
@@ -5,7 +5,7 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
<ProductVersion>8.0.30703</ProductVersion>
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{6F3E1874-F28A-40E9-AFBD-31934D593679}</ProjectGuid>
|
<ProjectGuid>{5A4053F1-5AD5-441F-B254-D97A088127B6}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>PartyModeChallenge</RootNamespace>
|
<RootNamespace>PartyModeChallenge</RootNamespace>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\Challenge\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\Challenge\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\VocaluxeLib\VocaluxeLib.csproj">
|
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
||||||
<Project>{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}</Project>
|
<Project>{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}</Project>
|
||||||
<Name>VocaluxeLib</Name>
|
<Name>VocaluxeLib</Name>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
File renamed without changes.
+10
-2
@@ -421,6 +421,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
int NumPlayerInOneRow = 3;
|
int NumPlayerInOneRow = 3;
|
||||||
if (GameState.NumPlayerAtOnce <= NumPlayerInOneRow)
|
if (GameState.NumPlayerAtOnce <= NumPlayerInOneRow)
|
||||||
NumRoundsVisible = 5;
|
NumRoundsVisible = 5;
|
||||||
|
else
|
||||||
|
NumRoundsVisible = 3;
|
||||||
|
|
||||||
if (NumRoundsVisible > GameState.Combs.Count)
|
if (NumRoundsVisible > GameState.Combs.Count)
|
||||||
NumRoundsVisible = GameState.Combs.Count;
|
NumRoundsVisible = GameState.Combs.Count;
|
||||||
|
|
||||||
@@ -496,9 +499,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
RoundsTable[i].TextScores[p].Visible = false;
|
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;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -580,7 +588,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
row.Name.Text = profiles[GameState.ResultTable[i+PlayerTableOffset].PlayerID].PlayerName;
|
row.Name.Text = profiles[GameState.ResultTable[i+PlayerTableOffset].PlayerID].PlayerName;
|
||||||
row.Rounds.Text = GameState.ResultTable[i+PlayerTableOffset].NumRounds.ToString();
|
row.Rounds.Text = GameState.ResultTable[i+PlayerTableOffset].NumRounds.ToString();
|
||||||
row.Won.Text = GameState.ResultTable[i+PlayerTableOffset].NumWon.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();
|
row.GamePoints.Text = GameState.ResultTable[i+PlayerTableOffset].NumGamePoints.ToString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
File renamed without changes.
+2
-2
@@ -137,7 +137,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
||||||
|
|
||||||
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
||||||
_ScreenSongOptions.Sorting.SearchStringVisible = false;
|
_ScreenSongOptions.Sorting.SearchActive = false;
|
||||||
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
||||||
|
|
||||||
_Stage = EStage.NotStarted;
|
_Stage = EStage.NotStarted;
|
||||||
@@ -394,7 +394,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public override void SetSearchString(string SearchString, bool Visible)
|
public override void SetSearchString(string SearchString, bool Visible)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
||||||
_ScreenSongOptions.Sorting.SearchStringVisible = Visible;
|
_ScreenSongOptions.Sorting.SearchActive = Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetMaxPlayer()
|
public override int GetMaxPlayer()
|
||||||
+10
-10
@@ -20,7 +20,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;LINUX</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
<OutputPath>..\..\Output\PartyModes\TicTacToe\Code</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\VocaluxeLib\VocaluxeLib.csproj">
|
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
||||||
<Project>{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}</Project>
|
<Project>{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}</Project>
|
||||||
<Name>VocaluxeLib</Name>
|
<Name>VocaluxeLib</Name>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
@@ -142,4 +142,4 @@
|
|||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
</Project>
|
</Project>
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+32
-18
@@ -9,9 +9,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vocaluxe", "Vocaluxe\Vocalu
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VocaluxeLib", "VocaluxeLib\VocaluxeLib.csproj", "{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VocaluxeLib", "VocaluxeLib\VocaluxeLib.csproj", "{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyModeTicTacToe", "PartyModeTicTacToe\PartyModeTicTacToe.csproj", "{6F3E1874-F28A-40E9-AFBD-31934D593679}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyModeTicTacToe", "PartyModes\PartyModeTicTacToe\PartyModeTicTacToe.csproj", "{6F3E1874-F28A-40E9-AFBD-31934D593679}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyModeChallenge", "PartyModeChallenge\PartyModeChallenge.csproj", "{162341B8-965F-46BC-9826-86B9A1E7F984}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyModeChallenge", "PartyModes\PartyModeChallenge\PartyModeChallenge.csproj", "{5A4053F1-5AD5-441F-B254-D97A088127B6}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -44,37 +44,51 @@ Global
|
|||||||
{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugLinux|x64.ActiveCfg = DebugLinux|x64
|
{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|x64.Build.0 = DebugLinux|x64
|
||||||
{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugLinux|x86.ActiveCfg = DebugLinux|x86
|
{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.ActiveCfg = DebugWin|x64
|
||||||
{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}.DebugWin|x64.Build.0 = 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.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.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.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.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.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.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.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.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.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.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.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.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.ActiveCfg = ReleaseWin|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugLinux|x64.ActiveCfg = DebugLinux|x64
|
{6F3E1874-F28A-40E9-AFBD-31934D593679}.ReleaseWin|x86.Build.0 = ReleaseWin|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugLinux|x64.Build.0 = DebugLinux|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugLinux|x64.ActiveCfg = DebugLinux|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugLinux|x86.ActiveCfg = DebugLinux|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugLinux|x64.Build.0 = DebugLinux|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugLinux|x86.Build.0 = DebugLinux|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugLinux|x86.ActiveCfg = DebugLinux|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugWin|x64.ActiveCfg = DebugWin|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugLinux|x86.Build.0 = DebugLinux|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugWin|x64.Build.0 = DebugWin|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugWin|x64.ActiveCfg = DebugWin|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugWin|x86.ActiveCfg = DebugWin|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugWin|x64.Build.0 = DebugWin|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.DebugWin|x86.Build.0 = DebugWin|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugWin|x86.ActiveCfg = DebugWin|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseLinux|x64.ActiveCfg = ReleaseLinux|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.DebugWin|x86.Build.0 = DebugWin|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseLinux|x64.Build.0 = ReleaseLinux|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseLinux|x64.ActiveCfg = ReleaseLinux|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseLinux|x86.ActiveCfg = ReleaseLinux|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseLinux|x64.Build.0 = ReleaseLinux|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseLinux|x86.Build.0 = ReleaseLinux|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseLinux|x86.ActiveCfg = ReleaseLinux|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseLinux|x86.Build.0 = ReleaseLinux|x86
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseWin|x64.Build.0 = ReleaseWin|x64
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseWin|x64.Build.0 = ReleaseWin|x64
|
||||||
{162341B8-965F-46BC-9826-86B9A1E7F984}.ReleaseWin|x86.Build.0 = ReleaseWin|x86
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86
|
||||||
|
{5A4053F1-5AD5-441F-B254-D97A088127B6}.ReleaseWin|x86.Build.0 = ReleaseWin|x86
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -716,7 +716,15 @@ namespace Vocaluxe.Base
|
|||||||
SData data = new SData();
|
SData data = new SData();
|
||||||
data.id = reader.GetInt32(0);
|
data.id = reader.GetInt32(0);
|
||||||
data.str1 = reader.GetString(1);
|
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);
|
scores.Add(data);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace Vocaluxe.Base
|
|||||||
public const int iVersionSub = 0; // patches
|
public const int iVersionSub = 0; // patches
|
||||||
public const ERevision VersionRevision = ERevision.Alpha;
|
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 iDatabaseHighscoreVersion = 2;
|
||||||
public const int iDatabaseCoverVersion = 1;
|
public const int iDatabaseCoverVersion = 1;
|
||||||
|
|||||||
+10
-2
@@ -62,7 +62,7 @@ namespace Vocaluxe.Base
|
|||||||
get { return _SearchFilter; }
|
get { return _SearchFilter; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value.Length > 0)
|
if (value != String.Empty)
|
||||||
{
|
{
|
||||||
_Sort(_SongSorting, EOffOn.TR_CONFIG_OFF, _IgnoreArticles, value, false, _ShowDuetSongs);
|
_Sort(_SongSorting, EOffOn.TR_CONFIG_OFF, _IgnoreArticles, value, false, _ShowDuetSongs);
|
||||||
}
|
}
|
||||||
@@ -406,7 +406,15 @@ namespace Vocaluxe.Base
|
|||||||
_SongList.Add(song);
|
_SongList.Add(song);
|
||||||
else
|
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);
|
_SongList.Add(song);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
- Theme System Update
|
- Theme System Update
|
||||||
- A nicer Theme!
|
- A nicer Theme!
|
||||||
|
|
||||||
+ v0.2.0:
|
+ v0.2.0 (reached: 21.12.2012):
|
||||||
- Medley
|
- Medley
|
||||||
- Sing Short Version Mode
|
- Sing Short Version Mode
|
||||||
- Show Avatars and Player Name in Sing Screen
|
- Show Avatars and Player Name in Sing Screen
|
||||||
|
|||||||
@@ -659,7 +659,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
_sso = CParty.GetSongSelectionOptions();
|
_sso = CParty.GetSongSelectionOptions();
|
||||||
CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, _sso.Sorting.SearchString, _sso.Sorting.ShowDuetSongs);
|
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;
|
_SearchText = _sso.Sorting.SearchString;
|
||||||
|
|
||||||
CGame.EnterNormalGame();
|
CGame.EnterNormalGame();
|
||||||
@@ -744,8 +744,6 @@ namespace Vocaluxe.Screens
|
|||||||
base.OnClose();
|
base.OnClose();
|
||||||
CBackgroundMusic.Disabled = false;
|
CBackgroundMusic.Disabled = false;
|
||||||
SongMenus[htSongMenus(SongMenu)].OnHide();
|
SongMenus[htSongMenus(SongMenu)].OnHide();
|
||||||
|
|
||||||
CParty.SetSearchString(_SearchText, _SearchActive);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ApplyVolume()
|
public override void ApplyVolume()
|
||||||
@@ -794,10 +792,10 @@ namespace Vocaluxe.Screens
|
|||||||
if (_sso.Selection.PartyMode)
|
if (_sso.Selection.PartyMode)
|
||||||
{
|
{
|
||||||
CSongs.Sort(_sso.Sorting.SongSorting, _sso.Sorting.Tabs, _sso.Sorting.IgnoreArticles, _sso.Sorting.SearchString, _sso.Sorting.ShowDuetSongs);
|
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;
|
_SearchText = _sso.Sorting.SearchString;
|
||||||
|
|
||||||
ClosePlaylist();
|
ClosePlaylist();
|
||||||
Playlists[htPlaylists(Playlist)].ClosePlaylist();
|
|
||||||
ToggleSongOptions(ESongOptionsView.None);
|
ToggleSongOptions(ESongOptionsView.None);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1078,31 +1076,37 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
private void ApplyNewSearchFilter(string NewFilterString)
|
private void ApplyNewSearchFilter(string NewFilterString)
|
||||||
{
|
{
|
||||||
int song = SongMenus[htSongMenus(SongMenu)].GetSelectedSong();
|
CParty.SetSearchString(NewFilterString, _SearchActive);
|
||||||
int id = -1;
|
_sso = CParty.GetSongSelectionOptions();
|
||||||
if (song > -1 && song < CSongs.NumVisibleSongs)
|
|
||||||
{
|
bool refresh = false;
|
||||||
id = CSongs.VisibleSongs[song].ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
_SearchText = NewFilterString;
|
_SearchText = NewFilterString;
|
||||||
CSongs.SearchFilter = _SearchText;
|
|
||||||
|
|
||||||
if (NewFilterString != String.Empty)
|
int SongIndex = SongMenus[htSongMenus(SongMenu)].GetSelectedSong();
|
||||||
CSongs.Category = 0;
|
int SongID = -1;
|
||||||
else
|
if (SongIndex != -1 && CSongs.NumVisibleSongs > 0 && CSongs.NumVisibleSongs > SongIndex)
|
||||||
CSongs.Category = -1;
|
|
||||||
|
|
||||||
if (id > -1)
|
|
||||||
{
|
{
|
||||||
if (CSongs.NumVisibleSongs > 0)
|
SongID = CSongs.VisibleSongs[SongIndex].ID;
|
||||||
{
|
|
||||||
if (id != CSongs.VisibleSongs[0].ID)
|
|
||||||
SongMenus[htSongMenus(SongMenu)].OnHide();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CSongs.NumVisibleSongs == 0)
|
if (NewFilterString == String.Empty && _sso.Sorting.Tabs == EOffOn.TR_CONFIG_ON)
|
||||||
|
{
|
||||||
|
CSongs.Category = -1;
|
||||||
|
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)
|
||||||
|
refresh = true;
|
||||||
|
|
||||||
|
if (refresh)
|
||||||
SongMenus[htSongMenus(SongMenu)].OnHide();
|
SongMenus[htSongMenus(SongMenu)].OnHide();
|
||||||
|
|
||||||
SongMenus[htSongMenus(SongMenu)].OnShow();
|
SongMenus[htSongMenus(SongMenu)].OnShow();
|
||||||
@@ -1250,10 +1254,14 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
private void ClosePlaylist()
|
private void ClosePlaylist()
|
||||||
{
|
{
|
||||||
SongMenus[htSongMenus(SongMenu)].SetSmallView(false);
|
if (Playlists[htPlaylists(Playlist)].Visible || _PlaylistActive)
|
||||||
_PlaylistActive = false;
|
{
|
||||||
Playlists[htPlaylists(Playlist)].Selected = _PlaylistActive;
|
SongMenus[htSongMenus(SongMenu)].SetSmallView(false);
|
||||||
SongMenus[htSongMenus(SongMenu)].SetActive(!_PlaylistActive);
|
_PlaylistActive = false;
|
||||||
|
Playlists[htPlaylists(Playlist)].Selected = _PlaylistActive;
|
||||||
|
SongMenus[htSongMenus(SongMenu)].SetActive(!_PlaylistActive);
|
||||||
|
Playlists[htPlaylists(Playlist)].ClosePlaylist();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdatePlaylistNames()
|
private void UpdatePlaylistNames()
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Selection.SongIndex = -1;
|
_ScreenSongOptions.Selection.SongIndex = -1;
|
||||||
|
|
||||||
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
||||||
_ScreenSongOptions.Sorting.SearchStringVisible = false;
|
_ScreenSongOptions.Sorting.SearchActive = false;
|
||||||
_ScreenSongOptions.Sorting.ShowDuetSongs = true;
|
_ScreenSongOptions.Sorting.ShowDuetSongs = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,6 +27,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
_ScreenSongOptions.Sorting.SongSorting = _Base.Config.GetSongSorting();
|
_ScreenSongOptions.Sorting.SongSorting = _Base.Config.GetSongSorting();
|
||||||
_ScreenSongOptions.Sorting.Tabs = _Base.Config.GetTabs();
|
_ScreenSongOptions.Sorting.Tabs = _Base.Config.GetTabs();
|
||||||
|
|
||||||
|
if (_ScreenSongOptions.Sorting.SearchActive)
|
||||||
|
_ScreenSongOptions.Sorting.Tabs = EOffOn.TR_CONFIG_OFF;
|
||||||
|
|
||||||
_ScreenSongOptions.Sorting.IgnoreArticles = _Base.Config.GetIgnoreArticles();
|
_ScreenSongOptions.Sorting.IgnoreArticles = _Base.Config.GetIgnoreArticles();
|
||||||
|
|
||||||
return _ScreenSongOptions;
|
return _ScreenSongOptions;
|
||||||
@@ -35,7 +39,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public override void SetSearchString(string SearchString, bool Visible)
|
public override void SetSearchString(string SearchString, bool Visible)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
_ScreenSongOptions.Sorting.SearchString = SearchString;
|
||||||
_ScreenSongOptions.Sorting.SearchStringVisible = Visible;
|
_ScreenSongOptions.Sorting.SearchActive = Visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public EOffOn Tabs;
|
public EOffOn Tabs;
|
||||||
public EOffOn IgnoreArticles;
|
public EOffOn IgnoreArticles;
|
||||||
public string SearchString;
|
public string SearchString;
|
||||||
public bool SearchStringVisible;
|
public bool SearchActive;
|
||||||
public bool ShowDuetSongs;
|
public bool ShowDuetSongs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user