Some Optimizations

This commit is contained in:
Pr3di committed 2016-11-25 20:06:11 +01:00
1 parent f0a0437270
commit 7f0faafdae
3 files changed
+6 -9

No files matched your search

@@ -135,8 +135,8 @@ namespace VocaluxeLib.PartyModes.Challenge
//build joker config slide
_SelectSlides[_SelectSlideRefillJokers].Clear();
_SelectSlides[_SelectSlideRefillJokers].AddValue(CBase.Language.Translate("TR_BUTTON_NO", PartyModeID));
_SelectSlides[_SelectSlideRefillJokers].AddValue(CBase.Language.Translate("TR_BUTTON_YES", PartyModeID));
_SelectSlides[_SelectSlideRefillJokers].AddValue("TR_BUTTON_NO");
_SelectSlides[_SelectSlideRefillJokers].AddValue("TR_BUTTON_YES");
_SelectSlides[_SelectSlideRefillJokers].SelectLastValue();
_UpdateMicsAtOnce();
@@ -152,7 +152,7 @@ namespace VocaluxeLib.PartyModes.Challenge
_PartyMode.GameData.NumPlayerAtOnce = _SelectSlides[_SelectSlideNumMics].Selection + _PartyMode.MinPlayers;
_PartyMode.GameData.NumRounds = (_SelectSlides[_SelectSlideNumRounds].Selection + 1) * _RoundSteps;
_PartyMode.GameData.NumJokers = _SelectSlides[_SelectSlideNumJokers].Selection + 1;
_PartyMode.GameData.RefillJokers = (_SelectSlides[_SelectSlideRefillJokers].Selection == 1) ? true : false;
_PartyMode.GameData.RefillJokers = _SelectSlides[_SelectSlideRefillJokers].Selection == 1;
_UpdateMicsAtOnce();
_SetRoundSteps();
@@ -376,7 +376,7 @@ namespace VocaluxeLib.Menu.SongMenu
List<SDBScoreEntry> _Scores = CBase.DataBase.LoadScore(song.ID,EGameMode.TR_GAMEMODE_NORMAL, EHighscoreStyle.TR_CONFIG_HIGHSCORE_LIST_ALL);
List<String> players = new List<string>();
if (_RecordStyle.Equals(ERecordStyle.RECORDSTYLE_ALL))
if (_RecordStyle == ERecordStyle.RECORDSTYLE_ALL)
{
for(int i = 0; i < _Records.Count; i++)
{
@@ -401,7 +401,7 @@ namespace VocaluxeLib.Menu.SongMenu
String recordName = "";
if (_RecordStyle.Equals(ERecordStyle.RECORDSTYLE_DIFFICULTY))
if (_RecordStyle == ERecordStyle.RECORDSTYLE_DIFFICULTY)
{
recordName = score.Name + score.Difficulty;
}
@@ -417,7 +417,7 @@ namespace VocaluxeLib.Menu.SongMenu
{
score = _Scores[k];
if (_RecordStyle.Equals(ERecordStyle.RECORDSTYLE_DIFFICULTY))
if (_RecordStyle == ERecordStyle.RECORDSTYLE_DIFFICULTY)
{
recordName = score.Name + score.Difficulty;
}
-3
View File
@@ -151,9 +151,6 @@
<Compile Include="Utils\Player\CSoundPlayer.cs" />
<Compile Include="Xml\SFieldInfo.cs" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>