Merge branch 'develop' of github.com:Vocaluxe/Vocaluxe into develop
This commit is contained in:
commit
dbcc30adb5
225 files changed
+14981
-13576
No files matched your search
+19
-14
@@ -3,32 +3,37 @@ Output/Songs
|
|||||||
*.mp4
|
*.mp4
|
||||||
*.pdb
|
*.pdb
|
||||||
/Output/Benchmark.log
|
/Output/Benchmark.log
|
||||||
|
|
||||||
/Output/CoverDB.sqlite
|
/Output/CoverDB.sqlite
|
||||||
|
|
||||||
/Output/HighscoreDB.sqlite
|
/Output/HighscoreDB.sqlite
|
||||||
|
|
||||||
/Output/PartyModes/*/Code/*
|
/Output/PartyModes/*/Code/*
|
||||||
|
|
||||||
/Output/Vocaluxe.exe*
|
/Output/Vocaluxe.exe*
|
||||||
|
|
||||||
/Output/Vocaluxe.vshost.exe*
|
/Output/Vocaluxe.vshost.exe*
|
||||||
|
|
||||||
/Output/VocaluxeLib.dll
|
/Output/VocaluxeLib.dll
|
||||||
|
|
||||||
*.psess
|
*.psess
|
||||||
|
|
||||||
/*.vsp
|
/*.vsp
|
||||||
|
|
||||||
/*.ctl
|
/*.ctl
|
||||||
|
|
||||||
/Output/Registration.xml
|
/Output/Registration.xml
|
||||||
|
|
||||||
/Vocaluxe.suo
|
/Vocaluxe.suo
|
||||||
/Vocaluxe/Vocaluxe.csproj.user
|
/Vocaluxe/Vocaluxe.csproj.user
|
||||||
|
|
||||||
/Output/Config.xml
|
/Output/Config.xml
|
||||||
|
|
||||||
*.ipch
|
*.ipch
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
/Output/Playlists/*.xml
|
||||||
|
/Output/x64/gstreamer/GstreamerHelper.dll
|
||||||
|
*.tlog
|
||||||
|
*.suo
|
||||||
|
*.obj
|
||||||
|
*.lastbuildstate
|
||||||
|
*.pch
|
||||||
|
*.idb
|
||||||
|
*.exp
|
||||||
|
*.ilk
|
||||||
|
*.lib
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.codeanalysis*
|
||||||
|
*.nativecodeanalysis*
|
||||||
|
*.lastcodeanalysissucceeded
|
||||||
|
/PartyModes/*/*/*.dll
|
||||||
|
|
||||||
|
*.Cache
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RuleSet Name="Kopie von "Microsoft Extended Correctness Rules"" Description="These rules expand on the basic correctness rules to maximize the logic and framework usage errors that are reported. Extra emphasis is placed on specific scenarios such as COM interop and mobile applications. Consider including this rule set if one of these scenarios applies to your project or to find additional problems in your project." ToolsVersion="10.0">
|
||||||
|
<Include Path="basiccorrectnessrules.ruleset" Action="Default" />
|
||||||
|
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
|
||||||
|
<Rule Id="CA1032" Action="Warning" />
|
||||||
|
<Rule Id="CA1054" Action="Warning" />
|
||||||
|
<Rule Id="CA1055" Action="Warning" />
|
||||||
|
<Rule Id="CA1056" Action="Warning" />
|
||||||
|
<Rule Id="CA1057" Action="Warning" />
|
||||||
|
<Rule Id="CA1060" Action="None" />
|
||||||
|
<Rule Id="CA1301" Action="None" />
|
||||||
|
<Rule Id="CA1303" Action="None" />
|
||||||
|
<Rule Id="CA1308" Action="None" />
|
||||||
|
<Rule Id="CA1401" Action="None" />
|
||||||
|
<Rule Id="CA1402" Action="Warning" />
|
||||||
|
<Rule Id="CA1406" Action="Warning" />
|
||||||
|
<Rule Id="CA1407" Action="Warning" />
|
||||||
|
<Rule Id="CA1408" Action="Warning" />
|
||||||
|
<Rule Id="CA1409" Action="Warning" />
|
||||||
|
<Rule Id="CA1411" Action="Warning" />
|
||||||
|
<Rule Id="CA1412" Action="Warning" />
|
||||||
|
<Rule Id="CA1413" Action="Warning" />
|
||||||
|
<Rule Id="CA1414" Action="Warning" />
|
||||||
|
<Rule Id="CA1600" Action="Warning" />
|
||||||
|
<Rule Id="CA1601" Action="Warning" />
|
||||||
|
<Rule Id="CA1821" Action="Warning" />
|
||||||
|
<Rule Id="CA1824" Action="Warning" />
|
||||||
|
<Rule Id="CA2001" Action="Warning" />
|
||||||
|
<Rule Id="CA2003" Action="Warning" />
|
||||||
|
<Rule Id="CA2101" Action="None" />
|
||||||
|
<Rule Id="CA2135" Action="Warning" />
|
||||||
|
<Rule Id="CA2136" Action="Warning" />
|
||||||
|
<Rule Id="CA2139" Action="Warning" />
|
||||||
|
<Rule Id="CA2142" Action="Warning" />
|
||||||
|
<Rule Id="CA2143" Action="Warning" />
|
||||||
|
<Rule Id="CA2144" Action="Warning" />
|
||||||
|
<Rule Id="CA2145" Action="Warning" />
|
||||||
|
<Rule Id="CA2204" Action="Warning" />
|
||||||
|
<Rule Id="CA2211" Action="Warning" />
|
||||||
|
<Rule Id="CA2217" Action="Warning" />
|
||||||
|
<Rule Id="CA2218" Action="Warning" />
|
||||||
|
<Rule Id="CA2219" Action="Warning" />
|
||||||
|
<Rule Id="CA2225" Action="Warning" />
|
||||||
|
<Rule Id="CA2228" Action="Warning" />
|
||||||
|
<Rule Id="CA2230" Action="Warning" />
|
||||||
|
<Rule Id="CA2233" Action="Warning" />
|
||||||
|
<Rule Id="CA2234" Action="Warning" />
|
||||||
|
<Rule Id="CA2243" Action="Warning" />
|
||||||
|
</Rules>
|
||||||
|
</RuleSet>
|
||||||
@@ -1540,8 +1540,6 @@ yyGrowStack(pParser);
|
|||||||
sqlite3IdListDelete( pParse.db, ref ( yypminor.yy90 ).b );
|
sqlite3IdListDelete( pParse.db, ref ( yypminor.yy90 ).b );
|
||||||
//#line 1473 "parse.c"
|
//#line 1473 "parse.c"
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break; /* If no destructor action specified: do nothing */
|
break; /* If no destructor action specified: do nothing */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,11 +184,9 @@ void GstreamerAudioStream::RefreshDuration()
|
|||||||
{
|
{
|
||||||
if(Element)
|
if(Element)
|
||||||
{
|
{
|
||||||
gint64 time;
|
gint64 time = -1000;
|
||||||
if(!gst_element_query_duration(Element, GST_FORMAT_TIME, &time)) {
|
if(gst_element_query_duration(Element, GST_FORMAT_TIME, &time))
|
||||||
LogError("Could not query duration");
|
Duration = (gfloat)((gdouble)(time/GST_SECOND));
|
||||||
}
|
|
||||||
Duration = (gfloat)((gdouble)(time/GST_SECOND));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,9 +194,11 @@ float GstreamerAudioStream::GetPosition()
|
|||||||
{
|
{
|
||||||
if(Element)
|
if(Element)
|
||||||
{
|
{
|
||||||
gint64 time;
|
gint64 time = 0;
|
||||||
gst_element_query_position(Element, GST_FORMAT_TIME, &time);
|
if (gst_element_query_position(Element, GST_FORMAT_TIME, &time))
|
||||||
return (float)((gdouble)time/GST_SECOND);
|
return (float)((gdouble)time/GST_SECOND);
|
||||||
|
else
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
else return -1;
|
else return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
<OutDir>..\Output\x64\gstreamer\</OutDir>
|
<OutDir>..\Output\x64\gstreamer\</OutDir>
|
||||||
<IncludePath>$(MSBuildProjectDirectory)\x64\lib\glib-2.0\include;$(MSBuildProjectDirectory)\x64\include\gstreamer-1.0;$(MSBuildProjectDirectory)\x64\include\glib-2.0;$(MSBuildProjectDirectory)\x64\include;$(IncludePath)</IncludePath>
|
<IncludePath>$(MSBuildProjectDirectory)\x64\lib\glib-2.0\include;$(MSBuildProjectDirectory)\x64\include\gstreamer-1.0;$(MSBuildProjectDirectory)\x64\include\glib-2.0;$(MSBuildProjectDirectory)\x64\include;$(IncludePath)</IncludePath>
|
||||||
<LibraryPath>$(MSBuildProjectDirectory)\x64\lib;$(LibraryPath)</LibraryPath>
|
<LibraryPath>$(MSBuildProjectDirectory)\x64\lib;$(LibraryPath)</LibraryPath>
|
||||||
|
<CodeAnalysisRuleSet>..\CheckingRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWin|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWin|Win32'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ DllExport bool InitVideo()
|
|||||||
#if _WIN64
|
#if _WIN64
|
||||||
SetDllDirectory(L".\\x64\\gstreamer");
|
SetDllDirectory(L".\\x64\\gstreamer");
|
||||||
#else
|
#else
|
||||||
SetDllDirectory(L".\\x86\gstreamer");
|
SetDllDirectory(L".\\x86\\gstreamer");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gst_init(NULL, NULL);
|
gst_init(NULL, NULL);
|
||||||
@@ -65,7 +65,7 @@ DllExport bool CloseVideo(int Stream)
|
|||||||
|
|
||||||
DllExport int GetVideoNumStreams()
|
DllExport int GetVideoNumStreams()
|
||||||
{
|
{
|
||||||
return VideoStreams.size();
|
return (int) VideoStreams.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
DllExport float GetVideoLength(int Stream)
|
DllExport float GetVideoLength(int Stream)
|
||||||
@@ -85,6 +85,13 @@ DllExport struct ApplicationFrame GetFrame(int Stream, float Time)
|
|||||||
{
|
{
|
||||||
return it->second->GetFrame(Time);
|
return it->second->GetFrame(Time);
|
||||||
}
|
}
|
||||||
|
struct ApplicationFrame returnFrame;
|
||||||
|
returnFrame.size=0;
|
||||||
|
returnFrame.width=0;
|
||||||
|
returnFrame.height=0;
|
||||||
|
returnFrame.data=NULL;
|
||||||
|
returnFrame.videotime=0;
|
||||||
|
return returnFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
DllExport bool Skip(int Stream, float Start, float Gap)
|
DllExport bool Skip(int Stream, float Start, float Gap)
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ struct ApplicationFrame GstreamerVideoStream::GetFrame(float Time)
|
|||||||
|
|
||||||
gst_buffer_map(Buffer, &Mapinfo, GST_MAP_READ);
|
gst_buffer_map(Buffer, &Mapinfo, GST_MAP_READ);
|
||||||
|
|
||||||
Size = Mapinfo.size;
|
Size = (int) Mapinfo.size;
|
||||||
gst_structure_get_int (BufferStructure, "width", &Width);
|
gst_structure_get_int (BufferStructure, "width", &Width);
|
||||||
gst_structure_get_int (BufferStructure, "height", &Height);
|
gst_structure_get_int (BufferStructure, "height", &Height);
|
||||||
VideoTime = (float) (Buffer->pts / GST_SECOND);
|
VideoTime = (float) (Buffer->pts / GST_SECOND);
|
||||||
@@ -210,7 +210,7 @@ struct ApplicationFrame GstreamerVideoStream::GetFrame(float Time)
|
|||||||
|
|
||||||
bool GstreamerVideoStream::Skip(float Start, float Gap)
|
bool GstreamerVideoStream::Skip(float Start, float Gap)
|
||||||
{
|
{
|
||||||
if(!gst_element_seek_simple(Element, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), (Start + Gap) * GST_SECOND))
|
if(!gst_element_seek_simple(Element, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), (gint64)((Start + Gap) * GST_SECOND)))
|
||||||
{
|
{
|
||||||
LogVideoError("Seek failed");
|
LogVideoError("Seek failed");
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ private:
|
|||||||
volatile gboolean Copying;
|
volatile gboolean Copying;
|
||||||
|
|
||||||
gboolean Paused;
|
gboolean Paused;
|
||||||
gboolean Finished;
|
bool Finished;
|
||||||
|
|
||||||
gfloat Duration;
|
gfloat Duration;
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
+28
-26
@@ -1,29 +1,31 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<root>
|
<root>
|
||||||
<Font1>
|
<Fonts>
|
||||||
<Name>Normal</Name>
|
<Font1>
|
||||||
<Outline>0,00</Outline>
|
<Name>Normal</Name>
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
<Outline>0,00</Outline>
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
<OutlineColorR>0,00</OutlineColorR>
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
<OutlineColorG>0,00</OutlineColorG>
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
<OutlineColorB>0,00</OutlineColorB>
|
||||||
<Folder>FreeSans</Folder>
|
<OutlineColorA>1,00</OutlineColorA>
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
<Folder>FreeSans</Folder>
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
<FileNormal>FreeSans.ttf</FileNormal>
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
<FileBold>FreeSansBold.ttf</FileBold>
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
||||||
</Font1>
|
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
||||||
<Font2>
|
</Font1>
|
||||||
<Name>Outline</Name>
|
<Font2>
|
||||||
<Outline>0,10</Outline>
|
<Name>Outline</Name>
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
<Outline>0,10</Outline>
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
<OutlineColorR>0,00</OutlineColorR>
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
<OutlineColorG>0,00</OutlineColorG>
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
<OutlineColorB>0,00</OutlineColorB>
|
||||||
<Folder>FreeSans</Folder>
|
<OutlineColorA>1,00</OutlineColorA>
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
<Folder>FreeSans</Folder>
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
<FileNormal>FreeSans.ttf</FileNormal>
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
<FileBold>FreeSansBold.ttf</FileBold>
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
||||||
</Font2>
|
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
||||||
|
</Font2>
|
||||||
|
</Fonts>
|
||||||
</root>
|
</root>
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Nederlands</string>
|
||||||
|
<string name="TR_PROGRAM_NAME">Vocaluxe</string>
|
||||||
|
<string name="TR_GENERAL_AND">en</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Afsluiten</string>
|
||||||
|
<string name="TR_BUTTON_SAVE">Opslaan</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Terug</string>
|
||||||
|
<string name="TR_BUTTON_START">Start</string>
|
||||||
|
<string name="TR_DEBUG_AUDIO_STREAMS">Geluidstreams</string>
|
||||||
|
<string name="TR_DEBUG_VIDEO_STREAMS">Videostreams</string>
|
||||||
|
<string name="TR_DEBUG_TEXTURES">Structuren</string>
|
||||||
|
<string name="TR_DEBUG_TONE_ABS">ToneAbs</string>
|
||||||
|
<string name="TR_DEBUG_MAX_VOLUME">Maximaal Volume</string>
|
||||||
|
<string name="TR_DEBUG_SONGS">Liedjes geladen</string>
|
||||||
|
<string name="TR_DEBUG_MOUSE">Muis</string>
|
||||||
|
<string name="TR_GAMEMODE_NORMAL">Normaal</string>
|
||||||
|
<string name="TR_GAMEMODE_DUET">Duet</string>
|
||||||
|
<string name="TR_GAMEMODE_MEDLEY">Medley</string>
|
||||||
|
<string name="TR_GAMEMODE_SHORTSONG">Korte versie</string>
|
||||||
|
<string name="TR_RATING_VOCAL_HERO">Vocale Held</string>
|
||||||
|
<string name="TR_RATING_SUPERSTAR">Superster</string>
|
||||||
|
<string name="TR_RATING_LEAD_SINGER">Hoofdzanger</string>
|
||||||
|
<string name="TR_RATING_RISING_STAR">Ster in wording</string>
|
||||||
|
<string name="TR_RATING_HOPEFUL">Hoopvol</string>
|
||||||
|
<string name="TR_RATING_WANNABE">Wannabe</string>
|
||||||
|
<string name="TR_RATING_AMATEUR">Amateur</string>
|
||||||
|
<string name="TR_RATING_TONE_DEAF">Toondoof</string>
|
||||||
|
<string name="TR_CONFIG_SOFTWARE">Software</string>
|
||||||
|
<string name="TR_CONFIG_OPENGL">OpenGL</string>
|
||||||
|
<string name="TR_CONFIG_DIRECT3D">Direct3D</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_LOWEST">Laagst</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_LOW">Laag</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_MEDIUM">Medium</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_HIGH">Hoog</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_HIGHEST">Hoogst</string>
|
||||||
|
<string name="TR_CONFIG_OFF">Uit</string>
|
||||||
|
<string name="TR_CONFIG_ON">Aan</string>
|
||||||
|
<string name="TR_CONFIG_ONLY_FPS">Alleen FPS</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL1">Niveau 1</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL2">Niveau 2</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL3">Niveau 3</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL_MAX">Max</string>
|
||||||
|
<string name="TR_CONFIG_LIST">Lijst</string>
|
||||||
|
<string name="TR_CONFIG_DREIDEL">Dreidel</string>
|
||||||
|
<string name="TR_CONFIG_TILE_BOARD">Tegels</string>
|
||||||
|
<string name="TR_CONFIG_BOOK">Boek</string>
|
||||||
|
<string name="TR_CONFIG_COVERLOADING_ONDEMAND">Op aanvraag</string>
|
||||||
|
<string name="TR_CONFIG_COVERLOADING_ATSTART">Bij het opstarten</string>
|
||||||
|
<string name="TR_CONFIG_COVERLOADING_DYNAMIC">Dynamisch</string>
|
||||||
|
<string name="TR_CONFIG_NONE">Geen</string>
|
||||||
|
<string name="TR_CONFIG_RANDOM">Willekeurig</string>
|
||||||
|
<string name="TR_CONFIG_FOLDER">Map</string>
|
||||||
|
<string name="TR_CONFIG_ARTIST">Artiest</string>
|
||||||
|
<string name="TR_CONFIG_ARTIST_LETTER">Artiestletter</string>
|
||||||
|
<string name="TR_CONFIG_TITLE_LETTER">Tegelletter</string>
|
||||||
|
<string name="TR_CONFIG_EDITION">Editie</string>
|
||||||
|
<string name="TR_CONFIG_GENRE">Genre</string>
|
||||||
|
<string name="TR_CONFIG_YEAR">Jaar</string>
|
||||||
|
<string name="TR_CONFIG_DECADE">Decennium</string>
|
||||||
|
<string name="TR_CONFIG_LANGUAGE">Taal</string>
|
||||||
|
<string name="TR_CONFIG_EASY">Eenvoudig</string>
|
||||||
|
<string name="TR_CONFIG_NORMAL">Normaal</string>
|
||||||
|
<string name="TR_CONFIG_HARD">Moeilijk</string>
|
||||||
|
<string name="TR_CONFIG_TIMERMODE_CURRENT">Huidig</string>
|
||||||
|
<string name="TR_CONFIG_TIMERMODE_REMAINING">Te gaan</string>
|
||||||
|
<string name="TR_CONFIG_TIMERMODE_TOTAL">Totaal</string>
|
||||||
|
<string name="TR_CONFIG_TIMERLOOK_NORMAL">Normaal</string>
|
||||||
|
<string name="TR_CONFIG_TIMERLOOK_EXPANDED">Uitgebreid</string>
|
||||||
|
<string name="TR_CONFIG_OWN_MUSIC">Eigen Muziek en Achtergrondmuziek</string>
|
||||||
|
<string name="TR_CONFIG_NO_OWN_MUSIC">Geen eigen Muziek</string>
|
||||||
|
<string name="TR_CONFIG_ONLY_OWN_MUSIC">Alleen eigen Muziek</string>
|
||||||
|
<string name="TR_CONFIG_FADEPLAYERINFO_ALL">Alles</string>
|
||||||
|
<string name="TR_CONFIG_FADEPLAYERINFO_INFO">Alleen namen en avatars</string>
|
||||||
|
<string name="TR_CONFIG_FADEPLAYERINFO_OFF">Niets</string>
|
||||||
|
<string name="TR_SCREENLOAD_LOADING">Laden</string>
|
||||||
|
<string name="TR_SCREENLOAD_TOTAL">Totaal</string>
|
||||||
|
<string name="TR_SCREENLOAD_SONGS">Liedjes</string>
|
||||||
|
<string name="TR_SCREENLOAD_LOADED">geladen</string>
|
||||||
|
<string name="TR_SCREENMAIN_MENU">Hoofdmenu</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_SING">Zing</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_PARTY">Party</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_OPTIONS">Instellingen</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_PROFILES">Profielen</string>
|
||||||
|
<string name="TR_SCREENPARTY_TITLE">Partymodus Selectie</string>
|
||||||
|
<string name="TR_SCREENPARTY_MODES">Partymodus</string>
|
||||||
|
<string name="TR_SCREENPARTY_DESCRIPTION">Omschrijving</string>
|
||||||
|
<string name="TR_SCREENPARTY_AUTHOR">Auteur</string>
|
||||||
|
<string name="TR_SCREENPARTY_VERSION">Versie</string>
|
||||||
|
<string name="TR_SCREENPARTY_ERROR">Kan deze Partymodus niet laden</string>
|
||||||
|
<string name="TR_SCREENPARTY_TARGETAUDIENCE">Doelgroep</string>
|
||||||
|
<string name="TR_SCREENPARTY_NOTEAMS">Geen teams</string>
|
||||||
|
<string name="TR_SCREENPARTY_NUMTEAMS">Aantal teams</string>
|
||||||
|
<string name="TR_SCREENPARTY_NUMPLAYERS">Aantal spelers</string>
|
||||||
|
<string name="TR_SCREENNAMES_MENU">Spelerselectie</string>
|
||||||
|
<string name="TR_SCREENNAMES_PLAYER">Speler</string>
|
||||||
|
<string name="TR_SCREENNAMES_1PLAYER">1 Speler</string>
|
||||||
|
<string name="TR_SCREENNAMES_2PLAYER">2 Spelers</string>
|
||||||
|
<string name="TR_SCREENNAMES_3PLAYER">3 Spelers</string>
|
||||||
|
<string name="TR_SCREENNAMES_4PLAYER">4 Spelers</string>
|
||||||
|
<string name="TR_SCREENNAMES_5PLAYER">5 Spelers</string>
|
||||||
|
<string name="TR_SCREENNAMES_6PLAYER">6 Spelers</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_MICS_SG">Waarschuwing: Er is geen microfoon toegewezen aan speler %v!</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_MICS_PL">Waarschuwing: Er zijn geen microfoons toegewezen aan spelers %v!</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_PROFILES_SG">Waarschuwing: Er is geen profiel toegewezen aan speler %v!</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_PROFILES_PL">Waarschuwing: Er zijn geen profielen toegewezen aan spelers %v!</string>
|
||||||
|
<string name="TR_SCREENSONG_MENU">Liedjesselectie</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_SING">Zing</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_PLAYLIST">Toevoegen aan afspeellijst</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_CANCEL">Sluiten</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_RANDOM">Kies een willekeurig liedje</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_RANDOMCAT">Kies een willekeurige categorie</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_SINGALL">Zing alle liedjes</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_SINGALLVISIBLE">Zing alle zichtbare liedjes</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_OPENPLAYLIST">Open afspeellijst</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_RANDOMMEDLEY">Zing een willekeurige medley</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_STARTMEDLEY">Zing medleyliedjes</string>
|
||||||
|
<string name="TR_SCREENSONG_NEWPLAYLIST">Nieuwe afspeellijst</string>
|
||||||
|
<string name="TR_SCREENSONG_SONGOPTIONS">Liedjesopties</string>
|
||||||
|
<string name="TR_SCREENSONG_SEARCH">Zoek:</string>
|
||||||
|
<string name="TR_SCREENSONG_NOLANGUAGE">Geen taal</string>
|
||||||
|
<string name="TR_SCREENSONG_NOYEAR">Geen jaar</string>
|
||||||
|
<string name="TR_SCREENSONG_NOGENRE">Geen genre</string>
|
||||||
|
<string name="TR_SCREENSONG_NOEDITION">Geen editie</string>
|
||||||
|
<string name="TR_SCREENSONG_ALLSONGS">Alle liedjes</string>
|
||||||
|
<string name="TR_SCREENSONG_NUMSONGS">(%v Liedjes)</string>
|
||||||
|
<string name="TR_SCREENSONG_NUMSONG">(%v Liedje)</string>
|
||||||
|
<string name="TR_SCREENSING_PAUSE">Pauze</string>
|
||||||
|
<string name="TR_SCREENSING_BUTTON_CANCEL">Stop met zingen</string>
|
||||||
|
<string name="TR_SCREENSING_BUTTON_CONTINUE">Doorgaan</string>
|
||||||
|
<string name="TR_SCREENSING_BUTTON_SKIP">Sla dit liedje over</string>
|
||||||
|
<string name="TR_SCREENSCORE_SCORES">Scores</string>
|
||||||
|
<string name="TR_SCREENSCORE_RATING">Beoordeling</string>
|
||||||
|
<string name="TR_SCREENSCORE_POINTS">Punten</string>
|
||||||
|
<string name="TR_SCREENSCORE_GAMEDIFFICULTY">Moeilijkheidsgraad</string>
|
||||||
|
<string name="TR_SCREENSCORE_OVERALLSCORE">Totaalscore</string>
|
||||||
|
<string name="TR_SCREENHIGHSCORE_HIGHSCORE">Highscore</string>
|
||||||
|
<string name="TR_SCREENPROFILES_PROFILES">Profielen</string>
|
||||||
|
<string name="TR_SCREENPROFILES_PLAYERNAME">Spelernaam</string>
|
||||||
|
<string name="TR_SCREENPROFILES_GAMEDIFFICULTY">Moeilijkheidsgraad</string>
|
||||||
|
<string name="TR_SCREENPROFILES_AVATAR">Avatar</string>
|
||||||
|
<string name="TR_SCREENPROFILES_GUESTPROFILE">Gastprofiel</string>
|
||||||
|
<string name="TR_SCREENPROFILES_ACTIVE">Actief</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_NEW">Nieuw</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_DELETE">Verwijderen</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_TAKESNAPSHOT">Maak Screenshot</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_SAVESNAPSHOT">Bewaar Screenshot</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_DISCARDSNAPSHOT">Verwijder Screenshot</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_WEBCAM">Webcam</string>
|
||||||
|
<string name="TR_SCREENO_OPTIONS">Menu-opties</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_GAME">Spel</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_SOUND">Geluid</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_RECORD">Opname</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_VIDEO">Video</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_LYRICS">Songteksten</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_THEME">Thema</string>
|
||||||
|
<string name="TR_SCREENOGAME_OPTIONS">Spelinstellingen</string>
|
||||||
|
<string name="TR_SCREENOGAME_LANGUAGE">Taal</string>
|
||||||
|
<string name="TR_SCREENOGAME_DEBUGLEVEL">Debug Niveau</string>
|
||||||
|
<string name="TR_SCREENOGAME_SONGMENU">Liedjesmenu</string>
|
||||||
|
<string name="TR_SCREENOGAME_SONGSORTING">Sorteren Liedjes</string>
|
||||||
|
<string name="TR_SCREENOGAME_TABS">Tabs</string>
|
||||||
|
<string name="TR_SCREENOGAME_DIFFICULTY">Moeilijkheidsgraad</string>
|
||||||
|
<string name="TR_SCREENOGAME_TIMERMODE">Timermodus</string>
|
||||||
|
<string name="TR_SCREENORECORD_OPTIONS">Opname-opties</string>
|
||||||
|
<string name="TR_SCREENORECORD_DEVICE">Apparaat</string>
|
||||||
|
<string name="TR_SCREENORECORD_INPUT">Input</string>
|
||||||
|
<string name="TR_SCREENORECORD_CHANNEL_1">Kanaal 1</string>
|
||||||
|
<string name="TR_SCREENORECORD_CHANNEL_2">Kanaal 2</string>
|
||||||
|
<string name="TR_SCREENORECORD_MIC_DELAY">Microfoonvertraging</string>
|
||||||
|
<string name="TR_SCREENORECORD_MIC_WARNING">Waarschuwing: Ten minste één speler is toegewezen aan twee microfoons.</string>
|
||||||
|
<string name="TR_SCREENORECORD_BUTTON_DELAYTEST">Vertragingstest</string>
|
||||||
|
<string name="TR_SCREENOSOUND_OPTIONS">Geluidsopties</string>
|
||||||
|
<string name="TR_SCREENOSOUND_BACKGROUNDMUSIC">Achtergrondmuziek</string>
|
||||||
|
<string name="TR_SCREENOSOUND_BACKGROUNDMUSICVOLUME">Volume Achtergrondmuziek</string>
|
||||||
|
<string name="TR_SCREENOSOUND_BACKGROUNDMUSICSOURCE">Bron Achtergrondmuziek</string>
|
||||||
|
<string name="TR_SCREENOSOUND_PREVIEWMUSICVOLUME">Preview Muziekvolume</string>
|
||||||
|
<string name="TR_SCREENOSOUND_GAMEMUSICVOLUME">Spel Muziekvolume</string>
|
||||||
|
<string name="TR_SCREENOTHEME_OPTIONS">Thema-opties</string>
|
||||||
|
<string name="TR_SCREENOTHEME_THEME">Thema</string>
|
||||||
|
<string name="TR_SCREENOTHEME_SKIN">Skin</string>
|
||||||
|
<string name="TR_SCREENOTHEME_COVERTHEME">Coverthema</string>
|
||||||
|
<string name="TR_SCREENOTHEME_NOTELINES">Toon Nootlijnen</string>
|
||||||
|
<string name="TR_SCREENOTHEME_TONEHELPER">Toon Toonhelper</string>
|
||||||
|
<string name="TR_SCREENOTHEME_TIMERLOOK">Uiterlijk Timer</string>
|
||||||
|
<string name="TR_SCREENOTHEME_FADEINFO">Fade Spelerinformatie</string>
|
||||||
|
<string name="TR_SCREENOTHEME_COVERLOADING">Gedrag Laden Covers</string>
|
||||||
|
<string name="TR_SCREENOLYRICS_OPTIONS">Songtekstopties</string>
|
||||||
|
<string name="TR_SCREENOLYRICS_STYLE">Stijl</string>
|
||||||
|
<string name="TR_SCREENOLYRICS_ONTOP">Songteksten bovenaan</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_OPTIONS">Video-opties</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_VIDEOBACKGROUNDS">Videoachtergronden</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_VIDEOPREVIEW">Videopreview</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_VIDEOINSONGS">Video tijdens zingen</string>
|
||||||
|
<string name="TR_SCREENO_VIDEO_VIDEOSTOBACKGROUND">Toon huidige achtergrondmuziekvideo</string>
|
||||||
|
<string name="TR_SCREENO_VIDEO_WEBCAMDEVICES">Webcams</string>
|
||||||
|
<string name="TR_SCREENO_VIDEO_WEBCAMCAPABILITIES">Webcaminstellingen</string>
|
||||||
|
<string name="TR_SCREENPVOLUMECONTROL_VOLUME">Volume</string>
|
||||||
|
</resources>
|
||||||
@@ -112,6 +112,7 @@
|
|||||||
<string name="TR_SCREENSONG_BUTTON_SINGALL">Sing all songs</string>
|
<string name="TR_SCREENSONG_BUTTON_SINGALL">Sing all songs</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_SINGALLVISIBLE">Sing all visible songs</string>
|
<string name="TR_SCREENSONG_BUTTON_SINGALLVISIBLE">Sing all visible songs</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_OPENPLAYLIST">Open playlist</string>
|
<string name="TR_SCREENSONG_BUTTON_OPENPLAYLIST">Open playlist</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_OPEN_SELECTED_ITEM">Select</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_RANDOMMEDLEY">Sing a random medley</string>
|
<string name="TR_SCREENSONG_BUTTON_RANDOMMEDLEY">Sing a random medley</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_STARTMEDLEY">Sing medley-songs</string>
|
<string name="TR_SCREENSONG_BUTTON_STARTMEDLEY">Sing medley-songs</string>
|
||||||
<string name="TR_SCREENSONG_NEWPLAYLIST">New Playlist</string>
|
<string name="TR_SCREENSONG_NEWPLAYLIST">New Playlist</string>
|
||||||
|
|||||||
@@ -112,6 +112,7 @@
|
|||||||
<string name="TR_SCREENSONG_BUTTON_SINGALL">Alle Songs singen</string>
|
<string name="TR_SCREENSONG_BUTTON_SINGALL">Alle Songs singen</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_SINGALLVISIBLE">Alle sichtbaren Songs singen</string>
|
<string name="TR_SCREENSONG_BUTTON_SINGALLVISIBLE">Alle sichtbaren Songs singen</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_OPENPLAYLIST">Playlist öffnen</string>
|
<string name="TR_SCREENSONG_BUTTON_OPENPLAYLIST">Playlist öffnen</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_OPEN_SELECTED_ITEM">Auswählen</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_RANDOMMEDLEY">Zufälliges Medley singen</string>
|
<string name="TR_SCREENSONG_BUTTON_RANDOMMEDLEY">Zufälliges Medley singen</string>
|
||||||
<string name="TR_SCREENSONG_BUTTON_STARTMEDLEY">Medley-Songs singen</string>
|
<string name="TR_SCREENSONG_BUTTON_STARTMEDLEY">Medley-Songs singen</string>
|
||||||
<string name="TR_SCREENSONG_NEWPLAYLIST">Neue Playlist</string>
|
<string name="TR_SCREENSONG_NEWPLAYLIST">Neue Playlist</string>
|
||||||
|
|||||||
@@ -0,0 +1,199 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Türkçe</string>
|
||||||
|
<string name="TR_PROGRAM_NAME">Vocaluxe</string>
|
||||||
|
<string name="TR_GENERAL_AND">ve</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Çıkış</string>
|
||||||
|
<string name="TR_BUTTON_SAVE">Kaydet</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Geri</string>
|
||||||
|
<string name="TR_BUTTON_START">Başla</string>
|
||||||
|
<string name="TR_DEBUG_AUDIO_STREAMS">Ses akışları</string>
|
||||||
|
<string name="TR_DEBUG_VIDEO_STREAMS">Video akışları</string>
|
||||||
|
<string name="TR_DEBUG_TEXTURES">Desenler</string>
|
||||||
|
<string name="TR_DEBUG_TONE_ABS">ABS Tonu</string>
|
||||||
|
<string name="TR_DEBUG_MAX_VOLUME">Max Ses</string>
|
||||||
|
<string name="TR_DEBUG_SONGS">Yüklenen şarkılar</string>
|
||||||
|
<string name="TR_DEBUG_MOUSE">Fare</string>
|
||||||
|
<string name="TR_GAMEMODE_NORMAL">Normal</string>
|
||||||
|
<string name="TR_GAMEMODE_DUET">Düet</string>
|
||||||
|
<string name="TR_GAMEMODE_MEDLEY">Potpuri</string>
|
||||||
|
<string name="TR_GAMEMODE_SHORTSONG">Kısa versiyon</string>
|
||||||
|
<string name="TR_RATING_VOCAL_HERO">Sözlü Kahraman</string>
|
||||||
|
<string name="TR_RATING_SUPERSTAR">Süperstar</string>
|
||||||
|
<string name="TR_RATING_LEAD_SINGER">Solist</string>
|
||||||
|
<string name="TR_RATING_RISING_STAR">Yükselen Yıldız</string>
|
||||||
|
<string name="TR_RATING_HOPEFUL">Ümit Vaadeden</string>
|
||||||
|
<string name="TR_RATING_WANNABE">Taklitçi</string>
|
||||||
|
<string name="TR_RATING_AMATEUR">Amatör</string>
|
||||||
|
<string name="TR_RATING_TONE_DEAF">Müzik Kulağı Olmayan</string>
|
||||||
|
<string name="TR_CONFIG_SOFTWARE">Yazılım</string>
|
||||||
|
<string name="TR_CONFIG_OPENGL">OpenGL</string>
|
||||||
|
<string name="TR_CONFIG_DIRECT3D">Direct3D</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_LOWEST">En düşük</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_LOW">Düşük</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_MEDIUM">Orta</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_HIGH">Yüksek</string>
|
||||||
|
<string name="TR_CONFIG_TEXTURE_HIGHEST">En Yüksek</string>
|
||||||
|
<string name="TR_CONFIG_OFF">Kapalı</string>
|
||||||
|
<string name="TR_CONFIG_ON">Açık</string>
|
||||||
|
<string name="TR_CONFIG_ONLY_FPS">Sadece FPS</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL1">Seviye 1</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL2">Seviye 2</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL3">Seviye 3</string>
|
||||||
|
<string name="TR_CONFIG_LEVEL_MAX">Max</string>
|
||||||
|
<string name="TR_CONFIG_LIST">Liste</string>
|
||||||
|
<string name="TR_CONFIG_DREIDEL">Dreidel</string>
|
||||||
|
<string name="TR_CONFIG_TILE_BOARD">Döşemeli Pano</string>
|
||||||
|
<string name="TR_CONFIG_BOOK">Kitap</string>
|
||||||
|
<string name="TR_CONFIG_COVERLOADING_ONDEMAND">İstek Üzerine</string>
|
||||||
|
<string name="TR_CONFIG_COVERLOADING_ATSTART">Başlangıçta</string>
|
||||||
|
<string name="TR_CONFIG_COVERLOADING_DYNAMIC">Dinamik</string>
|
||||||
|
<string name="TR_CONFIG_NONE">Yok</string>
|
||||||
|
<string name="TR_CONFIG_RANDOM">Rasgele</string>
|
||||||
|
<string name="TR_CONFIG_FOLDER">Klasör</string>
|
||||||
|
<string name="TR_CONFIG_ARTIST">Sanatçı</string>
|
||||||
|
<string name="TR_CONFIG_ARTIST_LETTER">Sanatçı Harfi</string>
|
||||||
|
<string name="TR_CONFIG_TITLE_LETTER">Başlık Harfi</string>
|
||||||
|
<string name="TR_CONFIG_EDITION">Basım</string>
|
||||||
|
<string name="TR_CONFIG_GENRE">Tür</string>
|
||||||
|
<string name="TR_CONFIG_YEAR">Yıl</string>
|
||||||
|
<string name="TR_CONFIG_DECADE">On yıl</string>
|
||||||
|
<string name="TR_CONFIG_LANGUAGE">Dil</string>
|
||||||
|
<string name="TR_CONFIG_EASY">Kolay</string>
|
||||||
|
<string name="TR_CONFIG_NORMAL">Normal</string>
|
||||||
|
<string name="TR_CONFIG_HARD">Zor</string>
|
||||||
|
<string name="TR_CONFIG_TIMERMODE_CURRENT">Şimdiki</string>
|
||||||
|
<string name="TR_CONFIG_TIMERMODE_REMAINING">Kalan</string>
|
||||||
|
<string name="TR_CONFIG_TIMERMODE_TOTAL">Toplam</string>
|
||||||
|
<string name="TR_CONFIG_TIMERLOOK_NORMAL">Normal</string>
|
||||||
|
<string name="TR_CONFIG_TIMERLOOK_EXPANDED">Genişletilmiş</string>
|
||||||
|
<string name="TR_CONFIG_OWN_MUSIC">Kendi Müziğiniz ve Arkaplan Müziği</string>
|
||||||
|
<string name="TR_CONFIG_NO_OWN_MUSIC">Hiç kendi müziğiniz yok</string>
|
||||||
|
<string name="TR_CONFIG_ONLY_OWN_MUSIC">Sadece kendi Müziğim</string>
|
||||||
|
<string name="TR_CONFIG_FADEPLAYERINFO_ALL">Hepsi</string>
|
||||||
|
<string name="TR_CONFIG_FADEPLAYERINFO_INFO">Sadece isimler ve fotoğrafları</string>
|
||||||
|
<string name="TR_CONFIG_FADEPLAYERINFO_OFF">Hiçbirşey</string>
|
||||||
|
<string name="TR_SCREENLOAD_LOADING">Yükleniyor</string>
|
||||||
|
<string name="TR_SCREENLOAD_TOTAL">Toplam</string>
|
||||||
|
<string name="TR_SCREENLOAD_SONGS">Şarkılar</string>
|
||||||
|
<string name="TR_SCREENLOAD_LOADED">yüklendi</string>
|
||||||
|
<string name="TR_SCREENMAIN_MENU">Ana Menü</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_SING">Şarkı</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_PARTY">Parti</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_OPTIONS">Seçenekler</string>
|
||||||
|
<string name="TR_SCREENMAIN_BUTTON_PROFILES">Profiller</string>
|
||||||
|
<string name="TR_SCREENPARTY_TITLE">Parti Modu Seçeneği</string>
|
||||||
|
<string name="TR_SCREENPARTY_MODES">Parti Modu</string>
|
||||||
|
<string name="TR_SCREENPARTY_DESCRIPTION">Açıklama</string>
|
||||||
|
<string name="TR_SCREENPARTY_AUTHOR">Yazar</string>
|
||||||
|
<string name="TR_SCREENPARTY_VERSION">Sürüm</string>
|
||||||
|
<string name="TR_SCREENPARTY_ERROR">Bu parti modu yüklenemedi</string>
|
||||||
|
<string name="TR_SCREENPARTY_TARGETAUDIENCE">Hedef dinleyici</string>
|
||||||
|
<string name="TR_SCREENPARTY_NOTEAMS">Takım yok</string>
|
||||||
|
<string name="TR_SCREENPARTY_NUMTEAMS">Takım sayısı</string>
|
||||||
|
<string name="TR_SCREENPARTY_NUMPLAYERS">Oyuncu sayısı</string>
|
||||||
|
<string name="TR_SCREENNAMES_MENU">Oyuncu Seçimi</string>
|
||||||
|
<string name="TR_SCREENNAMES_PLAYER">Oyuncu</string>
|
||||||
|
<string name="TR_SCREENNAMES_1PLAYER">1 Oyuncu</string>
|
||||||
|
<string name="TR_SCREENNAMES_2PLAYER">2 Oyunculu</string>
|
||||||
|
<string name="TR_SCREENNAMES_3PLAYER">3 Oyunculu</string>
|
||||||
|
<string name="TR_SCREENNAMES_4PLAYER">4 Oyunculu</string>
|
||||||
|
<string name="TR_SCREENNAMES_5PLAYER">5 Oyunculu</string>
|
||||||
|
<string name="TR_SCREENNAMES_6PLAYER">6 Oyunculu</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_MICS_SG">Uyarı: %v oyuncusu için hiç mikrofon atanmadı!</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_MICS_PL">Uyarı: %v oyuncuları için hiç mikrofon atanmadı!</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_PROFILES_SG">Uyarı: %v oyuncusu için hiç profil atanmadı!</string>
|
||||||
|
<string name="TR_SCREENNAMES_WARNING_PROFILES_PL">Uyarı: %v oyuncuları için hiç profil atanmadı!</string>
|
||||||
|
<string name="TR_SCREENSONG_MENU">Şarkı Seçimi</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_SING">Şarkı Söyle</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_PLAYLIST">Çalma Listesine Ekle</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_CANCEL">Kapat</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_RANDOM">Rastgele bir şarkı seç</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_RANDOMCAT">Rastgele bir kategori seç</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_SINGALL">Tüm şarkıları söyle</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_SINGALLVISIBLE">Tüm görünür şarkıları söyle</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_OPENPLAYLIST">Çalma listesini aç</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_RANDOMMEDLEY">Rastgele bir potpuri söyle</string>
|
||||||
|
<string name="TR_SCREENSONG_BUTTON_STARTMEDLEY">Potpuri şarkılarını söyle</string>
|
||||||
|
<string name="TR_SCREENSONG_NEWPLAYLIST">Yeni Çalma Listesi</string>
|
||||||
|
<string name="TR_SCREENSONG_SONGOPTIONS">Şarkı Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENSONG_SEARCH">Arama:</string>
|
||||||
|
<string name="TR_SCREENSONG_NOLANGUAGE">Dil yok</string>
|
||||||
|
<string name="TR_SCREENSONG_NOYEAR">Yıl yok</string>
|
||||||
|
<string name="TR_SCREENSONG_NOGENRE">Tür yok</string>
|
||||||
|
<string name="TR_SCREENSONG_NOEDITION">Basım yok</string>
|
||||||
|
<string name="TR_SCREENSONG_ALLSONGS">Tüm Şarkılar</string>
|
||||||
|
<string name="TR_SCREENSONG_NUMSONGS">(%v Şarkıları)</string>
|
||||||
|
<string name="TR_SCREENSONG_NUMSONG">(%v Şarkısı)</string>
|
||||||
|
<string name="TR_SCREENSING_PAUSE">Duraklat</string>
|
||||||
|
<string name="TR_SCREENSING_BUTTON_CANCEL">Şarkı söylemeyi durdur</string>
|
||||||
|
<string name="TR_SCREENSING_BUTTON_CONTINUE">Devam et</string>
|
||||||
|
<string name="TR_SCREENSING_BUTTON_SKIP">Bu şarkıyı atla</string>
|
||||||
|
<string name="TR_SCREENSCORE_SCORES">Skorlar</string>
|
||||||
|
<string name="TR_SCREENSCORE_RATING">Derecelendirme</string>
|
||||||
|
<string name="TR_SCREENSCORE_POINTS">Puanlar</string>
|
||||||
|
<string name="TR_SCREENSCORE_GAMEDIFFICULTY">Zorluk Derecesi</string>
|
||||||
|
<string name="TR_SCREENSCORE_OVERALLSCORE">Genel skor</string>
|
||||||
|
<string name="TR_SCREENHIGHSCORE_HIGHSCORE">Yüksek skor</string>
|
||||||
|
<string name="TR_SCREENPROFILES_PROFILES">Profiller</string>
|
||||||
|
<string name="TR_SCREENPROFILES_PLAYERNAME">Oyuncu Adı</string>
|
||||||
|
<string name="TR_SCREENPROFILES_GAMEDIFFICULTY">Oyun Zorluğu</string>
|
||||||
|
<string name="TR_SCREENPROFILES_AVATAR">Profil Resmi</string>
|
||||||
|
<string name="TR_SCREENPROFILES_GUESTPROFILE">Misafir Profili</string>
|
||||||
|
<string name="TR_SCREENPROFILES_ACTIVE">Aktif</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_NEW">Yeni</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_DELETE">Sil</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_TAKESNAPSHOT">Ekran Görüntüsü Al</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_SAVESNAPSHOT">Ekran Görüntüsünü Kaydet</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_DISCARDSNAPSHOT">Ekran Görüntüsünü Sil</string>
|
||||||
|
<string name="TR_SCREENPROFILES_BUTTON_WEBCAM">Webcam</string>
|
||||||
|
<string name="TR_SCREENO_OPTIONS">Menü Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_GAME">Oyun</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_SOUND">Ses</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_RECORD">Kayıt</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_VIDEO">Video</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_LYRICS">Sözler</string>
|
||||||
|
<string name="TR_SCREENO_BUTTON_THEME">Tema</string>
|
||||||
|
<string name="TR_SCREENOGAME_OPTIONS">Oyun Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENOGAME_LANGUAGE">Dil</string>
|
||||||
|
<string name="TR_SCREENOGAME_DEBUGLEVEL">Hata Ayıklama Seviyesi</string>
|
||||||
|
<string name="TR_SCREENOGAME_SONGMENU">Şarkı Menüsü</string>
|
||||||
|
<string name="TR_SCREENOGAME_SONGSORTING">Şarkı Sıralama</string>
|
||||||
|
<string name="TR_SCREENOGAME_TABS">Sekmeler</string>
|
||||||
|
<string name="TR_SCREENOGAME_DIFFICULTY">Oyun Zorluğu</string>
|
||||||
|
<string name="TR_SCREENOGAME_TIMERMODE">Zamanlayıcı Modu</string>
|
||||||
|
<string name="TR_SCREENORECORD_OPTIONS">Kaydetme Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENORECORD_DEVICE">Aygıt</string>
|
||||||
|
<string name="TR_SCREENORECORD_INPUT">Giriş</string>
|
||||||
|
<string name="TR_SCREENORECORD_CHANNEL_1">Kanal 1</string>
|
||||||
|
<string name="TR_SCREENORECORD_CHANNEL_2">Kanal 2 </string>
|
||||||
|
<string name="TR_SCREENORECORD_MIC_DELAY">Mikrofon Gecikmesi</string>
|
||||||
|
<string name="TR_SCREENORECORD_MIC_WARNING">Uyarı: Tek oyuncuya iki mikrofon atandı.</string>
|
||||||
|
<string name="TR_SCREENORECORD_BUTTON_DELAYTEST">Gecikme Testi</string>
|
||||||
|
<string name="TR_SCREENOSOUND_OPTIONS">Ses Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENOSOUND_BACKGROUNDMUSIC">Arka Plan Müziği</string>
|
||||||
|
<string name="TR_SCREENOSOUND_BACKGROUNDMUSICVOLUME">Arka Plan Müziği Seviyesi</string>
|
||||||
|
<string name="TR_SCREENOSOUND_BACKGROUNDMUSICSOURCE">Arka Plan Müziği Kaynağı</string>
|
||||||
|
<string name="TR_SCREENOSOUND_PREVIEWMUSICVOLUME">Ön İzleme Müziği Seviyesi</string>
|
||||||
|
<string name="TR_SCREENOSOUND_GAMEMUSICVOLUME">Oyun Müziği Seviyesi</string>
|
||||||
|
<string name="TR_SCREENOTHEME_OPTIONS">Tema Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENOTHEME_THEME">Tema</string>
|
||||||
|
<string name="TR_SCREENOTHEME_SKIN">Renk</string>
|
||||||
|
<string name="TR_SCREENOTHEME_COVERTHEME">Kapak Teması</string>
|
||||||
|
<string name="TR_SCREENOTHEME_NOTELINES">Not Çizgilerini Göster</string>
|
||||||
|
<string name="TR_SCREENOTHEME_TONEHELPER">Ton Yardımcısını Göster</string>
|
||||||
|
<string name="TR_SCREENOTHEME_TIMERLOOK">Kronometre Bakışı</string>
|
||||||
|
<string name="TR_SCREENOTHEME_FADEINFO">Oyuncu Bilgisini Kapat</string>
|
||||||
|
<string name="TR_SCREENOTHEME_COVERLOADING">Kapak Yüklenme Davranışı</string>
|
||||||
|
<string name="TR_SCREENOLYRICS_OPTIONS">Şarkı Sözü Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENOLYRICS_STYLE">Tarz</string>
|
||||||
|
<string name="TR_SCREENOLYRICS_ONTOP">Sözler Yukarıda Gösterilsin</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_OPTIONS">Video Seçenekleri</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_VIDEOBACKGROUNDS">Video Arka Planları</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_VIDEOPREVIEW">Video Önizleme</string>
|
||||||
|
<string name="TR_SCREENOVIDEO_VIDEOINSONGS">Şarkı Söylerken Videoları Gösterme</string>
|
||||||
|
<string name="TR_SCREENO_VIDEO_VIDEOSTOBACKGROUND">Mevcut Arka Plan Müziği Videosunu Göster</string>
|
||||||
|
<string name="TR_SCREENO_VIDEO_WEBCAMDEVICES">Web Kameraları</string>
|
||||||
|
<string name="TR_SCREENO_VIDEO_WEBCAMCAPABILITIES">Web Kameraları Özellikleri</string>
|
||||||
|
<string name="TR_SCREENPVOLUMECONTROL_VOLUME">Ses</string>
|
||||||
|
</resources>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<root>
|
|
||||||
<Font1>
|
|
||||||
<Name>Normal</Name>
|
|
||||||
<Outline>0,00</Outline>
|
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
|
||||||
<Folder>FreeSans</Folder>
|
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
|
||||||
</Font1>
|
|
||||||
<Font2>
|
|
||||||
<Name>Outline</Name>
|
|
||||||
<Outline>0,10</Outline>
|
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
|
||||||
<Folder>FreeSans</Folder>
|
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
|
||||||
</Font2>
|
|
||||||
</root>
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,40 +0,0 @@
|
|||||||
Congratulations, you have successfully downloaded font file!
|
|
||||||
|
|
||||||
This font is provided to you by Fonts2u.com – the largest online
|
|
||||||
repository of free fonts for Windows and Mac.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
How to install this font on your computer?
|
|
||||||
|
|
||||||
For Windows 7 / Vista users:
|
|
||||||
|
|
||||||
- Right-click the font file(s) and choose "Install".
|
|
||||||
|
|
||||||
For users of the previous Windows versions:
|
|
||||||
|
|
||||||
- Copy the included file(s) into a default Windows font folder
|
|
||||||
(usually C:\WINDOWS\FONTS or C:\WINNT\FONTS)
|
|
||||||
|
|
||||||
For Mac users:
|
|
||||||
|
|
||||||
Mac OS X 10.3 or above (including the FontBook)
|
|
||||||
|
|
||||||
- Double-click the font file and hit "Install font" button at
|
|
||||||
the bottom of the preview.
|
|
||||||
|
|
||||||
Mac OS X
|
|
||||||
|
|
||||||
- Either copy the font file(s) to /Library/Fonts (for all users),
|
|
||||||
or to /Users/Your_username/Library/Fonts (for you only).
|
|
||||||
|
|
||||||
Mac OS 9 or earlier
|
|
||||||
|
|
||||||
- You have to convert the font file(s) you have downloaded.
|
|
||||||
Drag the font suitcases into the System folder. The system
|
|
||||||
will propose you to add them to the Fonts folder.
|
|
||||||
|
|
||||||
For Linux users:
|
|
||||||
|
|
||||||
- Copy the font file(s) to /USR/SHARE/FONTS
|
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Engels</string>
|
||||||
|
<string name="TR_PARTYMODE_NAME">Uitdaging</string>
|
||||||
|
<string name="TR_PARTYMODE_DESCRIPTION">Speel Uitdaging.</string>
|
||||||
|
<string name="TR_PARTYMODE_AUDIENCE">Voor iedereen geïnteresseerd in duelleren.</string>
|
||||||
|
<string name="TR_BUTTON_NEXT">Volgende</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Vorige</string>
|
||||||
|
<string name="TR_BUTTON_START">Start</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Afsluiten</string>
|
||||||
|
<string name="TR_BUTTON_YES">Ja</string>
|
||||||
|
<string name="TR_BUTTON_NO">Nee</string>
|
||||||
|
<string name="TR_BUTTON_NEXT_ROUND">Volgende Ronde</string>
|
||||||
|
<string name="TR_SCREENCONFIG_TITLE">Uitdaging: Configuratie</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERS">Aantal spelers</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMMICS">Aantal microfoons</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMROUNDS">Aantal rondes</string>
|
||||||
|
<string name="TR_SCREENNAMES_TITLE">Uitdaging: Kies speler</string>
|
||||||
|
<string name="TR_SCREENMAIN_TITLE">Uitdaging: Overzicht</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_POS">#</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_PLAYERNAME">Naam</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_NUMPLAYED">Rondes</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_WON">Overwinningen</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_SINGPOINTS">Zingpunten</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_GAMEPOINTS">Score</string>
|
||||||
|
<string name="TR_SCREENMAIN_POPUP_REALLYEXIT">Wil je echt afsluiten?</string>
|
||||||
|
<string name="TR_SCREENMAIN_NEXT_PLAYER">Speler van volgende ronde:</string>
|
||||||
|
<string name="TR_SCREENMAIN_FINISH">Alle rondes zijn gezongen! De winnaar is...</string>
|
||||||
|
</resources>
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Türkçe</string>
|
||||||
|
<string name="TR_PARTYMODE_NAME">Yarışma Modu</string>
|
||||||
|
<string name="TR_PARTYMODE_DESCRIPTION">Biraz yarışma turu oyna.</string>
|
||||||
|
<string name="TR_PARTYMODE_AUDIENCE">Düello yarışmalarıyla ilgilenen herkes için.</string>
|
||||||
|
<string name="TR_BUTTON_NEXT">Sonraki</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Önceki</string>
|
||||||
|
<string name="TR_BUTTON_START">Başla</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Çıkış</string>
|
||||||
|
<string name="TR_BUTTON_YES">Evet</string>
|
||||||
|
<string name="TR_BUTTON_NO">Hayır</string>
|
||||||
|
<string name="TR_BUTTON_NEXT_ROUND">Sonraki Tur</string>
|
||||||
|
<string name="TR_SCREENCONFIG_TITLE">Yarışma Modu: Yapılandırma</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERS">Oyuncu sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMMICS">Mikrofon sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMROUNDS">Tur sayısı</string>
|
||||||
|
<string name="TR_SCREENNAMES_TITLE">Yarışma Modu: Oyuncu Seçiniz</string>
|
||||||
|
<string name="TR_SCREENMAIN_TITLE">Yarışma Modu: Genel Bakış</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_POS">Pozisyon</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_PLAYERNAME">İsim</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_NUMPLAYED">Turlar</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_WON">Kazanma</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_SINGPOINTS">Şarkı Söyleme Puanı</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_GAMEPOINTS">Skor</string>
|
||||||
|
<string name="TR_SCREENMAIN_POPUP_REALLYEXIT">Gerçekten çıkmak istiyor musunuz?</string>
|
||||||
|
<string name="TR_SCREENMAIN_NEXT_PLAYER">Sonraki turun oyuncusu:</string>
|
||||||
|
<string name="TR_SCREENMAIN_FINISH">Tüm turlar tamamlandı! Kazanan...</string>
|
||||||
|
</resources>
|
||||||
@@ -6,14 +6,14 @@
|
|||||||
<Author>brunzel</Author>
|
<Author>brunzel</Author>
|
||||||
<Description>TR_PARTYMODE_DESCRIPTION</Description>
|
<Description>TR_PARTYMODE_DESCRIPTION</Description>
|
||||||
<Folder>ChallengeMedley</Folder>
|
<Folder>ChallengeMedley</Folder>
|
||||||
<PartyModeFile>PartyModeChallenge</PartyModeFile>
|
<PartyModeFile>PartyModeChallengeMedley</PartyModeFile>
|
||||||
<PartyModeVersionMajor>0</PartyModeVersionMajor>
|
<PartyModeVersionMajor>0</PartyModeVersionMajor>
|
||||||
<PartyModeVersionMinor>1</PartyModeVersionMinor>
|
<PartyModeVersionMinor>1</PartyModeVersionMinor>
|
||||||
<TargetAudience>TR_PARTYMODE_AUDIENCE</TargetAudience>
|
<TargetAudience>TR_PARTYMODE_AUDIENCE</TargetAudience>
|
||||||
</Info>
|
</Info>
|
||||||
<PartyScreens>
|
<PartyScreens>
|
||||||
<ScreenFile>PartyScreenChallengeMain</ScreenFile>
|
<ScreenFile>PartyScreenChallengeMedleyMain</ScreenFile>
|
||||||
<ScreenFile>PartyScreenChallengeConfig</ScreenFile>
|
<ScreenFile>PartyScreenChallengeMedleyConfig</ScreenFile>
|
||||||
<ScreenFile>PartyScreenChallengeNames</ScreenFile>
|
<ScreenFile>PartyScreenChallengeMedleyNames</ScreenFile>
|
||||||
</PartyScreens>
|
</PartyScreens>
|
||||||
</root>
|
</root>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<root>
|
|
||||||
<Font1>
|
|
||||||
<Name>Normal</Name>
|
|
||||||
<Outline>0,00</Outline>
|
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
|
||||||
<Folder>FreeSans</Folder>
|
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
|
||||||
</Font1>
|
|
||||||
<Font2>
|
|
||||||
<Name>Outline</Name>
|
|
||||||
<Outline>0,10</Outline>
|
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
|
||||||
<Folder>FreeSans</Folder>
|
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
|
||||||
</Font2>
|
|
||||||
</root>
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,40 +0,0 @@
|
|||||||
Congratulations, you have successfully downloaded font file!
|
|
||||||
|
|
||||||
This font is provided to you by Fonts2u.com – the largest online
|
|
||||||
repository of free fonts for Windows and Mac.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
How to install this font on your computer?
|
|
||||||
|
|
||||||
For Windows 7 / Vista users:
|
|
||||||
|
|
||||||
- Right-click the font file(s) and choose "Install".
|
|
||||||
|
|
||||||
For users of the previous Windows versions:
|
|
||||||
|
|
||||||
- Copy the included file(s) into a default Windows font folder
|
|
||||||
(usually C:\WINDOWS\FONTS or C:\WINNT\FONTS)
|
|
||||||
|
|
||||||
For Mac users:
|
|
||||||
|
|
||||||
Mac OS X 10.3 or above (including the FontBook)
|
|
||||||
|
|
||||||
- Double-click the font file and hit "Install font" button at
|
|
||||||
the bottom of the preview.
|
|
||||||
|
|
||||||
Mac OS X
|
|
||||||
|
|
||||||
- Either copy the font file(s) to /Library/Fonts (for all users),
|
|
||||||
or to /Users/Your_username/Library/Fonts (for you only).
|
|
||||||
|
|
||||||
Mac OS 9 or earlier
|
|
||||||
|
|
||||||
- You have to convert the font file(s) you have downloaded.
|
|
||||||
Drag the font suitcases into the System folder. The system
|
|
||||||
will propose you to add them to the Fonts folder.
|
|
||||||
|
|
||||||
For Linux users:
|
|
||||||
|
|
||||||
- Copy the font file(s) to /USR/SHARE/FONTS
|
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Engels</string>
|
||||||
|
<string name="TR_PARTYMODE_NAME">Uitdaging Medley</string>
|
||||||
|
<string name="TR_PARTYMODE_DESCRIPTION">Speel Uitdaging met alleen 5 Medleys</string>
|
||||||
|
<string name="TR_PARTYMODE_AUDIENCE">Voor iedereen geïnteresseerd in duelleren en Medleys.</string>
|
||||||
|
<string name="TR_BUTTON_NEXT">Volgende</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Vorige</string>
|
||||||
|
<string name="TR_BUTTON_START">Start</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Afsluiten</string>
|
||||||
|
<string name="TR_BUTTON_YES">Ja</string>
|
||||||
|
<string name="TR_BUTTON_NO">Nee</string>
|
||||||
|
<string name="TR_BUTTON_NEXT_ROUND">Volgende Ronde</string>
|
||||||
|
<string name="TR_SCREENCONFIG_TITLE">Uitdaging Medley: Configuratie</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERS">Aantal spelers</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMMICS">Aantal microfoons</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMROUNDS">Aantal rondes</string>
|
||||||
|
<string name="TR_SCREENNAMES_TITLE">Uitdaging Medley: Kies speler</string>
|
||||||
|
<string name="TR_SCREENMAIN_TITLE">Uitdaging Medley: Overzicht</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_POS">#</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_PLAYERNAME">Naam</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_NUMPLAYED">Rondes</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_WON">Overwinningen</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_SINGPOINTS">Zingpunten</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_GAMEPOINTS">Score</string>
|
||||||
|
<string name="TR_SCREENMAIN_POPUP_REALLYEXIT">Wil je echt afsluiten?</string>
|
||||||
|
<string name="TR_SCREENMAIN_NEXT_PLAYER">Speler van volgende ronde:</string>
|
||||||
|
<string name="TR_SCREENMAIN_FINISH">Alle rondes zijn gezonden! De winnaar is...</string>
|
||||||
|
</resources>
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Türkçe</string>
|
||||||
|
<string name="TR_PARTYMODE_NAME">Potpuri Yarış Modu</string>
|
||||||
|
<string name="TR_PARTYMODE_DESCRIPTION">Sadece 5 Potpuri kullanarak yarışma turları oyna.</string>
|
||||||
|
<string name="TR_PARTYMODE_AUDIENCE">Düel yarışmaları ve Potpuri ile ilgilenen herkes için.</string>
|
||||||
|
<string name="TR_BUTTON_NEXT">Sonraki</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Önceki</string>
|
||||||
|
<string name="TR_BUTTON_START">Başla</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Çık</string>
|
||||||
|
<string name="TR_BUTTON_YES">Evet</string>
|
||||||
|
<string name="TR_BUTTON_NO">Hayır</string>
|
||||||
|
<string name="TR_BUTTON_NEXT_ROUND">Sonraki Tur</string>
|
||||||
|
<string name="TR_SCREENCONFIG_TITLE">Potpuri Yarış Modu: Yapılandırma</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERS">Oyuncu sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMMICS">Mikrofon sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMROUNDS">Tur sayısı</string>
|
||||||
|
<string name="TR_SCREENNAMES_TITLE">Potpuri Yarışma Modu: Oyuncu Seçimi</string>
|
||||||
|
<string name="TR_SCREENMAIN_TITLE">Potpuri Yarışma Modu: Genel Bakış</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_POS">Pos</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_PLAYERNAME">İsim</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_NUMPLAYED">Tur</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_WON">Kazanma</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_SINGPOINTS">Şarkı Söyleme Puanı</string>
|
||||||
|
<string name="TR_SCREENMAIN_TABLE_GAMEPOINTS">Skor</string>
|
||||||
|
<string name="TR_SCREENMAIN_POPUP_REALLYEXIT">Gerçekten çıkmak istiyor musunuz?</string>
|
||||||
|
<string name="TR_SCREENMAIN_NEXT_PLAYER">Sonraki tur oyuncusu:</string>
|
||||||
|
<string name="TR_SCREENMAIN_FINISH">Tüm turlar tamamlandı! Kazanan...</string>
|
||||||
|
</resources>
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<PartyScreenChallengeConfig>
|
<PartyScreenChallengeMedleyConfig>
|
||||||
<ScreenVersion>1</ScreenVersion>
|
<ScreenVersion>1</ScreenVersion>
|
||||||
<Background1>
|
<Background1>
|
||||||
<!--<Type>: Background type: None, Color, Texture, Video-->
|
<!--<Type>: Background type: None, Color, Texture, Video-->
|
||||||
@@ -454,5 +454,5 @@
|
|||||||
<!--<NumVisible>: Number of visible elements in the slide-->
|
<!--<NumVisible>: Number of visible elements in the slide-->
|
||||||
<NumVisible>10</NumVisible>
|
<NumVisible>10</NumVisible>
|
||||||
</SelectSlideNumRounds>
|
</SelectSlideNumRounds>
|
||||||
</PartyScreenChallengeConfig>
|
</PartyScreenChallengeMedleyConfig>
|
||||||
</root>
|
</root>
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<PartyScreenChallengeMain>
|
<PartyScreenChallengeMedleyMain>
|
||||||
<ScreenVersion>1</ScreenVersion>
|
<ScreenVersion>1</ScreenVersion>
|
||||||
<Background1>
|
<Background1>
|
||||||
<!--<Type>: Background type: None, Color, Texture, Video-->
|
<!--<Type>: Background type: None, Color, Texture, Video-->
|
||||||
@@ -981,5 +981,5 @@
|
|||||||
<!-- <Space>: Reflection Space of selected button-->
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
<!-- <Height>: Reflection Height of selected button-->
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
</ButtonRoundsScrollDown>
|
</ButtonRoundsScrollDown>
|
||||||
</PartyScreenChallengeMain>
|
</PartyScreenChallengeMedleyMain>
|
||||||
</root>
|
</root>
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<PartyScreenChallengeNames>
|
<PartyScreenChallengeMedleyNames>
|
||||||
<ScreenVersion>1</ScreenVersion>
|
<ScreenVersion>1</ScreenVersion>
|
||||||
<Background1>
|
<Background1>
|
||||||
<!--<Type>: Background type: None, Color, Texture, Video-->
|
<!--<Type>: Background type: None, Color, Texture, Video-->
|
||||||
@@ -270,5 +270,5 @@
|
|||||||
<!-- <Space>: Reflection Space of selected button-->
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
<!-- <Height>: Reflection Height of selected button-->
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
</ButtonPlayerChoose>
|
</ButtonPlayerChoose>
|
||||||
</PartyScreenChallengeNames>
|
</PartyScreenChallengeMedleyNames>
|
||||||
</root>
|
</root>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<root>
|
|
||||||
<Font1>
|
|
||||||
<Name>Normal</Name>
|
|
||||||
<Outline>0,00</Outline>
|
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
|
||||||
<Folder>FreeSans</Folder>
|
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
|
||||||
</Font1>
|
|
||||||
<Font2>
|
|
||||||
<Name>Outline</Name>
|
|
||||||
<Outline>0,10</Outline>
|
|
||||||
<OutlineColorR>0,00</OutlineColorR>
|
|
||||||
<OutlineColorG>0,00</OutlineColorG>
|
|
||||||
<OutlineColorB>0,00</OutlineColorB>
|
|
||||||
<OutlineColorA>1,00</OutlineColorA>
|
|
||||||
<Folder>FreeSans</Folder>
|
|
||||||
<FileNormal>FreeSans.ttf</FileNormal>
|
|
||||||
<FileBold>FreeSansBold.ttf</FileBold>
|
|
||||||
<FileItalic>FreeSansOblique.ttf</FileItalic>
|
|
||||||
<FileBoldItalic>FreeSansBoldOblique.ttf</FileBoldItalic>
|
|
||||||
</Font2>
|
|
||||||
</root>
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,40 +0,0 @@
|
|||||||
Congratulations, you have successfully downloaded font file!
|
|
||||||
|
|
||||||
This font is provided to you by Fonts2u.com – the largest online
|
|
||||||
repository of free fonts for Windows and Mac.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
How to install this font on your computer?
|
|
||||||
|
|
||||||
For Windows 7 / Vista users:
|
|
||||||
|
|
||||||
- Right-click the font file(s) and choose "Install".
|
|
||||||
|
|
||||||
For users of the previous Windows versions:
|
|
||||||
|
|
||||||
- Copy the included file(s) into a default Windows font folder
|
|
||||||
(usually C:\WINDOWS\FONTS or C:\WINNT\FONTS)
|
|
||||||
|
|
||||||
For Mac users:
|
|
||||||
|
|
||||||
Mac OS X 10.3 or above (including the FontBook)
|
|
||||||
|
|
||||||
- Double-click the font file and hit "Install font" button at
|
|
||||||
the bottom of the preview.
|
|
||||||
|
|
||||||
Mac OS X
|
|
||||||
|
|
||||||
- Either copy the font file(s) to /Library/Fonts (for all users),
|
|
||||||
or to /Users/Your_username/Library/Fonts (for you only).
|
|
||||||
|
|
||||||
Mac OS 9 or earlier
|
|
||||||
|
|
||||||
- You have to convert the font file(s) you have downloaded.
|
|
||||||
Drag the font suitcases into the System folder. The system
|
|
||||||
will propose you to add them to the Fonts folder.
|
|
||||||
|
|
||||||
For Linux users:
|
|
||||||
|
|
||||||
- Copy the font file(s) to /USR/SHARE/FONTS
|
|
||||||
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Engels</string>
|
||||||
|
<string name="TR_PARTYMODE_NAME">Drie-op-een-rij</string>
|
||||||
|
<string name="TR_PARTYMODE_DESCRIPTION">Speel Drie-op-een-rij op een speciale manier</string>
|
||||||
|
<string name="TR_PARTYMODE_AUDIENCE">Grappige rondes met strategie, geluk en kunde</string>
|
||||||
|
<string name="TR_BUTTON_NEXT">Volgende</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Vorige</string>
|
||||||
|
<string name="TR_BUTTON_START">Start</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Afsluiten</string>
|
||||||
|
<string name="TR_BUTTON_YES">Ja</string>
|
||||||
|
<string name="TR_BUTTON_NO">Nee</string>
|
||||||
|
<string name="TR_BUTTON_NEXT_ROUND">Start</string>
|
||||||
|
<string name="TR_SONGS">Liedjes</string>
|
||||||
|
<string name="TR_TEAM">Team</string>
|
||||||
|
<string name="TR_PLAYLIST">Afspeellijst</string>
|
||||||
|
<string name="TR_CATEGORY">Categorie</string>
|
||||||
|
<string name="TR_ALLSONGS">Alle liedjes</string>
|
||||||
|
<string name="TR_SCREENCONFIG_TITLE">Drie-op-een-rij: configuratie</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERST1">Aantal spelers in team 1</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERST2">Aantal spelers in team 2</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMFIELDS">Aantal vakjes</string>
|
||||||
|
<string name="TR_SCREENCONFIG_SONGSOURCE">Liedjesbron</string>
|
||||||
|
<string name="TR_SCREENCONFIG_GAMEMODE">Spelmodus</string>
|
||||||
|
<string name="TR_SCREENNAMES_TITLE">Drie-op-een-rij: Kies speler</string>
|
||||||
|
<string name="TR_SCREENNAMES_TEAM1">Team 1</string>
|
||||||
|
<string name="TR_SCREENNAMES_TEAM2">Team 2</string>
|
||||||
|
<string name="TR_SCREENMAIN_TITLE">Drie-op-een-rij</string>
|
||||||
|
<string name="TR_SCREENMAIN_TEAM_CHOOSE">Kies een vakje.</string>
|
||||||
|
<string name="TR_SCREENMAIN_NEXT_PLAYER">Volgende speler</string>
|
||||||
|
<string name="TR_SCREENMAIN_POPUP_REALLYEXIT">Drie-op-een-rij afsluiten?</string>
|
||||||
|
<string name="TR_SCREENMAIN_WINNER">En de winnaar is...</string>
|
||||||
|
<string name="TR_SCREENMAIN_NOWINNER">Er is geen winnaar in deze ronde...</string>
|
||||||
|
</resources>
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="language">Türkçe</string>
|
||||||
|
<string name="TR_PARTYMODE_NAME">XOX oyunu</string>
|
||||||
|
<string name="TR_PARTYMODE_DESCRIPTION">Özel bir şekilde XOX oyna</string>
|
||||||
|
<string name="TR_PARTYMODE_AUDIENCE">Strateji, şans ve becerilerle eğlenceli turlar</string>
|
||||||
|
<string name="TR_BUTTON_NEXT">Sonraki</string>
|
||||||
|
<string name="TR_BUTTON_BACK">Önceki</string>
|
||||||
|
<string name="TR_BUTTON_START">Başla</string>
|
||||||
|
<string name="TR_BUTTON_EXIT">Çıkış</string>
|
||||||
|
<string name="TR_BUTTON_YES">Evet</string>
|
||||||
|
<string name="TR_BUTTON_NO">Hayır</string>
|
||||||
|
<string name="TR_BUTTON_NEXT_ROUND">Başla</string>
|
||||||
|
<string name="TR_SONGS">Şarkılar</string>
|
||||||
|
<string name="TR_TEAM">Takım</string>
|
||||||
|
<string name="TR_PLAYLIST">Çalma Listesi</string>
|
||||||
|
<string name="TR_CATEGORY">Kategori</string>
|
||||||
|
<string name="TR_ALLSONGS">Tüm Şarkılar</string>
|
||||||
|
<string name="TR_SCREENCONFIG_TITLE">XOX: Yapılandırma</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERST1">1. takımdaki oyuncu sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMPLAYERST2">2. takımdaki oyuncu sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_NUMFIELDS">Bölge sayısı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_SONGSOURCE">Şarkı Kaynağı</string>
|
||||||
|
<string name="TR_SCREENCONFIG_GAMEMODE">Oyun Modu</string>
|
||||||
|
<string name="TR_SCREENNAMES_TITLE">XOX: Oyuncu Seç</string>
|
||||||
|
<string name="TR_SCREENNAMES_TEAM1">1. Takım</string>
|
||||||
|
<string name="TR_SCREENNAMES_TEAM2">2. Takım</string>
|
||||||
|
<string name="TR_SCREENMAIN_TITLE">XOX</string>
|
||||||
|
<string name="TR_SCREENMAIN_TEAM_CHOOSE">Bir bölge seç.</string>
|
||||||
|
<string name="TR_SCREENMAIN_NEXT_PLAYER">Sonraki oyuncu</string>
|
||||||
|
<string name="TR_SCREENMAIN_POPUP_REALLYEXIT">XOX oyunundan gerçekten çıkmak istiyor musunuz?</string>
|
||||||
|
<string name="TR_SCREENMAIN_WINNER">Ve kazanan...</string>
|
||||||
|
<string name="TR_SCREENMAIN_NOWINNER">Bu turdan hiç kazanan çıkmadı...</string>
|
||||||
|
</resources>
|
||||||
+19
-17
@@ -109,39 +109,41 @@ Vocaluxe.exe -ConfigFile MyConfig.xml -ScoreFile C:\Vocaluxe\Highscores\MyHighsc
|
|||||||
=================================
|
=================================
|
||||||
= 4. Controls =
|
= 4. Controls =
|
||||||
=================================
|
=================================
|
||||||
[Mouse] to navigate through the screens: Left button: select/manipulate elements,
|
[Mouse] to navigate through the screens: Left button: select/manipulate elements,
|
||||||
Right button: go to previous screen.
|
Right button: go to previous screen.
|
||||||
[Cursor] to navigate through the screens.
|
[Cursor] to navigate through the screens.
|
||||||
[Enter] to confirm
|
[Enter] to confirm
|
||||||
[Escape] or [Back] to go to the previous screen.
|
[Escape] or [Back] to go to the previous screen.
|
||||||
|
|
||||||
[ALT] + [P] to take a ScreenShot. Screenshots are saved in the directory "Screenshots".
|
[ALT] + [P] to take a ScreenShot. Screenshots are saved in the directory "Screenshots".
|
||||||
[ALT] + [ENTER] to toggle full screen mode.
|
[ALT] + [ENTER] to toggle full screen mode.
|
||||||
[SHIFT] + [F1] to toggle theme edit mode. The theme edit mode is experimental. It allows you
|
[SHIFT] + [F1] to toggle theme edit mode. The theme edit mode is experimental. It allows you
|
||||||
to change the size and position of the element on the screens. You can save
|
to change the size and position of the element on the screens. You can save
|
||||||
your changes with [S] before leaving the theme edit mode.
|
your changes with [S] before leaving the theme edit mode.
|
||||||
[TAB] to open the background music controls (not on all screens).
|
[TAB] to open the background music controls (not on all screens).
|
||||||
[SHIFT] + [+] to increase volume
|
[SHIFT] + [+] to increase volume
|
||||||
[SHIFT] + [-] to decrease volume
|
[SHIFT] + [-] to decrease volume
|
||||||
|
|
||||||
Song screen
|
Song screen
|
||||||
|
[F3] to open/close the song search menu
|
||||||
|
[SPACE] to open/close the song menu
|
||||||
[CTRL] + [R] to select a random song
|
[CTRL] + [R] to select a random song
|
||||||
[F3] to open/close the song search menu
|
[CTRL] + [A] to sing all songs
|
||||||
[A] to sing all songs
|
[CTRL] + [V] to sing all songs from a category
|
||||||
[SHIFT] + [A] to sing all songs from a category
|
[NUM_1]..[NUM_6] to use a Joker for team 1..6
|
||||||
[SPACE] to open/close the song menu
|
[A]..[Z] to jump to category/song title starting with that letter
|
||||||
|
|
||||||
Name selection screen
|
Name selection screen
|
||||||
[1]..[6] to activate player selection.
|
[1]..[6] to activate player selection.
|
||||||
[Cursor] to select a profile.
|
[Cursor] to select a profile.
|
||||||
[Enter] to confirm a selection.
|
[Enter] to confirm a selection.
|
||||||
|
|
||||||
Sing screen
|
Sing screen
|
||||||
[P] to toggle pause.
|
[P] to toggle pause.
|
||||||
[CTRL] + [S] to skip a song if there is another one in the playlist.
|
[CTRL] + [S] to skip a song if there is another one in the playlist.
|
||||||
[T] to change the time format of the timer.
|
[T] to change the time format of the timer.
|
||||||
[I] to change view of player information.
|
[I] to change view of player information.
|
||||||
[W] to activate the configured webcam.
|
[W] to activate the configured webcam.
|
||||||
|
|
||||||
|
|
||||||
=================================
|
=================================
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<ScreenSong>
|
<ScreenSong>
|
||||||
<ScreenVersion>4</ScreenVersion>
|
<ScreenVersion>5</ScreenVersion>
|
||||||
<Background1>
|
<Background1>
|
||||||
<!--<Type>: Background type: None, Color, Texture, Video-->
|
<!--<Type>: Background type: None, Color, Texture, Video-->
|
||||||
<Type>Video</Type>
|
<Type>Video</Type>
|
||||||
@@ -954,7 +954,7 @@
|
|||||||
<SkinSelected>Button</SkinSelected>
|
<SkinSelected>Button</SkinSelected>
|
||||||
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
<X>40</X>
|
<X>40</X>
|
||||||
<Y>135</Y>
|
<Y>225</Y>
|
||||||
<Z>-2,11</Z>
|
<Z>-2,11</Z>
|
||||||
<W>360</W>
|
<W>360</W>
|
||||||
<H>40</H>
|
<H>40</H>
|
||||||
@@ -1003,7 +1003,7 @@
|
|||||||
<SkinSelected>Button</SkinSelected>
|
<SkinSelected>Button</SkinSelected>
|
||||||
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
<X>40</X>
|
<X>40</X>
|
||||||
<Y>180</Y>
|
<Y>270</Y>
|
||||||
<Z>-2,11</Z>
|
<Z>-2,11</Z>
|
||||||
<W>360</W>
|
<W>360</W>
|
||||||
<H>40</H>
|
<H>40</H>
|
||||||
@@ -1045,14 +1045,14 @@
|
|||||||
<!-- <Space>: Reflection Space of selected button-->
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
<!-- <Height>: Reflection Height of selected button-->
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
</ButtonOptionsSingAllVisible>
|
</ButtonOptionsSingAllVisible>
|
||||||
<ButtonOptionsOpenPlaylist>
|
<ButtonOptionsOpenSelectedItem>
|
||||||
<!--<Skin>: Texture name-->
|
<!--<Skin>: Texture name-->
|
||||||
<Skin>Button</Skin>
|
<Skin>Button</Skin>
|
||||||
<!--<SkinSelected>: Texture name for selected button-->
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
<SkinSelected>Button</SkinSelected>
|
<SkinSelected>Button</SkinSelected>
|
||||||
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
<X>40</X>
|
<X>40</X>
|
||||||
<Y>270</Y>
|
<Y>135</Y>
|
||||||
<Z>-2,11</Z>
|
<Z>-2,11</Z>
|
||||||
<W>360</W>
|
<W>360</W>
|
||||||
<H>40</H>
|
<H>40</H>
|
||||||
@@ -1085,7 +1085,7 @@
|
|||||||
<!--<Font>: Text font name-->
|
<!--<Font>: Text font name-->
|
||||||
<Font>Outline</Font>
|
<Font>Outline</Font>
|
||||||
<!--<Text>: Nothing or translation tag-->
|
<!--<Text>: Nothing or translation tag-->
|
||||||
<Text>TR_SCREENSONG_BUTTON_OPENPLAYLIST</Text>
|
<Text>TR_SCREENSONG_BUTTON_OPEN_SELECTED_ITEM</Text>
|
||||||
</Text>
|
</Text>
|
||||||
<!--<Reflection> If exists:-->
|
<!--<Reflection> If exists:-->
|
||||||
<!-- <Space>: Reflection Space-->
|
<!-- <Space>: Reflection Space-->
|
||||||
@@ -1093,7 +1093,7 @@
|
|||||||
<!--<SReflection> If exists:-->
|
<!--<SReflection> If exists:-->
|
||||||
<!-- <Space>: Reflection Space of selected button-->
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
<!-- <Height>: Reflection Height of selected button-->
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
</ButtonOptionsOpenPlaylist>
|
</ButtonOptionsOpenSelectedItem>
|
||||||
<ButtonOpenOptions>
|
<ButtonOpenOptions>
|
||||||
<!--<Skin>: Texture name-->
|
<!--<Skin>: Texture name-->
|
||||||
<Skin>Invisible</Skin>
|
<Skin>Invisible</Skin>
|
||||||
@@ -1449,19 +1449,19 @@
|
|||||||
<SkinHighlighted>SelectSlide</SkinHighlighted>
|
<SkinHighlighted>SelectSlide</SkinHighlighted>
|
||||||
<!--<X>, <Y>, <Z>, <W>, <H>: SelectSlide position, width and height-->
|
<!--<X>, <Y>, <Z>, <W>, <H>: SelectSlide position, width and height-->
|
||||||
<X>40</X>
|
<X>40</X>
|
||||||
<Y>225</Y>
|
<Y>180</Y>
|
||||||
<Z>-2,11</Z>
|
<Z>-2,11</Z>
|
||||||
<W>360</W>
|
<W>360</W>
|
||||||
<H>40</H>
|
<H>40</H>
|
||||||
<!--<ArrowLeftX>, <ArrowLeftY>, <ArrowLeftZ>, <ArrowLeftW>, <ArrowLeftH>: Left arrow position, width and height-->
|
<!--<ArrowLeftX>, <ArrowLeftY>, <ArrowLeftZ>, <ArrowLeftW>, <ArrowLeftH>: Left arrow position, width and height-->
|
||||||
<ArrowLeftX>45</ArrowLeftX>
|
<ArrowLeftX>45</ArrowLeftX>
|
||||||
<ArrowLeftY>235</ArrowLeftY>
|
<ArrowLeftY>190</ArrowLeftY>
|
||||||
<ArrowLeftZ>-2,12</ArrowLeftZ>
|
<ArrowLeftZ>-2,12</ArrowLeftZ>
|
||||||
<ArrowLeftW>30</ArrowLeftW>
|
<ArrowLeftW>30</ArrowLeftW>
|
||||||
<ArrowLeftH>30</ArrowLeftH>
|
<ArrowLeftH>30</ArrowLeftH>
|
||||||
<!--<ArrowRightX>, <ArrowRightY>, <ArrowRightZ>, <ArrowRightW>, <ArrowRightH>: Right arrow position, width and height-->
|
<!--<ArrowRightX>, <ArrowRightY>, <ArrowRightZ>, <ArrowRightW>, <ArrowRightH>: Right arrow position, width and height-->
|
||||||
<ArrowRightX>365</ArrowRightX>
|
<ArrowRightX>365</ArrowRightX>
|
||||||
<ArrowRightY>235</ArrowRightY>
|
<ArrowRightY>190</ArrowRightY>
|
||||||
<ArrowRightZ>-2,12</ArrowRightZ>
|
<ArrowRightZ>-2,12</ArrowRightZ>
|
||||||
<ArrowRightW>30</ArrowRightW>
|
<ArrowRightW>30</ArrowRightW>
|
||||||
<ArrowRightH>30</ArrowRightH>
|
<ArrowRightH>30</ArrowRightH>
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
ScreenSong
|
ScreenSong
|
||||||
|
|
||||||
|
++++++++++
|
||||||
|
Version 5:
|
||||||
|
|
||||||
|
Add:
|
||||||
|
<ButtonOptionsOpenSelectedItem>
|
||||||
|
Remove:
|
||||||
|
ButtonOptionsOpenPlaylist
|
||||||
|
|
||||||
++++++++++
|
++++++++++
|
||||||
Version 4:
|
Version 4:
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
GlobalSuppressions.cs
|
||||||
@@ -1,22 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.Challenge
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class ChallengeRounds
|
public class ChallengeRounds
|
||||||
{
|
{
|
||||||
private Random _Rand;
|
private readonly Random _Rand;
|
||||||
private int _NumPlayer;
|
private readonly int _NumPlayer;
|
||||||
|
|
||||||
public List<Combination> Rounds;
|
public List<Combination> Rounds;
|
||||||
|
|
||||||
public ChallengeRounds(int NumRounds, int NumPlayer, int NumPlayerAtOnce)
|
public ChallengeRounds(int NumRounds, int NumPlayer, int NumPlayerAtOnce)
|
||||||
{
|
{
|
||||||
Rounds = new List<Combination>();
|
Rounds = new List<Combination>();
|
||||||
_Rand = new Random(System.DateTime.Now.Millisecond);
|
_Rand = new Random(DateTime.Now.Millisecond);
|
||||||
|
|
||||||
if (NumPlayerAtOnce < 1 || NumRounds < 1 || NumPlayer == 0)
|
if (NumPlayerAtOnce < 1 || NumRounds < 1 || NumPlayer == 0)
|
||||||
_NumPlayer = 0;
|
_NumPlayer = 0;
|
||||||
@@ -41,26 +38,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
Rounds.Add(Combinations.GetNextCombination(null));
|
Rounds.Add(Combinations.GetNextCombination(null));
|
||||||
|
|
||||||
for (int i = 1; i < NumRounds; i++)
|
for (int i = 1; i < NumRounds; i++)
|
||||||
{
|
|
||||||
|
|
||||||
Rounds.Add(Combinations.GetNextCombination(GetPlayerDemand(i)));
|
Rounds.Add(Combinations.GetNextCombination(GetPlayerDemand(i)));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<int> GetPlayerDemand(int RoundIndex)
|
private List<int> GetPlayerDemand(int RoundIndex)
|
||||||
{
|
{
|
||||||
List<int> NumPlayed = new List<int>(_NumPlayer);
|
List<int> NumPlayed = new List<int>(_NumPlayer);
|
||||||
for (int i = 0; i < _NumPlayer; i++)
|
for (int i = 0; i < _NumPlayer; i++)
|
||||||
{
|
|
||||||
NumPlayed.Add(0);
|
NumPlayed.Add(0);
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < RoundIndex; i++)
|
for (int i = 0; i < RoundIndex; i++)
|
||||||
{
|
{
|
||||||
foreach (int PlayerIndex in Rounds[i].Player)
|
foreach (int PlayerIndex in Rounds[i].Player)
|
||||||
{
|
|
||||||
NumPlayed[PlayerIndex]++;
|
NumPlayed[PlayerIndex]++;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int max = 0;
|
int max = 0;
|
||||||
@@ -95,7 +85,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
last.Add(i);
|
last.Add(i);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,10 +118,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
class Combinations
|
class Combinations
|
||||||
{
|
{
|
||||||
private List<Combination> _Combs;
|
private readonly List<Combination> _Combs;
|
||||||
private Random _Rand;
|
private readonly Random _Rand;
|
||||||
private int _NumPlayer;
|
private readonly int _NumPlayer;
|
||||||
private int _NumMics;
|
private readonly int _NumMics;
|
||||||
|
|
||||||
public Combinations(int NumPlayer, int NumMics, Random Rand)
|
public Combinations(int NumPlayer, int NumMics, Random Rand)
|
||||||
{
|
{
|
||||||
@@ -150,9 +139,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Combination combs = new Combination();
|
Combination combs = new Combination();
|
||||||
|
|
||||||
if (_NumPlayer == _NumMics)
|
if (_NumPlayer == _NumMics)
|
||||||
{
|
|
||||||
return _Combs[0];
|
return _Combs[0];
|
||||||
}
|
|
||||||
|
|
||||||
//filter against PlayerNrDemand
|
//filter against PlayerNrDemand
|
||||||
List<Combination> combsFiltered = new List<Combination>();
|
List<Combination> combsFiltered = new List<Combination>();
|
||||||
@@ -179,18 +166,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (combsFiltered.Count == 0)
|
if (combsFiltered.Count == 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < _Combs.Count; i++)
|
for (int i = 0; i < _Combs.Count; i++)
|
||||||
{
|
|
||||||
combsFiltered.Add(_Combs[i]);
|
combsFiltered.Add(_Combs[i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int num = combsFiltered.Count;
|
int num = combsFiltered.Count;
|
||||||
int rand = _Rand.Next(num);
|
int rand = _Rand.Next(num);
|
||||||
Combination c = new Combination();
|
Combination c = new Combination();
|
||||||
for (int i = 0; i < combsFiltered[rand].Player.Count; i++)
|
for (int i = 0; i < combsFiltered[rand].Player.Count; i++)
|
||||||
{
|
|
||||||
c.Player.Add(combsFiltered[rand].Player[i]);
|
c.Player.Add(combsFiltered[rand].Player[i]);
|
||||||
}
|
|
||||||
_Combs.Remove(combsFiltered[rand]);
|
_Combs.Remove(combsFiltered[rand]);
|
||||||
|
|
||||||
return combsFiltered[rand];
|
return combsFiltered[rand];
|
||||||
@@ -209,9 +192,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int j = 0; j < _NumPlayer; j++)
|
for (int j = 0; j < _NumPlayer; j++)
|
||||||
{
|
{
|
||||||
if ((i & (1 << j)) > 0)
|
if ((i & (1 << j)) > 0)
|
||||||
{
|
|
||||||
c.Player.Add(j);
|
c.Player.Add(j);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c.Player.Count == _NumMics)
|
if (c.Player.Count == _NumMics)
|
||||||
@@ -243,9 +224,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
foreach (int p in PlayerIndices)
|
foreach (int p in PlayerIndices)
|
||||||
{
|
|
||||||
result &= IsAvailable(p);
|
result &= IsAvailable(p);
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,9 +232,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
foreach (int p in PlayerIndices)
|
foreach (int p in PlayerIndices)
|
||||||
{
|
|
||||||
result |= IsAvailable(p);
|
result |= IsAvailable(p);
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -1,12 +1,15 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Runtime.InteropServices;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
namespace VocaluxeLib.PartyModes.Challenge
|
||||||
{
|
{
|
||||||
|
|
||||||
#region Communication
|
#region Communication
|
||||||
|
|
||||||
#region ToScreen
|
#region ToScreen
|
||||||
public struct DataToScreenConfig
|
public struct DataToScreenConfig
|
||||||
{
|
{
|
||||||
@@ -52,9 +55,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
res = row.NumSingPoints.CompareTo(NumSingPoints);
|
res = row.NumSingPoints.CompareTo(NumSingPoints);
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
{
|
|
||||||
res = row.NumWon.CompareTo(NumWon);
|
res = row.NumWon.CompareTo(NumWon);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@@ -62,7 +63,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
throw new ArgumentException("object is not a ResultTableRow");
|
throw new ArgumentException("object is not a ResultTableRow");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion ToScreen
|
#endregion ToScreen
|
||||||
|
|
||||||
#region FromScreen
|
#region FromScreen
|
||||||
@@ -93,6 +93,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public bool FadeToNameSelection;
|
public bool FadeToNameSelection;
|
||||||
}
|
}
|
||||||
#endregion FromScreen
|
#endregion FromScreen
|
||||||
|
|
||||||
#endregion Communication
|
#endregion Communication
|
||||||
|
|
||||||
public sealed class PartyModeChallenge : CPartyMode
|
public sealed class PartyModeChallenge : CPartyMode
|
||||||
@@ -103,7 +104,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
private const int MinTeams = 0;
|
private const int MinTeams = 0;
|
||||||
private const int MaxNumRounds = 100;
|
private const int MaxNumRounds = 100;
|
||||||
|
|
||||||
enum EStage
|
private enum EStage
|
||||||
{
|
{
|
||||||
NotStarted,
|
NotStarted,
|
||||||
Config,
|
Config,
|
||||||
@@ -112,7 +113,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Singing
|
Singing
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Data
|
private struct Data
|
||||||
{
|
{
|
||||||
public int NumPlayer;
|
public int NumPlayer;
|
||||||
public int NumPlayerAtOnce;
|
public int NumPlayerAtOnce;
|
||||||
@@ -128,7 +129,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int[] CatSongIndices;
|
public int[] CatSongIndices;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Stats
|
private struct Stats
|
||||||
{
|
{
|
||||||
public int ProfileID;
|
public int ProfileID;
|
||||||
public int SingPoints;
|
public int SingPoints;
|
||||||
@@ -148,12 +149,12 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Selection.RandomOnly = false;
|
_ScreenSongOptions.Selection.RandomOnly = false;
|
||||||
_ScreenSongOptions.Selection.PartyMode = true;
|
_ScreenSongOptions.Selection.PartyMode = true;
|
||||||
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
_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.SearchActive = false;
|
_ScreenSongOptions.Sorting.SearchActive = false;
|
||||||
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
_ScreenSongOptions.Sorting.DuetOptions = EDuetOptions.NoDuets;
|
||||||
|
|
||||||
_Stage = EStage.NotStarted;
|
_Stage = EStage.NotStarted;
|
||||||
|
|
||||||
@@ -327,8 +328,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Screen.DataToScreen(ToScreenMain);
|
Screen.DataToScreen(ToScreenMain);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Screen;
|
return Screen;
|
||||||
@@ -441,7 +440,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
public override void SongSelected(int SongID)
|
public override void SongSelected(int SongID)
|
||||||
{
|
{
|
||||||
|
|
||||||
EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL;
|
EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL;
|
||||||
|
|
||||||
CBase.Game.Reset();
|
CBase.Game.Reset();
|
||||||
@@ -503,30 +501,30 @@ namespace Vocaluxe.PartyModes
|
|||||||
switch (GameData.NumPlayerAtOnce)
|
switch (GameData.NumPlayerAtOnce)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 10 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {10};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 4, 4, 4 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {4, 4, 4};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 3, 3, 3, 3 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {3, 3, 3, 3};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 2, 2, 2, 2, 2 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {2, 2, 2, 2, 2};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 2, 2, 2, 2, 2, 2 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {2, 2, 2, 2, 2, 2};
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -537,13 +535,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
if (profiles == null)
|
if (profiles == null)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
_ScreenSongOptions.Selection.TeamNames = new string[] {"foo", "bar"};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameData.NumPlayerAtOnce < 1 || GameData.ProfileIDs.Count < GameData.NumPlayerAtOnce || profiles.Length < GameData.NumPlayerAtOnce)
|
if (GameData.NumPlayerAtOnce < 1 || GameData.ProfileIDs.Count < GameData.NumPlayerAtOnce || profiles.Length < GameData.NumPlayerAtOnce)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
_ScreenSongOptions.Selection.TeamNames = new string[] {"foo", "bar"};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -580,13 +578,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
GameData.ResultTable.Add(row);
|
GameData.ResultTable.Add(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameData.Results = new int[GameData.NumRounds, GameData.NumPlayerAtOnce];
|
GameData.Results = new int[GameData.NumRounds,GameData.NumPlayerAtOnce];
|
||||||
for (int i = 0; i < GameData.NumRounds; i++)
|
for (int i = 0; i < GameData.NumRounds; i++)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
||||||
{
|
|
||||||
GameData.Results[i, j] = 0;
|
GameData.Results[i, j] = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -599,9 +595,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
||||||
{
|
|
||||||
GameData.Results[GameData.CurrentRoundNr - 2, j] = (int)Math.Round(results[j].Points);
|
GameData.Results[GameData.CurrentRoundNr - 2, j] = (int)Math.Round(results[j].Points);
|
||||||
}
|
|
||||||
|
|
||||||
List<Stats> points = GetPointsForPlayer(results);
|
List<Stats> points = GetPointsForPlayer(results);
|
||||||
|
|
||||||
@@ -609,13 +603,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int index = -1;
|
int index = -1;
|
||||||
for (int j = 0; j < GameData.ResultTable.Count; j++)
|
for (int j = 0; j < GameData.ResultTable.Count; j++)
|
||||||
{
|
{
|
||||||
if (points[i].ProfileID == GameData.ResultTable[j].PlayerID)
|
if (points[i].ProfileID == GameData.ResultTable[j].PlayerID)
|
||||||
{
|
{
|
||||||
index = j;
|
index = j;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
@@ -638,7 +632,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
int pos = 1;
|
int pos = 1;
|
||||||
int lastPoints = 0;
|
int lastPoints = 0;
|
||||||
int lastSingPoints = 0;
|
int lastSingPoints = 0;
|
||||||
for (int i = 0; i < GameData.ResultTable.Count; i++ )
|
for (int i = 0; i < GameData.ResultTable.Count; i++)
|
||||||
{
|
{
|
||||||
if (lastPoints > GameData.ResultTable[i].NumGamePoints || lastSingPoints > GameData.ResultTable[i].NumSingPoints)
|
if (lastPoints > GameData.ResultTable[i].NumGamePoints || lastSingPoints > GameData.ResultTable[i].NumSingPoints)
|
||||||
pos++;
|
pos++;
|
||||||
@@ -651,7 +645,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
private List<Stats> GetPointsForPlayer(SPlayer[] Results)
|
private List<Stats> GetPointsForPlayer(SPlayer[] Results)
|
||||||
{
|
{
|
||||||
List<Stats> result = new List<Stats>();
|
List<Stats> result = new List<Stats>();
|
||||||
for(int i = 0; i < GameData.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameData.NumPlayerAtOnce; i++)
|
||||||
{
|
{
|
||||||
Stats stat = new Stats();
|
Stats stat = new Stats();
|
||||||
stat.ProfileID = Results[i].ProfileID;
|
stat.ProfileID = Results[i].ProfileID;
|
||||||
@@ -698,7 +692,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -708,9 +701,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
GameData.CatSongIndices = new int[CBase.Songs.GetNumCategories()];
|
GameData.CatSongIndices = new int[CBase.Songs.GetNumCategories()];
|
||||||
for (int i = 0; i < GameData.CatSongIndices.Length; i++)
|
for (int i = 0; i < GameData.CatSongIndices.Length; i++)
|
||||||
{
|
|
||||||
GameData.CatSongIndices[i] = -1;
|
GameData.CatSongIndices[i] = -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CBase.Songs.GetNumCategories() == 0 || _ScreenSongOptions.Sorting.Tabs == EOffOn.TR_CONFIG_OFF)
|
if (CBase.Songs.GetNumCategories() == 0 || _ScreenSongOptions.Sorting.Tabs == EOffOn.TR_CONFIG_OFF)
|
||||||
|
|||||||
@@ -8,11 +8,10 @@
|
|||||||
<ProjectGuid>{5A4053F1-5AD5-441F-B254-D97A088127B6}</ProjectGuid>
|
<ProjectGuid>{5A4053F1-5AD5-441F-B254-D97A088127B6}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>PartyModeChallenge</RootNamespace>
|
<RootNamespace>VocaluxeLib.PartyModes.Challenge</RootNamespace>
|
||||||
<AssemblyName>PartyModeChallenge</AssemblyName>
|
<AssemblyName>Challenge</AssemblyName>
|
||||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile>
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||||
</TargetFrameworkProfile>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86' ">
|
||||||
@@ -20,7 +19,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>bin</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 +29,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>bin</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -42,17 +41,18 @@
|
|||||||
<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>bin</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||||
|
<CodeAnalysisRuleSet>..\..\CheckingRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
|
||||||
<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>bin</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>bin</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>bin</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>bin</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>bin</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -107,21 +107,12 @@
|
|||||||
<StartupObject />
|
<StartupObject />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="ChallengeRounds.cs">
|
<Compile Include="ChallengeRounds.cs" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Compile Include="GlobalSuppressions.cs" />
|
||||||
</Compile>
|
<Compile Include="PartyModeChallenge.cs" />
|
||||||
<Compile Include="PartyModeChallenge.cs">
|
<Compile Include="PartyScreenChallengeConfig.cs" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Compile Include="PartyScreenChallengeMain.cs" />
|
||||||
</Compile>
|
<Compile Include="PartyScreenChallengeNames.cs" />
|
||||||
<Compile Include="PartyScreenChallengeConfig.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="PartyScreenChallengeMain.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="PartyScreenChallengeNames.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
||||||
@@ -137,7 +128,14 @@
|
|||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.XML" />
|
<Reference Include="System.XML" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>cd $(SolutionDir)Partymodes\
|
||||||
|
xcopy "$(ProjectDir)*.cs" "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\" /EXCLUDE:Excludes.txt /I /Y</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|||||||
@@ -1,41 +1,35 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.Challenge
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class PartyScreenChallengeConfig : CMenuParty
|
public class PartyScreenChallengeConfig : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string SelectSlideNumPlayers = "SelectSlideNumPlayers";
|
private const string SelectSlideNumPlayers = "SelectSlideNumPlayers";
|
||||||
const string SelectSlideNumMics = "SelectSlideNumMics";
|
private const string SelectSlideNumMics = "SelectSlideNumMics";
|
||||||
const string SelectSlideNumRounds = "SelectSlideNumRounds";
|
private const string SelectSlideNumRounds = "SelectSlideNumRounds";
|
||||||
const string ButtonNext = "ButtonNext";
|
private const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
|
|
||||||
private int _MaxNumMics = 2;
|
private int _MaxNumMics = 2;
|
||||||
private int _MaxNumRounds = 100;
|
private int _MaxNumRounds = 100;
|
||||||
private int _RoundSteps = 1;
|
private int _RoundSteps = 1;
|
||||||
|
|
||||||
DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
|
|
||||||
public PartyScreenChallengeConfig()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeConfig";
|
_ThemeSelectSlides = new string[] {SelectSlideNumPlayers, SelectSlideNumMics, SelectSlideNumRounds};
|
||||||
_ThemeSelectSlides = new string[] { SelectSlideNumPlayers, SelectSlideNumMics, SelectSlideNumRounds };
|
_ThemeButtons = new string[] {ButtonNext, ButtonBack};
|
||||||
_ThemeButtons = new string[] { ButtonNext, ButtonBack };
|
|
||||||
_ScreenVersion = ScreenVersion;
|
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenConfig config = new FromScreenConfig();
|
FromScreenConfig config = new FromScreenConfig();
|
||||||
@@ -45,11 +39,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenConfig = config;
|
Data.ScreenConfig = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
|
||||||
{
|
|
||||||
base.LoadTheme(XmlPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
{
|
{
|
||||||
DataToScreenConfig config = new DataToScreenConfig();
|
DataToScreenConfig config = new DataToScreenConfig();
|
||||||
@@ -63,22 +52,18 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen challenge config. Can't cast received data from game mode " + _ThemeName + ". " + e.Message);;
|
CBase.Log.LogError("Error in party mode screen challenge config. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (KeyEvent.Key)
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Back:
|
case Keys.Back:
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
@@ -88,10 +73,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
UpdateSlides();
|
UpdateSlides();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -107,24 +92,22 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
UpdateSlides();
|
UpdateSlides();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
|
||||||
Back();
|
Back();
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -153,20 +136,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RebuildSlides()
|
private void RebuildSlides()
|
||||||
{
|
{
|
||||||
// build num player slide (min player ... max player);
|
// build num player slide (min player ... max player);
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayers)].Clear();
|
SelectSlides[SelectSlideNumPlayers].Clear();
|
||||||
for (int i = _PartyMode.GetMinPlayer(); i <= _PartyMode.GetMaxPlayer(); i++)
|
for (int i = _PartyMode.GetMinPlayer(); i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
SelectSlides[SelectSlideNumPlayers].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayers)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumPlayers].Selection = Data.ScreenConfig.NumPlayer - _PartyMode.GetMinPlayer();
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayers)].Selection = Data.ScreenConfig.NumPlayer - _PartyMode.GetMinPlayer();
|
|
||||||
|
|
||||||
UpdateMicsAtOnce();
|
UpdateMicsAtOnce();
|
||||||
SetRoundSteps();
|
SetRoundSteps();
|
||||||
@@ -177,9 +153,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int player = Data.ScreenConfig.NumPlayer;
|
int player = Data.ScreenConfig.NumPlayer;
|
||||||
int mics = Data.ScreenConfig.NumPlayerAtOnce;
|
int mics = Data.ScreenConfig.NumPlayerAtOnce;
|
||||||
Data.ScreenConfig.NumPlayer = SelectSlides[htSelectSlides(SelectSlideNumPlayers)].Selection + _PartyMode.GetMinPlayer();
|
Data.ScreenConfig.NumPlayer = SelectSlides[SelectSlideNumPlayers].Selection + _PartyMode.GetMinPlayer();
|
||||||
Data.ScreenConfig.NumPlayerAtOnce = SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection + _PartyMode.GetMinPlayer();
|
Data.ScreenConfig.NumPlayerAtOnce = SelectSlides[SelectSlideNumMics].Selection + _PartyMode.GetMinPlayer();
|
||||||
Data.ScreenConfig.NumRounds = (SelectSlides[htSelectSlides(SelectSlideNumRounds)].Selection + 1) * _RoundSteps;
|
Data.ScreenConfig.NumRounds = (SelectSlides[SelectSlideNumRounds].Selection + 1) * _RoundSteps;
|
||||||
|
|
||||||
UpdateMicsAtOnce();
|
UpdateMicsAtOnce();
|
||||||
SetRoundSteps();
|
SetRoundSteps();
|
||||||
@@ -188,9 +164,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int num = CHelper.nCk(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce);
|
int num = CHelper.nCk(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce);
|
||||||
while (num > _MaxNumRounds)
|
while (num > _MaxNumRounds)
|
||||||
{
|
|
||||||
num -= _RoundSteps;
|
num -= _RoundSteps;
|
||||||
}
|
|
||||||
Data.ScreenConfig.NumRounds = num;
|
Data.ScreenConfig.NumRounds = num;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,23 +182,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenConfig.NumPlayerAtOnce = MaxNum;
|
Data.ScreenConfig.NumPlayerAtOnce = MaxNum;
|
||||||
|
|
||||||
// build mics at once slide
|
// build mics at once slide
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumMics)].Clear();
|
SelectSlides[SelectSlideNumMics].Clear();
|
||||||
for (int i = 1; i <= MaxNum; i++)
|
for (int i = 1; i <= MaxNum; i++)
|
||||||
{
|
SelectSlides[SelectSlideNumMics].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumMics)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumMics].Selection = Data.ScreenConfig.NumPlayerAtOnce - _PartyMode.GetMinPlayer();
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection = Data.ScreenConfig.NumPlayerAtOnce - _PartyMode.GetMinPlayer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateSlideRounds()
|
private void UpdateSlideRounds()
|
||||||
{
|
{
|
||||||
// build num rounds slide
|
// build num rounds slide
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumRounds)].Clear();
|
SelectSlides[SelectSlideNumRounds].Clear();
|
||||||
for (int i = _RoundSteps; i <= _MaxNumRounds; i += _RoundSteps)
|
for (int i = _RoundSteps; i <= _MaxNumRounds; i += _RoundSteps)
|
||||||
{
|
SelectSlides[SelectSlideNumRounds].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumRounds)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumRounds].Selection = Data.ScreenConfig.NumRounds / _RoundSteps - 1;
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumRounds)].Selection = Data.ScreenConfig.NumRounds / _RoundSteps - 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetRoundSteps()
|
private void SetRoundSteps()
|
||||||
@@ -251,7 +221,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void Next()
|
private void Next()
|
||||||
{
|
{
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.Challenge
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
struct TableRow
|
struct TableRow
|
||||||
{
|
{
|
||||||
@@ -24,41 +22,43 @@ namespace Vocaluxe.PartyModes
|
|||||||
public List<CText> TextScores;
|
public List<CText> TextScores;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public class PartyScreenChallengeMain : CMenuParty
|
public class PartyScreenChallengeMain : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string TextPosition = "TextPosition";
|
private const string TextPosition = "TextPosition";
|
||||||
const string TextPlayerName = "TextPlayerName";
|
private const string TextPlayerName = "TextPlayerName";
|
||||||
const string TextNumPlayed = "TextNumPlayed";
|
private const string TextNumPlayed = "TextNumPlayed";
|
||||||
const string TextWon = "TextWon";
|
private const string TextWon = "TextWon";
|
||||||
const string TextSingPoints = "TextSingPoints";
|
private const string TextSingPoints = "TextSingPoints";
|
||||||
const string TextGamePoints = "TextGamePoints";
|
private const string TextGamePoints = "TextGamePoints";
|
||||||
const string TextNextPlayer = "TextNextPlayer";
|
private const string TextNextPlayer = "TextNextPlayer";
|
||||||
const string TextPopupReallyExit = "TextPopupReallyExit";
|
private const string TextPopupReallyExit = "TextPopupReallyExit";
|
||||||
const string TextRoundPlayer = "TextRoundPlayer";
|
private const string TextRoundPlayer = "TextRoundPlayer";
|
||||||
const string TextRoundScore = "TextRoundScore";
|
private const string TextRoundScore = "TextRoundScore";
|
||||||
const string TextRoundNumber = "TextRoundNumber";
|
private const string TextRoundNumber = "TextRoundNumber";
|
||||||
const string TextFinishMessage = "TextFinishMessage";
|
private const string TextFinishMessage = "TextFinishMessage";
|
||||||
const string TextFinishPlayerWin = "TextFinishPlayerWin";
|
private const string TextFinishPlayerWin = "TextFinishPlayerWin";
|
||||||
const string TextNextPlayerMessage = "TextNextPlayerMessage";
|
private const string TextNextPlayerMessage = "TextNextPlayerMessage";
|
||||||
|
|
||||||
const string ButtonNextRound = "ButtonNextRound";
|
private const string ButtonNextRound = "ButtonNextRound";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
const string ButtonExit = "ButtonExit";
|
private const string ButtonExit = "ButtonExit";
|
||||||
const string ButtonPopupYes = "ButtonPopupYes";
|
private const string ButtonPopupYes = "ButtonPopupYes";
|
||||||
const string ButtonPopupNo = "ButtonPopupNo";
|
private const string ButtonPopupNo = "ButtonPopupNo";
|
||||||
const string ButtonPlayerScrollUp = "ButtonPlayerScrollUp";
|
private const string ButtonPlayerScrollUp = "ButtonPlayerScrollUp";
|
||||||
const string ButtonPlayerScrollDown = "ButtonPlayerScrollDown";
|
private const string ButtonPlayerScrollDown = "ButtonPlayerScrollDown";
|
||||||
const string ButtonRoundsScrollUp = "ButtonRoundsScrollUp";
|
private const string ButtonRoundsScrollUp = "ButtonRoundsScrollUp";
|
||||||
const string ButtonRoundsScrollDown = "ButtonRoundsScrollDown";
|
private const string ButtonRoundsScrollDown = "ButtonRoundsScrollDown";
|
||||||
|
|
||||||
const string StaticPopupBG = "StaticPopupBG";
|
private const string StaticPopupBG = "StaticPopupBG";
|
||||||
const string StaticNextPlayer = "StaticNextPlayer";
|
private const string StaticNextPlayer = "StaticNextPlayer";
|
||||||
|
|
||||||
private bool ExitPopupVisible = false;
|
private bool ExitPopupVisible;
|
||||||
|
|
||||||
private DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
private DataToScreenMain GameState;
|
private DataToScreenMain GameState;
|
||||||
@@ -70,8 +70,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private SRectF RoundsTableScrollArea;
|
private SRectF RoundsTableScrollArea;
|
||||||
private SRectF PlayerTableScrollArea;
|
private SRectF PlayerTableScrollArea;
|
||||||
private int RoundsTableOffset = 0;
|
private int RoundsTableOffset;
|
||||||
private int PlayerTableOffset = 0;
|
private int PlayerTableOffset;
|
||||||
private int NumPlayerVisible = 10;
|
private int NumPlayerVisible = 10;
|
||||||
private int NumRoundsVisible = 3;
|
private int NumRoundsVisible = 3;
|
||||||
|
|
||||||
@@ -81,20 +81,23 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenMain = new FromScreenMain();
|
Data.ScreenMain = new FromScreenMain();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeMain";
|
_ThemeTexts = new string[]
|
||||||
_ThemeTexts = new string[] { TextPosition, TextPlayerName, TextNumPlayed, TextWon, TextSingPoints, TextGamePoints, TextNextPlayer, TextPopupReallyExit, TextRoundNumber, TextRoundPlayer, TextRoundScore, TextFinishMessage, TextFinishPlayerWin, TextNextPlayerMessage };
|
{
|
||||||
_ThemeButtons = new string[] { ButtonNextRound, ButtonBack, ButtonExit, ButtonPopupYes, ButtonPopupNo, ButtonPlayerScrollDown, ButtonPlayerScrollUp, ButtonRoundsScrollDown, ButtonRoundsScrollUp };
|
TextPosition, TextPlayerName, TextNumPlayed, TextWon, TextSingPoints, TextGamePoints, TextNextPlayer, TextPopupReallyExit, TextRoundNumber, TextRoundPlayer,
|
||||||
_ThemeStatics = new string[] { StaticPopupBG, StaticNextPlayer };
|
TextRoundScore, TextFinishMessage, TextFinishPlayerWin, TextNextPlayerMessage
|
||||||
_ScreenVersion = ScreenVersion;
|
};
|
||||||
|
_ThemeButtons = new string[]
|
||||||
|
{ButtonNextRound, ButtonBack, ButtonExit, ButtonPopupYes, ButtonPopupNo, ButtonPlayerScrollDown, ButtonPlayerScrollUp, ButtonRoundsScrollDown, ButtonRoundsScrollUp};
|
||||||
|
_ThemeStatics = new string[] {StaticPopupBG, StaticNextPlayer};
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
public override void LoadTheme(string XmlPath)
|
||||||
{
|
{
|
||||||
base.LoadTheme(XmlPath);
|
base.LoadTheme(XmlPath);
|
||||||
|
|
||||||
GameState = new DataToScreenMain();
|
GameState = new DataToScreenMain();
|
||||||
BuildPlayerTable();
|
BuildPlayerTable();
|
||||||
@@ -104,9 +107,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
for (int i = 0; i < _PartyMode.GetMaxPlayer(); i++)
|
for (int i = 0; i < _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
NextPlayerTexts.Add(GetNewText(Texts[htTexts(TextNextPlayer)]));
|
NextPlayerTexts.Add(GetNewText(Texts[TextNextPlayer]));
|
||||||
AddText(NextPlayerTexts[NextPlayerTexts.Count - 1]);
|
AddText(NextPlayerTexts[NextPlayerTexts.Count - 1]);
|
||||||
NextPlayerStatics.Add(GetNewStatic(Statics[htStatics(StaticNextPlayer)]));
|
NextPlayerStatics.Add(GetNewStatic(Statics[StaticNextPlayer]));
|
||||||
AddStatic(NextPlayerStatics[NextPlayerStatics.Count - 1]);
|
AddStatic(NextPlayerStatics[NextPlayerStatics.Count - 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -122,30 +125,28 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen challenge main. Can't cast received data from game mode " + _ThemeName + ". " + e.Message); ;
|
CBase.Log.LogError("Error in party mode screen challenge main. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (KeyEvent.Key)
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Back:
|
case Keys.Back:
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
|
{
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
break;
|
break;
|
||||||
@@ -153,26 +154,26 @@ namespace Vocaluxe.PartyModes
|
|||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonNextRound)].Selected)
|
if (Buttons[ButtonNextRound].Selected)
|
||||||
NextRound();
|
NextRound();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected && GameState.CurrentRoundNr == 1)
|
if (Buttons[ButtonBack].Selected && GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected && GameState.CurrentRoundNr > 1)
|
if (Buttons[ButtonExit].Selected && GameState.CurrentRoundNr > 1)
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollUp)].Selected)
|
if (Buttons[ButtonPlayerScrollUp].Selected)
|
||||||
ScrollPlayerTable(-1);
|
ScrollPlayerTable(-1);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollDown)].Selected)
|
if (Buttons[ButtonPlayerScrollDown].Selected)
|
||||||
ScrollPlayerTable(1);
|
ScrollPlayerTable(1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollUp)].Selected)
|
if (Buttons[ButtonRoundsScrollUp].Selected)
|
||||||
ScrollRoundsTable(-1);
|
ScrollRoundsTable(-1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollDown)].Selected)
|
if (Buttons[ButtonRoundsScrollDown].Selected)
|
||||||
ScrollRoundsTable(1);
|
ScrollRoundsTable(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonPopupYes)].Selected)
|
if (Buttons[ButtonPopupYes].Selected)
|
||||||
EndParty();
|
EndParty();
|
||||||
if (Buttons[htButtons(ButtonPopupNo)].Selected)
|
if (Buttons[ButtonPopupNo].Selected)
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -181,55 +182,57 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonNextRound)].Selected)
|
if (Buttons[ButtonNextRound].Selected)
|
||||||
NextRound();
|
NextRound();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected && GameState.CurrentRoundNr == 1)
|
if (Buttons[ButtonBack].Selected && GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected && GameState.CurrentRoundNr > 1)
|
if (Buttons[ButtonExit].Selected && GameState.CurrentRoundNr > 1)
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollUp)].Selected)
|
if (Buttons[ButtonPlayerScrollUp].Selected)
|
||||||
ScrollPlayerTable(-1);
|
ScrollPlayerTable(-1);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollDown)].Selected)
|
if (Buttons[ButtonPlayerScrollDown].Selected)
|
||||||
ScrollPlayerTable(1);
|
ScrollPlayerTable(1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollUp)].Selected)
|
if (Buttons[ButtonRoundsScrollUp].Selected)
|
||||||
ScrollRoundsTable(-1);
|
ScrollRoundsTable(-1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollDown)].Selected)
|
if (Buttons[ButtonRoundsScrollDown].Selected)
|
||||||
ScrollRoundsTable(1);
|
ScrollRoundsTable(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonPopupYes)].Selected)
|
if (Buttons[ButtonPopupYes].Selected)
|
||||||
EndParty();
|
EndParty();
|
||||||
if (Buttons[htButtons(ButtonPopupNo)].Selected)
|
if (Buttons[ButtonPopupNo].Selected)
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
{
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
|
{
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.Wheel != 0)
|
if (mouseEvent.Wheel != 0)
|
||||||
{
|
{
|
||||||
if(CHelper.IsInBounds(RoundsTableScrollArea, MouseEvent))
|
if (CHelper.IsInBounds(RoundsTableScrollArea, mouseEvent))
|
||||||
ScrollRoundsTable(MouseEvent.Wheel);
|
ScrollRoundsTable(mouseEvent.Wheel);
|
||||||
if(CHelper.IsInBounds(PlayerTableScrollArea, MouseEvent))
|
if (CHelper.IsInBounds(PlayerTableScrollArea, mouseEvent))
|
||||||
ScrollPlayerTable(MouseEvent.Wheel);
|
ScrollPlayerTable(mouseEvent.Wheel);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -253,29 +256,29 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonBack)].Visible = true;
|
Buttons[ButtonBack].Visible = true;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = false;
|
Buttons[ButtonExit].Visible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonBack)].Visible = false;
|
Buttons[ButtonBack].Visible = false;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = true;
|
Buttons[ButtonExit].Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = true;
|
Buttons[ButtonNextRound].Visible = true;
|
||||||
Texts[htTexts(TextFinishMessage)].Visible = false;
|
Texts[TextFinishMessage].Visible = false;
|
||||||
Texts[htTexts(TextFinishPlayerWin)].Visible = false;
|
Texts[TextFinishPlayerWin].Visible = false;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNextRound)]);
|
SetInteractionToButton(Buttons[ButtonNextRound]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = false;
|
Buttons[ButtonNextRound].Visible = false;
|
||||||
Texts[htTexts(TextFinishMessage)].Visible = true;
|
Texts[TextFinishMessage].Visible = true;
|
||||||
Texts[htTexts(TextFinishPlayerWin)].Visible = true;
|
Texts[TextFinishPlayerWin].Visible = true;
|
||||||
Texts[htTexts(TextFinishPlayerWin)].Text = GetPlayerWinString();
|
Texts[TextFinishPlayerWin].Text = GetPlayerWinString();
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonExit)]);
|
SetInteractionToButton(Buttons[ButtonExit]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
@@ -292,16 +295,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void NextRound()
|
private void NextRound()
|
||||||
{
|
{
|
||||||
Data.ScreenMain.FadeToNameSelection = false;
|
Data.ScreenMain.FadeToNameSelection = false;
|
||||||
Data.ScreenMain.FadeToSongSelection = true;
|
Data.ScreenMain.FadeToSongSelection = true;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EndParty()
|
private void EndParty()
|
||||||
@@ -313,25 +311,25 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
ExitPopupVisible = Visible;
|
ExitPopupVisible = Visible;
|
||||||
|
|
||||||
Statics[htStatics(StaticPopupBG)].Visible = ExitPopupVisible;
|
Statics[StaticPopupBG].Visible = ExitPopupVisible;
|
||||||
Texts[htTexts(TextPopupReallyExit)].Visible = ExitPopupVisible;
|
Texts[TextPopupReallyExit].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupYes)].Visible = ExitPopupVisible;
|
Buttons[ButtonPopupYes].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupNo)].Visible = ExitPopupVisible;
|
Buttons[ButtonPopupNo].Visible = ExitPopupVisible;
|
||||||
|
|
||||||
if (ExitPopupVisible)
|
if (ExitPopupVisible)
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonPopupNo)]);
|
SetInteractionToButton(Buttons[ButtonPopupNo]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Back()
|
private void Back()
|
||||||
{
|
{
|
||||||
Data.ScreenMain.FadeToNameSelection = true;
|
Data.ScreenMain.FadeToNameSelection = true;
|
||||||
Data.ScreenMain.FadeToSongSelection = false;
|
Data.ScreenMain.FadeToSongSelection = false;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateNextPlayerPositions()
|
private void UpdateNextPlayerPositions()
|
||||||
{
|
{
|
||||||
float x = CBase.Settings.GetRenderW()/2 - ((GameState.NumPlayerAtOnce * Statics[htStatics(StaticNextPlayer)].Rect.W) + ((GameState.NumPlayerAtOnce-1) * 15))/2;
|
float x = CBase.Settings.GetRenderW() / 2 - ((GameState.NumPlayerAtOnce * Statics[StaticNextPlayer].Rect.W) + ((GameState.NumPlayerAtOnce - 1) * 15)) / 2;
|
||||||
float static_y = 590;
|
float static_y = 590;
|
||||||
float text_y = 550;
|
float text_y = 550;
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
@@ -341,11 +339,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
NextPlayerStatics[i].Rect.Y = static_y;
|
NextPlayerStatics[i].Rect.Y = static_y;
|
||||||
NextPlayerStatics[i].Visible = true;
|
NextPlayerStatics[i].Visible = true;
|
||||||
//text
|
//text
|
||||||
NextPlayerTexts[i].X = x + Statics[htStatics(StaticNextPlayer)].Rect.W / 2;
|
NextPlayerTexts[i].X = x + Statics[StaticNextPlayer].Rect.W / 2;
|
||||||
NextPlayerTexts[i].Y = text_y;
|
NextPlayerTexts[i].Y = text_y;
|
||||||
NextPlayerTexts[i].Visible = true;
|
NextPlayerTexts[i].Visible = true;
|
||||||
|
|
||||||
x += Statics[htStatics(StaticNextPlayer)].Rect.W + 15;
|
x += Statics[StaticNextPlayer].Rect.W + 15;
|
||||||
}
|
}
|
||||||
for (int i = GameState.NumPlayerAtOnce; i < _PartyMode.GetMaxPlayer(); i++)
|
for (int i = GameState.NumPlayerAtOnce; i < _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
@@ -358,19 +356,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextNextPlayerMessage)].Visible = true;
|
Texts[TextNextPlayerMessage].Visible = true;
|
||||||
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
{
|
{
|
||||||
int pid = GameState.Combs[GameState.CurrentRoundNr - 1].Player[i];
|
int pid = GameState.Combs[GameState.CurrentRoundNr - 1].Player[i];
|
||||||
NextPlayerStatics[i].Texture = profiles[GameState.ProfileIDs[pid]].Avatar.Texture;
|
NextPlayerStatics[i].Texture = profiles[GameState.ProfileIDs[pid]].Avatar.Texture;
|
||||||
NextPlayerTexts[i].Text = profiles[GameState.ProfileIDs[pid]].PlayerName;
|
NextPlayerTexts[i].Text = profiles[GameState.ProfileIDs[pid]].PlayerName;
|
||||||
NextPlayerTexts[i].Color = CBase.Theme.GetPlayerColor((i + 1));
|
NextPlayerTexts[i].Color = CBase.Theme.GetPlayerColor(i + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextNextPlayerMessage)].Visible = false;
|
Texts[TextNextPlayerMessage].Visible = false;
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
{
|
{
|
||||||
NextPlayerStatics[i].Visible = false;
|
NextPlayerStatics[i].Visible = false;
|
||||||
@@ -394,7 +392,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int round = 0; round < RoundsTable.Count; round++)
|
for (int round = 0; round < RoundsTable.Count; round++)
|
||||||
{
|
{
|
||||||
//Round-number
|
//Round-number
|
||||||
CText text = GetNewText(Texts[htTexts(TextRoundNumber)]);
|
CText text = GetNewText(Texts[TextRoundNumber]);
|
||||||
AddText(text);
|
AddText(text);
|
||||||
RoundsTable[round].Number = text;
|
RoundsTable[round].Number = text;
|
||||||
for (int row = 0; row < 2; row++)
|
for (int row = 0; row < 2; row++)
|
||||||
@@ -402,11 +400,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int column = 0; column < 3; column++)
|
for (int column = 0; column < 3; column++)
|
||||||
{
|
{
|
||||||
//Player
|
//Player
|
||||||
text = GetNewText(Texts[htTexts(TextRoundPlayer)]);
|
text = GetNewText(Texts[TextRoundPlayer]);
|
||||||
AddText(text);
|
AddText(text);
|
||||||
RoundsTable[round].TextPlayer.Add(text);
|
RoundsTable[round].TextPlayer.Add(text);
|
||||||
//Score
|
//Score
|
||||||
text = GetNewText(Texts[htTexts(TextRoundScore)]);
|
text = GetNewText(Texts[TextRoundScore]);
|
||||||
AddText(text);
|
AddText(text);
|
||||||
RoundsTable[round].TextScores.Add(text);
|
RoundsTable[round].TextScores.Add(text);
|
||||||
}
|
}
|
||||||
@@ -427,14 +425,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (NumRoundsVisible > GameState.Combs.Count)
|
if (NumRoundsVisible > GameState.Combs.Count)
|
||||||
NumRoundsVisible = GameState.Combs.Count;
|
NumRoundsVisible = GameState.Combs.Count;
|
||||||
|
|
||||||
float x = Texts[htTexts(TextRoundNumber)].X;
|
float x = Texts[TextRoundNumber].X;
|
||||||
float y = Texts[htTexts(TextRoundNumber)].Y;
|
float y = Texts[TextRoundNumber].Y;
|
||||||
|
|
||||||
RoundsTableScrollArea.X = x;
|
RoundsTableScrollArea.X = x;
|
||||||
RoundsTableScrollArea.Y = y;
|
RoundsTableScrollArea.Y = y;
|
||||||
RoundsTableScrollArea.W = CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20;
|
RoundsTableScrollArea.W = CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20;
|
||||||
|
|
||||||
float delta = Texts[htTexts(TextRoundNumber)].Height;
|
float delta = Texts[TextRoundNumber].Height;
|
||||||
|
|
||||||
//Update statics and texts for rounds
|
//Update statics and texts for rounds
|
||||||
for (int round = 0; round < RoundsTable.Count; round++)
|
for (int round = 0; round < RoundsTable.Count; round++)
|
||||||
@@ -455,8 +453,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int column = row * NumPlayerInOneRow; column < num; column++)
|
for (int column = row * NumPlayerInOneRow; column < num; column++)
|
||||||
{
|
{
|
||||||
//Player
|
//Player
|
||||||
float _x = x + 15 + (CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20) / NumPlayerInThisRow * (column - row * NumPlayerInOneRow) + ((CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20) / NumPlayerInThisRow) / 2;
|
float _x = x + 15 + (CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20) / NumPlayerInThisRow * (column - row * NumPlayerInOneRow) +
|
||||||
float maxw = ((CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20) / NumPlayerInThisRow) / 2 - 5;
|
((CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20) / NumPlayerInThisRow) / 2;
|
||||||
|
float maxw = ((CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20) / NumPlayerInThisRow) / 2 - 5;
|
||||||
RoundsTable[round].TextPlayer[column].X = _x;
|
RoundsTable[round].TextPlayer[column].X = _x;
|
||||||
RoundsTable[round].TextPlayer[column].Y = y;
|
RoundsTable[round].TextPlayer[column].Y = y;
|
||||||
RoundsTable[round].TextPlayer[column].MaxWidth = maxw;
|
RoundsTable[round].TextPlayer[column].MaxWidth = maxw;
|
||||||
@@ -478,7 +477,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
SProfile[] profile = CBase.Profiles.GetProfiles();
|
SProfile[] profile = CBase.Profiles.GetProfiles();
|
||||||
for (int i = 0; i < RoundsTable.Count; i++)
|
for (int i = 0; i < RoundsTable.Count; i++)
|
||||||
{
|
{
|
||||||
for(int p = 0; p < RoundsTable[i].TextPlayer.Count; p++)
|
for (int p = 0; p < RoundsTable[i].TextPlayer.Count; p++)
|
||||||
{
|
{
|
||||||
if (GameState.Combs.Count > i + RoundsTableOffset && GameState.Combs[i + RoundsTableOffset].Player.Count > p)
|
if (GameState.Combs.Count > i + RoundsTableOffset && GameState.Combs[i + RoundsTableOffset].Player.Count > p)
|
||||||
{
|
{
|
||||||
@@ -510,19 +509,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Buttons[htButtons(ButtonRoundsScrollUp)].Visible = RoundsTableOffset > 0;
|
Buttons[ButtonRoundsScrollUp].Visible = RoundsTableOffset > 0;
|
||||||
Buttons[htButtons(ButtonRoundsScrollDown)].Visible = GameState.Combs.Count - NumRoundsVisible - RoundsTableOffset > 0;
|
Buttons[ButtonRoundsScrollDown].Visible = GameState.Combs.Count - NumRoundsVisible - RoundsTableOffset > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void BuildPlayerTable()
|
private void BuildPlayerTable()
|
||||||
{
|
{
|
||||||
PlayerTableScrollArea = new SRectF();
|
PlayerTableScrollArea = new SRectF();
|
||||||
PlayerTableScrollArea.X = Texts[htTexts(TextPosition)].X;
|
PlayerTableScrollArea.X = Texts[TextPosition].X;
|
||||||
PlayerTableScrollArea.Y = Texts[htTexts(TextPosition)].Y;
|
PlayerTableScrollArea.Y = Texts[TextPosition].Y;
|
||||||
PlayerTableScrollArea.W = Texts[htTexts(TextGamePoints)].X - Texts[htTexts(TextPosition)].X;
|
PlayerTableScrollArea.W = Texts[TextGamePoints].X - Texts[TextPosition].X;
|
||||||
|
|
||||||
PlayerTable = new List<TableRow>();
|
PlayerTable = new List<TableRow>();
|
||||||
float delta = Texts[htTexts(TextPosition)].Height * 1.2f;
|
float delta = Texts[TextPosition].Height * 1.2f;
|
||||||
|
|
||||||
float h = 0;
|
float h = 0;
|
||||||
|
|
||||||
@@ -530,12 +529,12 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
TableRow row = new TableRow();
|
TableRow row = new TableRow();
|
||||||
|
|
||||||
row.Pos = GetNewText(Texts[htTexts(TextPosition)]);
|
row.Pos = GetNewText(Texts[TextPosition]);
|
||||||
row.Name = GetNewText(Texts[htTexts(TextPlayerName)]);
|
row.Name = GetNewText(Texts[TextPlayerName]);
|
||||||
row.Rounds = GetNewText(Texts[htTexts(TextNumPlayed)]);
|
row.Rounds = GetNewText(Texts[TextNumPlayed]);
|
||||||
row.Won = GetNewText(Texts[htTexts(TextWon)]);
|
row.Won = GetNewText(Texts[TextWon]);
|
||||||
row.SingPoints = GetNewText(Texts[htTexts(TextSingPoints)]);
|
row.SingPoints = GetNewText(Texts[TextSingPoints]);
|
||||||
row.GamePoints = GetNewText(Texts[htTexts(TextGamePoints)]);
|
row.GamePoints = GetNewText(Texts[TextGamePoints]);
|
||||||
|
|
||||||
row.Pos.Y += delta * (i + 1);
|
row.Pos.Y += delta * (i + 1);
|
||||||
row.Name.Y += delta * (i + 1);
|
row.Name.Y += delta * (i + 1);
|
||||||
@@ -575,7 +574,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
TableRow row = PlayerTable[i];
|
TableRow row = PlayerTable[i];
|
||||||
|
|
||||||
if (i+PlayerTableOffset < GameState.ResultTable.Count)
|
if (i + PlayerTableOffset < GameState.ResultTable.Count)
|
||||||
{
|
{
|
||||||
row.Pos.Visible = true;
|
row.Pos.Visible = true;
|
||||||
row.Name.Visible = true;
|
row.Name.Visible = true;
|
||||||
@@ -585,11 +584,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
row.GamePoints.Visible = true;
|
row.GamePoints.Visible = true;
|
||||||
|
|
||||||
row.Pos.Text = GameState.ResultTable[i + PlayerTableOffset].Position.ToString() + ".";
|
row.Pos.Text = GameState.ResultTable[i + PlayerTableOffset].Position.ToString() + ".";
|
||||||
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].NumSingPoints.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
|
||||||
{
|
{
|
||||||
@@ -602,8 +601,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Buttons[htButtons(ButtonPlayerScrollUp)].Visible = PlayerTableOffset > 0;
|
Buttons[ButtonPlayerScrollUp].Visible = PlayerTableOffset > 0;
|
||||||
Buttons[htButtons(ButtonPlayerScrollDown)].Visible = GameState.ProfileIDs.Count - NumPlayerVisible - PlayerTableOffset > 0;
|
Buttons[ButtonPlayerScrollDown].Visible = GameState.ProfileIDs.Count - NumPlayerVisible - PlayerTableOffset > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ScrollPlayerTable(int Offset)
|
private void ScrollPlayerTable(int Offset)
|
||||||
|
|||||||
@@ -1,21 +1,22 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.Challenge
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class PartyScreenChallengeNames : CMenuParty
|
public class PartyScreenChallengeNames : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string ButtonNext = "ButtonNext";
|
private const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
const string ButtonPlayerDestination = "ButtonPlayerDestination";
|
private const string ButtonPlayerDestination = "ButtonPlayerDestination";
|
||||||
const string ButtonPlayerChoose = "ButtonPlayerChoose";
|
private const string ButtonPlayerChoose = "ButtonPlayerChoose";
|
||||||
|
|
||||||
private List<CPlayerChooseButton> PlayerChooseButtons;
|
private List<CPlayerChooseButton> PlayerChooseButtons;
|
||||||
private List<CButton> PlayerDestinationButtons;
|
private List<CButton> PlayerDestinationButtons;
|
||||||
@@ -37,11 +38,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
private int PlayerChooseButtonsOffset = 0;
|
private int PlayerChooseButtonsOffset = 0;
|
||||||
|
|
||||||
private CStatic chooseAvatarStatic;
|
private CStatic chooseAvatarStatic;
|
||||||
private bool SelectingMouseActive = false;
|
private bool SelectingMouseActive;
|
||||||
private int OldMouseX = 0;
|
private int OldMouseX;
|
||||||
private int OldMouseY = 0;
|
private int OldMouseY;
|
||||||
private int SelectedPlayerNr = -1;
|
private int SelectedPlayerNr = -1;
|
||||||
private bool ButtonsAdded = false;
|
private bool ButtonsAdded;
|
||||||
|
|
||||||
private int NumPlayer = 4;
|
private int NumPlayer = 4;
|
||||||
|
|
||||||
@@ -53,11 +54,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int ProfileID;
|
public int ProfileID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PartyScreenChallengeNames()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
@@ -68,10 +65,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
Data.ScreenNames.ProfileIDs = new List<int>();
|
Data.ScreenNames.ProfileIDs = new List<int>();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeNames";
|
|
||||||
List<string> buttons = new List<string>();
|
List<string> buttons = new List<string>();
|
||||||
_ThemeButtons = new string[] { ButtonBack, ButtonNext, ButtonPlayerDestination, ButtonPlayerChoose };
|
_ThemeButtons = new string[] {ButtonBack, ButtonNext, ButtonPlayerDestination, ButtonPlayerChoose};
|
||||||
_ScreenVersion = ScreenVersion;
|
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenNames names = new FromScreenNames();
|
FromScreenNames names = new FromScreenNames();
|
||||||
@@ -81,11 +76,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenNames = names;
|
Data.ScreenNames = names;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
|
||||||
{
|
|
||||||
base.LoadTheme(XmlPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
{
|
{
|
||||||
DataToScreenNames config = new DataToScreenNames();
|
DataToScreenNames config = new DataToScreenNames();
|
||||||
@@ -100,58 +90,50 @@ namespace Vocaluxe.PartyModes
|
|||||||
NumPlayer = config.NumPlayer;
|
NumPlayer = config.NumPlayer;
|
||||||
|
|
||||||
while (Data.ScreenNames.ProfileIDs.Count > NumPlayer)
|
while (Data.ScreenNames.ProfileIDs.Count > NumPlayer)
|
||||||
{
|
|
||||||
Data.ScreenNames.ProfileIDs.RemoveAt(Data.ScreenNames.ProfileIDs.Count - 1);
|
Data.ScreenNames.ProfileIDs.RemoveAt(Data.ScreenNames.ProfileIDs.Count - 1);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen challenge names. Can't cast received data from game mode " + _ThemeName + ". " + e.Message); ;
|
CBase.Log.LogError("Error in party mode screen challenge names. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
|
case Keys.Back:
|
||||||
|
case Keys.Escape:
|
||||||
|
Back();
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
case Keys.Enter:
|
||||||
else
|
if (Buttons[ButtonBack].Selected)
|
||||||
{
|
|
||||||
switch (KeyEvent.Key)
|
|
||||||
{
|
|
||||||
case Keys.Back:
|
|
||||||
case Keys.Escape:
|
|
||||||
Back();
|
Back();
|
||||||
break;
|
|
||||||
|
|
||||||
case Keys.Enter:
|
if (Buttons[ButtonNext].Selected)
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
Next();
|
||||||
Back();
|
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (!OnAdd())
|
||||||
Next();
|
|
||||||
|
|
||||||
if (!OnAdd())
|
|
||||||
OnRemove();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Keys.Delete:
|
|
||||||
OnRemove();
|
OnRemove();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
case Keys.Delete:
|
||||||
|
OnRemove();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//Check if LeftButton is hold and Select-Mode inactive
|
//Check if LeftButton is hold and Select-Mode inactive
|
||||||
@@ -182,15 +164,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
//Check if LeftButton is hold and Select-Mode active
|
//Check if LeftButton is hold and Select-Mode active
|
||||||
if (MouseEvent.LBH && SelectingMouseActive)
|
if (mouseEvent.LBH && SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Update coords for Drag/Drop-Texture
|
//Update coords for Drag/Drop-Texture
|
||||||
chooseAvatarStatic.Rect.X += (MouseEvent.X - OldMouseX);
|
chooseAvatarStatic.Rect.X += mouseEvent.X - OldMouseX;
|
||||||
chooseAvatarStatic.Rect.Y += (MouseEvent.Y - OldMouseY);
|
chooseAvatarStatic.Rect.Y += mouseEvent.Y - OldMouseY;
|
||||||
OldMouseX = MouseEvent.X;
|
OldMouseX = mouseEvent.X;
|
||||||
OldMouseY = MouseEvent.Y;
|
OldMouseY = mouseEvent.Y;
|
||||||
}
|
}
|
||||||
// LeftButton isn't hold anymore, but Selec-Mode is still active -> "Drop" of Avatar
|
// LeftButton isn't hold anymore, but Selec-Mode is still active -> "Drop" of Avatar
|
||||||
else if (SelectingMouseActive)
|
else if (SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Check if really a player was selected
|
//Check if really a player was selected
|
||||||
@@ -200,10 +182,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < PlayerDestinationButtons.Count; i++)
|
for (int i = 0; i < PlayerDestinationButtons.Count; i++)
|
||||||
{
|
{
|
||||||
//Check first, if area is "active"
|
//Check first, if area is "active"
|
||||||
if (PlayerDestinationButtons[i].Visible == true)
|
if (PlayerDestinationButtons[i].Visible)
|
||||||
{
|
{
|
||||||
//Check if Mouse is in area
|
//Check if Mouse is in area
|
||||||
if (CHelper.IsInBounds(PlayerDestinationButtons[i].Rect, MouseEvent))
|
if (CHelper.IsInBounds(PlayerDestinationButtons[i].Rect, mouseEvent))
|
||||||
{
|
{
|
||||||
int added = -1;
|
int added = -1;
|
||||||
//Add Player-ID to list.
|
//Add Player-ID to list.
|
||||||
@@ -236,22 +218,20 @@ namespace Vocaluxe.PartyModes
|
|||||||
chooseAvatarStatic.Visible = false;
|
chooseAvatarStatic.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
|
|
||||||
if (!OnAdd())
|
if (!OnAdd())
|
||||||
OnRemove();
|
OnRemove();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
|
||||||
Back();
|
Back();
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -286,20 +266,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AddButtonPlayerDestination()
|
private void AddButtonPlayerDestination()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonPlayerDestination)].Visible = false;
|
Buttons[ButtonPlayerDestination].Visible = false;
|
||||||
PlayerDestinationButtons = new List<CButton>();
|
PlayerDestinationButtons = new List<CButton>();
|
||||||
int row = 0;
|
int row = 0;
|
||||||
int column = 0;
|
int column = 0;
|
||||||
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
CButton b = GetNewButton(Buttons[htButtons(ButtonPlayerDestination)]);
|
CButton b = GetNewButton(Buttons[ButtonPlayerDestination]);
|
||||||
b.Rect.X = PlayerDestinationButtonsFirstX + column * (b.Rect.W + PlayerDestinationButtonsSpaceH);
|
b.Rect.X = PlayerDestinationButtonsFirstX + column * (b.Rect.W + PlayerDestinationButtonsSpaceH);
|
||||||
b.Rect.Y = PlayerDestinationButtonsFirstY + row * (b.Rect.H + PlayerDestinationButtonsSpaceW);
|
b.Rect.Y = PlayerDestinationButtonsFirstY + row * (b.Rect.H + PlayerDestinationButtonsSpaceW);
|
||||||
PlayerDestinationButtons.Add(b);
|
PlayerDestinationButtons.Add(b);
|
||||||
@@ -317,13 +292,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void AddButtonPlayerChoose()
|
private void AddButtonPlayerChoose()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonPlayerChoose)].Visible = false;
|
Buttons[ButtonPlayerChoose].Visible = false;
|
||||||
PlayerChooseButtons = new List<CPlayerChooseButton>();
|
PlayerChooseButtons = new List<CPlayerChooseButton>();
|
||||||
int row = 0;
|
int row = 0;
|
||||||
int column = 0;
|
int column = 0;
|
||||||
for (int i = 1; i <= PlayerChooseButtonsNumH * PlayerChooseButtonsNumW; i++)
|
for (int i = 1; i <= PlayerChooseButtonsNumH * PlayerChooseButtonsNumW; i++)
|
||||||
{
|
{
|
||||||
CButton b = GetNewButton(Buttons[htButtons(ButtonPlayerChoose)]);
|
CButton b = GetNewButton(Buttons[ButtonPlayerChoose]);
|
||||||
b.Rect.X = PlayerChooseButtonsFirstX + column * (b.Rect.W + PlayerChooseButtonsSpaceH);
|
b.Rect.X = PlayerChooseButtonsFirstX + column * (b.Rect.W + PlayerChooseButtonsSpaceH);
|
||||||
b.Rect.Y = PlayerChooseButtonsFirstY + row * (b.Rect.H + PlayerChooseButtonsSpaceW);
|
b.Rect.Y = PlayerChooseButtonsFirstY + row * (b.Rect.H + PlayerChooseButtonsSpaceW);
|
||||||
CPlayerChooseButton pcb = new CPlayerChooseButton();
|
CPlayerChooseButton pcb = new CPlayerChooseButton();
|
||||||
@@ -345,14 +320,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
private void UpdateButtonPlayerChoose()
|
private void UpdateButtonPlayerChoose()
|
||||||
{
|
{
|
||||||
UpdateVisibleProfiles();
|
UpdateVisibleProfiles();
|
||||||
if ((PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * (PlayerChooseButtonsOffset + 1) - PlayerChooseButtonsVisibleProfiles.Count >= (PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * PlayerChooseButtonsOffset)
|
if ((PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * (PlayerChooseButtonsOffset + 1) - PlayerChooseButtonsVisibleProfiles.Count >=
|
||||||
{
|
(PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * PlayerChooseButtonsOffset)
|
||||||
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset - 1);
|
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset - 1);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset);
|
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateButtonPlayerChoose(int Offset)
|
private void UpdateButtonPlayerChoose(int Offset)
|
||||||
@@ -379,10 +351,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
PlayerChooseButtons[i].ProfileID = -1;
|
PlayerChooseButtons[i].ProfileID = -1;
|
||||||
PlayerChooseButtons[i].Button.Text.Text = String.Empty;
|
PlayerChooseButtons[i].Button.Text.Text = String.Empty;
|
||||||
PlayerChooseButtons[i].Button.Texture = Buttons[htButtons(ButtonPlayerChoose)].Texture;
|
PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture;
|
||||||
PlayerChooseButtons[i].Button.STexture = Buttons[htButtons(ButtonPlayerChoose)].STexture;
|
PlayerChooseButtons[i].Button.STexture = Buttons[ButtonPlayerChoose].STexture;
|
||||||
PlayerChooseButtons[i].Button.Color = Buttons[htButtons(ButtonPlayerChoose)].Color;
|
PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color;
|
||||||
PlayerChooseButtons[i].Button.SColor = Buttons[htButtons(ButtonPlayerChoose)].SColor;
|
PlayerChooseButtons[i].Button.SColor = Buttons[ButtonPlayerChoose].SColor;
|
||||||
PlayerChooseButtons[i].Button.Enabled = false;
|
PlayerChooseButtons[i].Button.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -411,9 +383,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (visible)
|
if (visible)
|
||||||
{
|
|
||||||
PlayerChooseButtonsVisibleProfiles.Add(i);
|
PlayerChooseButtonsVisibleProfiles.Add(i);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -448,10 +418,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayerDestinationButtons[i].Color = Buttons[htButtons(ButtonPlayerDestination)].Color;
|
PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color;
|
||||||
PlayerDestinationButtons[i].SColor = Buttons[htButtons(ButtonPlayerDestination)].SColor;
|
PlayerDestinationButtons[i].SColor = Buttons[ButtonPlayerDestination].SColor;
|
||||||
PlayerDestinationButtons[i].Texture = Buttons[htButtons(ButtonPlayerDestination)].Texture;
|
PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture;
|
||||||
PlayerDestinationButtons[i].STexture = Buttons[htButtons(ButtonPlayerDestination)].STexture;
|
PlayerDestinationButtons[i].STexture = Buttons[ButtonPlayerDestination].STexture;
|
||||||
PlayerDestinationButtons[i].Text.Text = String.Empty;
|
PlayerDestinationButtons[i].Text.Text = String.Empty;
|
||||||
PlayerDestinationButtons[i].Enabled = false;
|
PlayerDestinationButtons[i].Enabled = false;
|
||||||
}
|
}
|
||||||
@@ -462,11 +432,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
if (Data.ScreenNames.ProfileIDs.Count == NumPlayer)
|
if (Data.ScreenNames.ProfileIDs.Count == NumPlayer)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNext)].Visible = true;
|
Buttons[ButtonNext].Visible = true;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNext)]);
|
SetInteractionToButton(Buttons[ButtonNext]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Buttons[htButtons(ButtonNext)].Visible = false;
|
Buttons[ButtonNext].Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool OnAdd()
|
private bool OnAdd()
|
||||||
@@ -521,14 +491,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
Data.ScreenNames.FadeToConfig = true;
|
Data.ScreenNames.FadeToConfig = true;
|
||||||
Data.ScreenNames.FadeToMain = false;
|
Data.ScreenNames.FadeToMain = false;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Next()
|
private void Next()
|
||||||
{
|
{
|
||||||
Data.ScreenNames.FadeToConfig = false;
|
Data.ScreenNames.FadeToConfig = false;
|
||||||
Data.ScreenNames.FadeToMain = true;
|
Data.ScreenNames.FadeToMain = true;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,809 @@
|
|||||||
|
<StyleCopSettings Version="105">
|
||||||
|
<Analyzers>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="ElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EnumerationItemsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustContainValidXml">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotHaveDefaultSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustMatchElementParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VoidReturnValueMustNotBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumentedPartialClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustMatchTypeParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustMatchAccessors">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotBeCopiedAndPasted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotUseDocumentationStyleSlashes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustNotBeEmpty">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustContainWhitespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustMeetCharacterPercentage">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DestructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationHeadersMustNotContainBlankLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludedDocumentationXPathDoesNotExist">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludeNodeDoesNotContainValidFileAndPath">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InheritDocMustBeUsedWithInheritingClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustBeSpelledCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMustHaveHeader">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustShowCopyright">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveCopyrightText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustContainFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveValidCompanyText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchTypeName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.NamingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustBeginWithLowerCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InterfaceNamesMustBeginWithI">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstFieldNamesMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotUseHungarianNotation">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustBeginWithLowerCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AccessibleFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VariableNamesMustNotBePrefixed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotContainUnderscore">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticReadonlyFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CurlyBracketsForMultiLineStatementsMustNotShareLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CurlyBracketsMustNotBeOmitted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AllAccessorsMustBeMultiLineOrSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationHeadersMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleBlankLinesInARow">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketsMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ChainedStatementBlocksMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="WhileDoFooterMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketMustBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationHeaderMustBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentMustBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeSeparatedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainBlankLinesAtStartOfFile">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainBlankLinesAtEndOfFile">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.MaintainabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="AccessModifierMustBeDeclared">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldsMustBePrivate">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeAnalysisSuppressionMustHaveJustification">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DebugAssertMustProvideMessageText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DebugFailMustProvideMessageText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotUseUnnecessaryParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ArithmeticExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConditionalExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="RemoveDelegateParenthesisWhenPossible">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AttributeConstructorMustNotUseUnnecessaryParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="RemoveUnnecessaryCode">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustAppearInTheCorrectOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeOrderedByAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstantsMustAppearBeforeFields">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticElementsMustAppearBeforeInstanceElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DeclarationKeywordsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ProtectedMustComeBeforeInternal">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertyAccessorsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EventAccessorsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticReadonlyElementsMustAppearBeforeStaticNonReadonlyElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InstanceReadonlyElementsMustAppearBeforeInstanceNonReadonlyElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingDirectivesMustBeOrderedAlphabeticallyByNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingAliasDirectivesMustBeOrderedAlphabeticallyByAliasName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CommentsMustContainText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DoNotPrefixCallsWithBaseUnlessLocalImplementationExists">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixLocalCallsWithThis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixCallsCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeOnLineOfLastParameter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeOnLineOfOpeningParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CommaMustBeOnSameLineAsPreviousParameter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterListMustFollowDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustFollowComma">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SplitParametersMustStartOnLineAfterDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustNotSpanMultipleLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClauseMustFollowPreviousClause">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClausesMustBeOnSeparateLinesOrAllOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClausesSpanningMultipleLinesMustBeginOnOwnLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DoNotPlaceRegionsWithinElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainEmptyStatements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleStatementsOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="BlockStatementsMustNotContainEmbeddedComments">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="BlockStatementsMustNotContainEmbeddedRegions">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseStringEmptyForEmptyStrings">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseBuiltInTypeAlias">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseShorthandForNullableTypes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.SpacingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="KeywordsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CommasMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SemicolonsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationLinesMustBeginWithSingleSpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustBeginWithSingleSpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PreprocessorKeywordsMustNotBePrecededBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OperatorKeywordMustBeFollowedBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningSquareBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingSquareBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningGenericBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingGenericBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningAttributeBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingAttributeBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NullableTypeSymbolsMustNotBePrecededBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="MemberAccessSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncrementDecrementSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NegativeSignsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PositiveSignsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ColonsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleWhitespaceInARow">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="TabsMustNotBeUsed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
</Analyzers>
|
||||||
|
</StyleCopSettings>
|
||||||
@@ -1,22 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.ChallengeMedley
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class ChallengeRounds
|
public class ChallengeRounds
|
||||||
{
|
{
|
||||||
private Random _Rand;
|
private readonly Random _Rand;
|
||||||
private int _NumPlayer;
|
private readonly int _NumPlayer;
|
||||||
|
|
||||||
public List<Combination> Rounds;
|
public List<Combination> Rounds;
|
||||||
|
|
||||||
public ChallengeRounds(int NumRounds, int NumPlayer, int NumPlayerAtOnce)
|
public ChallengeRounds(int NumRounds, int NumPlayer, int NumPlayerAtOnce)
|
||||||
{
|
{
|
||||||
Rounds = new List<Combination>();
|
Rounds = new List<Combination>();
|
||||||
_Rand = new Random(System.DateTime.Now.Millisecond);
|
_Rand = new Random(DateTime.Now.Millisecond);
|
||||||
|
|
||||||
if (NumPlayerAtOnce < 1 || NumRounds < 1 || NumPlayer == 0)
|
if (NumPlayerAtOnce < 1 || NumRounds < 1 || NumPlayer == 0)
|
||||||
_NumPlayer = 0;
|
_NumPlayer = 0;
|
||||||
@@ -41,26 +38,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
Rounds.Add(Combinations.GetNextCombination(null));
|
Rounds.Add(Combinations.GetNextCombination(null));
|
||||||
|
|
||||||
for (int i = 1; i < NumRounds; i++)
|
for (int i = 1; i < NumRounds; i++)
|
||||||
{
|
|
||||||
|
|
||||||
Rounds.Add(Combinations.GetNextCombination(GetPlayerDemand(i)));
|
Rounds.Add(Combinations.GetNextCombination(GetPlayerDemand(i)));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<int> GetPlayerDemand(int RoundIndex)
|
private List<int> GetPlayerDemand(int RoundIndex)
|
||||||
{
|
{
|
||||||
List<int> NumPlayed = new List<int>(_NumPlayer);
|
List<int> NumPlayed = new List<int>(_NumPlayer);
|
||||||
for (int i = 0; i < _NumPlayer; i++)
|
for (int i = 0; i < _NumPlayer; i++)
|
||||||
{
|
|
||||||
NumPlayed.Add(0);
|
NumPlayed.Add(0);
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < RoundIndex; i++)
|
for (int i = 0; i < RoundIndex; i++)
|
||||||
{
|
{
|
||||||
foreach (int PlayerIndex in Rounds[i].Player)
|
foreach (int PlayerIndex in Rounds[i].Player)
|
||||||
{
|
|
||||||
NumPlayed[PlayerIndex]++;
|
NumPlayed[PlayerIndex]++;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int max = 0;
|
int max = 0;
|
||||||
@@ -95,7 +85,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
last.Add(i);
|
last.Add(i);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,10 +118,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
class Combinations
|
class Combinations
|
||||||
{
|
{
|
||||||
private List<Combination> _Combs;
|
private readonly List<Combination> _Combs;
|
||||||
private Random _Rand;
|
private readonly Random _Rand;
|
||||||
private int _NumPlayer;
|
private readonly int _NumPlayer;
|
||||||
private int _NumMics;
|
private readonly int _NumMics;
|
||||||
|
|
||||||
public Combinations(int NumPlayer, int NumMics, Random Rand)
|
public Combinations(int NumPlayer, int NumMics, Random Rand)
|
||||||
{
|
{
|
||||||
@@ -150,9 +139,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Combination combs = new Combination();
|
Combination combs = new Combination();
|
||||||
|
|
||||||
if (_NumPlayer == _NumMics)
|
if (_NumPlayer == _NumMics)
|
||||||
{
|
|
||||||
return _Combs[0];
|
return _Combs[0];
|
||||||
}
|
|
||||||
|
|
||||||
//filter against PlayerNrDemand
|
//filter against PlayerNrDemand
|
||||||
List<Combination> combsFiltered = new List<Combination>();
|
List<Combination> combsFiltered = new List<Combination>();
|
||||||
@@ -179,18 +166,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (combsFiltered.Count == 0)
|
if (combsFiltered.Count == 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < _Combs.Count; i++)
|
for (int i = 0; i < _Combs.Count; i++)
|
||||||
{
|
|
||||||
combsFiltered.Add(_Combs[i]);
|
combsFiltered.Add(_Combs[i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int num = combsFiltered.Count;
|
int num = combsFiltered.Count;
|
||||||
int rand = _Rand.Next(num);
|
int rand = _Rand.Next(num);
|
||||||
Combination c = new Combination();
|
Combination c = new Combination();
|
||||||
for (int i = 0; i < combsFiltered[rand].Player.Count; i++)
|
for (int i = 0; i < combsFiltered[rand].Player.Count; i++)
|
||||||
{
|
|
||||||
c.Player.Add(combsFiltered[rand].Player[i]);
|
c.Player.Add(combsFiltered[rand].Player[i]);
|
||||||
}
|
|
||||||
_Combs.Remove(combsFiltered[rand]);
|
_Combs.Remove(combsFiltered[rand]);
|
||||||
|
|
||||||
return combsFiltered[rand];
|
return combsFiltered[rand];
|
||||||
@@ -209,9 +192,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int j = 0; j < _NumPlayer; j++)
|
for (int j = 0; j < _NumPlayer; j++)
|
||||||
{
|
{
|
||||||
if ((i & (1 << j)) > 0)
|
if ((i & (1 << j)) > 0)
|
||||||
{
|
|
||||||
c.Player.Add(j);
|
c.Player.Add(j);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c.Player.Count == _NumMics)
|
if (c.Player.Count == _NumMics)
|
||||||
@@ -243,9 +224,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
foreach (int p in PlayerIndices)
|
foreach (int p in PlayerIndices)
|
||||||
{
|
|
||||||
result &= IsAvailable(p);
|
result &= IsAvailable(p);
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,9 +232,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
foreach (int p in PlayerIndices)
|
foreach (int p in PlayerIndices)
|
||||||
{
|
|
||||||
result |= IsAvailable(p);
|
result |= IsAvailable(p);
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
+39
-50
@@ -1,13 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Runtime.InteropServices;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
using VocaluxeLib.Menu.SongMenu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
[assembly: ComVisible(false)]
|
||||||
using Vocaluxe.Menu.SongMenu;
|
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
namespace VocaluxeLib.PartyModes.ChallengeMedley
|
||||||
{
|
{
|
||||||
|
|
||||||
#region Communication
|
#region Communication
|
||||||
|
|
||||||
#region ToScreen
|
#region ToScreen
|
||||||
public struct DataToScreenConfig
|
public struct DataToScreenConfig
|
||||||
{
|
{
|
||||||
@@ -53,9 +56,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
res = row.NumSingPoints.CompareTo(NumSingPoints);
|
res = row.NumSingPoints.CompareTo(NumSingPoints);
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
{
|
|
||||||
res = row.NumWon.CompareTo(NumWon);
|
res = row.NumWon.CompareTo(NumWon);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@@ -63,7 +64,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
throw new ArgumentException("object is not a ResultTableRow");
|
throw new ArgumentException("object is not a ResultTableRow");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion ToScreen
|
#endregion ToScreen
|
||||||
|
|
||||||
#region FromScreen
|
#region FromScreen
|
||||||
@@ -94,9 +94,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
public bool FadeToNameSelection;
|
public bool FadeToNameSelection;
|
||||||
}
|
}
|
||||||
#endregion FromScreen
|
#endregion FromScreen
|
||||||
|
|
||||||
#endregion Communication
|
#endregion Communication
|
||||||
|
|
||||||
public sealed class PartyModeChallenge : CPartyMode
|
public sealed class PartyModeChallengeMedley : CPartyMode
|
||||||
{
|
{
|
||||||
private const int MaxPlayer = 12;
|
private const int MaxPlayer = 12;
|
||||||
private const int MinPlayer = 1;
|
private const int MinPlayer = 1;
|
||||||
@@ -105,7 +106,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
private const int MaxNumRounds = 100;
|
private const int MaxNumRounds = 100;
|
||||||
private const int NumSongs = 5;
|
private const int NumSongs = 5;
|
||||||
|
|
||||||
enum EStage
|
private enum EStage
|
||||||
{
|
{
|
||||||
NotStarted,
|
NotStarted,
|
||||||
Config,
|
Config,
|
||||||
@@ -114,7 +115,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Singing
|
Singing
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Data
|
private struct Data
|
||||||
{
|
{
|
||||||
public int NumPlayer;
|
public int NumPlayer;
|
||||||
public int NumPlayerAtOnce;
|
public int NumPlayerAtOnce;
|
||||||
@@ -130,7 +131,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int[] CatSongIndices;
|
public int[] CatSongIndices;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Stats
|
private struct Stats
|
||||||
{
|
{
|
||||||
public int ProfileID;
|
public int ProfileID;
|
||||||
public int SingPoints;
|
public int SingPoints;
|
||||||
@@ -145,17 +146,17 @@ namespace Vocaluxe.PartyModes
|
|||||||
private Data GameData;
|
private Data GameData;
|
||||||
private EStage _Stage;
|
private EStage _Stage;
|
||||||
|
|
||||||
public PartyModeChallenge()
|
public PartyModeChallengeMedley()
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Selection.RandomOnly = false;
|
_ScreenSongOptions.Selection.RandomOnly = false;
|
||||||
_ScreenSongOptions.Selection.PartyMode = true;
|
_ScreenSongOptions.Selection.PartyMode = true;
|
||||||
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
_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.SearchActive = false;
|
_ScreenSongOptions.Sorting.SearchActive = false;
|
||||||
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
_ScreenSongOptions.Sorting.DuetOptions = EDuetOptions.NoDuets;
|
||||||
|
|
||||||
_Stage = EStage.NotStarted;
|
_Stage = EStage.NotStarted;
|
||||||
|
|
||||||
@@ -188,7 +189,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
ToScreenMain.ResultTable = new List<ResultTableRow>();
|
ToScreenMain.ResultTable = new List<ResultTableRow>();
|
||||||
GameData.ResultTable = new List<ResultTableRow>();
|
GameData.ResultTable = new List<ResultTableRow>();
|
||||||
|
|
||||||
CBase.Songs.SortSongs(ESongSorting.TR_CONFIG_NONE, EOffOn.TR_CONFIG_OFF, EOffOn.TR_CONFIG_OFF, String.Empty, false);
|
CBase.Songs.SortSongs(ESongSorting.TR_CONFIG_NONE, EOffOn.TR_CONFIG_OFF, EOffOn.TR_CONFIG_OFF, String.Empty, EDuetOptions.NoDuets);
|
||||||
CBase.Songs.SetCategory(0);
|
CBase.Songs.SetCategory(0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -199,7 +200,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
DataFromScreen data = new DataFromScreen();
|
DataFromScreen data = new DataFromScreen();
|
||||||
switch (ScreenName)
|
switch (ScreenName)
|
||||||
{
|
{
|
||||||
case "PartyScreenChallengeConfig":
|
case "PartyScreenChallengeMedleyConfig":
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -217,7 +218,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "PartyScreenChallengeNames":
|
case "PartyScreenChallengeMedleyNames":
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
data = (DataFromScreen)Data;
|
data = (DataFromScreen)Data;
|
||||||
@@ -237,7 +238,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "PartyScreenChallengeMain":
|
case "PartyScreenChallengeMedleyMain":
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
data = (DataFromScreen)Data;
|
data = (DataFromScreen)Data;
|
||||||
@@ -281,7 +282,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
switch (_Stage)
|
switch (_Stage)
|
||||||
{
|
{
|
||||||
case EStage.NotStarted:
|
case EStage.NotStarted:
|
||||||
_Screens.TryGetValue("PartyScreenChallengeConfig", out Screen);
|
_Screens.TryGetValue("PartyScreenChallengeMedleyConfig", out Screen);
|
||||||
if (_Screens != null)
|
if (_Screens != null)
|
||||||
{
|
{
|
||||||
ToScreenConfig.NumPlayer = GameData.NumPlayer;
|
ToScreenConfig.NumPlayer = GameData.NumPlayer;
|
||||||
@@ -291,7 +292,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EStage.Config:
|
case EStage.Config:
|
||||||
_Screens.TryGetValue("PartyScreenChallengeNames", out Screen);
|
_Screens.TryGetValue("PartyScreenChallengeMedleyNames", out Screen);
|
||||||
if (_Screens != null)
|
if (_Screens != null)
|
||||||
{
|
{
|
||||||
ToScreenNames.NumPlayer = GameData.NumPlayer;
|
ToScreenNames.NumPlayer = GameData.NumPlayer;
|
||||||
@@ -300,7 +301,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EStage.Names:
|
case EStage.Names:
|
||||||
_Screens.TryGetValue("PartyScreenChallengeMain", out Screen);
|
_Screens.TryGetValue("PartyScreenChallengeMedleyMain", out Screen);
|
||||||
if (_Screens != null)
|
if (_Screens != null)
|
||||||
{
|
{
|
||||||
CBase.Songs.ResetPartySongSung();
|
CBase.Songs.ResetPartySongSung();
|
||||||
@@ -322,7 +323,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
//nothing to do
|
//nothing to do
|
||||||
break;
|
break;
|
||||||
case EStage.Singing:
|
case EStage.Singing:
|
||||||
_Screens.TryGetValue("PartyScreenChallengeMain", out Screen);
|
_Screens.TryGetValue("PartyScreenChallengeMedleyMain", out Screen);
|
||||||
if (_Screens != null)
|
if (_Screens != null)
|
||||||
{
|
{
|
||||||
UpdateScores();
|
UpdateScores();
|
||||||
@@ -332,8 +333,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Screen.DataToScreen(ToScreenMain);
|
Screen.DataToScreen(ToScreenMain);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Screen;
|
return Screen;
|
||||||
@@ -444,9 +443,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Selection.CategoryChangeAllowed = false;
|
_ScreenSongOptions.Selection.CategoryChangeAllowed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SongSelected(int SongID)
|
public override void SongSelected(int SongID) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void LeavingHighscore()
|
public override void LeavingHighscore()
|
||||||
{
|
{
|
||||||
@@ -525,7 +522,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (mode == EGameMode.TR_GAMEMODE_MEDLEY)
|
if (mode == EGameMode.TR_GAMEMODE_MEDLEY)
|
||||||
IDs.Add(VisSongs[i].ID);
|
IDs.Add(VisSongs[i].ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IDs.Count == 0)
|
if (IDs.Count == 0)
|
||||||
@@ -553,30 +549,30 @@ namespace Vocaluxe.PartyModes
|
|||||||
switch (GameData.NumPlayerAtOnce)
|
switch (GameData.NumPlayerAtOnce)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 10 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {10};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 4, 4, 4 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {4, 4, 4};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 3, 3, 3, 3 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {3, 3, 3, 3};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 2, 2, 2, 2, 2 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {2, 2, 2, 2, 2};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 2, 2, 2, 2, 2, 2 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {2, 2, 2, 2, 2, 2};
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -587,13 +583,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
if (profiles == null)
|
if (profiles == null)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
_ScreenSongOptions.Selection.TeamNames = new string[] {"foo", "bar"};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameData.NumPlayerAtOnce < 1 || GameData.ProfileIDs.Count < GameData.NumPlayerAtOnce || profiles.Length < GameData.NumPlayerAtOnce)
|
if (GameData.NumPlayerAtOnce < 1 || GameData.ProfileIDs.Count < GameData.NumPlayerAtOnce || profiles.Length < GameData.NumPlayerAtOnce)
|
||||||
{
|
{
|
||||||
_ScreenSongOptions.Selection.TeamNames = new string[] { "foo", "bar" };
|
_ScreenSongOptions.Selection.TeamNames = new string[] {"foo", "bar"};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -630,13 +626,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
GameData.ResultTable.Add(row);
|
GameData.ResultTable.Add(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameData.Results = new int[GameData.NumRounds, GameData.NumPlayerAtOnce];
|
GameData.Results = new int[GameData.NumRounds,GameData.NumPlayerAtOnce];
|
||||||
for (int i = 0; i < GameData.NumRounds; i++)
|
for (int i = 0; i < GameData.NumRounds; i++)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
||||||
{
|
|
||||||
GameData.Results[i, j] = 0;
|
GameData.Results[i, j] = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -659,9 +653,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
SPlayer[] temp = GamePoints.GetPlayer(i, GameData.NumPlayerAtOnce);
|
SPlayer[] temp = GamePoints.GetPlayer(i, GameData.NumPlayerAtOnce);
|
||||||
for (int p = 0; p < GameData.NumPlayerAtOnce; p++)
|
for (int p = 0; p < GameData.NumPlayerAtOnce; p++)
|
||||||
{
|
|
||||||
results[p].Points += temp[p].Points;
|
results[p].Points += temp[p].Points;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
for (int j = 0; j < GameData.NumPlayerAtOnce; j++)
|
||||||
@@ -676,13 +668,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int index = -1;
|
int index = -1;
|
||||||
for (int j = 0; j < GameData.ResultTable.Count; j++)
|
for (int j = 0; j < GameData.ResultTable.Count; j++)
|
||||||
{
|
{
|
||||||
if (points[i].ProfileID == GameData.ResultTable[j].PlayerID)
|
if (points[i].ProfileID == GameData.ResultTable[j].PlayerID)
|
||||||
{
|
{
|
||||||
index = j;
|
index = j;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
@@ -705,7 +697,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
int pos = 1;
|
int pos = 1;
|
||||||
int lastPoints = 0;
|
int lastPoints = 0;
|
||||||
int lastSingPoints = 0;
|
int lastSingPoints = 0;
|
||||||
for (int i = 0; i < GameData.ResultTable.Count; i++ )
|
for (int i = 0; i < GameData.ResultTable.Count; i++)
|
||||||
{
|
{
|
||||||
if (lastPoints > GameData.ResultTable[i].NumGamePoints || lastSingPoints > GameData.ResultTable[i].NumSingPoints)
|
if (lastPoints > GameData.ResultTable[i].NumGamePoints || lastSingPoints > GameData.ResultTable[i].NumSingPoints)
|
||||||
pos++;
|
pos++;
|
||||||
@@ -718,7 +710,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
private List<Stats> GetPointsForPlayer(SPlayer[] Results)
|
private List<Stats> GetPointsForPlayer(SPlayer[] Results)
|
||||||
{
|
{
|
||||||
List<Stats> result = new List<Stats>();
|
List<Stats> result = new List<Stats>();
|
||||||
for(int i = 0; i < GameData.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameData.NumPlayerAtOnce; i++)
|
||||||
{
|
{
|
||||||
Stats stat = new Stats();
|
Stats stat = new Stats();
|
||||||
stat.ProfileID = Results[i].ProfileID;
|
stat.ProfileID = Results[i].ProfileID;
|
||||||
@@ -765,7 +757,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -775,9 +766,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
GameData.CatSongIndices = new int[CBase.Songs.GetNumCategories()];
|
GameData.CatSongIndices = new int[CBase.Songs.GetNumCategories()];
|
||||||
for (int i = 0; i < GameData.CatSongIndices.Length; i++)
|
for (int i = 0; i < GameData.CatSongIndices.Length; i++)
|
||||||
{
|
|
||||||
GameData.CatSongIndices[i] = -1;
|
GameData.CatSongIndices[i] = -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CBase.Songs.GetNumCategories() == 0 || _ScreenSongOptions.Sorting.Tabs == EOffOn.TR_CONFIG_OFF)
|
if (CBase.Songs.GetNumCategories() == 0 || _ScreenSongOptions.Sorting.Tabs == EOffOn.TR_CONFIG_OFF)
|
||||||
@@ -8,11 +8,10 @@
|
|||||||
<ProjectGuid>{6F3E1874-F28A-40E9-AFBD-31934D593678}</ProjectGuid>
|
<ProjectGuid>{6F3E1874-F28A-40E9-AFBD-31934D593678}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>PartyModeChallenge</RootNamespace>
|
<RootNamespace>VocaluxeLib.PartyModes.ChallengeMedley</RootNamespace>
|
||||||
<AssemblyName>PartyModeChallenge</AssemblyName>
|
<AssemblyName>ChallengeMedley</AssemblyName>
|
||||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile>
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||||
</TargetFrameworkProfile>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86' ">
|
||||||
@@ -20,7 +19,7 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\..\Output\PartyModes\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</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 +29,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\..\Output\PartyModes\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -42,17 +41,18 @@
|
|||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>..\..\Output\PartyModes\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||||
|
<CodeAnalysisRuleSet>..\..\CheckingRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>..\..\Output\PartyModes\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</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\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</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\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</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\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</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\ChallengeMedley\Code</OutputPath>
|
<OutputPath>bin</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -107,21 +107,12 @@
|
|||||||
<StartupObject />
|
<StartupObject />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="ChallengeRounds.cs">
|
<Compile Include="ChallengeRounds.cs" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Compile Include="GlobalSuppressions.cs" />
|
||||||
</Compile>
|
<Compile Include="PartyModeChallengeMedley.cs" />
|
||||||
<Compile Include="PartyModeChallenge.cs">
|
<Compile Include="PartyScreenChallengeMedleyConfig.cs" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Compile Include="PartyScreenChallengeMedleyMain.cs" />
|
||||||
</Compile>
|
<Compile Include="PartyScreenChallengeMedleyNames.cs" />
|
||||||
<Compile Include="PartyScreenChallengeConfig.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="PartyScreenChallengeMain.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="PartyScreenChallengeNames.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
||||||
@@ -137,7 +128,14 @@
|
|||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.XML" />
|
<Reference Include="System.XML" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>cd $(SolutionDir)Partymodes\
|
||||||
|
xcopy "$(ProjectDir)*.cs" "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\" /EXCLUDE:Excludes.txt /I /Y</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|||||||
+42
-72
@@ -1,41 +1,35 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.ChallengeMedley
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class PartyScreenChallengeConfig : CMenuParty
|
public class PartyScreenChallengeMedleyConfig : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string SelectSlideNumPlayers = "SelectSlideNumPlayers";
|
private const string SelectSlideNumPlayers = "SelectSlideNumPlayers";
|
||||||
const string SelectSlideNumMics = "SelectSlideNumMics";
|
private const string SelectSlideNumMics = "SelectSlideNumMics";
|
||||||
const string SelectSlideNumRounds = "SelectSlideNumRounds";
|
private const string SelectSlideNumRounds = "SelectSlideNumRounds";
|
||||||
const string ButtonNext = "ButtonNext";
|
private const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
|
|
||||||
private int _MaxNumMics = 2;
|
private int _MaxNumMics = 2;
|
||||||
private int _MaxNumRounds = 100;
|
private int _MaxNumRounds = 100;
|
||||||
private int _RoundSteps = 1;
|
private int _RoundSteps = 1;
|
||||||
|
|
||||||
DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
|
|
||||||
public PartyScreenChallengeConfig()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeConfig";
|
_ThemeSelectSlides = new string[] {SelectSlideNumPlayers, SelectSlideNumMics, SelectSlideNumRounds};
|
||||||
_ThemeSelectSlides = new string[] { SelectSlideNumPlayers, SelectSlideNumMics, SelectSlideNumRounds };
|
_ThemeButtons = new string[] {ButtonNext, ButtonBack};
|
||||||
_ThemeButtons = new string[] { ButtonNext, ButtonBack };
|
|
||||||
_ScreenVersion = ScreenVersion;
|
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenConfig config = new FromScreenConfig();
|
FromScreenConfig config = new FromScreenConfig();
|
||||||
@@ -45,11 +39,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenConfig = config;
|
Data.ScreenConfig = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
|
||||||
{
|
|
||||||
base.LoadTheme(XmlPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
{
|
{
|
||||||
DataToScreenConfig config = new DataToScreenConfig();
|
DataToScreenConfig config = new DataToScreenConfig();
|
||||||
@@ -63,22 +52,18 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen challenge config. Can't cast received data from game mode " + _ThemeName + ". " + e.Message);;
|
CBase.Log.LogError("Error in party mode screen challenge config. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (KeyEvent.Key)
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Back:
|
case Keys.Back:
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
@@ -88,10 +73,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
UpdateSlides();
|
UpdateSlides();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -107,24 +92,22 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
UpdateSlides();
|
UpdateSlides();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
|
||||||
Back();
|
Back();
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -153,20 +136,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RebuildSlides()
|
private void RebuildSlides()
|
||||||
{
|
{
|
||||||
// build num player slide (min player ... max player);
|
// build num player slide (min player ... max player);
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayers)].Clear();
|
SelectSlides[SelectSlideNumPlayers].Clear();
|
||||||
for (int i = _PartyMode.GetMinPlayer(); i <= _PartyMode.GetMaxPlayer(); i++)
|
for (int i = _PartyMode.GetMinPlayer(); i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
SelectSlides[SelectSlideNumPlayers].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayers)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumPlayers].Selection = Data.ScreenConfig.NumPlayer - _PartyMode.GetMinPlayer();
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayers)].Selection = Data.ScreenConfig.NumPlayer - _PartyMode.GetMinPlayer();
|
|
||||||
|
|
||||||
UpdateMicsAtOnce();
|
UpdateMicsAtOnce();
|
||||||
SetRoundSteps();
|
SetRoundSteps();
|
||||||
@@ -177,9 +153,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int player = Data.ScreenConfig.NumPlayer;
|
int player = Data.ScreenConfig.NumPlayer;
|
||||||
int mics = Data.ScreenConfig.NumPlayerAtOnce;
|
int mics = Data.ScreenConfig.NumPlayerAtOnce;
|
||||||
Data.ScreenConfig.NumPlayer = SelectSlides[htSelectSlides(SelectSlideNumPlayers)].Selection + _PartyMode.GetMinPlayer();
|
Data.ScreenConfig.NumPlayer = SelectSlides[SelectSlideNumPlayers].Selection + _PartyMode.GetMinPlayer();
|
||||||
Data.ScreenConfig.NumPlayerAtOnce = SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection + _PartyMode.GetMinPlayer();
|
Data.ScreenConfig.NumPlayerAtOnce = SelectSlides[SelectSlideNumMics].Selection + _PartyMode.GetMinPlayer();
|
||||||
Data.ScreenConfig.NumRounds = (SelectSlides[htSelectSlides(SelectSlideNumRounds)].Selection + 1) * _RoundSteps;
|
Data.ScreenConfig.NumRounds = (SelectSlides[SelectSlideNumRounds].Selection + 1) * _RoundSteps;
|
||||||
|
|
||||||
UpdateMicsAtOnce();
|
UpdateMicsAtOnce();
|
||||||
SetRoundSteps();
|
SetRoundSteps();
|
||||||
@@ -188,9 +164,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int num = CHelper.nCk(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce);
|
int num = CHelper.nCk(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce);
|
||||||
while (num > _MaxNumRounds)
|
while (num > _MaxNumRounds)
|
||||||
{
|
|
||||||
num -= _RoundSteps;
|
num -= _RoundSteps;
|
||||||
}
|
|
||||||
Data.ScreenConfig.NumRounds = num;
|
Data.ScreenConfig.NumRounds = num;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,23 +182,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenConfig.NumPlayerAtOnce = MaxNum;
|
Data.ScreenConfig.NumPlayerAtOnce = MaxNum;
|
||||||
|
|
||||||
// build mics at once slide
|
// build mics at once slide
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumMics)].Clear();
|
SelectSlides[SelectSlideNumMics].Clear();
|
||||||
for (int i = 1; i <= MaxNum; i++)
|
for (int i = 1; i <= MaxNum; i++)
|
||||||
{
|
SelectSlides[SelectSlideNumMics].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumMics)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumMics].Selection = Data.ScreenConfig.NumPlayerAtOnce - _PartyMode.GetMinPlayer();
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumMics)].Selection = Data.ScreenConfig.NumPlayerAtOnce - _PartyMode.GetMinPlayer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateSlideRounds()
|
private void UpdateSlideRounds()
|
||||||
{
|
{
|
||||||
// build num rounds slide
|
// build num rounds slide
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumRounds)].Clear();
|
SelectSlides[SelectSlideNumRounds].Clear();
|
||||||
for (int i = _RoundSteps; i <= _MaxNumRounds; i += _RoundSteps)
|
for (int i = _RoundSteps; i <= _MaxNumRounds; i += _RoundSteps)
|
||||||
{
|
SelectSlides[SelectSlideNumRounds].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumRounds)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumRounds].Selection = Data.ScreenConfig.NumRounds / _RoundSteps - 1;
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumRounds)].Selection = Data.ScreenConfig.NumRounds / _RoundSteps - 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetRoundSteps()
|
private void SetRoundSteps()
|
||||||
@@ -251,7 +221,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void Next()
|
private void Next()
|
||||||
{
|
{
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+141
-142
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.ChallengeMedley
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
struct TableRow
|
struct TableRow
|
||||||
{
|
{
|
||||||
@@ -24,41 +22,43 @@ namespace Vocaluxe.PartyModes
|
|||||||
public List<CText> TextScores;
|
public List<CText> TextScores;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class PartyScreenChallengeMedleyMain : CMenuParty
|
||||||
public class PartyScreenChallengeMain : CMenuParty
|
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string TextPosition = "TextPosition";
|
private const string TextPosition = "TextPosition";
|
||||||
const string TextPlayerName = "TextPlayerName";
|
private const string TextPlayerName = "TextPlayerName";
|
||||||
const string TextNumPlayed = "TextNumPlayed";
|
private const string TextNumPlayed = "TextNumPlayed";
|
||||||
const string TextWon = "TextWon";
|
private const string TextWon = "TextWon";
|
||||||
const string TextSingPoints = "TextSingPoints";
|
private const string TextSingPoints = "TextSingPoints";
|
||||||
const string TextGamePoints = "TextGamePoints";
|
private const string TextGamePoints = "TextGamePoints";
|
||||||
const string TextNextPlayer = "TextNextPlayer";
|
private const string TextNextPlayer = "TextNextPlayer";
|
||||||
const string TextPopupReallyExit = "TextPopupReallyExit";
|
private const string TextPopupReallyExit = "TextPopupReallyExit";
|
||||||
const string TextRoundPlayer = "TextRoundPlayer";
|
private const string TextRoundPlayer = "TextRoundPlayer";
|
||||||
const string TextRoundScore = "TextRoundScore";
|
private const string TextRoundScore = "TextRoundScore";
|
||||||
const string TextRoundNumber = "TextRoundNumber";
|
private const string TextRoundNumber = "TextRoundNumber";
|
||||||
const string TextFinishMessage = "TextFinishMessage";
|
private const string TextFinishMessage = "TextFinishMessage";
|
||||||
const string TextFinishPlayerWin = "TextFinishPlayerWin";
|
private const string TextFinishPlayerWin = "TextFinishPlayerWin";
|
||||||
const string TextNextPlayerMessage = "TextNextPlayerMessage";
|
private const string TextNextPlayerMessage = "TextNextPlayerMessage";
|
||||||
|
|
||||||
const string ButtonNextRound = "ButtonNextRound";
|
private const string ButtonNextRound = "ButtonNextRound";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
const string ButtonExit = "ButtonExit";
|
private const string ButtonExit = "ButtonExit";
|
||||||
const string ButtonPopupYes = "ButtonPopupYes";
|
private const string ButtonPopupYes = "ButtonPopupYes";
|
||||||
const string ButtonPopupNo = "ButtonPopupNo";
|
private const string ButtonPopupNo = "ButtonPopupNo";
|
||||||
const string ButtonPlayerScrollUp = "ButtonPlayerScrollUp";
|
private const string ButtonPlayerScrollUp = "ButtonPlayerScrollUp";
|
||||||
const string ButtonPlayerScrollDown = "ButtonPlayerScrollDown";
|
private const string ButtonPlayerScrollDown = "ButtonPlayerScrollDown";
|
||||||
const string ButtonRoundsScrollUp = "ButtonRoundsScrollUp";
|
private const string ButtonRoundsScrollUp = "ButtonRoundsScrollUp";
|
||||||
const string ButtonRoundsScrollDown = "ButtonRoundsScrollDown";
|
private const string ButtonRoundsScrollDown = "ButtonRoundsScrollDown";
|
||||||
|
|
||||||
const string StaticPopupBG = "StaticPopupBG";
|
private const string StaticPopupBG = "StaticPopupBG";
|
||||||
const string StaticNextPlayer = "StaticNextPlayer";
|
private const string StaticNextPlayer = "StaticNextPlayer";
|
||||||
|
|
||||||
private bool ExitPopupVisible = false;
|
private bool ExitPopupVisible;
|
||||||
|
|
||||||
private DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
private DataToScreenMain GameState;
|
private DataToScreenMain GameState;
|
||||||
@@ -70,31 +70,34 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private SRectF RoundsTableScrollArea;
|
private SRectF RoundsTableScrollArea;
|
||||||
private SRectF PlayerTableScrollArea;
|
private SRectF PlayerTableScrollArea;
|
||||||
private int RoundsTableOffset = 0;
|
private int RoundsTableOffset;
|
||||||
private int PlayerTableOffset = 0;
|
private int PlayerTableOffset;
|
||||||
private int NumPlayerVisible = 10;
|
private int NumPlayerVisible = 10;
|
||||||
private int NumRoundsVisible = 3;
|
private int NumRoundsVisible = 3;
|
||||||
|
|
||||||
public PartyScreenChallengeMain()
|
public PartyScreenChallengeMedleyMain()
|
||||||
{
|
{
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
Data.ScreenMain = new FromScreenMain();
|
Data.ScreenMain = new FromScreenMain();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeMain";
|
_ThemeTexts = new string[]
|
||||||
_ThemeTexts = new string[] { TextPosition, TextPlayerName, TextNumPlayed, TextWon, TextSingPoints, TextGamePoints, TextNextPlayer, TextPopupReallyExit, TextRoundNumber, TextRoundPlayer, TextRoundScore, TextFinishMessage, TextFinishPlayerWin, TextNextPlayerMessage };
|
{
|
||||||
_ThemeButtons = new string[] { ButtonNextRound, ButtonBack, ButtonExit, ButtonPopupYes, ButtonPopupNo, ButtonPlayerScrollDown, ButtonPlayerScrollUp, ButtonRoundsScrollDown, ButtonRoundsScrollUp };
|
TextPosition, TextPlayerName, TextNumPlayed, TextWon, TextSingPoints, TextGamePoints, TextNextPlayer, TextPopupReallyExit, TextRoundNumber, TextRoundPlayer,
|
||||||
_ThemeStatics = new string[] { StaticPopupBG, StaticNextPlayer };
|
TextRoundScore, TextFinishMessage, TextFinishPlayerWin, TextNextPlayerMessage
|
||||||
_ScreenVersion = ScreenVersion;
|
};
|
||||||
|
_ThemeButtons = new string[]
|
||||||
|
{ButtonNextRound, ButtonBack, ButtonExit, ButtonPopupYes, ButtonPopupNo, ButtonPlayerScrollDown, ButtonPlayerScrollUp, ButtonRoundsScrollDown, ButtonRoundsScrollUp};
|
||||||
|
_ThemeStatics = new string[] {StaticPopupBG, StaticNextPlayer};
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
public override void LoadTheme(string XmlPath)
|
||||||
{
|
{
|
||||||
base.LoadTheme(XmlPath);
|
base.LoadTheme(XmlPath);
|
||||||
|
|
||||||
GameState = new DataToScreenMain();
|
GameState = new DataToScreenMain();
|
||||||
BuildPlayerTable();
|
BuildPlayerTable();
|
||||||
@@ -104,9 +107,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
for (int i = 0; i < _PartyMode.GetMaxPlayer(); i++)
|
for (int i = 0; i < _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
NextPlayerTexts.Add(GetNewText(Texts[htTexts(TextNextPlayer)]));
|
NextPlayerTexts.Add(GetNewText(Texts[TextNextPlayer]));
|
||||||
AddText(NextPlayerTexts[NextPlayerTexts.Count - 1]);
|
AddText(NextPlayerTexts[NextPlayerTexts.Count - 1]);
|
||||||
NextPlayerStatics.Add(GetNewStatic(Statics[htStatics(StaticNextPlayer)]));
|
NextPlayerStatics.Add(GetNewStatic(Statics[StaticNextPlayer]));
|
||||||
AddStatic(NextPlayerStatics[NextPlayerStatics.Count - 1]);
|
AddStatic(NextPlayerStatics[NextPlayerStatics.Count - 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -122,30 +125,28 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen challenge main. Can't cast received data from game mode " + _ThemeName + ". " + e.Message); ;
|
CBase.Log.LogError("Error in party mode screen challenge main. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (KeyEvent.Key)
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Back:
|
case Keys.Back:
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
|
{
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
break;
|
break;
|
||||||
@@ -153,26 +154,26 @@ namespace Vocaluxe.PartyModes
|
|||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonNextRound)].Selected)
|
if (Buttons[ButtonNextRound].Selected)
|
||||||
NextRound();
|
NextRound();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected && GameState.CurrentRoundNr == 1)
|
if (Buttons[ButtonBack].Selected && GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected && GameState.CurrentRoundNr > 1)
|
if (Buttons[ButtonExit].Selected && GameState.CurrentRoundNr > 1)
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollUp)].Selected)
|
if (Buttons[ButtonPlayerScrollUp].Selected)
|
||||||
ScrollPlayerTable(-1);
|
ScrollPlayerTable(-1);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollDown)].Selected)
|
if (Buttons[ButtonPlayerScrollDown].Selected)
|
||||||
ScrollPlayerTable(1);
|
ScrollPlayerTable(1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollUp)].Selected)
|
if (Buttons[ButtonRoundsScrollUp].Selected)
|
||||||
ScrollRoundsTable(-1);
|
ScrollRoundsTable(-1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollDown)].Selected)
|
if (Buttons[ButtonRoundsScrollDown].Selected)
|
||||||
ScrollRoundsTable(1);
|
ScrollRoundsTable(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonPopupYes)].Selected)
|
if (Buttons[ButtonPopupYes].Selected)
|
||||||
EndParty();
|
EndParty();
|
||||||
if (Buttons[htButtons(ButtonPopupNo)].Selected)
|
if (Buttons[ButtonPopupNo].Selected)
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -181,55 +182,57 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonNextRound)].Selected)
|
if (Buttons[ButtonNextRound].Selected)
|
||||||
NextRound();
|
NextRound();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected && GameState.CurrentRoundNr == 1)
|
if (Buttons[ButtonBack].Selected && GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected && GameState.CurrentRoundNr > 1)
|
if (Buttons[ButtonExit].Selected && GameState.CurrentRoundNr > 1)
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollUp)].Selected)
|
if (Buttons[ButtonPlayerScrollUp].Selected)
|
||||||
ScrollPlayerTable(-1);
|
ScrollPlayerTable(-1);
|
||||||
if (Buttons[htButtons(ButtonPlayerScrollDown)].Selected)
|
if (Buttons[ButtonPlayerScrollDown].Selected)
|
||||||
ScrollPlayerTable(1);
|
ScrollPlayerTable(1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollUp)].Selected)
|
if (Buttons[ButtonRoundsScrollUp].Selected)
|
||||||
ScrollRoundsTable(-1);
|
ScrollRoundsTable(-1);
|
||||||
if (Buttons[htButtons(ButtonRoundsScrollDown)].Selected)
|
if (Buttons[ButtonRoundsScrollDown].Selected)
|
||||||
ScrollRoundsTable(1);
|
ScrollRoundsTable(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonPopupYes)].Selected)
|
if (Buttons[ButtonPopupYes].Selected)
|
||||||
EndParty();
|
EndParty();
|
||||||
if (Buttons[htButtons(ButtonPopupNo)].Selected)
|
if (Buttons[ButtonPopupNo].Selected)
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
{
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
|
{
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
Back();
|
Back();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.Wheel != 0)
|
if (mouseEvent.Wheel != 0)
|
||||||
{
|
{
|
||||||
if(CHelper.IsInBounds(RoundsTableScrollArea, MouseEvent))
|
if (CHelper.IsInBounds(RoundsTableScrollArea, mouseEvent))
|
||||||
ScrollRoundsTable(MouseEvent.Wheel);
|
ScrollRoundsTable(mouseEvent.Wheel);
|
||||||
if(CHelper.IsInBounds(PlayerTableScrollArea, MouseEvent))
|
if (CHelper.IsInBounds(PlayerTableScrollArea, mouseEvent))
|
||||||
ScrollPlayerTable(MouseEvent.Wheel);
|
ScrollPlayerTable(mouseEvent.Wheel);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -253,29 +256,29 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonBack)].Visible = true;
|
Buttons[ButtonBack].Visible = true;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = false;
|
Buttons[ButtonExit].Visible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonBack)].Visible = false;
|
Buttons[ButtonBack].Visible = false;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = true;
|
Buttons[ButtonExit].Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = true;
|
Buttons[ButtonNextRound].Visible = true;
|
||||||
Texts[htTexts(TextFinishMessage)].Visible = false;
|
Texts[TextFinishMessage].Visible = false;
|
||||||
Texts[htTexts(TextFinishPlayerWin)].Visible = false;
|
Texts[TextFinishPlayerWin].Visible = false;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNextRound)]);
|
SetInteractionToButton(Buttons[ButtonNextRound]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = false;
|
Buttons[ButtonNextRound].Visible = false;
|
||||||
Texts[htTexts(TextFinishMessage)].Visible = true;
|
Texts[TextFinishMessage].Visible = true;
|
||||||
Texts[htTexts(TextFinishPlayerWin)].Visible = true;
|
Texts[TextFinishPlayerWin].Visible = true;
|
||||||
Texts[htTexts(TextFinishPlayerWin)].Text = GetPlayerWinString();
|
Texts[TextFinishPlayerWin].Text = GetPlayerWinString();
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonExit)]);
|
SetInteractionToButton(Buttons[ButtonExit]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
@@ -292,16 +295,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void NextRound()
|
private void NextRound()
|
||||||
{
|
{
|
||||||
Data.ScreenMain.FadeToNameSelection = false;
|
Data.ScreenMain.FadeToNameSelection = false;
|
||||||
Data.ScreenMain.FadeToSongSelection = true;
|
Data.ScreenMain.FadeToSongSelection = true;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EndParty()
|
private void EndParty()
|
||||||
@@ -313,25 +311,25 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
ExitPopupVisible = Visible;
|
ExitPopupVisible = Visible;
|
||||||
|
|
||||||
Statics[htStatics(StaticPopupBG)].Visible = ExitPopupVisible;
|
Statics[StaticPopupBG].Visible = ExitPopupVisible;
|
||||||
Texts[htTexts(TextPopupReallyExit)].Visible = ExitPopupVisible;
|
Texts[TextPopupReallyExit].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupYes)].Visible = ExitPopupVisible;
|
Buttons[ButtonPopupYes].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupNo)].Visible = ExitPopupVisible;
|
Buttons[ButtonPopupNo].Visible = ExitPopupVisible;
|
||||||
|
|
||||||
if (ExitPopupVisible)
|
if (ExitPopupVisible)
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonPopupNo)]);
|
SetInteractionToButton(Buttons[ButtonPopupNo]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Back()
|
private void Back()
|
||||||
{
|
{
|
||||||
Data.ScreenMain.FadeToNameSelection = true;
|
Data.ScreenMain.FadeToNameSelection = true;
|
||||||
Data.ScreenMain.FadeToSongSelection = false;
|
Data.ScreenMain.FadeToSongSelection = false;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateNextPlayerPositions()
|
private void UpdateNextPlayerPositions()
|
||||||
{
|
{
|
||||||
float x = CBase.Settings.GetRenderW()/2 - ((GameState.NumPlayerAtOnce * Statics[htStatics(StaticNextPlayer)].Rect.W) + ((GameState.NumPlayerAtOnce-1) * 15))/2;
|
float x = CBase.Settings.GetRenderW() / 2 - ((GameState.NumPlayerAtOnce * Statics[StaticNextPlayer].Rect.W) + ((GameState.NumPlayerAtOnce - 1) * 15)) / 2;
|
||||||
float static_y = 590;
|
float static_y = 590;
|
||||||
float text_y = 550;
|
float text_y = 550;
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
@@ -341,11 +339,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
NextPlayerStatics[i].Rect.Y = static_y;
|
NextPlayerStatics[i].Rect.Y = static_y;
|
||||||
NextPlayerStatics[i].Visible = true;
|
NextPlayerStatics[i].Visible = true;
|
||||||
//text
|
//text
|
||||||
NextPlayerTexts[i].X = x + Statics[htStatics(StaticNextPlayer)].Rect.W / 2;
|
NextPlayerTexts[i].X = x + Statics[StaticNextPlayer].Rect.W / 2;
|
||||||
NextPlayerTexts[i].Y = text_y;
|
NextPlayerTexts[i].Y = text_y;
|
||||||
NextPlayerTexts[i].Visible = true;
|
NextPlayerTexts[i].Visible = true;
|
||||||
|
|
||||||
x += Statics[htStatics(StaticNextPlayer)].Rect.W + 15;
|
x += Statics[StaticNextPlayer].Rect.W + 15;
|
||||||
}
|
}
|
||||||
for (int i = GameState.NumPlayerAtOnce; i < _PartyMode.GetMaxPlayer(); i++)
|
for (int i = GameState.NumPlayerAtOnce; i < _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
@@ -358,19 +356,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextNextPlayerMessage)].Visible = true;
|
Texts[TextNextPlayerMessage].Visible = true;
|
||||||
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
{
|
{
|
||||||
int pid = GameState.Combs[GameState.CurrentRoundNr - 1].Player[i];
|
int pid = GameState.Combs[GameState.CurrentRoundNr - 1].Player[i];
|
||||||
NextPlayerStatics[i].Texture = profiles[GameState.ProfileIDs[pid]].Avatar.Texture;
|
NextPlayerStatics[i].Texture = profiles[GameState.ProfileIDs[pid]].Avatar.Texture;
|
||||||
NextPlayerTexts[i].Text = profiles[GameState.ProfileIDs[pid]].PlayerName;
|
NextPlayerTexts[i].Text = profiles[GameState.ProfileIDs[pid]].PlayerName;
|
||||||
NextPlayerTexts[i].Color = CBase.Theme.GetPlayerColor((i + 1));
|
NextPlayerTexts[i].Color = CBase.Theme.GetPlayerColor(i + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextNextPlayerMessage)].Visible = false;
|
Texts[TextNextPlayerMessage].Visible = false;
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
{
|
{
|
||||||
NextPlayerStatics[i].Visible = false;
|
NextPlayerStatics[i].Visible = false;
|
||||||
@@ -394,7 +392,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int round = 0; round < RoundsTable.Count; round++)
|
for (int round = 0; round < RoundsTable.Count; round++)
|
||||||
{
|
{
|
||||||
//Round-number
|
//Round-number
|
||||||
CText text = GetNewText(Texts[htTexts(TextRoundNumber)]);
|
CText text = GetNewText(Texts[TextRoundNumber]);
|
||||||
AddText(text);
|
AddText(text);
|
||||||
RoundsTable[round].Number = text;
|
RoundsTable[round].Number = text;
|
||||||
for (int row = 0; row < 2; row++)
|
for (int row = 0; row < 2; row++)
|
||||||
@@ -402,11 +400,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int column = 0; column < 3; column++)
|
for (int column = 0; column < 3; column++)
|
||||||
{
|
{
|
||||||
//Player
|
//Player
|
||||||
text = GetNewText(Texts[htTexts(TextRoundPlayer)]);
|
text = GetNewText(Texts[TextRoundPlayer]);
|
||||||
AddText(text);
|
AddText(text);
|
||||||
RoundsTable[round].TextPlayer.Add(text);
|
RoundsTable[round].TextPlayer.Add(text);
|
||||||
//Score
|
//Score
|
||||||
text = GetNewText(Texts[htTexts(TextRoundScore)]);
|
text = GetNewText(Texts[TextRoundScore]);
|
||||||
AddText(text);
|
AddText(text);
|
||||||
RoundsTable[round].TextScores.Add(text);
|
RoundsTable[round].TextScores.Add(text);
|
||||||
}
|
}
|
||||||
@@ -427,14 +425,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (NumRoundsVisible > GameState.Combs.Count)
|
if (NumRoundsVisible > GameState.Combs.Count)
|
||||||
NumRoundsVisible = GameState.Combs.Count;
|
NumRoundsVisible = GameState.Combs.Count;
|
||||||
|
|
||||||
float x = Texts[htTexts(TextRoundNumber)].X;
|
float x = Texts[TextRoundNumber].X;
|
||||||
float y = Texts[htTexts(TextRoundNumber)].Y;
|
float y = Texts[TextRoundNumber].Y;
|
||||||
|
|
||||||
RoundsTableScrollArea.X = x;
|
RoundsTableScrollArea.X = x;
|
||||||
RoundsTableScrollArea.Y = y;
|
RoundsTableScrollArea.Y = y;
|
||||||
RoundsTableScrollArea.W = CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20;
|
RoundsTableScrollArea.W = CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20;
|
||||||
|
|
||||||
float delta = Texts[htTexts(TextRoundNumber)].Height;
|
float delta = Texts[TextRoundNumber].Height;
|
||||||
|
|
||||||
//Update statics and texts for rounds
|
//Update statics and texts for rounds
|
||||||
for (int round = 0; round < RoundsTable.Count; round++)
|
for (int round = 0; round < RoundsTable.Count; round++)
|
||||||
@@ -455,8 +453,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int column = row * NumPlayerInOneRow; column < num; column++)
|
for (int column = row * NumPlayerInOneRow; column < num; column++)
|
||||||
{
|
{
|
||||||
//Player
|
//Player
|
||||||
float _x = x + 15 + (CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20) / NumPlayerInThisRow * (column - row * NumPlayerInOneRow) + ((CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20) / NumPlayerInThisRow) / 2;
|
float _x = x + 15 + (CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20) / NumPlayerInThisRow * (column - row * NumPlayerInOneRow) +
|
||||||
float maxw = ((CBase.Settings.GetRenderW() - Texts[htTexts(TextRoundNumber)].X - 20) / NumPlayerInThisRow) / 2 - 5;
|
((CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20) / NumPlayerInThisRow) / 2;
|
||||||
|
float maxw = ((CBase.Settings.GetRenderW() - Texts[TextRoundNumber].X - 20) / NumPlayerInThisRow) / 2 - 5;
|
||||||
RoundsTable[round].TextPlayer[column].X = _x;
|
RoundsTable[round].TextPlayer[column].X = _x;
|
||||||
RoundsTable[round].TextPlayer[column].Y = y;
|
RoundsTable[round].TextPlayer[column].Y = y;
|
||||||
RoundsTable[round].TextPlayer[column].MaxWidth = maxw;
|
RoundsTable[round].TextPlayer[column].MaxWidth = maxw;
|
||||||
@@ -478,7 +477,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
SProfile[] profile = CBase.Profiles.GetProfiles();
|
SProfile[] profile = CBase.Profiles.GetProfiles();
|
||||||
for (int i = 0; i < RoundsTable.Count; i++)
|
for (int i = 0; i < RoundsTable.Count; i++)
|
||||||
{
|
{
|
||||||
for(int p = 0; p < RoundsTable[i].TextPlayer.Count; p++)
|
for (int p = 0; p < RoundsTable[i].TextPlayer.Count; p++)
|
||||||
{
|
{
|
||||||
if (GameState.Combs.Count > i + RoundsTableOffset && GameState.Combs[i + RoundsTableOffset].Player.Count > p)
|
if (GameState.Combs.Count > i + RoundsTableOffset && GameState.Combs[i + RoundsTableOffset].Player.Count > p)
|
||||||
{
|
{
|
||||||
@@ -510,19 +509,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Buttons[htButtons(ButtonRoundsScrollUp)].Visible = RoundsTableOffset > 0;
|
Buttons[ButtonRoundsScrollUp].Visible = RoundsTableOffset > 0;
|
||||||
Buttons[htButtons(ButtonRoundsScrollDown)].Visible = GameState.Combs.Count - NumRoundsVisible - RoundsTableOffset > 0;
|
Buttons[ButtonRoundsScrollDown].Visible = GameState.Combs.Count - NumRoundsVisible - RoundsTableOffset > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void BuildPlayerTable()
|
private void BuildPlayerTable()
|
||||||
{
|
{
|
||||||
PlayerTableScrollArea = new SRectF();
|
PlayerTableScrollArea = new SRectF();
|
||||||
PlayerTableScrollArea.X = Texts[htTexts(TextPosition)].X;
|
PlayerTableScrollArea.X = Texts[TextPosition].X;
|
||||||
PlayerTableScrollArea.Y = Texts[htTexts(TextPosition)].Y;
|
PlayerTableScrollArea.Y = Texts[TextPosition].Y;
|
||||||
PlayerTableScrollArea.W = Texts[htTexts(TextGamePoints)].X - Texts[htTexts(TextPosition)].X;
|
PlayerTableScrollArea.W = Texts[TextGamePoints].X - Texts[TextPosition].X;
|
||||||
|
|
||||||
PlayerTable = new List<TableRow>();
|
PlayerTable = new List<TableRow>();
|
||||||
float delta = Texts[htTexts(TextPosition)].Height * 1.2f;
|
float delta = Texts[TextPosition].Height * 1.2f;
|
||||||
|
|
||||||
float h = 0;
|
float h = 0;
|
||||||
|
|
||||||
@@ -530,12 +529,12 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
TableRow row = new TableRow();
|
TableRow row = new TableRow();
|
||||||
|
|
||||||
row.Pos = GetNewText(Texts[htTexts(TextPosition)]);
|
row.Pos = GetNewText(Texts[TextPosition]);
|
||||||
row.Name = GetNewText(Texts[htTexts(TextPlayerName)]);
|
row.Name = GetNewText(Texts[TextPlayerName]);
|
||||||
row.Rounds = GetNewText(Texts[htTexts(TextNumPlayed)]);
|
row.Rounds = GetNewText(Texts[TextNumPlayed]);
|
||||||
row.Won = GetNewText(Texts[htTexts(TextWon)]);
|
row.Won = GetNewText(Texts[TextWon]);
|
||||||
row.SingPoints = GetNewText(Texts[htTexts(TextSingPoints)]);
|
row.SingPoints = GetNewText(Texts[TextSingPoints]);
|
||||||
row.GamePoints = GetNewText(Texts[htTexts(TextGamePoints)]);
|
row.GamePoints = GetNewText(Texts[TextGamePoints]);
|
||||||
|
|
||||||
row.Pos.Y += delta * (i + 1);
|
row.Pos.Y += delta * (i + 1);
|
||||||
row.Name.Y += delta * (i + 1);
|
row.Name.Y += delta * (i + 1);
|
||||||
@@ -575,7 +574,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
TableRow row = PlayerTable[i];
|
TableRow row = PlayerTable[i];
|
||||||
|
|
||||||
if (i+PlayerTableOffset < GameState.ResultTable.Count)
|
if (i + PlayerTableOffset < GameState.ResultTable.Count)
|
||||||
{
|
{
|
||||||
row.Pos.Visible = true;
|
row.Pos.Visible = true;
|
||||||
row.Name.Visible = true;
|
row.Name.Visible = true;
|
||||||
@@ -585,11 +584,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
row.GamePoints.Visible = true;
|
row.GamePoints.Visible = true;
|
||||||
|
|
||||||
row.Pos.Text = GameState.ResultTable[i + PlayerTableOffset].Position.ToString() + ".";
|
row.Pos.Text = GameState.ResultTable[i + PlayerTableOffset].Position.ToString() + ".";
|
||||||
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].NumSingPoints.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
|
||||||
{
|
{
|
||||||
@@ -602,8 +601,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Buttons[htButtons(ButtonPlayerScrollUp)].Visible = PlayerTableOffset > 0;
|
Buttons[ButtonPlayerScrollUp].Visible = PlayerTableOffset > 0;
|
||||||
Buttons[htButtons(ButtonPlayerScrollDown)].Visible = GameState.ProfileIDs.Count - NumPlayerVisible - PlayerTableOffset > 0;
|
Buttons[ButtonPlayerScrollDown].Visible = GameState.ProfileIDs.Count - NumPlayerVisible - PlayerTableOffset > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ScrollPlayerTable(int Offset)
|
private void ScrollPlayerTable(int Offset)
|
||||||
+72
-102
@@ -1,21 +1,22 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.ChallengeMedley
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class PartyScreenChallengeNames : CMenuParty
|
public class PartyScreenChallengeMedleyNames : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string ButtonNext = "ButtonNext";
|
private const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
const string ButtonPlayerDestination = "ButtonPlayerDestination";
|
private const string ButtonPlayerDestination = "ButtonPlayerDestination";
|
||||||
const string ButtonPlayerChoose = "ButtonPlayerChoose";
|
private const string ButtonPlayerChoose = "ButtonPlayerChoose";
|
||||||
|
|
||||||
private List<CPlayerChooseButton> PlayerChooseButtons;
|
private List<CPlayerChooseButton> PlayerChooseButtons;
|
||||||
private List<CButton> PlayerDestinationButtons;
|
private List<CButton> PlayerDestinationButtons;
|
||||||
@@ -37,11 +38,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
private int PlayerChooseButtonsOffset = 0;
|
private int PlayerChooseButtonsOffset = 0;
|
||||||
|
|
||||||
private CStatic chooseAvatarStatic;
|
private CStatic chooseAvatarStatic;
|
||||||
private bool SelectingMouseActive = false;
|
private bool SelectingMouseActive;
|
||||||
private int OldMouseX = 0;
|
private int OldMouseX;
|
||||||
private int OldMouseY = 0;
|
private int OldMouseY;
|
||||||
private int SelectedPlayerNr = -1;
|
private int SelectedPlayerNr = -1;
|
||||||
private bool ButtonsAdded = false;
|
private bool ButtonsAdded;
|
||||||
|
|
||||||
private int NumPlayer = 4;
|
private int NumPlayer = 4;
|
||||||
|
|
||||||
@@ -53,11 +54,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int ProfileID;
|
public int ProfileID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PartyScreenChallengeNames()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
@@ -68,10 +65,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
Data.ScreenNames.ProfileIDs = new List<int>();
|
Data.ScreenNames.ProfileIDs = new List<int>();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeNames";
|
|
||||||
List<string> buttons = new List<string>();
|
List<string> buttons = new List<string>();
|
||||||
_ThemeButtons = new string[] { ButtonBack, ButtonNext, ButtonPlayerDestination, ButtonPlayerChoose };
|
_ThemeButtons = new string[] {ButtonBack, ButtonNext, ButtonPlayerDestination, ButtonPlayerChoose};
|
||||||
_ScreenVersion = ScreenVersion;
|
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenNames names = new FromScreenNames();
|
FromScreenNames names = new FromScreenNames();
|
||||||
@@ -81,11 +76,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenNames = names;
|
Data.ScreenNames = names;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
|
||||||
{
|
|
||||||
base.LoadTheme(XmlPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
{
|
{
|
||||||
DataToScreenNames config = new DataToScreenNames();
|
DataToScreenNames config = new DataToScreenNames();
|
||||||
@@ -100,58 +90,50 @@ namespace Vocaluxe.PartyModes
|
|||||||
NumPlayer = config.NumPlayer;
|
NumPlayer = config.NumPlayer;
|
||||||
|
|
||||||
while (Data.ScreenNames.ProfileIDs.Count > NumPlayer)
|
while (Data.ScreenNames.ProfileIDs.Count > NumPlayer)
|
||||||
{
|
|
||||||
Data.ScreenNames.ProfileIDs.RemoveAt(Data.ScreenNames.ProfileIDs.Count - 1);
|
Data.ScreenNames.ProfileIDs.RemoveAt(Data.ScreenNames.ProfileIDs.Count - 1);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen challenge names. Can't cast received data from game mode " + _ThemeName + ". " + e.Message); ;
|
CBase.Log.LogError("Error in party mode screen challenge names. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
|
case Keys.Back:
|
||||||
|
case Keys.Escape:
|
||||||
|
Back();
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
case Keys.Enter:
|
||||||
else
|
if (Buttons[ButtonBack].Selected)
|
||||||
{
|
|
||||||
switch (KeyEvent.Key)
|
|
||||||
{
|
|
||||||
case Keys.Back:
|
|
||||||
case Keys.Escape:
|
|
||||||
Back();
|
Back();
|
||||||
break;
|
|
||||||
|
|
||||||
case Keys.Enter:
|
if (Buttons[ButtonNext].Selected)
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
Next();
|
||||||
Back();
|
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (!OnAdd())
|
||||||
Next();
|
|
||||||
|
|
||||||
if (!OnAdd())
|
|
||||||
OnRemove();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Keys.Delete:
|
|
||||||
OnRemove();
|
OnRemove();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
case Keys.Delete:
|
||||||
|
OnRemove();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//Check if LeftButton is hold and Select-Mode inactive
|
//Check if LeftButton is hold and Select-Mode inactive
|
||||||
@@ -182,15 +164,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
//Check if LeftButton is hold and Select-Mode active
|
//Check if LeftButton is hold and Select-Mode active
|
||||||
if (MouseEvent.LBH && SelectingMouseActive)
|
if (mouseEvent.LBH && SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Update coords for Drag/Drop-Texture
|
//Update coords for Drag/Drop-Texture
|
||||||
chooseAvatarStatic.Rect.X += (MouseEvent.X - OldMouseX);
|
chooseAvatarStatic.Rect.X += mouseEvent.X - OldMouseX;
|
||||||
chooseAvatarStatic.Rect.Y += (MouseEvent.Y - OldMouseY);
|
chooseAvatarStatic.Rect.Y += mouseEvent.Y - OldMouseY;
|
||||||
OldMouseX = MouseEvent.X;
|
OldMouseX = mouseEvent.X;
|
||||||
OldMouseY = MouseEvent.Y;
|
OldMouseY = mouseEvent.Y;
|
||||||
}
|
}
|
||||||
// LeftButton isn't hold anymore, but Selec-Mode is still active -> "Drop" of Avatar
|
// LeftButton isn't hold anymore, but Selec-Mode is still active -> "Drop" of Avatar
|
||||||
else if (SelectingMouseActive)
|
else if (SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Check if really a player was selected
|
//Check if really a player was selected
|
||||||
@@ -200,10 +182,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < PlayerDestinationButtons.Count; i++)
|
for (int i = 0; i < PlayerDestinationButtons.Count; i++)
|
||||||
{
|
{
|
||||||
//Check first, if area is "active"
|
//Check first, if area is "active"
|
||||||
if (PlayerDestinationButtons[i].Visible == true)
|
if (PlayerDestinationButtons[i].Visible)
|
||||||
{
|
{
|
||||||
//Check if Mouse is in area
|
//Check if Mouse is in area
|
||||||
if (CHelper.IsInBounds(PlayerDestinationButtons[i].Rect, MouseEvent))
|
if (CHelper.IsInBounds(PlayerDestinationButtons[i].Rect, mouseEvent))
|
||||||
{
|
{
|
||||||
int added = -1;
|
int added = -1;
|
||||||
//Add Player-ID to list.
|
//Add Player-ID to list.
|
||||||
@@ -236,22 +218,20 @@ namespace Vocaluxe.PartyModes
|
|||||||
chooseAvatarStatic.Visible = false;
|
chooseAvatarStatic.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
|
|
||||||
if (!OnAdd())
|
if (!OnAdd())
|
||||||
OnRemove();
|
OnRemove();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
|
||||||
Back();
|
Back();
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -286,20 +266,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AddButtonPlayerDestination()
|
private void AddButtonPlayerDestination()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonPlayerDestination)].Visible = false;
|
Buttons[ButtonPlayerDestination].Visible = false;
|
||||||
PlayerDestinationButtons = new List<CButton>();
|
PlayerDestinationButtons = new List<CButton>();
|
||||||
int row = 0;
|
int row = 0;
|
||||||
int column = 0;
|
int column = 0;
|
||||||
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
CButton b = GetNewButton(Buttons[htButtons(ButtonPlayerDestination)]);
|
CButton b = GetNewButton(Buttons[ButtonPlayerDestination]);
|
||||||
b.Rect.X = PlayerDestinationButtonsFirstX + column * (b.Rect.W + PlayerDestinationButtonsSpaceH);
|
b.Rect.X = PlayerDestinationButtonsFirstX + column * (b.Rect.W + PlayerDestinationButtonsSpaceH);
|
||||||
b.Rect.Y = PlayerDestinationButtonsFirstY + row * (b.Rect.H + PlayerDestinationButtonsSpaceW);
|
b.Rect.Y = PlayerDestinationButtonsFirstY + row * (b.Rect.H + PlayerDestinationButtonsSpaceW);
|
||||||
PlayerDestinationButtons.Add(b);
|
PlayerDestinationButtons.Add(b);
|
||||||
@@ -317,13 +292,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void AddButtonPlayerChoose()
|
private void AddButtonPlayerChoose()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonPlayerChoose)].Visible = false;
|
Buttons[ButtonPlayerChoose].Visible = false;
|
||||||
PlayerChooseButtons = new List<CPlayerChooseButton>();
|
PlayerChooseButtons = new List<CPlayerChooseButton>();
|
||||||
int row = 0;
|
int row = 0;
|
||||||
int column = 0;
|
int column = 0;
|
||||||
for (int i = 1; i <= PlayerChooseButtonsNumH * PlayerChooseButtonsNumW; i++)
|
for (int i = 1; i <= PlayerChooseButtonsNumH * PlayerChooseButtonsNumW; i++)
|
||||||
{
|
{
|
||||||
CButton b = GetNewButton(Buttons[htButtons(ButtonPlayerChoose)]);
|
CButton b = GetNewButton(Buttons[ButtonPlayerChoose]);
|
||||||
b.Rect.X = PlayerChooseButtonsFirstX + column * (b.Rect.W + PlayerChooseButtonsSpaceH);
|
b.Rect.X = PlayerChooseButtonsFirstX + column * (b.Rect.W + PlayerChooseButtonsSpaceH);
|
||||||
b.Rect.Y = PlayerChooseButtonsFirstY + row * (b.Rect.H + PlayerChooseButtonsSpaceW);
|
b.Rect.Y = PlayerChooseButtonsFirstY + row * (b.Rect.H + PlayerChooseButtonsSpaceW);
|
||||||
CPlayerChooseButton pcb = new CPlayerChooseButton();
|
CPlayerChooseButton pcb = new CPlayerChooseButton();
|
||||||
@@ -345,14 +320,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
private void UpdateButtonPlayerChoose()
|
private void UpdateButtonPlayerChoose()
|
||||||
{
|
{
|
||||||
UpdateVisibleProfiles();
|
UpdateVisibleProfiles();
|
||||||
if ((PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * (PlayerChooseButtonsOffset + 1) - PlayerChooseButtonsVisibleProfiles.Count >= (PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * PlayerChooseButtonsOffset)
|
if ((PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * (PlayerChooseButtonsOffset + 1) - PlayerChooseButtonsVisibleProfiles.Count >=
|
||||||
{
|
(PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * PlayerChooseButtonsOffset)
|
||||||
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset - 1);
|
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset - 1);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset);
|
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateButtonPlayerChoose(int Offset)
|
private void UpdateButtonPlayerChoose(int Offset)
|
||||||
@@ -379,10 +351,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
PlayerChooseButtons[i].ProfileID = -1;
|
PlayerChooseButtons[i].ProfileID = -1;
|
||||||
PlayerChooseButtons[i].Button.Text.Text = String.Empty;
|
PlayerChooseButtons[i].Button.Text.Text = String.Empty;
|
||||||
PlayerChooseButtons[i].Button.Texture = Buttons[htButtons(ButtonPlayerChoose)].Texture;
|
PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture;
|
||||||
PlayerChooseButtons[i].Button.STexture = Buttons[htButtons(ButtonPlayerChoose)].STexture;
|
PlayerChooseButtons[i].Button.STexture = Buttons[ButtonPlayerChoose].STexture;
|
||||||
PlayerChooseButtons[i].Button.Color = Buttons[htButtons(ButtonPlayerChoose)].Color;
|
PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color;
|
||||||
PlayerChooseButtons[i].Button.SColor = Buttons[htButtons(ButtonPlayerChoose)].SColor;
|
PlayerChooseButtons[i].Button.SColor = Buttons[ButtonPlayerChoose].SColor;
|
||||||
PlayerChooseButtons[i].Button.Enabled = false;
|
PlayerChooseButtons[i].Button.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -411,9 +383,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (visible)
|
if (visible)
|
||||||
{
|
|
||||||
PlayerChooseButtonsVisibleProfiles.Add(i);
|
PlayerChooseButtonsVisibleProfiles.Add(i);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -448,10 +418,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayerDestinationButtons[i].Color = Buttons[htButtons(ButtonPlayerDestination)].Color;
|
PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color;
|
||||||
PlayerDestinationButtons[i].SColor = Buttons[htButtons(ButtonPlayerDestination)].SColor;
|
PlayerDestinationButtons[i].SColor = Buttons[ButtonPlayerDestination].SColor;
|
||||||
PlayerDestinationButtons[i].Texture = Buttons[htButtons(ButtonPlayerDestination)].Texture;
|
PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture;
|
||||||
PlayerDestinationButtons[i].STexture = Buttons[htButtons(ButtonPlayerDestination)].STexture;
|
PlayerDestinationButtons[i].STexture = Buttons[ButtonPlayerDestination].STexture;
|
||||||
PlayerDestinationButtons[i].Text.Text = String.Empty;
|
PlayerDestinationButtons[i].Text.Text = String.Empty;
|
||||||
PlayerDestinationButtons[i].Enabled = false;
|
PlayerDestinationButtons[i].Enabled = false;
|
||||||
}
|
}
|
||||||
@@ -462,11 +432,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
if (Data.ScreenNames.ProfileIDs.Count == NumPlayer)
|
if (Data.ScreenNames.ProfileIDs.Count == NumPlayer)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNext)].Visible = true;
|
Buttons[ButtonNext].Visible = true;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNext)]);
|
SetInteractionToButton(Buttons[ButtonNext]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Buttons[htButtons(ButtonNext)].Visible = false;
|
Buttons[ButtonNext].Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool OnAdd()
|
private bool OnAdd()
|
||||||
@@ -521,14 +491,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
Data.ScreenNames.FadeToConfig = true;
|
Data.ScreenNames.FadeToConfig = true;
|
||||||
Data.ScreenNames.FadeToMain = false;
|
Data.ScreenNames.FadeToMain = false;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Next()
|
private void Next()
|
||||||
{
|
{
|
||||||
Data.ScreenNames.FadeToConfig = false;
|
Data.ScreenNames.FadeToConfig = false;
|
||||||
Data.ScreenNames.FadeToMain = true;
|
Data.ScreenNames.FadeToMain = true;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,809 @@
|
|||||||
|
<StyleCopSettings Version="105">
|
||||||
|
<Analyzers>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="ElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EnumerationItemsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustContainValidXml">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotHaveDefaultSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustMatchElementParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VoidReturnValueMustNotBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumentedPartialClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustMatchTypeParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustMatchAccessors">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotBeCopiedAndPasted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotUseDocumentationStyleSlashes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustNotBeEmpty">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustContainWhitespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustMeetCharacterPercentage">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DestructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationHeadersMustNotContainBlankLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludedDocumentationXPathDoesNotExist">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludeNodeDoesNotContainValidFileAndPath">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InheritDocMustBeUsedWithInheritingClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustBeSpelledCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMustHaveHeader">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustShowCopyright">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveCopyrightText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustContainFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveValidCompanyText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchTypeName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CurlyBracketsForMultiLineStatementsMustNotShareLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CurlyBracketsMustNotBeOmitted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AllAccessorsMustBeMultiLineOrSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationHeadersMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleBlankLinesInARow">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketsMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ChainedStatementBlocksMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="WhileDoFooterMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketMustBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationHeaderMustBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentMustBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeSeparatedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainBlankLinesAtStartOfFile">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainBlankLinesAtEndOfFile">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.MaintainabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="AccessModifierMustBeDeclared">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldsMustBePrivate">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeAnalysisSuppressionMustHaveJustification">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DebugAssertMustProvideMessageText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DebugFailMustProvideMessageText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotUseUnnecessaryParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ArithmeticExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConditionalExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="RemoveDelegateParenthesisWhenPossible">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AttributeConstructorMustNotUseUnnecessaryParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="RemoveUnnecessaryCode">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.NamingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="ElementMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustBeginWithLowerCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InterfaceNamesMustBeginWithI">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstFieldNamesMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotUseHungarianNotation">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustBeginWithLowerCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AccessibleFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VariableNamesMustNotBePrefixed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotContainUnderscore">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticReadonlyFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustAppearInTheCorrectOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeOrderedByAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstantsMustAppearBeforeFields">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticElementsMustAppearBeforeInstanceElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DeclarationKeywordsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ProtectedMustComeBeforeInternal">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertyAccessorsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EventAccessorsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticReadonlyElementsMustAppearBeforeStaticNonReadonlyElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InstanceReadonlyElementsMustAppearBeforeInstanceNonReadonlyElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingDirectivesMustBeOrderedAlphabeticallyByNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingAliasDirectivesMustBeOrderedAlphabeticallyByAliasName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CommentsMustContainText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DoNotPrefixCallsWithBaseUnlessLocalImplementationExists">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixLocalCallsWithThis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixCallsCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeOnLineOfLastParameter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeOnLineOfOpeningParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CommaMustBeOnSameLineAsPreviousParameter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterListMustFollowDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustFollowComma">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SplitParametersMustStartOnLineAfterDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustNotSpanMultipleLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClauseMustFollowPreviousClause">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClausesMustBeOnSeparateLinesOrAllOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClausesSpanningMultipleLinesMustBeginOnOwnLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DoNotPlaceRegionsWithinElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainEmptyStatements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleStatementsOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="BlockStatementsMustNotContainEmbeddedComments">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="BlockStatementsMustNotContainEmbeddedRegions">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseStringEmptyForEmptyStrings">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseBuiltInTypeAlias">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseShorthandForNullableTypes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.SpacingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="KeywordsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CommasMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SemicolonsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationLinesMustBeginWithSingleSpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustBeginWithSingleSpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PreprocessorKeywordsMustNotBePrecededBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OperatorKeywordMustBeFollowedBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningSquareBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingSquareBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningGenericBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingGenericBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningAttributeBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingAttributeBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NullableTypeSymbolsMustNotBePrecededBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="MemberAccessSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncrementDecrementSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NegativeSignsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PositiveSignsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ColonsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleWhitespaceInARow">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="TabsMustNotBeUsed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
</Analyzers>
|
||||||
|
</StyleCopSettings>
|
||||||
Binary file not shown.
@@ -1,10 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Runtime.InteropServices;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
namespace VocaluxeLib.PartyModes.TicTacToe
|
||||||
{
|
{
|
||||||
public enum ESongSource
|
public enum ESongSource
|
||||||
{
|
{
|
||||||
@@ -30,7 +31,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int Winner;
|
public int Winner;
|
||||||
public bool Finished = false;
|
public bool Finished = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Communication
|
#region Communication
|
||||||
|
|
||||||
#region ToScreen
|
#region ToScreen
|
||||||
public struct DataToScreenConfig
|
public struct DataToScreenConfig
|
||||||
{
|
{
|
||||||
@@ -105,6 +108,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public List<int> Songs;
|
public List<int> Songs;
|
||||||
}
|
}
|
||||||
#endregion FromScreen
|
#endregion FromScreen
|
||||||
|
|
||||||
#endregion Communication
|
#endregion Communication
|
||||||
|
|
||||||
public sealed class PartyModeTicTacToe : CPartyMode
|
public sealed class PartyModeTicTacToe : CPartyMode
|
||||||
@@ -115,7 +119,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
private const int MinTeams = 2;
|
private const int MinTeams = 2;
|
||||||
private const int NumFields = 9;
|
private const int NumFields = 9;
|
||||||
|
|
||||||
enum EStage
|
private enum EStage
|
||||||
{
|
{
|
||||||
NotStarted,
|
NotStarted,
|
||||||
Config,
|
Config,
|
||||||
@@ -124,7 +128,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Singing
|
Singing
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Data
|
private struct Data
|
||||||
{
|
{
|
||||||
public int NumPlayerTeam1;
|
public int NumPlayerTeam1;
|
||||||
public int NumPlayerTeam2;
|
public int NumPlayerTeam2;
|
||||||
@@ -163,12 +167,12 @@ namespace Vocaluxe.PartyModes
|
|||||||
_ScreenSongOptions.Selection.RandomOnly = false;
|
_ScreenSongOptions.Selection.RandomOnly = false;
|
||||||
_ScreenSongOptions.Selection.PartyMode = true;
|
_ScreenSongOptions.Selection.PartyMode = true;
|
||||||
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
||||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
_ScreenSongOptions.Selection.NumJokers = new int[] {5, 5};
|
||||||
_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.SearchActive = false;
|
_ScreenSongOptions.Sorting.SearchActive = false;
|
||||||
_ScreenSongOptions.Sorting.ShowDuetSongs = false;
|
_ScreenSongOptions.Sorting.DuetOptions = EDuetOptions.NoDuets;
|
||||||
|
|
||||||
_Stage = EStage.NotStarted;
|
_Stage = EStage.NotStarted;
|
||||||
|
|
||||||
@@ -285,9 +289,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
GameData.PlayerTeam2 = data.ScreenMain.PlayerTeam2;
|
GameData.PlayerTeam2 = data.ScreenMain.PlayerTeam2;
|
||||||
}
|
}
|
||||||
if (data.ScreenMain.FadeToNameSelection)
|
if (data.ScreenMain.FadeToNameSelection)
|
||||||
{
|
|
||||||
_Stage = EStage.Config;
|
_Stage = EStage.Config;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@@ -407,8 +409,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Screen.DataToScreen(ToScreenMain);
|
Screen.DataToScreen(ToScreenMain);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Screen;
|
return Screen;
|
||||||
@@ -474,9 +474,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
return NumFields;
|
return NumFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void JokerUsed(int TeamNr)
|
public override void JokerUsed(int TeamNr) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SongSelected(int SongID)
|
public override void SongSelected(int SongID)
|
||||||
{
|
{
|
||||||
@@ -531,14 +529,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
int num = 0;
|
int num = 0;
|
||||||
int random = 0;
|
int random = 0;
|
||||||
//Add IDs to team-list
|
//Add IDs to team-list
|
||||||
while (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0] && IDs1.Count == 0 && GameData.PlayerTeam2.Count < GameData.NumFields + GameData.NumJokerRetry[1] && IDs2.Count == 0)
|
while (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0] && IDs1.Count == 0 &&
|
||||||
|
GameData.PlayerTeam2.Count < GameData.NumFields + GameData.NumJokerRetry[1] && IDs2.Count == 0)
|
||||||
{
|
{
|
||||||
if (IDs1.Count == 0)
|
if (IDs1.Count == 0)
|
||||||
|
{
|
||||||
for (int i = 0; i < GameData.NumPlayerTeam1; i++)
|
for (int i = 0; i < GameData.NumPlayerTeam1; i++)
|
||||||
IDs1.Add(i);
|
IDs1.Add(i);
|
||||||
|
}
|
||||||
if (IDs2.Count == 0)
|
if (IDs2.Count == 0)
|
||||||
|
{
|
||||||
for (int i = 0; i < GameData.NumPlayerTeam2; i++)
|
for (int i = 0; i < GameData.NumPlayerTeam2; i++)
|
||||||
IDs2.Add(i);
|
IDs2.Add(i);
|
||||||
|
}
|
||||||
if (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0])
|
if (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0])
|
||||||
{
|
{
|
||||||
random = CBase.Game.GetRandom((IDs1.Count - 1) * 10);
|
random = CBase.Game.GetRandom((IDs1.Count - 1) * 10);
|
||||||
@@ -569,8 +572,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
while (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0] && IDs.Count == 0)
|
while (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0] && IDs.Count == 0)
|
||||||
{
|
{
|
||||||
if (IDs.Count == 0)
|
if (IDs.Count == 0)
|
||||||
|
{
|
||||||
for (int i = 0; i < GameData.NumPlayerTeam1; i++)
|
for (int i = 0; i < GameData.NumPlayerTeam1; i++)
|
||||||
IDs.Add(i);
|
IDs.Add(i);
|
||||||
|
}
|
||||||
if (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0])
|
if (GameData.PlayerTeam1.Count < GameData.NumFields + GameData.NumJokerRetry[0])
|
||||||
{
|
{
|
||||||
random = CBase.Game.GetRandom((IDs.Count - 1) * 10);
|
random = CBase.Game.GetRandom((IDs.Count - 1) * 10);
|
||||||
@@ -592,8 +597,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
while (GameData.PlayerTeam2.Count < GameData.NumFields + GameData.NumJokerRetry[1] && IDs.Count == 0)
|
while (GameData.PlayerTeam2.Count < GameData.NumFields + GameData.NumJokerRetry[1] && IDs.Count == 0)
|
||||||
{
|
{
|
||||||
if (IDs.Count == 0)
|
if (IDs.Count == 0)
|
||||||
|
{
|
||||||
for (int i = 0; i < GameData.NumPlayerTeam2; i++)
|
for (int i = 0; i < GameData.NumPlayerTeam2; i++)
|
||||||
IDs.Add(i);
|
IDs.Add(i);
|
||||||
|
}
|
||||||
if (GameData.PlayerTeam2.Count < GameData.NumFields + GameData.NumJokerRetry[1])
|
if (GameData.PlayerTeam2.Count < GameData.NumFields + GameData.NumJokerRetry[1])
|
||||||
{
|
{
|
||||||
random = CBase.Game.GetRandom((IDs.Count - 1) * 20);
|
random = CBase.Game.GetRandom((IDs.Count - 1) * 20);
|
||||||
@@ -626,7 +633,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
while(GameData.Songs.Count < (GameData.NumFields + GameData.NumJokerRandom[0] + GameData.NumJokerRandom[1])){
|
while (GameData.Songs.Count < (GameData.NumFields + GameData.NumJokerRandom[0] + GameData.NumJokerRandom[1]))
|
||||||
|
{
|
||||||
List<int> Songs = new List<int>();
|
List<int> Songs = new List<int>();
|
||||||
switch (GameData.SongSource)
|
switch (GameData.SongSource)
|
||||||
{
|
{
|
||||||
@@ -635,8 +643,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int id = CBase.Playlist.GetPlaylistSong(GameData.PlaylistID, i).SongID;
|
int id = CBase.Playlist.GetPlaylistSong(GameData.PlaylistID, i).SongID;
|
||||||
foreach (EGameMode mode in CBase.Songs.GetSongByID(id).AvailableGameModes)
|
foreach (EGameMode mode in CBase.Songs.GetSongByID(id).AvailableGameModes)
|
||||||
|
{
|
||||||
if (mode == gm)
|
if (mode == gm)
|
||||||
Songs.Add(id);
|
Songs.Add(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -644,8 +654,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < CBase.Songs.GetNumSongs(); i++)
|
for (int i = 0; i < CBase.Songs.GetNumSongs(); i++)
|
||||||
{
|
{
|
||||||
foreach (EGameMode mode in CBase.Songs.GetSongByID(i).AvailableGameModes)
|
foreach (EGameMode mode in CBase.Songs.GetSongByID(i).AvailableGameModes)
|
||||||
|
{
|
||||||
if (mode == gm)
|
if (mode == gm)
|
||||||
Songs.Add(i);
|
Songs.Add(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -653,14 +665,16 @@ namespace Vocaluxe.PartyModes
|
|||||||
CBase.Songs.SetCategory(GameData.CategoryID);
|
CBase.Songs.SetCategory(GameData.CategoryID);
|
||||||
for (int i = 0; i < CBase.Songs.NumSongsInCategory(GameData.CategoryID); i++)
|
for (int i = 0; i < CBase.Songs.NumSongsInCategory(GameData.CategoryID); i++)
|
||||||
{
|
{
|
||||||
foreach(EGameMode mode in CBase.Songs.GetVisibleSong(i).AvailableGameModes)
|
foreach (EGameMode mode in CBase.Songs.GetVisibleSong(i).AvailableGameModes)
|
||||||
if(mode == gm)
|
{
|
||||||
|
if (mode == gm)
|
||||||
Songs.Add(CBase.Songs.GetVisibleSong(i).ID);
|
Songs.Add(CBase.Songs.GetVisibleSong(i).ID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
CBase.Songs.SetCategory(-1);
|
CBase.Songs.SetCategory(-1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
while(Songs.Count > 0)
|
while (Songs.Count > 0)
|
||||||
{
|
{
|
||||||
GameData.Songs.Add(Songs[CBase.Game.GetRandom(Songs.Count - 1)]);
|
GameData.Songs.Add(Songs[CBase.Game.GetRandom(Songs.Count - 1)]);
|
||||||
Songs.Remove(GameData.Songs[GameData.Songs.Count - 1]);
|
Songs.Remove(GameData.Songs[GameData.Songs.Count - 1]);
|
||||||
@@ -776,13 +790,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
GameData.Rounds[GameData.SingRoundNr].PointsTeam2 = (int)Math.Round(results[1].Points);
|
GameData.Rounds[GameData.SingRoundNr].PointsTeam2 = (int)Math.Round(results[1].Points);
|
||||||
GameData.Rounds[GameData.SingRoundNr].Finished = true;
|
GameData.Rounds[GameData.SingRoundNr].Finished = true;
|
||||||
if (GameData.Rounds[GameData.SingRoundNr].PointsTeam1 < GameData.Rounds[GameData.SingRoundNr].PointsTeam2)
|
if (GameData.Rounds[GameData.SingRoundNr].PointsTeam1 < GameData.Rounds[GameData.SingRoundNr].PointsTeam2)
|
||||||
{
|
|
||||||
GameData.Rounds[GameData.SingRoundNr].Winner = 2;
|
GameData.Rounds[GameData.SingRoundNr].Winner = 2;
|
||||||
}
|
|
||||||
else if (GameData.Rounds[GameData.SingRoundNr].PointsTeam1 > GameData.Rounds[GameData.SingRoundNr].PointsTeam2)
|
else if (GameData.Rounds[GameData.SingRoundNr].PointsTeam1 > GameData.Rounds[GameData.SingRoundNr].PointsTeam2)
|
||||||
{
|
|
||||||
GameData.Rounds[GameData.SingRoundNr].Winner = 1;
|
GameData.Rounds[GameData.SingRoundNr].Winner = 1;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GameData.Rounds[GameData.SingRoundNr].Finished = false;
|
GameData.Rounds[GameData.SingRoundNr].Finished = false;
|
||||||
|
|||||||
@@ -8,11 +8,10 @@
|
|||||||
<ProjectGuid>{6F3E1874-F28A-40E9-AFBD-31934D593679}</ProjectGuid>
|
<ProjectGuid>{6F3E1874-F28A-40E9-AFBD-31934D593679}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>PartyModeTicTacToe</RootNamespace>
|
<RootNamespace>VocaluxeLib.PartyModes.TicTacToe</RootNamespace>
|
||||||
<AssemblyName>PartyModeTicTacToe</AssemblyName>
|
<AssemblyName>TicTacToe</AssemblyName>
|
||||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile>
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||||
</TargetFrameworkProfile>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin|x86' ">
|
||||||
@@ -20,7 +19,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>bin</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 +29,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>bin</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -42,17 +41,18 @@
|
|||||||
<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>bin</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;WIN</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||||
|
<CodeAnalysisRuleSet>..\..\CheckingRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWin|x64'">
|
||||||
<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>bin</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>bin</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>bin</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>bin</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>bin</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
@@ -107,18 +107,11 @@
|
|||||||
<StartupObject />
|
<StartupObject />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="PartyModeTicTacToe.cs">
|
<Compile Include="GlobalSuppressions.cs" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Compile Include="PartyModeTicTacToe.cs" />
|
||||||
</Compile>
|
<Compile Include="PartyScreenTicTacToeConfig.cs" />
|
||||||
<Compile Include="PartyScreenTicTacToeConfig.cs">
|
<Compile Include="PartyScreenTicTacToeMain.cs" />
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<Compile Include="PartyScreenTicTacToeNames.cs" />
|
||||||
</Compile>
|
|
||||||
<Compile Include="PartyScreenTicTacToeMain.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="PartyScreenTicTacToeNames.cs">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
<ProjectReference Include="..\..\VocaluxeLib\VocaluxeLib.csproj">
|
||||||
@@ -134,7 +127,14 @@
|
|||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.XML" />
|
<Reference Include="System.XML" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>cd $(SolutionDir)Partymodes\
|
||||||
|
xcopy "$(ProjectDir)*.cs" "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\" /EXCLUDE:Excludes.txt /I /Y</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|||||||
@@ -1,43 +1,38 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.TicTacToe
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class PartyScreenTicTacToeConfig : CMenuParty
|
public class PartyScreenTicTacToeConfig : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string SelectSlideNumPlayerTeam1 = "SelectSlideNumPlayerTeam1";
|
private const string SelectSlideNumPlayerTeam1 = "SelectSlideNumPlayerTeam1";
|
||||||
const string SelectSlideNumPlayerTeam2 = "SelectSlideNumPlayerTeam2";
|
private const string SelectSlideNumPlayerTeam2 = "SelectSlideNumPlayerTeam2";
|
||||||
const string SelectSlideNumFields = "SelectSlideNumFields";
|
private const string SelectSlideNumFields = "SelectSlideNumFields";
|
||||||
const string SelectSlideSongSource = "SelectSlideSongSource";
|
private const string SelectSlideSongSource = "SelectSlideSongSource";
|
||||||
const string SelectSlidePlaylist = "SelectSlidePlaylist";
|
private const string SelectSlidePlaylist = "SelectSlidePlaylist";
|
||||||
const string SelectSlideCategory = "SelectSlideCategory";
|
private const string SelectSlideCategory = "SelectSlideCategory";
|
||||||
const string SelectSlideGameMode = "SelectSlideGameMode";
|
private const string SelectSlideGameMode = "SelectSlideGameMode";
|
||||||
const string ButtonNext = "ButtonNext";
|
private const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
|
|
||||||
private bool ConfigOk = true;
|
private bool ConfigOk = true;
|
||||||
|
|
||||||
DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
|
|
||||||
public PartyScreenTicTacToeConfig()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenTicTacToeConfig";
|
_ThemeSelectSlides = new string[]
|
||||||
_ThemeSelectSlides = new string[] { SelectSlideNumPlayerTeam1, SelectSlideNumPlayerTeam2, SelectSlideNumFields, SelectSlideSongSource, SelectSlidePlaylist, SelectSlideCategory, SelectSlideGameMode };
|
{SelectSlideNumPlayerTeam1, SelectSlideNumPlayerTeam2, SelectSlideNumFields, SelectSlideSongSource, SelectSlidePlaylist, SelectSlideCategory, SelectSlideGameMode};
|
||||||
_ThemeButtons = new string[] { ButtonNext, ButtonBack };
|
_ThemeButtons = new string[] {ButtonNext, ButtonBack};
|
||||||
_ScreenVersion = ScreenVersion;
|
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenConfig config = new FromScreenConfig();
|
FromScreenConfig config = new FromScreenConfig();
|
||||||
@@ -51,11 +46,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenConfig = config;
|
Data.ScreenConfig = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
|
||||||
{
|
|
||||||
base.LoadTheme(XmlPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
{
|
{
|
||||||
DataToScreenConfig config = new DataToScreenConfig();
|
DataToScreenConfig config = new DataToScreenConfig();
|
||||||
@@ -73,22 +63,18 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen TicTacToe config. Can't cast received data from game mode " + _ThemeName + ". " + e.Message);;
|
CBase.Log.LogError("Error in party mode screen TicTacToe config. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (KeyEvent.Key)
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Back:
|
case Keys.Back:
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
@@ -98,10 +84,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
UpdateSlides();
|
UpdateSlides();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -117,24 +103,22 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
UpdateSlides();
|
UpdateSlides();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
|
||||||
Back();
|
Back();
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -152,7 +136,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
public override bool UpdateGame()
|
public override bool UpdateGame()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNext)].Visible = ConfigOk;
|
Buttons[ButtonNext].Visible = ConfigOk;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,86 +146,75 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void FillSlides()
|
private void FillSlides()
|
||||||
{
|
{
|
||||||
// build num player slide (min player ... max player);
|
// build num player slide (min player ... max player);
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam1)].Clear();
|
SelectSlides[SelectSlideNumPlayerTeam1].Clear();
|
||||||
for (int i = _PartyMode.GetMinPlayer()/2; i <= _PartyMode.GetMaxPlayer() / 2; i++)
|
for (int i = _PartyMode.GetMinPlayer() / 2; i <= _PartyMode.GetMaxPlayer() / 2; i++)
|
||||||
{
|
SelectSlides[SelectSlideNumPlayerTeam1].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam1)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumPlayerTeam1].Selection = Data.ScreenConfig.NumPlayerTeam1 - (_PartyMode.GetMinPlayer() / 2);
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam1)].Selection = Data.ScreenConfig.NumPlayerTeam1 - (_PartyMode.GetMinPlayer()/2);
|
|
||||||
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam2)].Clear();
|
SelectSlides[SelectSlideNumPlayerTeam2].Clear();
|
||||||
for (int i = _PartyMode.GetMinPlayer()/2; i <= _PartyMode.GetMaxPlayer() / 2; i++)
|
for (int i = _PartyMode.GetMinPlayer() / 2; i <= _PartyMode.GetMaxPlayer() / 2; i++)
|
||||||
{
|
SelectSlides[SelectSlideNumPlayerTeam2].AddValue(i.ToString());
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam2)].AddValue(i.ToString());
|
SelectSlides[SelectSlideNumPlayerTeam2].Selection = Data.ScreenConfig.NumPlayerTeam2 - (_PartyMode.GetMinPlayer() / 2);
|
||||||
}
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam2)].Selection = Data.ScreenConfig.NumPlayerTeam2 -( _PartyMode.GetMinPlayer()/2);
|
|
||||||
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].Clear();
|
SelectSlides[SelectSlideNumFields].Clear();
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].AddValue("9");
|
SelectSlides[SelectSlideNumFields].AddValue("9");
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].AddValue("16");
|
SelectSlides[SelectSlideNumFields].AddValue("16");
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].AddValue("25");
|
SelectSlides[SelectSlideNumFields].AddValue("25");
|
||||||
if (Data.ScreenConfig.NumFields == 9)
|
if (Data.ScreenConfig.NumFields == 9)
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].Selection = 0;
|
SelectSlides[SelectSlideNumFields].Selection = 0;
|
||||||
else if (Data.ScreenConfig.NumFields == 16)
|
else if (Data.ScreenConfig.NumFields == 16)
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].Selection = 1;
|
SelectSlides[SelectSlideNumFields].Selection = 1;
|
||||||
else if (Data.ScreenConfig.NumFields == 25)
|
else if (Data.ScreenConfig.NumFields == 25)
|
||||||
SelectSlides[htSelectSlides(SelectSlideNumFields)].Selection = 2;
|
SelectSlides[SelectSlideNumFields].Selection = 2;
|
||||||
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideSongSource)].Clear();
|
SelectSlides[SelectSlideSongSource].Clear();
|
||||||
SelectSlides[htSelectSlides(SelectSlideSongSource)].SetValues<ESongSource>((int)Data.ScreenConfig.SongSource);
|
SelectSlides[SelectSlideSongSource].SetValues<ESongSource>((int)Data.ScreenConfig.SongSource);
|
||||||
|
|
||||||
string[] _Playlists = CBase.Playlist.GetPlaylistNames();
|
string[] _Playlists = CBase.Playlist.GetPlaylistNames();
|
||||||
SelectSlides[htSelectSlides(SelectSlidePlaylist)].Clear();
|
SelectSlides[SelectSlidePlaylist].Clear();
|
||||||
for (int i = 0; i < _Playlists.Length; i++)
|
for (int i = 0; i < _Playlists.Length; i++)
|
||||||
{
|
{
|
||||||
string value = _Playlists[i] + " (" + CBase.Playlist.GetPlaylistSongCount(i) + " " + CBase.Language.Translate("TR_SONGS", _PartyModeID) + ")";
|
string value = _Playlists[i] + " (" + CBase.Playlist.GetPlaylistSongCount(i) + " " + CBase.Language.Translate("TR_SONGS", _PartyModeID) + ")";
|
||||||
SelectSlides[htSelectSlides(SelectSlidePlaylist)].AddValue(value);
|
SelectSlides[SelectSlidePlaylist].AddValue(value);
|
||||||
}
|
}
|
||||||
SelectSlides[htSelectSlides(SelectSlidePlaylist)].Selection = Data.ScreenConfig.PlaylistID;
|
SelectSlides[SelectSlidePlaylist].Selection = Data.ScreenConfig.PlaylistID;
|
||||||
SelectSlides[htSelectSlides(SelectSlidePlaylist)].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_PLAYLIST;
|
SelectSlides[SelectSlidePlaylist].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_PLAYLIST;
|
||||||
|
|
||||||
string[] _Categories = new string[CBase.Songs.GetNumCategories()];
|
string[] _Categories = new string[CBase.Songs.GetNumCategories()];
|
||||||
for (int i = 0; i < CBase.Songs.GetNumCategories(); i++ )
|
for (int i = 0; i < CBase.Songs.GetNumCategories(); i++)
|
||||||
{
|
|
||||||
_Categories[i] = CBase.Songs.GetCategory(i).Name;
|
_Categories[i] = CBase.Songs.GetCategory(i).Name;
|
||||||
}
|
SelectSlides[SelectSlideCategory].Clear();
|
||||||
SelectSlides[htSelectSlides(SelectSlideCategory)].Clear();
|
|
||||||
for (int i = 0; i < _Categories.Length; i++)
|
for (int i = 0; i < _Categories.Length; i++)
|
||||||
{
|
{
|
||||||
string value = _Categories[i] + " (" + CBase.Songs.NumSongsInCategory(i) + " " + CBase.Language.Translate("TR_SONGS", _PartyModeID) + ")";
|
string value = _Categories[i] + " (" + CBase.Songs.NumSongsInCategory(i) + " " + CBase.Language.Translate("TR_SONGS", _PartyModeID) + ")";
|
||||||
SelectSlides[htSelectSlides(SelectSlideCategory)].AddValue(value);
|
SelectSlides[SelectSlideCategory].AddValue(value);
|
||||||
}
|
}
|
||||||
SelectSlides[htSelectSlides(SelectSlideCategory)].Selection = Data.ScreenConfig.CategoryID;
|
SelectSlides[SelectSlideCategory].Selection = Data.ScreenConfig.CategoryID;
|
||||||
SelectSlides[htSelectSlides(SelectSlideCategory)].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_CATEGORY;
|
SelectSlides[SelectSlideCategory].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_CATEGORY;
|
||||||
|
|
||||||
SelectSlides[htSelectSlides(SelectSlideGameMode)].Visible = true;
|
SelectSlides[SelectSlideGameMode].Visible = true;
|
||||||
SelectSlides[htSelectSlides(SelectSlideGameMode)].SetValues<EPartyGameMode>((int)Data.ScreenConfig.GameMode);
|
SelectSlides[SelectSlideGameMode].SetValues<EPartyGameMode>((int)Data.ScreenConfig.GameMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateSlides()
|
private void UpdateSlides()
|
||||||
{
|
{
|
||||||
Data.ScreenConfig.NumPlayerTeam1 = SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam1)].Selection + (_PartyMode.GetMinPlayer()/2);
|
Data.ScreenConfig.NumPlayerTeam1 = SelectSlides[SelectSlideNumPlayerTeam1].Selection + (_PartyMode.GetMinPlayer() / 2);
|
||||||
Data.ScreenConfig.NumPlayerTeam2 = SelectSlides[htSelectSlides(SelectSlideNumPlayerTeam2)].Selection + (_PartyMode.GetMinPlayer()/2);
|
Data.ScreenConfig.NumPlayerTeam2 = SelectSlides[SelectSlideNumPlayerTeam2].Selection + (_PartyMode.GetMinPlayer() / 2);
|
||||||
|
|
||||||
if (SelectSlides[htSelectSlides(SelectSlideNumFields)].Selection == 0)
|
if (SelectSlides[SelectSlideNumFields].Selection == 0)
|
||||||
Data.ScreenConfig.NumFields = 9;
|
Data.ScreenConfig.NumFields = 9;
|
||||||
else if (SelectSlides[htSelectSlides(SelectSlideNumFields)].Selection == 1)
|
else if (SelectSlides[SelectSlideNumFields].Selection == 1)
|
||||||
Data.ScreenConfig.NumFields = 16;
|
Data.ScreenConfig.NumFields = 16;
|
||||||
else if (SelectSlides[htSelectSlides(SelectSlideNumFields)].Selection == 2)
|
else if (SelectSlides[SelectSlideNumFields].Selection == 2)
|
||||||
Data.ScreenConfig.NumFields = 25;
|
Data.ScreenConfig.NumFields = 25;
|
||||||
|
|
||||||
Data.ScreenConfig.SongSource = (ESongSource)SelectSlides[htSelectSlides(SelectSlideSongSource)].Selection;
|
Data.ScreenConfig.SongSource = (ESongSource)SelectSlides[SelectSlideSongSource].Selection;
|
||||||
Data.ScreenConfig.PlaylistID = SelectSlides[htSelectSlides(SelectSlidePlaylist)].Selection;
|
Data.ScreenConfig.PlaylistID = SelectSlides[SelectSlidePlaylist].Selection;
|
||||||
Data.ScreenConfig.CategoryID = SelectSlides[htSelectSlides(SelectSlideCategory)].Selection;
|
Data.ScreenConfig.CategoryID = SelectSlides[SelectSlideCategory].Selection;
|
||||||
Data.ScreenConfig.GameMode = (EPartyGameMode)SelectSlides[htSelectSlides(SelectSlideGameMode)].Selection;
|
Data.ScreenConfig.GameMode = (EPartyGameMode)SelectSlides[SelectSlideGameMode].Selection;
|
||||||
|
|
||||||
EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL;
|
EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL;
|
||||||
|
|
||||||
@@ -263,6 +236,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (Data.ScreenConfig.SongSource == ESongSource.TR_PLAYLIST)
|
if (Data.ScreenConfig.SongSource == ESongSource.TR_PLAYLIST)
|
||||||
{
|
{
|
||||||
if (CBase.Playlist.GetNumPlaylists() > 0)
|
if (CBase.Playlist.GetNumPlaylists() > 0)
|
||||||
|
{
|
||||||
if (CBase.Playlist.GetPlaylistSongCount(Data.ScreenConfig.PlaylistID) > 0)
|
if (CBase.Playlist.GetPlaylistSongCount(Data.ScreenConfig.PlaylistID) > 0)
|
||||||
{
|
{
|
||||||
ConfigOk = false;
|
ConfigOk = false;
|
||||||
@@ -270,23 +244,27 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
int id = CBase.Playlist.GetPlaylistSong(Data.ScreenConfig.PlaylistID, i).SongID;
|
int id = CBase.Playlist.GetPlaylistSong(Data.ScreenConfig.PlaylistID, i).SongID;
|
||||||
foreach (EGameMode mode in CBase.Songs.GetSongByID(id).AvailableGameModes)
|
foreach (EGameMode mode in CBase.Songs.GetSongByID(id).AvailableGameModes)
|
||||||
|
{
|
||||||
if (mode == gm)
|
if (mode == gm)
|
||||||
{
|
{
|
||||||
ConfigOk = true;
|
ConfigOk = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (ConfigOk)
|
if (ConfigOk)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ConfigOk = false;
|
ConfigOk = false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ConfigOk = false;
|
ConfigOk = false;
|
||||||
}
|
}
|
||||||
if (Data.ScreenConfig.SongSource == ESongSource.TR_CATEGORY)
|
if (Data.ScreenConfig.SongSource == ESongSource.TR_CATEGORY)
|
||||||
{
|
{
|
||||||
if (CBase.Songs.GetNumCategories() > 0)
|
if (CBase.Songs.GetNumCategories() > 0)
|
||||||
|
{
|
||||||
if (CBase.Songs.NumSongsInCategory(Data.ScreenConfig.CategoryID) > 0)
|
if (CBase.Songs.NumSongsInCategory(Data.ScreenConfig.CategoryID) > 0)
|
||||||
{
|
{
|
||||||
CBase.Songs.SetCategory(Data.ScreenConfig.CategoryID);
|
CBase.Songs.SetCategory(Data.ScreenConfig.CategoryID);
|
||||||
@@ -294,11 +272,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < CBase.Songs.NumSongsInCategory(Data.ScreenConfig.CategoryID); i++)
|
for (int i = 0; i < CBase.Songs.NumSongsInCategory(Data.ScreenConfig.CategoryID); i++)
|
||||||
{
|
{
|
||||||
foreach (EGameMode mode in CBase.Songs.GetVisibleSong(i).AvailableGameModes)
|
foreach (EGameMode mode in CBase.Songs.GetVisibleSong(i).AvailableGameModes)
|
||||||
|
{
|
||||||
if (mode == gm)
|
if (mode == gm)
|
||||||
{
|
{
|
||||||
ConfigOk = true;
|
ConfigOk = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (ConfigOk)
|
if (ConfigOk)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -306,6 +286,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
ConfigOk = false;
|
ConfigOk = false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ConfigOk = false;
|
ConfigOk = false;
|
||||||
}
|
}
|
||||||
@@ -316,11 +297,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < CBase.Songs.GetNumSongs(); i++)
|
for (int i = 0; i < CBase.Songs.GetNumSongs(); i++)
|
||||||
{
|
{
|
||||||
foreach (EGameMode mode in CBase.Songs.GetSongByID(i).AvailableGameModes)
|
foreach (EGameMode mode in CBase.Songs.GetSongByID(i).AvailableGameModes)
|
||||||
|
{
|
||||||
if (mode == gm)
|
if (mode == gm)
|
||||||
{
|
{
|
||||||
ConfigOk = true;
|
ConfigOk = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (ConfigOk)
|
if (ConfigOk)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -328,8 +311,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
else
|
else
|
||||||
ConfigOk = false;
|
ConfigOk = false;
|
||||||
}
|
}
|
||||||
SelectSlides[htSelectSlides(SelectSlideCategory)].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_CATEGORY;
|
SelectSlides[SelectSlideCategory].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_CATEGORY;
|
||||||
SelectSlides[htSelectSlides(SelectSlidePlaylist)].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_PLAYLIST;
|
SelectSlides[SelectSlidePlaylist].Visible = Data.ScreenConfig.SongSource == ESongSource.TR_PLAYLIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Back()
|
private void Back()
|
||||||
@@ -339,7 +322,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void Next()
|
private void Next()
|
||||||
{
|
{
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
using VocaluxeLib.Menu.SongMenu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.TicTacToe
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class Field
|
public class Field
|
||||||
{
|
{
|
||||||
@@ -24,34 +23,36 @@ namespace Vocaluxe.PartyModes
|
|||||||
public class PartyScreenTicTacToeMain : CMenuParty
|
public class PartyScreenTicTacToeMain : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string TextPopupReallyExit = "TextPopupReallyExit";
|
private const string TextPopupReallyExit = "TextPopupReallyExit";
|
||||||
const string TextTeamChoosing = "TextTeamChoosing";
|
private const string TextTeamChoosing = "TextTeamChoosing";
|
||||||
const string TextFinishMessage = "TextFinishMessage";
|
private const string TextFinishMessage = "TextFinishMessage";
|
||||||
const string TextNextPlayerT1 = "TextNextPlayerT1";
|
private const string TextNextPlayerT1 = "TextNextPlayerT1";
|
||||||
const string TextNextPlayerT2 = "TextNextPlayerT2";
|
private const string TextNextPlayerT2 = "TextNextPlayerT2";
|
||||||
const string TextNextPlayerNameT1 = "TextNextPlayerNameT1";
|
private const string TextNextPlayerNameT1 = "TextNextPlayerNameT1";
|
||||||
const string TextNextPlayerNameT2 = "TextNextPlayerNameT2";
|
private const string TextNextPlayerNameT2 = "TextNextPlayerNameT2";
|
||||||
|
|
||||||
const string ButtonNextRound = "ButtonNextRound";
|
private const string ButtonNextRound = "ButtonNextRound";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
const string ButtonExit = "ButtonExit";
|
private const string ButtonExit = "ButtonExit";
|
||||||
const string ButtonPopupYes = "ButtonPopupYes";
|
private const string ButtonPopupYes = "ButtonPopupYes";
|
||||||
const string ButtonPopupNo = "ButtonPopupNo";
|
private const string ButtonPopupNo = "ButtonPopupNo";
|
||||||
const string ButtonField = "ButtonField";
|
private const string ButtonField = "ButtonField";
|
||||||
|
|
||||||
const string ButtonJokerRandomT1 = "ButtonJokerRandomT1";
|
private const string ButtonJokerRandomT1 = "ButtonJokerRandomT1";
|
||||||
const string ButtonJokerRandomT2 = "ButtonJokerRandomT2";
|
private const string ButtonJokerRandomT2 = "ButtonJokerRandomT2";
|
||||||
const string ButtonJokerRetryT1 = "ButtonJokerRetryT1";
|
private const string ButtonJokerRetryT1 = "ButtonJokerRetryT1";
|
||||||
const string ButtonJokerRetryT2 = "ButtonJokerRetryT2";
|
private const string ButtonJokerRetryT2 = "ButtonJokerRetryT2";
|
||||||
|
|
||||||
|
private const string StaticPopupBG = "StaticPopupBG";
|
||||||
|
private const string StaticAvatarT1 = "StaticAvatarT1";
|
||||||
|
private const string StaticAvatarT2 = "StaticAvatarT2";
|
||||||
|
|
||||||
const string StaticPopupBG = "StaticPopupBG";
|
private bool ExitPopupVisible;
|
||||||
const string StaticAvatarT1 = "StaticAvatarT1";
|
|
||||||
const string StaticAvatarT2 = "StaticAvatarT2";
|
|
||||||
|
|
||||||
private bool ExitPopupVisible = false;
|
|
||||||
|
|
||||||
private DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
private DataToScreenMain GameData;
|
private DataToScreenMain GameData;
|
||||||
@@ -69,19 +70,17 @@ namespace Vocaluxe.PartyModes
|
|||||||
private int[,] Possibilities;
|
private int[,] Possibilities;
|
||||||
private EStatus Status;
|
private EStatus Status;
|
||||||
|
|
||||||
public PartyScreenTicTacToeMain()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenTicTacToeMain";
|
_ThemeTexts = new string[] {TextPopupReallyExit, TextTeamChoosing, TextFinishMessage, TextNextPlayerT1, TextNextPlayerT2, TextNextPlayerNameT1, TextNextPlayerNameT2};
|
||||||
_ThemeTexts = new string[] { TextPopupReallyExit, TextTeamChoosing, TextFinishMessage, TextNextPlayerT1, TextNextPlayerT2, TextNextPlayerNameT1, TextNextPlayerNameT2 };
|
_ThemeButtons = new string[]
|
||||||
_ThemeButtons = new string[] { ButtonNextRound, ButtonBack, ButtonExit, ButtonPopupYes, ButtonPopupNo, ButtonField, ButtonJokerRandomT1, ButtonJokerRandomT2, ButtonJokerRetryT1, ButtonJokerRetryT2 };
|
{
|
||||||
_ThemeStatics = new string[] { StaticPopupBG, StaticAvatarT1, StaticAvatarT2 };
|
ButtonNextRound, ButtonBack, ButtonExit, ButtonPopupYes, ButtonPopupNo, ButtonField, ButtonJokerRandomT1, ButtonJokerRandomT2, ButtonJokerRetryT1,
|
||||||
_ScreenVersion = ScreenVersion;
|
ButtonJokerRetryT2
|
||||||
|
};
|
||||||
|
_ThemeStatics = new string[] {StaticPopupBG, StaticAvatarT1, StaticAvatarT2};
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenMain config = new FromScreenMain();
|
FromScreenMain config = new FromScreenMain();
|
||||||
@@ -100,10 +99,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
public override void LoadTheme(string XmlPath)
|
||||||
{
|
{
|
||||||
base.LoadTheme(XmlPath);
|
base.LoadTheme(XmlPath);
|
||||||
|
|
||||||
CreateFields();
|
CreateFields();
|
||||||
Buttons[htButtons(ButtonField)].Visible = false;
|
Buttons[ButtonField].Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
@@ -117,32 +116,30 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen TicTacToe main. Can't cast received data from game mode " + _ThemeName + ". " + e.Message); ;
|
CBase.Log.LogError("Error in party mode screen TicTacToe main. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (KeyEvent.Key)
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
case Keys.Back:
|
case Keys.Back:
|
||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
|
{
|
||||||
if (GameData.CurrentRoundNr == 1 && Status != EStatus.FieldSelected)
|
if (GameData.CurrentRoundNr == 1 && Status != EStatus.FieldSelected)
|
||||||
Back();
|
Back();
|
||||||
else if(Status == EStatus.None)
|
else if (Status == EStatus.None)
|
||||||
EndParty();
|
EndParty();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
break;
|
break;
|
||||||
@@ -150,11 +147,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonNextRound)].Selected)
|
if (Buttons[ButtonNextRound].Selected)
|
||||||
NextRound();
|
NextRound();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected && GameData.CurrentRoundNr == 1 && Status != EStatus.FieldSelected)
|
if (Buttons[ButtonBack].Selected && GameData.CurrentRoundNr == 1 && Status != EStatus.FieldSelected)
|
||||||
Back();
|
Back();
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected && (GameData.CurrentRoundNr > 1 || Status == EStatus.FieldSelected) && Status != EStatus.None)
|
if (Buttons[ButtonExit].Selected && (GameData.CurrentRoundNr > 1 || Status == EStatus.FieldSelected) && Status != EStatus.None)
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
else if (Status == EStatus.None)
|
else if (Status == EStatus.None)
|
||||||
EndParty();
|
EndParty();
|
||||||
@@ -181,21 +178,21 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
if (Status == EStatus.FieldSelected)
|
if (Status == EStatus.FieldSelected)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonJokerRandomT1)].Selected)
|
if (Buttons[ButtonJokerRandomT1].Selected)
|
||||||
UseJoker(0, 0);
|
UseJoker(0, 0);
|
||||||
if (Buttons[htButtons(ButtonJokerRandomT2)].Selected)
|
if (Buttons[ButtonJokerRandomT2].Selected)
|
||||||
UseJoker(1, 0);
|
UseJoker(1, 0);
|
||||||
if (Buttons[htButtons(ButtonJokerRetryT1)].Selected)
|
if (Buttons[ButtonJokerRetryT1].Selected)
|
||||||
UseJoker(0, 1);
|
UseJoker(0, 1);
|
||||||
if (Buttons[htButtons(ButtonJokerRetryT2)].Selected)
|
if (Buttons[ButtonJokerRetryT2].Selected)
|
||||||
UseJoker(1, 1);
|
UseJoker(1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonPopupYes)].Selected)
|
if (Buttons[ButtonPopupYes].Selected)
|
||||||
EndParty();
|
EndParty();
|
||||||
if (Buttons[htButtons(ButtonPopupNo)].Selected)
|
if (Buttons[ButtonPopupNo].Selected)
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -204,23 +201,25 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonNextRound)].Selected)
|
if (Buttons[ButtonNextRound].Selected)
|
||||||
NextRound();
|
NextRound();
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected)
|
if (Buttons[ButtonExit].Selected)
|
||||||
|
{
|
||||||
if (Status == EStatus.None)
|
if (Status == EStatus.None)
|
||||||
EndParty();
|
EndParty();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
for (int i = 0; i < GameData.NumFields; i++)
|
for (int i = 0; i < GameData.NumFields; i++)
|
||||||
{
|
{
|
||||||
switch (Status)
|
switch (Status)
|
||||||
@@ -242,44 +241,43 @@ namespace Vocaluxe.PartyModes
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(Status == EStatus.FieldSelected)
|
if (Status == EStatus.FieldSelected)
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonJokerRandomT1)].Selected)
|
if (Buttons[ButtonJokerRandomT1].Selected)
|
||||||
UseJoker(0, 0);
|
UseJoker(0, 0);
|
||||||
if (Buttons[htButtons(ButtonJokerRandomT2)].Selected)
|
if (Buttons[ButtonJokerRandomT2].Selected)
|
||||||
UseJoker(1, 0);
|
UseJoker(1, 0);
|
||||||
if (Buttons[htButtons(ButtonJokerRetryT1)].Selected)
|
if (Buttons[ButtonJokerRetryT1].Selected)
|
||||||
UseJoker(0, 1);
|
UseJoker(0, 1);
|
||||||
if (Buttons[htButtons(ButtonJokerRetryT2)].Selected)
|
if (Buttons[ButtonJokerRetryT2].Selected)
|
||||||
UseJoker(1, 1);
|
UseJoker(1, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonPopupYes)].Selected)
|
if (Buttons[ButtonPopupYes].Selected)
|
||||||
EndParty();
|
EndParty();
|
||||||
if (Buttons[htButtons(ButtonPopupNo)].Selected)
|
if (Buttons[ButtonPopupNo].Selected)
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
{
|
{
|
||||||
if (!ExitPopupVisible)
|
if (!ExitPopupVisible)
|
||||||
|
{
|
||||||
if (GameData.CurrentRoundNr == 1 && Status != EStatus.FieldSelected)
|
if (GameData.CurrentRoundNr == 1 && Status != EStatus.FieldSelected)
|
||||||
Back();
|
Back();
|
||||||
else if(Status == EStatus.None)
|
else if (Status == EStatus.None)
|
||||||
EndParty();
|
EndParty();
|
||||||
else
|
else
|
||||||
ShowPopup(true);
|
ShowPopup(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.Wheel != 0)
|
if (mouseEvent.Wheel != 0) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -294,15 +292,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
BuildWinnerPossibilities();
|
BuildWinnerPossibilities();
|
||||||
SelectedField = -1;
|
SelectedField = -1;
|
||||||
Buttons[htButtons(ButtonBack)].Visible = true;
|
Buttons[ButtonBack].Visible = true;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = false;
|
Buttons[ButtonExit].Visible = false;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonBack)]);
|
SetInteractionToButton(Buttons[ButtonBack]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonBack)].Visible = false;
|
Buttons[ButtonBack].Visible = false;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = true;
|
Buttons[ButtonExit].Visible = true;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonExit)]);
|
SetInteractionToButton(Buttons[ButtonExit]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = EStatus.FieldChoosing;
|
Status = EStatus.FieldChoosing;
|
||||||
@@ -314,36 +312,37 @@ namespace Vocaluxe.PartyModes
|
|||||||
if (GameData.CurrentRoundNr <= GameData.NumFields && Winner == 0)
|
if (GameData.CurrentRoundNr <= GameData.NumFields && Winner == 0)
|
||||||
{
|
{
|
||||||
UpdateTeamChoosingMessage();
|
UpdateTeamChoosingMessage();
|
||||||
Texts[htTexts(TextNextPlayerT1)].Visible = false;
|
Texts[TextNextPlayerT1].Visible = false;
|
||||||
Texts[htTexts(TextNextPlayerT2)].Visible = false;
|
Texts[TextNextPlayerT2].Visible = false;
|
||||||
Texts[htTexts(TextNextPlayerNameT1)].Visible = false;
|
Texts[TextNextPlayerNameT1].Visible = false;
|
||||||
Texts[htTexts(TextNextPlayerNameT2)].Visible = false;
|
Texts[TextNextPlayerNameT2].Visible = false;
|
||||||
Statics[htStatics(StaticAvatarT1)].Visible = false;
|
Statics[StaticAvatarT1].Visible = false;
|
||||||
Statics[htStatics(StaticAvatarT2)].Visible = false;
|
Statics[StaticAvatarT2].Visible = false;
|
||||||
Buttons[htButtons(ButtonJokerRandomT1)].Visible = false;
|
Buttons[ButtonJokerRandomT1].Visible = false;
|
||||||
Buttons[htButtons(ButtonJokerRandomT2)].Visible = false;
|
Buttons[ButtonJokerRandomT2].Visible = false;
|
||||||
Buttons[htButtons(ButtonJokerRetryT1)].Visible = false;
|
Buttons[ButtonJokerRetryT1].Visible = false;
|
||||||
Buttons[htButtons(ButtonJokerRetryT2)].Visible = false;
|
Buttons[ButtonJokerRetryT2].Visible = false;
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = false;
|
Buttons[ButtonNextRound].Visible = false;
|
||||||
Texts[htTexts(TextFinishMessage)].Visible = false;
|
Texts[TextFinishMessage].Visible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Status = EStatus.None;
|
Status = EStatus.None;
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = false;
|
Buttons[ButtonNextRound].Visible = false;
|
||||||
Texts[htTexts(TextFinishMessage)].Visible = true;
|
Texts[TextFinishMessage].Visible = true;
|
||||||
Texts[htTexts(TextTeamChoosing)].Visible = false;
|
Texts[TextTeamChoosing].Visible = false;
|
||||||
if (Winner > 0)
|
if (Winner > 0)
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextFinishMessage)].Color = CBase.Theme.GetPlayerColor(Winner);
|
Texts[TextFinishMessage].Color = CBase.Theme.GetPlayerColor(Winner);
|
||||||
Texts[htTexts(TextFinishMessage)].Text = CBase.Language.Translate("TR_SCREENMAIN_WINNER", _PartyModeID) + " " + CBase.Language.Translate("TR_TEAM", _PartyModeID) + " " + Winner;
|
Texts[TextFinishMessage].Text = CBase.Language.Translate("TR_SCREENMAIN_WINNER", _PartyModeID) + " " + CBase.Language.Translate("TR_TEAM", _PartyModeID) + " " +
|
||||||
|
Winner;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextFinishMessage)].Color = new SColorF(1, 1, 1, 1);
|
Texts[TextFinishMessage].Color = new SColorF(1, 1, 1, 1);
|
||||||
Texts[htTexts(TextFinishMessage)].Text = CBase.Language.Translate("TR_SCREENMAIN_NOWINNER", _PartyModeID);
|
Texts[TextFinishMessage].Text = CBase.Language.Translate("TR_SCREENMAIN_NOWINNER", _PartyModeID);
|
||||||
}
|
}
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonExit)]);
|
SetInteractionToButton(Buttons[ButtonExit]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
@@ -372,7 +371,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < 25; i++)
|
for (int i = 0; i < 25; i++)
|
||||||
{
|
{
|
||||||
Field f = new Field();
|
Field f = new Field();
|
||||||
f.Button = GetNewButton(Buttons[htButtons(ButtonField)]);
|
f.Button = GetNewButton(Buttons[ButtonField]);
|
||||||
f.Button.Visible = false;
|
f.Button.Visible = false;
|
||||||
f.Content = new Round();
|
f.Content = new Round();
|
||||||
AddButton(f.Button);
|
AddButton(f.Button);
|
||||||
@@ -382,7 +381,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void UpdateFields()
|
private void UpdateFields()
|
||||||
{
|
{
|
||||||
int NumOneRow = (int)Math.Sqrt((double)GameData.NumFields);
|
int NumOneRow = (int)Math.Sqrt(GameData.NumFields);
|
||||||
float FieldSizeY = (CBase.Settings.GetRenderH() - 150 - NumOneRow * FieldSpace) / NumOneRow;
|
float FieldSizeY = (CBase.Settings.GetRenderH() - 150 - NumOneRow * FieldSpace) / NumOneRow;
|
||||||
float FieldSizeX = (CBase.Settings.GetRenderW() - 300 - NumOneRow * FieldSpace) / NumOneRow;
|
float FieldSizeX = (CBase.Settings.GetRenderW() - 300 - NumOneRow * FieldSpace) / NumOneRow;
|
||||||
if (FieldSizeX < FieldSizeY)
|
if (FieldSizeX < FieldSizeY)
|
||||||
@@ -406,7 +405,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Fields[i].Button.Visible = true;
|
Fields[i].Button.Visible = true;
|
||||||
Fields[i].Button.Enabled = true;
|
Fields[i].Button.Enabled = true;
|
||||||
column++;
|
column++;
|
||||||
if ((i+1) >= NumOneRow * (row+1))
|
if ((i + 1) >= NumOneRow * (row + 1))
|
||||||
{
|
{
|
||||||
column = 0;
|
column = 0;
|
||||||
row++;
|
row++;
|
||||||
@@ -429,9 +428,9 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < GameData.Rounds.Count; i++)
|
for (int i = 0; i < GameData.Rounds.Count; i++)
|
||||||
{
|
{
|
||||||
Fields[i].Button.Enabled = true;
|
Fields[i].Button.Enabled = true;
|
||||||
Fields[i].Button.Texture = Buttons[htButtons(ButtonField)].Texture;
|
Fields[i].Button.Texture = Buttons[ButtonField].Texture;
|
||||||
Fields[i].Button.Color = Buttons[htButtons(ButtonField)].Color;
|
Fields[i].Button.Color = Buttons[ButtonField].Color;
|
||||||
Fields[i].Button.SColor = Buttons[htButtons(ButtonField)].SColor;
|
Fields[i].Button.SColor = Buttons[ButtonField].SColor;
|
||||||
Fields[i].Content = GameData.Rounds[i];
|
Fields[i].Content = GameData.Rounds[i];
|
||||||
if (Fields[i].Content.Finished)
|
if (Fields[i].Content.Finished)
|
||||||
{
|
{
|
||||||
@@ -449,17 +448,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
if (Status == EStatus.JokerRetry && Fields[i].Content.Finished)
|
if (Status == EStatus.JokerRetry && Fields[i].Content.Finished)
|
||||||
{
|
{
|
||||||
Fields[i].Button.SColor = CBase.Theme.GetPlayerColor(GameData.Team+1);
|
Fields[i].Button.SColor = CBase.Theme.GetPlayerColor(GameData.Team + 1);
|
||||||
Fields[i].Button.Enabled = true;
|
Fields[i].Button.Enabled = true;
|
||||||
}
|
}
|
||||||
if (Status == EStatus.JokerRetry && !Fields[i].Content.Finished)
|
if (Status == EStatus.JokerRetry && !Fields[i].Content.Finished)
|
||||||
{
|
|
||||||
Fields[i].Button.Enabled = false;
|
Fields[i].Button.Enabled = false;
|
||||||
}
|
if (Status == EStatus.FieldSelected)
|
||||||
if(Status == EStatus.FieldSelected)
|
|
||||||
{
|
|
||||||
Fields[i].Button.Enabled = false;
|
Fields[i].Button.Enabled = false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -484,7 +479,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
SingerTeam2 = GameData.PlayerTeam2[0];
|
SingerTeam2 = GameData.PlayerTeam2[0];
|
||||||
GameData.PlayerTeam2.RemoveAt(0);
|
GameData.PlayerTeam2.RemoveAt(0);
|
||||||
}
|
}
|
||||||
Menu.SongMenu.CSong Song = CBase.Songs.GetSongByID(SongID);
|
CSong Song = CBase.Songs.GetSongByID(SongID);
|
||||||
|
|
||||||
CBase.BackgroundMusic.SetStatus(true);
|
CBase.BackgroundMusic.SetStatus(true);
|
||||||
|
|
||||||
@@ -500,31 +495,31 @@ namespace Vocaluxe.PartyModes
|
|||||||
GameData.Rounds[SelectedField].SingerTeam2 = SingerTeam2;
|
GameData.Rounds[SelectedField].SingerTeam2 = SingerTeam2;
|
||||||
UpdateFieldContents();
|
UpdateFieldContents();
|
||||||
|
|
||||||
Texts[htTexts(TextNextPlayerT1)].Visible = true;
|
Texts[TextNextPlayerT1].Visible = true;
|
||||||
Texts[htTexts(TextNextPlayerT2)].Visible = true;
|
Texts[TextNextPlayerT2].Visible = true;
|
||||||
Texts[htTexts(TextNextPlayerNameT1)].Visible = true;
|
Texts[TextNextPlayerNameT1].Visible = true;
|
||||||
Texts[htTexts(TextNextPlayerNameT2)].Visible = true;
|
Texts[TextNextPlayerNameT2].Visible = true;
|
||||||
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
||||||
Texts[htTexts(TextNextPlayerNameT1)].Text = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].PlayerName;
|
Texts[TextNextPlayerNameT1].Text = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].PlayerName;
|
||||||
Texts[htTexts(TextNextPlayerNameT2)].Text = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].PlayerName;
|
Texts[TextNextPlayerNameT2].Text = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].PlayerName;
|
||||||
Statics[htStatics(StaticAvatarT1)].Visible = true;
|
Statics[StaticAvatarT1].Visible = true;
|
||||||
Statics[htStatics(StaticAvatarT2)].Visible = true;
|
Statics[StaticAvatarT2].Visible = true;
|
||||||
Statics[htStatics(StaticAvatarT1)].Texture = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].Avatar.Texture;
|
Statics[StaticAvatarT1].Texture = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].Avatar.Texture;
|
||||||
Statics[htStatics(StaticAvatarT2)].Texture = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].Avatar.Texture;
|
Statics[StaticAvatarT2].Texture = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].Avatar.Texture;
|
||||||
|
|
||||||
UpdateJokerButtons();
|
UpdateJokerButtons();
|
||||||
|
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = true;
|
Buttons[ButtonNextRound].Visible = true;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = true;
|
Buttons[ButtonExit].Visible = true;
|
||||||
Buttons[htButtons(ButtonBack)].Visible = false;
|
Buttons[ButtonBack].Visible = false;
|
||||||
|
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNextRound)]);
|
SetInteractionToButton(Buttons[ButtonNextRound]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FieldSelectedAgain()
|
private void FieldSelectedAgain()
|
||||||
{
|
{
|
||||||
int SongID = Fields[SelectedField].Content.SongID;
|
int SongID = Fields[SelectedField].Content.SongID;
|
||||||
Menu.SongMenu.CSong Song = CBase.Songs.GetSongByID(SongID);
|
CSong Song = CBase.Songs.GetSongByID(SongID);
|
||||||
CBase.BackgroundMusic.SetStatus(true);
|
CBase.BackgroundMusic.SetStatus(true);
|
||||||
|
|
||||||
PreviewStream = CBase.Sound.Load(Song.GetMP3(), false);
|
PreviewStream = CBase.Sound.Load(Song.GetMP3(), false);
|
||||||
@@ -539,32 +534,32 @@ namespace Vocaluxe.PartyModes
|
|||||||
GameData.Rounds[SelectedField].SingerTeam2 = GameData.Rounds[OldSelectedField].SingerTeam2;
|
GameData.Rounds[SelectedField].SingerTeam2 = GameData.Rounds[OldSelectedField].SingerTeam2;
|
||||||
UpdateFieldContents();
|
UpdateFieldContents();
|
||||||
|
|
||||||
Texts[htTexts(TextNextPlayerT1)].Visible = true;
|
Texts[TextNextPlayerT1].Visible = true;
|
||||||
Texts[htTexts(TextNextPlayerT2)].Visible = true;
|
Texts[TextNextPlayerT2].Visible = true;
|
||||||
Texts[htTexts(TextNextPlayerNameT1)].Visible = true;
|
Texts[TextNextPlayerNameT1].Visible = true;
|
||||||
Texts[htTexts(TextNextPlayerNameT2)].Visible = true;
|
Texts[TextNextPlayerNameT2].Visible = true;
|
||||||
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
SProfile[] profiles = CBase.Profiles.GetProfiles();
|
||||||
Texts[htTexts(TextNextPlayerNameT1)].Text = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].PlayerName;
|
Texts[TextNextPlayerNameT1].Text = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].PlayerName;
|
||||||
Texts[htTexts(TextNextPlayerNameT2)].Text = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].PlayerName;
|
Texts[TextNextPlayerNameT2].Text = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].PlayerName;
|
||||||
Statics[htStatics(StaticAvatarT1)].Visible = true;
|
Statics[StaticAvatarT1].Visible = true;
|
||||||
Statics[htStatics(StaticAvatarT2)].Visible = true;
|
Statics[StaticAvatarT2].Visible = true;
|
||||||
Statics[htStatics(StaticAvatarT1)].Texture = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].Avatar.Texture;
|
Statics[StaticAvatarT1].Texture = profiles[GameData.ProfileIDsTeam1[GameData.Rounds[SelectedField].SingerTeam1]].Avatar.Texture;
|
||||||
Statics[htStatics(StaticAvatarT2)].Texture = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].Avatar.Texture;
|
Statics[StaticAvatarT2].Texture = profiles[GameData.ProfileIDsTeam2[GameData.Rounds[SelectedField].SingerTeam2]].Avatar.Texture;
|
||||||
|
|
||||||
UpdateJokerButtons();
|
UpdateJokerButtons();
|
||||||
|
|
||||||
Buttons[htButtons(ButtonNextRound)].Visible = true;
|
Buttons[ButtonNextRound].Visible = true;
|
||||||
Buttons[htButtons(ButtonExit)].Visible = true;
|
Buttons[ButtonExit].Visible = true;
|
||||||
Buttons[htButtons(ButtonBack)].Visible = false;
|
Buttons[ButtonBack].Visible = false;
|
||||||
|
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNextRound)]);
|
SetInteractionToButton(Buttons[ButtonNextRound]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UseJoker(int TeamNr, int JokerNum)
|
private void UseJoker(int TeamNr, int JokerNum)
|
||||||
{
|
{
|
||||||
switch (JokerNum)
|
switch (JokerNum)
|
||||||
{
|
{
|
||||||
//Random-Joker
|
//Random-Joker
|
||||||
case 0:
|
case 0:
|
||||||
if (GameData.NumJokerRandom[TeamNr] > 0)
|
if (GameData.NumJokerRandom[TeamNr] > 0)
|
||||||
{
|
{
|
||||||
@@ -575,7 +570,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//Retry-Joker
|
//Retry-Joker
|
||||||
case 1:
|
case 1:
|
||||||
if (GameData.NumJokerRetry[TeamNr] > 0 && GameData.CurrentRoundNr > 1)
|
if (GameData.NumJokerRetry[TeamNr] > 0 && GameData.CurrentRoundNr > 1)
|
||||||
{
|
{
|
||||||
@@ -595,28 +590,29 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void UpdateTeamChoosingMessage()
|
private void UpdateTeamChoosingMessage()
|
||||||
{
|
{
|
||||||
Texts[htTexts(TextTeamChoosing)].Color = CBase.Theme.GetPlayerColor(GameData.Team + 1);
|
Texts[TextTeamChoosing].Color = CBase.Theme.GetPlayerColor(GameData.Team + 1);
|
||||||
Texts[htTexts(TextTeamChoosing)].Text = CBase.Language.Translate("TR_TEAM", _PartyModeID) + " " + (GameData.Team + 1) + "! " + CBase.Language.Translate("TR_SCREENMAIN_TEAM_CHOOSE", _PartyModeID);
|
Texts[TextTeamChoosing].Text = CBase.Language.Translate("TR_TEAM", _PartyModeID) + " " + (GameData.Team + 1) + "! " +
|
||||||
|
CBase.Language.Translate("TR_SCREENMAIN_TEAM_CHOOSE", _PartyModeID);
|
||||||
if (Status == EStatus.JokerRetry || Status == EStatus.FieldChoosing)
|
if (Status == EStatus.JokerRetry || Status == EStatus.FieldChoosing)
|
||||||
Texts[htTexts(TextTeamChoosing)].Visible = true;
|
Texts[TextTeamChoosing].Visible = true;
|
||||||
else
|
else
|
||||||
Texts[htTexts(TextTeamChoosing)].Visible = false;
|
Texts[TextTeamChoosing].Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateJokerButtons()
|
private void UpdateJokerButtons()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonJokerRandomT1)].Visible = true;
|
Buttons[ButtonJokerRandomT1].Visible = true;
|
||||||
Buttons[htButtons(ButtonJokerRandomT2)].Visible = true;
|
Buttons[ButtonJokerRandomT2].Visible = true;
|
||||||
Buttons[htButtons(ButtonJokerRandomT1)].Text.Text = GameData.NumJokerRandom[0].ToString();
|
Buttons[ButtonJokerRandomT1].Text.Text = GameData.NumJokerRandom[0].ToString();
|
||||||
Buttons[htButtons(ButtonJokerRandomT2)].Text.Text = GameData.NumJokerRandom[1].ToString();
|
Buttons[ButtonJokerRandomT2].Text.Text = GameData.NumJokerRandom[1].ToString();
|
||||||
Buttons[htButtons(ButtonJokerRandomT1)].Enabled = GameData.NumJokerRandom[0] > 0;
|
Buttons[ButtonJokerRandomT1].Enabled = GameData.NumJokerRandom[0] > 0;
|
||||||
Buttons[htButtons(ButtonJokerRandomT2)].Enabled = GameData.NumJokerRandom[1] > 0;
|
Buttons[ButtonJokerRandomT2].Enabled = GameData.NumJokerRandom[1] > 0;
|
||||||
Buttons[htButtons(ButtonJokerRetryT1)].Visible = true;
|
Buttons[ButtonJokerRetryT1].Visible = true;
|
||||||
Buttons[htButtons(ButtonJokerRetryT2)].Visible = true;
|
Buttons[ButtonJokerRetryT2].Visible = true;
|
||||||
Buttons[htButtons(ButtonJokerRetryT1)].Text.Text = GameData.NumJokerRetry[0].ToString();
|
Buttons[ButtonJokerRetryT1].Text.Text = GameData.NumJokerRetry[0].ToString();
|
||||||
Buttons[htButtons(ButtonJokerRetryT2)].Text.Text = GameData.NumJokerRetry[1].ToString();
|
Buttons[ButtonJokerRetryT2].Text.Text = GameData.NumJokerRetry[1].ToString();
|
||||||
Buttons[htButtons(ButtonJokerRetryT1)].Enabled = GameData.NumJokerRetry[0] > 0;
|
Buttons[ButtonJokerRetryT1].Enabled = GameData.NumJokerRetry[0] > 0;
|
||||||
Buttons[htButtons(ButtonJokerRetryT2)].Enabled = GameData.NumJokerRetry[1] > 0;
|
Buttons[ButtonJokerRetryT2].Enabled = GameData.NumJokerRetry[1] > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void NextRound()
|
private void NextRound()
|
||||||
@@ -629,7 +625,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenMain.SingRoundNr = SelectedField;
|
Data.ScreenMain.SingRoundNr = SelectedField;
|
||||||
Data.ScreenMain.PlayerTeam1 = GameData.PlayerTeam1;
|
Data.ScreenMain.PlayerTeam1 = GameData.PlayerTeam1;
|
||||||
Data.ScreenMain.PlayerTeam2 = GameData.PlayerTeam2;
|
Data.ScreenMain.PlayerTeam2 = GameData.PlayerTeam2;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EndParty()
|
private void EndParty()
|
||||||
@@ -642,13 +638,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
ExitPopupVisible = Visible;
|
ExitPopupVisible = Visible;
|
||||||
|
|
||||||
Statics[htStatics(StaticPopupBG)].Visible = ExitPopupVisible;
|
Statics[StaticPopupBG].Visible = ExitPopupVisible;
|
||||||
Texts[htTexts(TextPopupReallyExit)].Visible = ExitPopupVisible;
|
Texts[TextPopupReallyExit].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupYes)].Visible = ExitPopupVisible;
|
Buttons[ButtonPopupYes].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupNo)].Visible = ExitPopupVisible;
|
Buttons[ButtonPopupNo].Visible = ExitPopupVisible;
|
||||||
|
|
||||||
if (ExitPopupVisible)
|
if (ExitPopupVisible)
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonPopupNo)]);
|
SetInteractionToButton(Buttons[ButtonPopupNo]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Back()
|
private void Back()
|
||||||
@@ -657,41 +653,34 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenMain.FadeToNameSelection = true;
|
Data.ScreenMain.FadeToNameSelection = true;
|
||||||
Data.ScreenMain.FadeToSinging = false;
|
Data.ScreenMain.FadeToSinging = false;
|
||||||
Data.ScreenMain.SingRoundNr = SelectedField;
|
Data.ScreenMain.SingRoundNr = SelectedField;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int BuildWinnerPossibilities()
|
private int BuildWinnerPossibilities()
|
||||||
{
|
{
|
||||||
int NumOneRow = (int)Math.Sqrt((double)GameData.NumFields);
|
int NumOneRow = (int)Math.Sqrt(GameData.NumFields);
|
||||||
Possibilities = new int[(NumOneRow * 2) + 2, NumOneRow];
|
Possibilities = new int[(NumOneRow * 2) + 2,NumOneRow];
|
||||||
for (int i = 0; i < Possibilities.GetLength(0); i++)
|
for (int i = 0; i < Possibilities.GetLength(0); i++)
|
||||||
{
|
{
|
||||||
if (i < NumOneRow)
|
if (i < NumOneRow)
|
||||||
{
|
{
|
||||||
for(int c = 0; c < NumOneRow; c++){
|
for (int c = 0; c < NumOneRow; c++)
|
||||||
Possibilities[i, c] = i * NumOneRow + c;
|
Possibilities[i, c] = i * NumOneRow + c;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (i < NumOneRow * 2)
|
else if (i < NumOneRow * 2)
|
||||||
{
|
{
|
||||||
for (int c = 0; c < NumOneRow; c++)
|
for (int c = 0; c < NumOneRow; c++)
|
||||||
{
|
Possibilities[i, c] = (i - NumOneRow) + (c * NumOneRow);
|
||||||
Possibilities[i, c] = (i-NumOneRow) + (c*NumOneRow);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if( i == Possibilities.GetLength(0) - 2)
|
else if (i == Possibilities.GetLength(0) - 2)
|
||||||
{
|
{
|
||||||
for (int c = 0; c < NumOneRow;c++)
|
for (int c = 0; c < NumOneRow; c++)
|
||||||
{
|
|
||||||
Possibilities[i, c] = (NumOneRow + 1) * c;
|
Possibilities[i, c] = (NumOneRow + 1) * c;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (i == Possibilities.GetLength(0) - 1)
|
else if (i == Possibilities.GetLength(0) - 1)
|
||||||
{
|
{
|
||||||
for (int c = 0; c < NumOneRow; c++)
|
for (int c = 0; c < NumOneRow; c++)
|
||||||
{
|
|
||||||
Possibilities[i, c] = (NumOneRow - 1) * c + (NumOneRow - 1);
|
Possibilities[i, c] = (NumOneRow - 1) * c + (NumOneRow - 1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -1,23 +1,24 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
namespace VocaluxeLib.PartyModes.TicTacToe
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
|
||||||
{
|
{
|
||||||
public class PartyScreenTicTacToeNames : CMenuParty
|
public class PartyScreenTicTacToeNames : CMenuParty
|
||||||
{
|
{
|
||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
const int ScreenVersion = 1;
|
protected override int _ScreenVersion
|
||||||
|
{
|
||||||
|
get { return 1; }
|
||||||
|
}
|
||||||
|
|
||||||
const string ButtonNext = "ButtonNext";
|
private const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
private const string ButtonBack = "ButtonBack";
|
||||||
const string ButtonPlayerDestination = "ButtonPlayerDestination";
|
private const string ButtonPlayerDestination = "ButtonPlayerDestination";
|
||||||
const string ButtonPlayerChoose = "ButtonPlayerChoose";
|
private const string ButtonPlayerChoose = "ButtonPlayerChoose";
|
||||||
const string ButtonPlayerChooseScrollUp = "ButtonPlayerChooseScrollUp";
|
private const string ButtonPlayerChooseScrollUp = "ButtonPlayerChooseScrollUp";
|
||||||
const string ButtonPlayerChooseScrollDown = "ButtonPlayerChooseScrollDown";
|
private const string ButtonPlayerChooseScrollDown = "ButtonPlayerChooseScrollDown";
|
||||||
|
|
||||||
private List<CPlayerChooseButton> PlayerChooseButtons;
|
private List<CPlayerChooseButton> PlayerChooseButtons;
|
||||||
private List<CButton> PlayerDestinationButtons;
|
private List<CButton> PlayerDestinationButtons;
|
||||||
@@ -36,14 +37,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
private const int PlayerChooseButtonsFirstY = 105;
|
private const int PlayerChooseButtonsFirstY = 105;
|
||||||
private const int PlayerChooseButtonsSpaceH = 15;
|
private const int PlayerChooseButtonsSpaceH = 15;
|
||||||
private const int PlayerChooseButtonsSpaceW = 25;
|
private const int PlayerChooseButtonsSpaceW = 25;
|
||||||
private int PlayerChooseButtonsOffset = 0;
|
private int PlayerChooseButtonsOffset;
|
||||||
|
|
||||||
private CStatic chooseAvatarStatic;
|
private CStatic chooseAvatarStatic;
|
||||||
private bool SelectingMouseActive = false;
|
private bool SelectingMouseActive;
|
||||||
private int OldMouseX = 0;
|
private int OldMouseX;
|
||||||
private int OldMouseY = 0;
|
private int OldMouseY;
|
||||||
private int SelectedPlayerNr = -1;
|
private int SelectedPlayerNr = -1;
|
||||||
private bool ButtonsAdded = false;
|
private bool ButtonsAdded;
|
||||||
|
|
||||||
private int NumPlayerTeam1 = 2;
|
private int NumPlayerTeam1 = 2;
|
||||||
private int NumPlayerTeam2 = 2;
|
private int NumPlayerTeam2 = 2;
|
||||||
@@ -56,11 +57,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
public int ProfileID;
|
public int ProfileID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PartyScreenTicTacToeNames()
|
public override void Init()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Init()
|
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
@@ -72,10 +69,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenNames.ProfileIDsTeam1 = new List<int>();
|
Data.ScreenNames.ProfileIDsTeam1 = new List<int>();
|
||||||
Data.ScreenNames.ProfileIDsTeam2 = new List<int>();
|
Data.ScreenNames.ProfileIDsTeam2 = new List<int>();
|
||||||
|
|
||||||
_ThemeName = "PartyScreenTicTacToeNames";
|
|
||||||
List<string> buttons = new List<string>();
|
List<string> buttons = new List<string>();
|
||||||
_ThemeButtons = new string[] { ButtonBack, ButtonNext, ButtonPlayerDestination, ButtonPlayerChoose, ButtonPlayerChooseScrollUp, ButtonPlayerChooseScrollDown };
|
_ThemeButtons = new string[] {ButtonBack, ButtonNext, ButtonPlayerDestination, ButtonPlayerChoose, ButtonPlayerChooseScrollUp, ButtonPlayerChooseScrollDown};
|
||||||
_ScreenVersion = ScreenVersion;
|
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
FromScreenNames names = new FromScreenNames();
|
FromScreenNames names = new FromScreenNames();
|
||||||
@@ -86,11 +81,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Data.ScreenNames = names;
|
Data.ScreenNames = names;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void LoadTheme(string XmlPath)
|
|
||||||
{
|
|
||||||
base.LoadTheme(XmlPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DataToScreen(object ReceivedData)
|
public override void DataToScreen(object ReceivedData)
|
||||||
{
|
{
|
||||||
DataToScreenNames config = new DataToScreenNames();
|
DataToScreenNames config = new DataToScreenNames();
|
||||||
@@ -109,75 +99,65 @@ namespace Vocaluxe.PartyModes
|
|||||||
NumPlayerTeam2 = config.NumPlayerTeam2;
|
NumPlayerTeam2 = config.NumPlayerTeam2;
|
||||||
|
|
||||||
while (Data.ScreenNames.ProfileIDsTeam1.Count > NumPlayerTeam1)
|
while (Data.ScreenNames.ProfileIDsTeam1.Count > NumPlayerTeam1)
|
||||||
{
|
|
||||||
Data.ScreenNames.ProfileIDsTeam1.RemoveAt(Data.ScreenNames.ProfileIDsTeam1.Count - 1);
|
Data.ScreenNames.ProfileIDsTeam1.RemoveAt(Data.ScreenNames.ProfileIDsTeam1.Count - 1);
|
||||||
}
|
|
||||||
while (Data.ScreenNames.ProfileIDsTeam2.Count > NumPlayerTeam2)
|
while (Data.ScreenNames.ProfileIDsTeam2.Count > NumPlayerTeam2)
|
||||||
{
|
|
||||||
Data.ScreenNames.ProfileIDsTeam2.RemoveAt(Data.ScreenNames.ProfileIDsTeam2.Count - 1);
|
Data.ScreenNames.ProfileIDsTeam2.RemoveAt(Data.ScreenNames.ProfileIDsTeam2.Count - 1);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CBase.Log.LogError("Error in party mode screen TicTacToe names. Can't cast received data from game mode " + _ThemeName + ". " + e.Message); ;
|
CBase.Log.LogError("Error in party mode screen TicTacToe names. Can't cast received data from game mode " + ThemeName + ". " + e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleInput(KeyEvent KeyEvent)
|
public override bool HandleInput(KeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
base.HandleInput(KeyEvent);
|
base.HandleInput(keyEvent);
|
||||||
|
|
||||||
if (KeyEvent.KeyPressed)
|
if (keyEvent.KeyPressed) {}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (keyEvent.Key)
|
||||||
{
|
{
|
||||||
|
case Keys.Back:
|
||||||
|
case Keys.Escape:
|
||||||
|
Back();
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
case Keys.Enter:
|
||||||
else
|
if (Buttons[ButtonBack].Selected)
|
||||||
{
|
|
||||||
switch (KeyEvent.Key)
|
|
||||||
{
|
|
||||||
case Keys.Back:
|
|
||||||
case Keys.Escape:
|
|
||||||
Back();
|
Back();
|
||||||
break;
|
|
||||||
|
|
||||||
case Keys.Enter:
|
if (Buttons[ButtonNext].Selected)
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
Next();
|
||||||
Back();
|
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonPlayerChooseScrollUp].Selected)
|
||||||
Next();
|
Scroll(-1);
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonPlayerChooseScrollUp)].Selected)
|
if (Buttons[ButtonPlayerChooseScrollDown].Selected)
|
||||||
Scroll(-1);
|
Scroll(1);
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonPlayerChooseScrollDown)].Selected)
|
if (!OnAdd())
|
||||||
Scroll(1);
|
|
||||||
|
|
||||||
if (!OnAdd())
|
|
||||||
OnRemove();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Keys.Delete:
|
|
||||||
OnRemove();
|
OnRemove();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
case Keys.Delete:
|
||||||
|
OnRemove();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandleMouse(MouseEvent MouseEvent)
|
public override bool HandleMouse(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
base.HandleMouse(MouseEvent);
|
base.HandleMouse(mouseEvent);
|
||||||
|
|
||||||
//Check if LeftButton is hold and Select-Mode inactive
|
//Check if LeftButton is hold and Select-Mode inactive
|
||||||
if (MouseEvent.LBH && !SelectingMouseActive)
|
if (mouseEvent.LBH && !SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Save mouse-coords
|
//Save mouse-coords
|
||||||
OldMouseX = MouseEvent.X;
|
OldMouseX = mouseEvent.X;
|
||||||
OldMouseY = MouseEvent.Y;
|
OldMouseY = mouseEvent.Y;
|
||||||
//Check if mouse if over tile
|
//Check if mouse if over tile
|
||||||
for (int i = 0; i < PlayerChooseButtons.Count; i++)
|
for (int i = 0; i < PlayerChooseButtons.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -201,17 +181,17 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Check if LeftButton is hold and Select-Mode active
|
//Check if LeftButton is hold and Select-Mode active
|
||||||
if (MouseEvent.LBH && SelectingMouseActive)
|
if (mouseEvent.LBH && SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Update coords for Drag/Drop-Texture
|
//Update coords for Drag/Drop-Texture
|
||||||
chooseAvatarStatic.Rect.X += (MouseEvent.X - OldMouseX);
|
chooseAvatarStatic.Rect.X += mouseEvent.X - OldMouseX;
|
||||||
chooseAvatarStatic.Rect.Y += (MouseEvent.Y - OldMouseY);
|
chooseAvatarStatic.Rect.Y += mouseEvent.Y - OldMouseY;
|
||||||
OldMouseX = MouseEvent.X;
|
OldMouseX = mouseEvent.X;
|
||||||
OldMouseY = MouseEvent.Y;
|
OldMouseY = mouseEvent.Y;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// LeftButton isn't hold anymore, but Selec-Mode is still active -> "Drop" of Avatar
|
// LeftButton isn't hold anymore, but Selec-Mode is still active -> "Drop" of Avatar
|
||||||
else if (SelectingMouseActive)
|
else if (SelectingMouseActive)
|
||||||
{
|
{
|
||||||
//Check if really a player was selected
|
//Check if really a player was selected
|
||||||
@@ -221,10 +201,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
for (int i = 0; i < PlayerDestinationButtons.Count; i++)
|
for (int i = 0; i < PlayerDestinationButtons.Count; i++)
|
||||||
{
|
{
|
||||||
//Check first, if area is "active"
|
//Check first, if area is "active"
|
||||||
if (PlayerDestinationButtons[i].Visible == true)
|
if (PlayerDestinationButtons[i].Visible)
|
||||||
{
|
{
|
||||||
//Check if Mouse is in area
|
//Check if Mouse is in area
|
||||||
if (CHelper.IsInBounds(PlayerDestinationButtons[i].Rect, MouseEvent))
|
if (CHelper.IsInBounds(PlayerDestinationButtons[i].Rect, mouseEvent))
|
||||||
{
|
{
|
||||||
int added = -1;
|
int added = -1;
|
||||||
//Add Player-ID to list.
|
//Add Player-ID to list.
|
||||||
@@ -275,30 +255,30 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
if (mouseEvent.LB && IsMouseOver(mouseEvent))
|
||||||
{
|
{
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[ButtonBack].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[ButtonNext].Selected)
|
||||||
Next();
|
Next();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonPlayerChooseScrollUp)].Selected)
|
if (Buttons[ButtonPlayerChooseScrollUp].Selected)
|
||||||
Scroll(-1);
|
Scroll(-1);
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonPlayerChooseScrollDown)].Selected)
|
if (Buttons[ButtonPlayerChooseScrollDown].Selected)
|
||||||
Scroll(1);
|
Scroll(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(MouseEvent.LD && IsMouseOver(MouseEvent))
|
if (mouseEvent.LD && IsMouseOver(mouseEvent))
|
||||||
|
{
|
||||||
if (!OnAdd())
|
if (!OnAdd())
|
||||||
OnRemove();
|
OnRemove();
|
||||||
|
|
||||||
if (MouseEvent.RB)
|
|
||||||
{
|
|
||||||
Back();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mouseEvent.RB)
|
||||||
|
Back();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,11 +312,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClose()
|
|
||||||
{
|
|
||||||
base.OnClose();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Scroll(int Offset)
|
private void Scroll(int Offset)
|
||||||
{
|
{
|
||||||
if (Offset < 0 && PlayerChooseButtonsOffset > 0)
|
if (Offset < 0 && PlayerChooseButtonsOffset > 0)
|
||||||
@@ -349,18 +324,17 @@ namespace Vocaluxe.PartyModes
|
|||||||
PlayerChooseButtonsOffset += Offset;
|
PlayerChooseButtonsOffset += Offset;
|
||||||
UpdateButtonPlayerChoose();
|
UpdateButtonPlayerChoose();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddButtonPlayerDestination()
|
private void AddButtonPlayerDestination()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonPlayerDestination)].Visible = false;
|
Buttons[ButtonPlayerDestination].Visible = false;
|
||||||
PlayerDestinationButtons = new List<CButton>();
|
PlayerDestinationButtons = new List<CButton>();
|
||||||
int row = 0;
|
int row = 0;
|
||||||
int column = 0;
|
int column = 0;
|
||||||
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
{
|
{
|
||||||
CButton b = GetNewButton(Buttons[htButtons(ButtonPlayerDestination)]);
|
CButton b = GetNewButton(Buttons[ButtonPlayerDestination]);
|
||||||
b.Rect.X = PlayerDestinationButtonsFirstX + column * (b.Rect.W + PlayerDestinationButtonsSpaceH);
|
b.Rect.X = PlayerDestinationButtonsFirstX + column * (b.Rect.W + PlayerDestinationButtonsSpaceH);
|
||||||
b.Rect.Y = PlayerDestinationButtonsFirstY + row * (b.Rect.H + PlayerDestinationButtonsSpaceW);
|
b.Rect.Y = PlayerDestinationButtonsFirstY + row * (b.Rect.H + PlayerDestinationButtonsSpaceW);
|
||||||
PlayerDestinationButtons.Add(b);
|
PlayerDestinationButtons.Add(b);
|
||||||
@@ -378,13 +352,13 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
private void AddButtonPlayerChoose()
|
private void AddButtonPlayerChoose()
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonPlayerChoose)].Visible = false;
|
Buttons[ButtonPlayerChoose].Visible = false;
|
||||||
PlayerChooseButtons = new List<CPlayerChooseButton>();
|
PlayerChooseButtons = new List<CPlayerChooseButton>();
|
||||||
int row = 0;
|
int row = 0;
|
||||||
int column = 0;
|
int column = 0;
|
||||||
for (int i = 1; i <= PlayerChooseButtonsNumH * PlayerChooseButtonsNumW; i++)
|
for (int i = 1; i <= PlayerChooseButtonsNumH * PlayerChooseButtonsNumW; i++)
|
||||||
{
|
{
|
||||||
CButton b = GetNewButton(Buttons[htButtons(ButtonPlayerChoose)]);
|
CButton b = GetNewButton(Buttons[ButtonPlayerChoose]);
|
||||||
b.Rect.X = PlayerChooseButtonsFirstX + column * (b.Rect.W + PlayerChooseButtonsSpaceH);
|
b.Rect.X = PlayerChooseButtonsFirstX + column * (b.Rect.W + PlayerChooseButtonsSpaceH);
|
||||||
b.Rect.Y = PlayerChooseButtonsFirstY + row * (b.Rect.H + PlayerChooseButtonsSpaceW);
|
b.Rect.Y = PlayerChooseButtonsFirstY + row * (b.Rect.H + PlayerChooseButtonsSpaceW);
|
||||||
CPlayerChooseButton pcb = new CPlayerChooseButton();
|
CPlayerChooseButton pcb = new CPlayerChooseButton();
|
||||||
@@ -406,16 +380,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
private void UpdateButtonPlayerChoose()
|
private void UpdateButtonPlayerChoose()
|
||||||
{
|
{
|
||||||
UpdateVisibleProfiles();
|
UpdateVisibleProfiles();
|
||||||
if ((PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * (PlayerChooseButtonsOffset + 1) - PlayerChooseButtonsVisibleProfiles.Count >= (PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * PlayerChooseButtonsOffset)
|
if ((PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * (PlayerChooseButtonsOffset + 1) - PlayerChooseButtonsVisibleProfiles.Count >=
|
||||||
{
|
(PlayerChooseButtonsNumW * PlayerChooseButtonsNumH) * PlayerChooseButtonsOffset)
|
||||||
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset - 1);
|
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset - 1);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset);
|
UpdateButtonPlayerChoose(PlayerChooseButtonsOffset);
|
||||||
}
|
Buttons[ButtonPlayerChooseScrollUp].Enabled = PlayerChooseButtonsOffset > 0;
|
||||||
Buttons[htButtons(ButtonPlayerChooseScrollUp)].Enabled = PlayerChooseButtonsOffset > 0;
|
Buttons[ButtonPlayerChooseScrollDown].Enabled = PlayerChooseButtonsVisibleProfiles.Count >
|
||||||
Buttons[htButtons(ButtonPlayerChooseScrollDown)].Enabled = PlayerChooseButtonsVisibleProfiles.Count > PlayerChooseButtons.Count + PlayerChooseButtonsOffset * PlayerChooseButtonsNumH;
|
PlayerChooseButtons.Count + PlayerChooseButtonsOffset * PlayerChooseButtonsNumH;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateButtonPlayerChoose(int Offset)
|
private void UpdateButtonPlayerChoose(int Offset)
|
||||||
@@ -442,10 +414,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
PlayerChooseButtons[i].ProfileID = -1;
|
PlayerChooseButtons[i].ProfileID = -1;
|
||||||
PlayerChooseButtons[i].Button.Text.Text = String.Empty;
|
PlayerChooseButtons[i].Button.Text.Text = String.Empty;
|
||||||
PlayerChooseButtons[i].Button.Texture = Buttons[htButtons(ButtonPlayerChoose)].Texture;
|
PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture;
|
||||||
PlayerChooseButtons[i].Button.STexture = Buttons[htButtons(ButtonPlayerChoose)].STexture;
|
PlayerChooseButtons[i].Button.STexture = Buttons[ButtonPlayerChoose].STexture;
|
||||||
PlayerChooseButtons[i].Button.Color = Buttons[htButtons(ButtonPlayerChoose)].Color;
|
PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color;
|
||||||
PlayerChooseButtons[i].Button.SColor = Buttons[htButtons(ButtonPlayerChoose)].SColor;
|
PlayerChooseButtons[i].Button.SColor = Buttons[ButtonPlayerChoose].SColor;
|
||||||
PlayerChooseButtons[i].Button.Enabled = false;
|
PlayerChooseButtons[i].Button.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -484,9 +456,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (visible)
|
if (visible)
|
||||||
{
|
|
||||||
PlayerChooseButtonsVisibleProfiles.Add(i);
|
PlayerChooseButtonsVisibleProfiles.Add(i);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -534,10 +504,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayerDestinationButtons[i].Color = Buttons[htButtons(ButtonPlayerDestination)].Color;
|
PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color;
|
||||||
PlayerDestinationButtons[i].SColor = Buttons[htButtons(ButtonPlayerDestination)].SColor;
|
PlayerDestinationButtons[i].SColor = Buttons[ButtonPlayerDestination].SColor;
|
||||||
PlayerDestinationButtons[i].Texture = Buttons[htButtons(ButtonPlayerDestination)].Texture;
|
PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture;
|
||||||
PlayerDestinationButtons[i].STexture = Buttons[htButtons(ButtonPlayerDestination)].STexture;
|
PlayerDestinationButtons[i].STexture = Buttons[ButtonPlayerDestination].STexture;
|
||||||
PlayerDestinationButtons[i].Text.Text = String.Empty;
|
PlayerDestinationButtons[i].Text.Text = String.Empty;
|
||||||
PlayerDestinationButtons[i].Enabled = false;
|
PlayerDestinationButtons[i].Enabled = false;
|
||||||
}
|
}
|
||||||
@@ -558,10 +528,10 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Color = Buttons[htButtons(ButtonPlayerDestination)].Color;
|
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Color = Buttons[ButtonPlayerDestination].Color;
|
||||||
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SColor = Buttons[htButtons(ButtonPlayerDestination)].SColor;
|
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SColor = Buttons[ButtonPlayerDestination].SColor;
|
||||||
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Texture = Buttons[htButtons(ButtonPlayerDestination)].Texture;
|
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Texture = Buttons[ButtonPlayerDestination].Texture;
|
||||||
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].STexture = Buttons[htButtons(ButtonPlayerDestination)].STexture;
|
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].STexture = Buttons[ButtonPlayerDestination].STexture;
|
||||||
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Text.Text = String.Empty;
|
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Text.Text = String.Empty;
|
||||||
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Enabled = false;
|
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Enabled = false;
|
||||||
}
|
}
|
||||||
@@ -572,11 +542,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
if (Data.ScreenNames.ProfileIDsTeam1.Count == NumPlayerTeam1 && Data.ScreenNames.ProfileIDsTeam2.Count == NumPlayerTeam2)
|
if (Data.ScreenNames.ProfileIDsTeam1.Count == NumPlayerTeam1 && Data.ScreenNames.ProfileIDsTeam2.Count == NumPlayerTeam2)
|
||||||
{
|
{
|
||||||
Buttons[htButtons(ButtonNext)].Visible = true;
|
Buttons[ButtonNext].Visible = true;
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonNext)]);
|
SetInteractionToButton(Buttons[ButtonNext]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Buttons[htButtons(ButtonNext)].Visible = false;
|
Buttons[ButtonNext].Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool OnAdd()
|
private bool OnAdd()
|
||||||
@@ -641,11 +611,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int i = PlayerDestinationButtonsNumH; i < PlayerDestinationButtonsNumH*2; i++)
|
for (int i = PlayerDestinationButtonsNumH; i < PlayerDestinationButtonsNumH * 2; i++)
|
||||||
{
|
{
|
||||||
if (PlayerDestinationButtons[i].Selected)
|
if (PlayerDestinationButtons[i].Selected)
|
||||||
{
|
{
|
||||||
if (((i-PlayerDestinationButtonsNumH) + 1) <= Data.ScreenNames.ProfileIDsTeam2.Count)
|
if (((i - PlayerDestinationButtonsNumH) + 1) <= Data.ScreenNames.ProfileIDsTeam2.Count)
|
||||||
{
|
{
|
||||||
Data.ScreenNames.ProfileIDsTeam2.RemoveAt(i - PlayerDestinationButtonsNumH);
|
Data.ScreenNames.ProfileIDsTeam2.RemoveAt(i - PlayerDestinationButtonsNumH);
|
||||||
UpdateButtonNext();
|
UpdateButtonNext();
|
||||||
@@ -663,14 +633,14 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
Data.ScreenNames.FadeToConfig = true;
|
Data.ScreenNames.FadeToConfig = true;
|
||||||
Data.ScreenNames.FadeToMain = false;
|
Data.ScreenNames.FadeToMain = false;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Next()
|
private void Next()
|
||||||
{
|
{
|
||||||
Data.ScreenNames.FadeToConfig = false;
|
Data.ScreenNames.FadeToConfig = false;
|
||||||
Data.ScreenNames.FadeToMain = true;
|
Data.ScreenNames.FadeToMain = true;
|
||||||
_PartyMode.DataFromScreen(_ThemeName, Data);
|
_PartyMode.DataFromScreen(ThemeName, Data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,809 @@
|
|||||||
|
<StyleCopSettings Version="105">
|
||||||
|
<Analyzers>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="ElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EnumerationItemsMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustContainValidXml">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PartialElementDocumentationMustHaveSummaryText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotHaveDefaultSummary">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustMatchElementParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementReturnValueDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VoidReturnValueMustNotBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumented">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParametersMustBeDocumentedPartialClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustMatchTypeParameters">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustDeclareParameterName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="GenericTypeParameterDocumentationMustHaveText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustMatchAccessors">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustNotBeCopiedAndPasted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotUseDocumentationStyleSlashes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustNotBeEmpty">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationTextMustContainWhitespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationMustMeetCharacterPercentage">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DestructorSummaryDocumentationMustBeginWithStandardText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationHeadersMustNotContainBlankLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludedDocumentationXPathDoesNotExist">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncludeNodeDoesNotContainValidFileAndPath">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InheritDocMustBeUsedWithInheritingClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationMustBeSpelledCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMustHaveHeader">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustShowCopyright">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveCopyrightText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustContainFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderMustHaveValidCompanyText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileHeaderFileNameDocumentationMustMatchTypeName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CurlyBracketsForMultiLineStatementsMustNotShareLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustNotBeOnSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CurlyBracketsMustNotBeOmitted">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AllAccessorsMustBeMultiLineOrSingleLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationHeadersMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleBlankLinesInARow">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketsMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ChainedStatementBlocksMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="WhileDoFooterMustNotBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustNotBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketMustBeFollowedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementDocumentationHeaderMustBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentMustBePrecededByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeSeparatedByBlankLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainBlankLinesAtStartOfFile">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainBlankLinesAtEndOfFile">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.MaintainabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="AccessModifierMustBeDeclared">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldsMustBePrivate">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeAnalysisSuppressionMustHaveJustification">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DebugAssertMustProvideMessageText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DebugFailMustProvideMessageText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleClass">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FileMayOnlyContainASingleNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StatementMustNotUseUnnecessaryParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ArithmeticExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConditionalExpressionsMustDeclarePrecedence">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="RemoveDelegateParenthesisWhenPossible">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AttributeConstructorMustNotUseUnnecessaryParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="RemoveUnnecessaryCode">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.NamingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="ElementMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementMustBeginWithLowerCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InterfaceNamesMustBeginWithI">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstFieldNamesMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotUseHungarianNotation">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustBeginWithLowerCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="AccessibleFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="VariableNamesMustNotBePrefixed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="FieldNamesMustNotContainUnderscore">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticReadonlyFieldsMustBeginWithUpperCaseLetter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustAppearInTheCorrectOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ElementsMustBeOrderedByAccess">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ConstantsMustAppearBeforeFields">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticElementsMustAppearBeforeInstanceElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DeclarationKeywordsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ProtectedMustComeBeforeInternal">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PropertyAccessorsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="EventAccessorsMustFollowOrder">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="StaticReadonlyElementsMustAppearBeforeStaticNonReadonlyElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="InstanceReadonlyElementsMustAppearBeforeInstanceNonReadonlyElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingDirectivesMustBeOrderedAlphabeticallyByNamespace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UsingAliasDirectivesMustBeOrderedAlphabeticallyByAliasName">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="CommentsMustContainText">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DoNotPrefixCallsWithBaseUnlessLocalImplementationExists">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixLocalCallsWithThis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PrefixCallsCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeOnLineOfLastParameter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeOnLineOfOpeningParenthesis">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CommaMustBeOnSameLineAsPreviousParameter">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterListMustFollowDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustFollowComma">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SplitParametersMustStartOnLineAfterDeclaration">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ParameterMustNotSpanMultipleLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClauseMustFollowPreviousClause">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClausesMustBeOnSeparateLinesOrAllOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="QueryClausesSpanningMultipleLinesMustBeginOnOwnLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DoNotPlaceRegionsWithinElements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainEmptyStatements">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleStatementsOnOneLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="BlockStatementsMustNotContainEmbeddedComments">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="BlockStatementsMustNotContainEmbeddedRegions">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseStringEmptyForEmptyStrings">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseBuiltInTypeAlias">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="UseShorthandForNullableTypes">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
<Analyzer AnalyzerId="StyleCop.CSharp.SpacingRules">
|
||||||
|
<Rules>
|
||||||
|
<Rule Name="KeywordsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CommasMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SemicolonsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DocumentationLinesMustBeginWithSingleSpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="SingleLineCommentsMustBeginWithSingleSpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PreprocessorKeywordsMustNotBePrecededBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OperatorKeywordMustBeFollowedBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingParenthesisMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningSquareBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingSquareBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningCurlyBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingCurlyBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningGenericBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingGenericBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="OpeningAttributeBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ClosingAttributeBracketsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NullableTypeSymbolsMustNotBePrecededBySpace">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="MemberAccessSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="IncrementDecrementSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="NegativeSignsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="PositiveSignsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="ColonsMustBeSpacedCorrectly">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainMultipleWhitespaceInARow">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
<Rule Name="TabsMustNotBeUsed">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
|
</Rules>
|
||||||
|
<AnalyzerSettings />
|
||||||
|
</Analyzer>
|
||||||
|
</Analyzers>
|
||||||
|
</StyleCopSettings>
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
|
<s:String x:Key="/Default/CodeInspection/Highlighting/AnalysisEnabled/@EntryValue">SOLUTION</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantExplicitArrayCreation/@EntryIndexedValue">DO_NOT_SHOW</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=SpecifyACultureInStringConversionExplicitly/@EntryIndexedValue">DO_NOT_SHOW</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=SuggestUseVarKeywordEverywhere/@EntryIndexedValue">DO_NOT_SHOW</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=SuggestUseVarKeywordEvident/@EntryIndexedValue">DO_NOT_SHOW</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=Cleanup/@EntryIndexedValue"><?xml version="1.0" encoding="utf-16"?><Profile name="Cleanup"><CSArrangeThisQualifier>True</CSArrangeThisQualifier><CSRemoveCodeRedundancies>True</CSRemoveCodeRedundancies><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSUseVar><BehavourStyle>CAN_CHANGE_TO_EXPLICIT</BehavourStyle><LocalVariableStyle>ALWAYS_EXPLICIT</LocalVariableStyle><ForeachVariableStyle>ALWAYS_EXPLICIT</ForeachVariableStyle></CSUseVar><CSOptimizeUsings><OptimizeUsings>False</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSReformatCode>True</CSReformatCode><CSharpFormatDocComments>True</CSharpFormatDocComments><CSShortenReferences>True</CSShortenReferences><StyleCop.Documentation><SA1600ElementsMustBeDocumented>False</SA1600ElementsMustBeDocumented><SA1604ElementDocumentationMustHaveSummary>False</SA1604ElementDocumentationMustHaveSummary><SA1609PropertyDocumentationMustHaveValueDocumented>False</SA1609PropertyDocumentationMustHaveValueDocumented><SA1611ElementParametersMustBeDocumented>False</SA1611ElementParametersMustBeDocumented><SA1615ElementReturnValueMustBeDocumented>False</SA1615ElementReturnValueMustBeDocumented><SA1617VoidReturnValueMustNotBeDocumented>False</SA1617VoidReturnValueMustNotBeDocumented><SA1618GenericTypeParametersMustBeDocumented>False</SA1618GenericTypeParametersMustBeDocumented><SA1626SingleLineCommentsMustNotUseDocumentationStyleSlashes>False</SA1626SingleLineCommentsMustNotUseDocumentationStyleSlashes><SA1628DocumentationTextMustBeginWithACapitalLetter>False</SA1628DocumentationTextMustBeginWithACapitalLetter><SA1629DocumentationTextMustEndWithAPeriod>False</SA1629DocumentationTextMustEndWithAPeriod><SA1633SA1641UpdateFileHeader>Ignore</SA1633SA1641UpdateFileHeader><SA1639FileHeaderMustHaveSummary>False</SA1639FileHeaderMustHaveSummary><SA1642ConstructorSummaryDocumentationMustBeginWithStandardText>False</SA1642ConstructorSummaryDocumentationMustBeginWithStandardText><SA1643DestructorSummaryDocumentationMustBeginWithStandardText>False</SA1643DestructorSummaryDocumentationMustBeginWithStandardText><SA1644DocumentationHeadersMustNotContainBlankLines>False</SA1644DocumentationHeadersMustNotContainBlankLines></StyleCop.Documentation><StyleCop.Layout><SA1500CurlyBracketsForMultiLineStatementsMustNotShareLine>False</SA1500CurlyBracketsForMultiLineStatementsMustNotShareLine><SA1509OpeningCurlyBracketsMustNotBePrecededByBlankLine>True</SA1509OpeningCurlyBracketsMustNotBePrecededByBlankLine><SA1510ChainedStatementBlocksMustNotBePrecededByBlankLine>True</SA1510ChainedStatementBlocksMustNotBePrecededByBlankLine><SA1511WhileDoFooterMustNotBePrecededByBlankLine>True</SA1511WhileDoFooterMustNotBePrecededByBlankLine><SA1512SingleLineCommentsMustNotBeFollowedByBlankLine>True</SA1512SingleLineCommentsMustNotBeFollowedByBlankLine><SA1513ClosingCurlyBracketMustBeFollowedByBlankLine>False</SA1513ClosingCurlyBracketMustBeFollowedByBlankLine><SA1514ElementDocumentationHeaderMustBePrecededByBlankLine>False</SA1514ElementDocumentationHeaderMustBePrecededByBlankLine><SA1515SingleLineCommentMustBeProceededByBlankLine>False</SA1515SingleLineCommentMustBeProceededByBlankLine></StyleCop.Layout><StyleCop.Readability><SA1100DoNotPrefixCallsWithBaseUnlessLocalImplementationExists>True</SA1100DoNotPrefixCallsWithBaseUnlessLocalImplementationExists><SA1106CodeMustNotContainEmptyStatements>True</SA1106CodeMustNotContainEmptyStatements><SA1108BlockStatementsMustNotContainEmbeddedComments>True</SA1108BlockStatementsMustNotContainEmbeddedComments><SA1109BlockStatementsMustNotContainEmbeddedRegions>True</SA1109BlockStatementsMustNotContainEmbeddedRegions><SA1120CommentsMustContainText>False</SA1120CommentsMustContainText><SA1121UseBuiltInTypeAlias>False</SA1121UseBuiltInTypeAlias><SA1122UseStringEmptyForEmptyStrings>False</SA1122UseStringEmptyForEmptyStrings><SA1123DoNotPlaceRegionsWithinElements>False</SA1123DoNotPlaceRegionsWithinElements><SA1124CodeMustNotContainEmptyRegions>True</SA1124CodeMustNotContainEmptyRegions></StyleCop.Readability><StyleCop.Spacing><SA1001CommasMustBeSpacedCorrectly>False</SA1001CommasMustBeSpacedCorrectly><SA1005SingleLineCommentsMustBeginWithSingleSpace>False</SA1005SingleLineCommentsMustBeginWithSingleSpace><SA1006PreprocessorKeywordsMustNotBePrecededBySpaLine truncated
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=Simple_0020Reformat/@EntryIndexedValue"><?xml version="1.0" encoding="utf-16"?><Profile name="Simple Reformat"><CSOptimizeUsings><OptimizeUsings>False</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSReformatCode>True</CSReformatCode><StyleCop.Documentation><SA1600ElementsMustBeDocumented>False</SA1600ElementsMustBeDocumented><SA1604ElementDocumentationMustHaveSummary>False</SA1604ElementDocumentationMustHaveSummary><SA1609PropertyDocumentationMustHaveValueDocumented>False</SA1609PropertyDocumentationMustHaveValueDocumented><SA1611ElementParametersMustBeDocumented>False</SA1611ElementParametersMustBeDocumented><SA1615ElementReturnValueMustBeDocumented>False</SA1615ElementReturnValueMustBeDocumented><SA1617VoidReturnValueMustNotBeDocumented>False</SA1617VoidReturnValueMustNotBeDocumented><SA1618GenericTypeParametersMustBeDocumented>False</SA1618GenericTypeParametersMustBeDocumented><SA1626SingleLineCommentsMustNotUseDocumentationStyleSlashes>False</SA1626SingleLineCommentsMustNotUseDocumentationStyleSlashes><SA1628DocumentationTextMustBeginWithACapitalLetter>False</SA1628DocumentationTextMustBeginWithACapitalLetter><SA1629DocumentationTextMustEndWithAPeriod>False</SA1629DocumentationTextMustEndWithAPeriod><SA1633SA1641UpdateFileHeader>Ignore</SA1633SA1641UpdateFileHeader><SA1639FileHeaderMustHaveSummary>False</SA1639FileHeaderMustHaveSummary><SA1642ConstructorSummaryDocumentationMustBeginWithStandardText>False</SA1642ConstructorSummaryDocumentationMustBeginWithStandardText><SA1643DestructorSummaryDocumentationMustBeginWithStandardText>False</SA1643DestructorSummaryDocumentationMustBeginWithStandardText><SA1644DocumentationHeadersMustNotContainBlankLines>False</SA1644DocumentationHeadersMustNotContainBlankLines></StyleCop.Documentation><StyleCop.Spacing><SA1001CommasMustBeSpacedCorrectly>False</SA1001CommasMustBeSpacedCorrectly><SA1005SingleLineCommentsMustBeginWithSingleSpace>False</SA1005SingleLineCommentsMustBeginWithSingleSpace><SA1006PreprocessorKeywordsMustNotBePrecededBySpace>True</SA1006PreprocessorKeywordsMustNotBePrecededBySpace><SA1021NegativeSignsMustBeSpacedCorrectly>True</SA1021NegativeSignsMustBeSpacedCorrectly><SA1022PositiveSignsMustBeSpacedCorrectly>True</SA1022PositiveSignsMustBeSpacedCorrectly><SA1025CodeMustNotContainMultipleWhitespaceInARow>True</SA1025CodeMustNotContainMultipleWhitespaceInARow></StyleCop.Spacing><StyleCop.Readability><SA1100DoNotPrefixCallsWithBaseUnlessLocalImplementationExists>True</SA1100DoNotPrefixCallsWithBaseUnlessLocalImplementationExists><SA1106CodeMustNotContainEmptyStatements>True</SA1106CodeMustNotContainEmptyStatements><SA1108BlockStatementsMustNotContainEmbeddedComments>True</SA1108BlockStatementsMustNotContainEmbeddedComments><SA1109BlockStatementsMustNotContainEmbeddedRegions>True</SA1109BlockStatementsMustNotContainEmbeddedRegions><SA1120CommentsMustContainText>False</SA1120CommentsMustContainText><SA1121UseBuiltInTypeAlias>False</SA1121UseBuiltInTypeAlias><SA1122UseStringEmptyForEmptyStrings>False</SA1122UseStringEmptyForEmptyStrings><SA1123DoNotPlaceRegionsWithinElements>False</SA1123DoNotPlaceRegionsWithinElements><SA1124CodeMustNotContainEmptyRegions>True</SA1124CodeMustNotContainEmptyRegions></StyleCop.Readability><StyleCop.Layout><SA1500CurlyBracketsForMultiLineStatementsMustNotShareLine>False</SA1500CurlyBracketsForMultiLineStatementsMustNotShareLine><SA1509OpeningCurlyBracketsMustNotBePrecededByBlankLine>True</SA1509OpeningCurlyBracketsMustNotBePrecededByBlankLine><SA1510ChainedStatementBlocksMustNotBePrecededByBlankLine>True</SA1510ChainedStatementBlocksMustNotBePrecededByBlankLine><SA1511WhileDoFooterMustNotBePrecededByBlankLine>True</SA1511WhileDoFooterMustNotBePrecededByBlankLine><SA1512SingleLineCommentsMustNotBeFollowedByBlankLine>True</SA1512SingleLineCommentsMustNotBeFollowedByBlankLine><SA1513ClosingCurlyBracketMustBeFollowedByBlankLine>False</SA1513ClosingCurlyBracketMustBeFollowedByBlankLine><SA1514ElementDocumentationHeaderMustBePrecededByBlankLine>False</SA1514ElementDocumentationHeaderMustBePrecededByBlankLine><SA1515SingleLineCommentMustBeProceededByBlankLine>False</SA1515SingleLineCommentMustBeProceededByBlankLine></StyleCop.Layout><StyleCop.Ordering><AlphabeticalUsingDirectives>Ignore</AlphabeticalUsingDirectives><ExpandUsingDirectiLine truncated
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeCleanup/RecentlyUsedProfile/@EntryValue">Cleanup</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">Simple Reformat</s:String>
|
||||||
|
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_FIELD/@EntryValue">0</s:Int64>
|
||||||
|
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_INSIDE_REGION/@EntryValue">0</s:Int64>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/EMPTY_BLOCK_STYLE/@EntryValue">TOGETHER_SAME_LINE</s:String>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/EXPLICIT_INTERNAL_MODIFIER/@EntryValue">False</s:Boolean>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_ATTRIBUTE_STYLE/@EntryValue">JOIN</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_FIXED_BRACES_STYLE/@EntryValue">ONLY_FOR_MULTILINE</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_FOR_BRACES_STYLE/@EntryValue">ONLY_FOR_MULTILINE</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_FOREACH_BRACES_STYLE/@EntryValue">ONLY_FOR_MULTILINE</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_IFELSE_BRACES_STYLE/@EntryValue">ONLY_FOR_MULTILINE</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_USING_BRACES_STYLE/@EntryValue">ONLY_FOR_MULTILINE</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/FORCE_WHILE_BRACES_STYLE/@EntryValue">ONLY_FOR_MULTILINE</s:String>
|
||||||
|
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue">1</s:Int64>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_COMPLEX_ACCESSOR_ATTRIBUTE_ON_SAME_LINE/@EntryValue">True</s:Boolean>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SIMPLE_EMBEDDED_STATEMENT_STYLE/@EntryValue">LINE_BREAK</s:String>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AFTER_TYPECAST_PARENTHESES/@EntryValue">False</s:Boolean>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AROUND_MULTIPLICATIVE_OP/@EntryValue">True</s:Boolean>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_BEFORE_SIZEOF_PARENTHESES/@EntryValue">False</s:Boolean>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_BEFORE_TYPEOF_PARENTHESES/@EntryValue">False</s:Boolean>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/STICK_COMMENT/@EntryValue">False</s:Boolean>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_FOR_STMT_HEADER_STYLE/@EntryValue">WRAP_IF_LONG</s:String>
|
||||||
|
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_LIMIT/@EntryValue">180</s:Int64>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_MULTIPLE_DECLARATION_STYLE/@EntryValue">WRAP_IF_LONG</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_TERNARY_EXPR_STYLE/@EntryValue">WRAP_IF_LONG</s:String>
|
||||||
|
<s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/AllowAlias/@EntryValue">False</s:Boolean>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=EnumMember/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateConstants/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="AaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="AaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="AaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="AaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=27c8359b_002D97bf_002D4e1d_002Db126_002D4f613028bcc5/@EntryIndexedValue"><Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private, Protected, ProtectedInternal, Internal, Public" Description="Enums"><ElementKinds><Kind Name="ENUM" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="E" Suffix="" Style="AaBb" /></Policy></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=8cff90ce_002Def0d_002D436d_002Db8f2_002D5b5bdb923d3b/@EntryIndexedValue"><Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private, Protected, ProtectedInternal, Internal, Public" Description="Classes"><ElementKinds><Kind Name="CLASS" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="C" Suffix="" Style="AaBb" /></Policy></s:String>
|
||||||
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=da335a8d_002D4b6e_002D4df6_002D8434_002D29ffe5e2547b/@EntryIndexedValue"><Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private, Protected, ProtectedInternal, Internal, Public" Description="Structs"><ElementKinds><Kind Name="STRUCT" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="S" Suffix="" Style="AaBb" /></Policy></s:String>
|
||||||
|
</wpf:ResourceDictionary>
|
||||||
+5
-3
@@ -1,11 +1,13 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2012
|
# Visual Studio Express 2012 for Windows Desktop
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vocaluxe", "Vocaluxe\Vocaluxe.csproj", "{2A1E0F2D-5392-4BB7-B0A1-A9DFA13E79FF}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vocaluxe", "Vocaluxe\Vocaluxe.csproj", "{2A1E0F2D-5392-4BB7-B0A1-A9DFA13E79FF}"
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{6F3E1874-F28A-40E9-AFBD-31934D593678} = {6F3E1874-F28A-40E9-AFBD-31934D593678}
|
||||||
{6F3E1874-F28A-40E9-AFBD-31934D593679} = {6F3E1874-F28A-40E9-AFBD-31934D593679}
|
{6F3E1874-F28A-40E9-AFBD-31934D593679} = {6F3E1874-F28A-40E9-AFBD-31934D593679}
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C} = {ED007796-367F-4142-AA55-5450C7645C2C}
|
{ED007796-367F-4142-AA55-5450C7645C2C} = {ED007796-367F-4142-AA55-5450C7645C2C}
|
||||||
{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC} = {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}
|
{D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC} = {D2B6DDEF-E0E1-4DDF-A73A-E6ACEF5C95EC}
|
||||||
|
{5A4053F1-5AD5-441F-B254-D97A088127B6} = {5A4053F1-5AD5-441F-B254-D97A088127B6}
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
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}"
|
||||||
@@ -111,13 +113,13 @@ Global
|
|||||||
{6F3E1874-F28A-40E9-AFBD-31934D593678}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86
|
{6F3E1874-F28A-40E9-AFBD-31934D593678}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86
|
||||||
{6F3E1874-F28A-40E9-AFBD-31934D593678}.ReleaseWin|x86.Build.0 = ReleaseWin|x86
|
{6F3E1874-F28A-40E9-AFBD-31934D593678}.ReleaseWin|x86.Build.0 = ReleaseWin|x86
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugLinux|x64.ActiveCfg = DebugWin|x64
|
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugLinux|x64.ActiveCfg = DebugWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugLinux|x86.ActiveCfg = DebugWin|Win32
|
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugLinux|x86.ActiveCfg = DebugWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x64.ActiveCfg = DebugWin|x64
|
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x64.ActiveCfg = DebugWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x64.Build.0 = DebugWin|x64
|
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x64.Build.0 = DebugWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x86.ActiveCfg = DebugWin|Win32
|
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x86.ActiveCfg = DebugWin|Win32
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x86.Build.0 = DebugWin|Win32
|
{ED007796-367F-4142-AA55-5450C7645C2C}.DebugWin|x86.Build.0 = DebugWin|Win32
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseLinux|x64.ActiveCfg = ReleaseWin|x64
|
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseLinux|x64.ActiveCfg = ReleaseWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseLinux|x86.ActiveCfg = ReleaseWin|Win32
|
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseLinux|x86.ActiveCfg = ReleaseWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64
|
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseWin|x64.Build.0 = ReleaseWin|x64
|
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseWin|x64.Build.0 = ReleaseWin|x64
|
||||||
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseWin|x86.ActiveCfg = ReleaseWin|Win32
|
{ED007796-367F-4142-AA55-5450C7645C2C}.ReleaseWin|x86.ActiveCfg = ReleaseWin|Win32
|
||||||
|
|||||||
@@ -1,32 +1,27 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
|
||||||
using System.Text;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
using Vocaluxe.Base;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Vocaluxe.Lib.Draw;
|
using System.IO;
|
||||||
|
using Vocaluxe.Base;
|
||||||
using Vocaluxe.Menu;
|
using VocaluxeLib.Menu;
|
||||||
using Vocaluxe.Menu.SongMenu;
|
using VocaluxeLib.Menu.SongMenu;
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
static class CBackgroundMusic
|
static class CBackgroundMusic
|
||||||
{
|
{
|
||||||
private static int _CurrentMusicStream = -1;
|
private static int _CurrentMusicStream = -1;
|
||||||
private static int _PreviousMusicIndex = 0;
|
private static int _PreviousMusicIndex;
|
||||||
private static PlaylistElement _CurrentPlaylistElement = new PlaylistElement();
|
private static PlaylistElement _CurrentPlaylistElement = new PlaylistElement();
|
||||||
|
|
||||||
private static List<PlaylistElement> _AllFileNames = new List<PlaylistElement>();
|
private static readonly List<PlaylistElement> _AllFileNames = new List<PlaylistElement>();
|
||||||
private static List<PlaylistElement> _NotPlayedFileNames = new List<PlaylistElement>();
|
private static readonly List<PlaylistElement> _NotPlayedFileNames = new List<PlaylistElement>();
|
||||||
private static List<PlaylistElement> _BGMusicFileNames = new List<PlaylistElement>();
|
private static readonly List<PlaylistElement> _BGMusicFileNames = new List<PlaylistElement>();
|
||||||
private static List<PlaylistElement> _PreviousFileNames = new List<PlaylistElement>();
|
private static readonly List<PlaylistElement> _PreviousFileNames = new List<PlaylistElement>();
|
||||||
|
|
||||||
private static int _Video = -1;
|
private static int _Video = -1;
|
||||||
private static STexture _CurrentVideoTexture = new STexture(-1);
|
private static STexture _CurrentVideoTexture = new STexture(-1);
|
||||||
private static Stopwatch _FadeTimer = new Stopwatch();
|
private static readonly Stopwatch _FadeTimer = new Stopwatch();
|
||||||
private static bool _VideoEnabled;
|
private static bool _VideoEnabled;
|
||||||
|
|
||||||
private static bool _OwnMusicAdded;
|
private static bool _OwnMusicAdded;
|
||||||
@@ -38,17 +33,14 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static bool VideoEnabled
|
public static bool VideoEnabled
|
||||||
{
|
{
|
||||||
get
|
get { return _VideoEnabled; }
|
||||||
{
|
|
||||||
return _VideoEnabled;
|
|
||||||
}
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (_VideoEnabled && value)
|
if (_VideoEnabled && value)
|
||||||
return;
|
return;
|
||||||
if (!_VideoEnabled && !value)
|
if (!_VideoEnabled && !value)
|
||||||
return;
|
return;
|
||||||
if(_VideoEnabled && !value)
|
if (_VideoEnabled && !value)
|
||||||
ToggleVideo();
|
ToggleVideo();
|
||||||
if (!_VideoEnabled && value)
|
if (!_VideoEnabled && value)
|
||||||
ToggleVideo();
|
ToggleVideo();
|
||||||
@@ -58,23 +50,13 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static bool CanSing
|
public static bool CanSing
|
||||||
{
|
{
|
||||||
get
|
get { return _CanSing; }
|
||||||
{
|
set { _CanSing = value; }
|
||||||
return _CanSing;
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_CanSing = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool Disabled
|
public static bool Disabled
|
||||||
{
|
{
|
||||||
get
|
get { return _Disabled; }
|
||||||
{
|
|
||||||
return _Disabled;
|
|
||||||
}
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
_Disabled = value;
|
_Disabled = value;
|
||||||
@@ -87,53 +69,35 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static bool RepeatSong
|
public static bool RepeatSong
|
||||||
{
|
{
|
||||||
get
|
get { return _RepeatSong; }
|
||||||
{
|
set { _RepeatSong = value; }
|
||||||
return _RepeatSong;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_RepeatSong = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int SongID
|
public static int SongID
|
||||||
{
|
{
|
||||||
get
|
get { return _CurrentPlaylistElement.SongID; }
|
||||||
{
|
|
||||||
return _CurrentPlaylistElement.SongID;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool Duet
|
public static bool Duet
|
||||||
{
|
{
|
||||||
get
|
get { return _CurrentPlaylistElement.Duet; }
|
||||||
{
|
|
||||||
return _CurrentPlaylistElement.Duet;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool SongHasVideo
|
public static bool SongHasVideo
|
||||||
{
|
{
|
||||||
get
|
get { return File.Exists(_CurrentPlaylistElement.VideoFilePath); }
|
||||||
{
|
|
||||||
return File.Exists(_CurrentPlaylistElement.VideoFilePath);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool Playing
|
public static bool Playing
|
||||||
{
|
{
|
||||||
get
|
get { return _Playing; }
|
||||||
{
|
|
||||||
return _Playing;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string ArtistAndTitle
|
public static string ArtistAndTitle
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (_CurrentPlaylistElement.Artist != "" && _CurrentPlaylistElement.Title != "")
|
if (_CurrentPlaylistElement.Artist.Length > 0 && _CurrentPlaylistElement.Title.Length > 0)
|
||||||
return _CurrentPlaylistElement.Artist + " - " + _CurrentPlaylistElement.Title;
|
return _CurrentPlaylistElement.Artist + " - " + _CurrentPlaylistElement.Title;
|
||||||
else
|
else
|
||||||
return Path.GetFileNameWithoutExtension(_CurrentPlaylistElement.MusicFilePath);
|
return Path.GetFileNameWithoutExtension(_CurrentPlaylistElement.MusicFilePath);
|
||||||
@@ -142,27 +106,20 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static STexture Cover
|
public static STexture Cover
|
||||||
{
|
{
|
||||||
get
|
get { return _CurrentPlaylistElement.Cover; }
|
||||||
{
|
|
||||||
return _CurrentPlaylistElement.Cover;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
List<string> templist = new List<string>();
|
List<string> templist = new List<string>();
|
||||||
|
|
||||||
foreach(string ending in CSettings.MusicFileTypes)
|
foreach (string ending in CSettings.MusicFileTypes)
|
||||||
{
|
|
||||||
templist.AddRange(CHelper.ListFiles(CSettings.sFolderBackgroundMusic, ending, true, true));
|
templist.AddRange(CHelper.ListFiles(CSettings.sFolderBackgroundMusic, ending, true, true));
|
||||||
}
|
|
||||||
|
|
||||||
foreach (string path in templist)
|
foreach (string path in templist)
|
||||||
{
|
|
||||||
_BGMusicFileNames.Add(new PlaylistElement(path));
|
_BGMusicFileNames.Add(new PlaylistElement(path));
|
||||||
}
|
|
||||||
|
|
||||||
if(CConfig.BackgroundMusicSource != EBackgroundMusicSource.TR_CONFIG_ONLY_OWN_MUSIC)
|
if (CConfig.BackgroundMusicSource != EBackgroundMusicSource.TR_CONFIG_ONLY_OWN_MUSIC)
|
||||||
AddBackgroundMusic();
|
AddBackgroundMusic();
|
||||||
if (CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
|
if (CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
|
||||||
_VideoEnabled = true;
|
_VideoEnabled = true;
|
||||||
@@ -235,7 +192,7 @@ namespace Vocaluxe.Base
|
|||||||
if (_AllFileNames.Count > 0 && _CurrentMusicStream != -1)
|
if (_AllFileNames.Count > 0 && _CurrentMusicStream != -1)
|
||||||
{
|
{
|
||||||
float timeToPlay;
|
float timeToPlay;
|
||||||
if(_CurrentPlaylistElement.Finish == 0f) //No End-Tag defined
|
if (_CurrentPlaylistElement.Finish == 0f) //No End-Tag defined
|
||||||
timeToPlay = CSound.GetLength(_CurrentMusicStream) - CSound.GetPosition(_CurrentMusicStream);
|
timeToPlay = CSound.GetLength(_CurrentMusicStream) - CSound.GetPosition(_CurrentMusicStream);
|
||||||
else //End-Tag found
|
else //End-Tag found
|
||||||
timeToPlay = _CurrentPlaylistElement.Finish - CSound.GetPosition(_CurrentMusicStream);
|
timeToPlay = _CurrentPlaylistElement.Finish - CSound.GetPosition(_CurrentMusicStream);
|
||||||
@@ -251,10 +208,12 @@ namespace Vocaluxe.Base
|
|||||||
else
|
else
|
||||||
CSound.SetPosition(_CurrentMusicStream, 0);
|
CSound.SetPosition(_CurrentMusicStream, 0);
|
||||||
if (_VideoEnabled && _Video != -1)
|
if (_VideoEnabled && _Video != -1)
|
||||||
|
{
|
||||||
if (_CurrentPlaylistElement.Start != 0f && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
|
if (_CurrentPlaylistElement.Start != 0f && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
|
||||||
CVideo.VdSkip(_Video, _CurrentPlaylistElement.Start, _CurrentPlaylistElement.VideoGap);
|
CVideo.VdSkip(_Video, _CurrentPlaylistElement.Start, _CurrentPlaylistElement.VideoGap);
|
||||||
else
|
else
|
||||||
CVideo.VdSkip(_Video, 0f, _CurrentPlaylistElement.VideoGap);
|
CVideo.VdSkip(_Video, 0f, _CurrentPlaylistElement.VideoGap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Next();
|
Next();
|
||||||
@@ -266,8 +225,9 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
if (_AllFileNames.Count > 0)
|
if (_AllFileNames.Count > 0)
|
||||||
{
|
{
|
||||||
if (_PreviousMusicIndex == _PreviousFileNames.Count - 1 || _PreviousFileNames.Count == 0) //We are not currently in the previous list
|
if (_PreviousMusicIndex == _PreviousFileNames.Count - 1 || _PreviousFileNames.Count == 0)
|
||||||
{
|
{
|
||||||
|
//We are not currently in the previous list
|
||||||
Stop();
|
Stop();
|
||||||
if (_NotPlayedFileNames.Count == 0)
|
if (_NotPlayedFileNames.Count == 0)
|
||||||
_NotPlayedFileNames.AddRange(_AllFileNames);
|
_NotPlayedFileNames.AddRange(_AllFileNames);
|
||||||
@@ -278,8 +238,9 @@ namespace Vocaluxe.Base
|
|||||||
_PreviousFileNames.Add(_CurrentPlaylistElement);
|
_PreviousFileNames.Add(_CurrentPlaylistElement);
|
||||||
_PreviousMusicIndex = _PreviousFileNames.Count - 1;
|
_PreviousMusicIndex = _PreviousFileNames.Count - 1;
|
||||||
}
|
}
|
||||||
else if(_PreviousFileNames.Count > 0) //We are in the previous list
|
else if (_PreviousFileNames.Count > 0)
|
||||||
{
|
{
|
||||||
|
//We are in the previous list
|
||||||
Stop();
|
Stop();
|
||||||
_PreviousMusicIndex++;
|
_PreviousMusicIndex++;
|
||||||
|
|
||||||
@@ -314,10 +275,12 @@ namespace Vocaluxe.Base
|
|||||||
else
|
else
|
||||||
CSound.SetPosition(_CurrentMusicStream, 0);
|
CSound.SetPosition(_CurrentMusicStream, 0);
|
||||||
if (_VideoEnabled && _Video != -1)
|
if (_VideoEnabled && _Video != -1)
|
||||||
|
{
|
||||||
if (_CurrentPlaylistElement.Start != 0f && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
|
if (_CurrentPlaylistElement.Start != 0f && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
|
||||||
CVideo.VdSkip(_Video, _CurrentPlaylistElement.Start, _CurrentPlaylistElement.VideoGap);
|
CVideo.VdSkip(_Video, _CurrentPlaylistElement.Start, _CurrentPlaylistElement.VideoGap);
|
||||||
else
|
else
|
||||||
CVideo.VdSkip(_Video, 0f, _CurrentPlaylistElement.VideoGap);
|
CVideo.VdSkip(_Video, 0f, _CurrentPlaylistElement.VideoGap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -344,10 +307,12 @@ namespace Vocaluxe.Base
|
|||||||
else
|
else
|
||||||
CSound.SetPosition(_CurrentMusicStream, 0);
|
CSound.SetPosition(_CurrentMusicStream, 0);
|
||||||
if (_VideoEnabled && _Video != -1)
|
if (_VideoEnabled && _Video != -1)
|
||||||
|
{
|
||||||
if (_CurrentPlaylistElement.Start != 0f && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
|
if (_CurrentPlaylistElement.Start != 0f && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
|
||||||
CVideo.VdSkip(_Video, _CurrentPlaylistElement.Start, _CurrentPlaylistElement.VideoGap);
|
CVideo.VdSkip(_Video, _CurrentPlaylistElement.Start, _CurrentPlaylistElement.VideoGap);
|
||||||
else
|
else
|
||||||
CVideo.VdSkip(_Video, 0f, _CurrentPlaylistElement.VideoGap);
|
CVideo.VdSkip(_Video, 0f, _CurrentPlaylistElement.VideoGap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -490,9 +455,7 @@ namespace Vocaluxe.Base
|
|||||||
float vtime = 0f;
|
float vtime = 0f;
|
||||||
CVideo.VdGetFrame(_Video, ref _CurrentVideoTexture, CSound.GetPosition(_CurrentMusicStream), ref vtime);
|
CVideo.VdGetFrame(_Video, ref _CurrentVideoTexture, CSound.GetPosition(_CurrentMusicStream), ref vtime);
|
||||||
if (_FadeTimer.ElapsedMilliseconds <= 3000L)
|
if (_FadeTimer.ElapsedMilliseconds <= 3000L)
|
||||||
{
|
_CurrentVideoTexture.color.A = _FadeTimer.ElapsedMilliseconds / 3000f;
|
||||||
_CurrentVideoTexture.color.A = (_FadeTimer.ElapsedMilliseconds / 3000f);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_CurrentVideoTexture.color.A = 1f;
|
_CurrentVideoTexture.color.A = 1f;
|
||||||
@@ -532,9 +495,9 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
class PlaylistElement
|
class PlaylistElement
|
||||||
{
|
{
|
||||||
private CSong _Song = null;
|
private readonly CSong _Song;
|
||||||
|
|
||||||
private int _SongID;
|
private readonly int _SongID;
|
||||||
public int SongID
|
public int SongID
|
||||||
{
|
{
|
||||||
get { return _SongID; }
|
get { return _SongID; }
|
||||||
@@ -552,10 +515,7 @@ class PlaylistElement
|
|||||||
return _MusicFilePath;
|
return _MusicFilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set { _MusicFilePath = value; }
|
||||||
{
|
|
||||||
_MusicFilePath = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string VideoFilePath
|
public string VideoFilePath
|
||||||
|
|||||||
+320
-375
@@ -1,23 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Specialized;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
using OpenTK.Platform;
|
|
||||||
|
|
||||||
using Vocaluxe.Lib.Sound;
|
using Vocaluxe.Lib.Sound;
|
||||||
using Vocaluxe.Lib.Webcam;
|
using Vocaluxe.Lib.Webcam;
|
||||||
using Vocaluxe.Menu;
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
static class CConfig
|
static class CConfig
|
||||||
{
|
{
|
||||||
private static XmlWriterSettings _settings = new XmlWriterSettings();
|
private static readonly XmlWriterSettings _settings = new XmlWriterSettings();
|
||||||
|
|
||||||
// Debug
|
// Debug
|
||||||
public static EDebugLevel DebugLevel = EDebugLevel.TR_CONFIG_OFF;
|
public static EDebugLevel DebugLevel = EDebugLevel.TR_CONFIG_OFF;
|
||||||
@@ -53,7 +49,7 @@ namespace Vocaluxe.Base
|
|||||||
public static ETimerLook TimerLook = ETimerLook.TR_CONFIG_TIMERLOOK_EXPANDED;
|
public static ETimerLook TimerLook = ETimerLook.TR_CONFIG_TIMERLOOK_EXPANDED;
|
||||||
public static EPlayerInfo PlayerInfo = EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH;
|
public static EPlayerInfo PlayerInfo = EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH;
|
||||||
public static EFadePlayerInfo FadePlayerInfo = EFadePlayerInfo.TR_CONFIG_FADEPLAYERINFO_OFF;
|
public static EFadePlayerInfo FadePlayerInfo = EFadePlayerInfo.TR_CONFIG_FADEPLAYERINFO_OFF;
|
||||||
public static ECoverLoading CoverLoading = ECoverLoading.TR_CONFIG_COVERLOADING_ATSTART;
|
public static ECoverLoading CoverLoading = ECoverLoading.TR_CONFIG_COVERLOADING_DYNAMIC;
|
||||||
public static ELyricStyle LyricStyle = ELyricStyle.Slide;
|
public static ELyricStyle LyricStyle = ELyricStyle.Slide;
|
||||||
|
|
||||||
// Sound
|
// Sound
|
||||||
@@ -92,16 +88,16 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
// Record
|
// Record
|
||||||
public static SMicConfig[] MicConfig;
|
public static SMicConfig[] MicConfig;
|
||||||
public static int MicDelay = 300; //[ms]
|
public static int MicDelay = 300; //[ms]
|
||||||
public static EWebcamLib WebcamLib = EWebcamLib.OpenCV;
|
public static EWebcamLib WebcamLib = EWebcamLib.OpenCV;
|
||||||
public static SWebcamConfig WebcamConfig;
|
public static SWebcamConfig WebcamConfig;
|
||||||
|
|
||||||
//Lists to save parameters and values
|
//Lists to save parameters and values
|
||||||
private static List<string> _Params = new List<string>();
|
private static readonly List<string> _Params = new List<string>();
|
||||||
private static List<string> _Values = new List<string>();
|
private static readonly List<string> _Values = new List<string>();
|
||||||
|
|
||||||
//Variables to save old values for commandline-parameters
|
//Variables to save old values for commandline-parameters
|
||||||
private static List<string> SongFolderOld = new List<string>();
|
private static readonly List<string> SongFolderOld = new List<string>();
|
||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
@@ -128,22 +124,21 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
string value = string.Empty;
|
string value = string.Empty;
|
||||||
|
|
||||||
#region Debug
|
|
||||||
xmlReader.TryGetEnumValue<EDebugLevel>("//root/Debug/DebugLevel", ref DebugLevel);
|
xmlReader.TryGetEnumValue("//root/Debug/DebugLevel", ref DebugLevel);
|
||||||
#endregion Debug
|
|
||||||
|
|
||||||
#region Graphics
|
#region Graphics
|
||||||
xmlReader.TryGetEnumValue<ERenderer>("//root/Graphics/Renderer", ref Renderer);
|
xmlReader.TryGetEnumValue("//root/Graphics/Renderer", ref Renderer);
|
||||||
xmlReader.TryGetEnumValue<ETextureQuality>("//root/Graphics/TextureQuality", ref TextureQuality);
|
xmlReader.TryGetEnumValue("//root/Graphics/TextureQuality", ref TextureQuality);
|
||||||
xmlReader.TryGetIntValueRange("//root/Graphics/CoverSize", ref CoverSize, 32, 1024);
|
xmlReader.TryGetIntValueRange("//root/Graphics/CoverSize", ref CoverSize, 32, 1024);
|
||||||
|
|
||||||
xmlReader.TryGetIntValue("//root/Graphics/ScreenW", ref ScreenW);
|
xmlReader.TryGetIntValue("//root/Graphics/ScreenW", ref ScreenW);
|
||||||
xmlReader.TryGetIntValue("//root/Graphics/ScreenH", ref ScreenH);
|
xmlReader.TryGetIntValue("//root/Graphics/ScreenH", ref ScreenH);
|
||||||
xmlReader.TryGetEnumValue<EAntiAliasingModes>("//root/Graphics/AAMode", ref AAMode);
|
xmlReader.TryGetEnumValue("//root/Graphics/AAMode", ref AAMode);
|
||||||
xmlReader.TryGetEnumValue<EColorDeep>("//root/Graphics/Colors", ref Colors);
|
xmlReader.TryGetEnumValue("//root/Graphics/Colors", ref Colors);
|
||||||
xmlReader.TryGetFloatValue("//root/Graphics/MaxFPS", ref MaxFPS);
|
xmlReader.TryGetFloatValue("//root/Graphics/MaxFPS", ref MaxFPS);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Graphics/VSync", ref VSync);
|
xmlReader.TryGetEnumValue("//root/Graphics/VSync", ref VSync);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Graphics/FullScreen", ref FullScreen);
|
xmlReader.TryGetEnumValue("//root/Graphics/FullScreen", ref FullScreen);
|
||||||
xmlReader.TryGetFloatValue("//root/Graphics/FadeTime", ref FadeTime);
|
xmlReader.TryGetFloatValue("//root/Graphics/FadeTime", ref FadeTime);
|
||||||
#endregion Graphics
|
#endregion Graphics
|
||||||
|
|
||||||
@@ -161,16 +156,16 @@ namespace Vocaluxe.Base
|
|||||||
#endregion Theme
|
#endregion Theme
|
||||||
|
|
||||||
#region Sound
|
#region Sound
|
||||||
xmlReader.TryGetEnumValue<EPlaybackLib>("//root/Sound/PlayBackLib", ref PlayBackLib);
|
xmlReader.TryGetEnumValue("//root/Sound/PlayBackLib", ref PlayBackLib);
|
||||||
xmlReader.TryGetEnumValue<ERecordLib>("//root/Sound/RecordLib", ref RecordLib);
|
xmlReader.TryGetEnumValue("//root/Sound/RecordLib", ref RecordLib);
|
||||||
xmlReader.TryGetEnumValue<EBufferSize>("//root/Sound/AudioBufferSize", ref AudioBufferSize);
|
xmlReader.TryGetEnumValue("//root/Sound/AudioBufferSize", ref AudioBufferSize);
|
||||||
|
|
||||||
xmlReader.TryGetIntValueRange("//root/Sound/AudioLatency", ref AudioLatency, -500, 500);
|
xmlReader.TryGetIntValueRange("//root/Sound/AudioLatency", ref AudioLatency, -500, 500);
|
||||||
|
|
||||||
xmlReader.TryGetEnumValue("//root/Sound/BackgroundMusic", ref BackgroundMusic);
|
xmlReader.TryGetEnumValue("//root/Sound/BackgroundMusic", ref BackgroundMusic);
|
||||||
xmlReader.TryGetIntValueRange("//root/Sound/BackgroundMusicVolume", ref BackgroundMusicVolume);
|
xmlReader.TryGetIntValueRange("//root/Sound/BackgroundMusicVolume", ref BackgroundMusicVolume);
|
||||||
xmlReader.TryGetEnumValue("//root/Sound/BackgroundMusicSource", ref BackgroundMusicSource);
|
xmlReader.TryGetEnumValue("//root/Sound/BackgroundMusicSource", ref BackgroundMusicSource);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Sound/BackgroundMusicUseStart", ref BackgroundMusicUseStart);
|
xmlReader.TryGetEnumValue("//root/Sound/BackgroundMusicUseStart", ref BackgroundMusicUseStart);
|
||||||
xmlReader.TryGetIntValueRange("//root/Sound/PreviewMusicVolume", ref PreviewMusicVolume);
|
xmlReader.TryGetIntValueRange("//root/Sound/PreviewMusicVolume", ref PreviewMusicVolume);
|
||||||
xmlReader.TryGetIntValueRange("//root/Sound/GameMusicVolume", ref GameMusicVolume);
|
xmlReader.TryGetIntValueRange("//root/Sound/GameMusicVolume", ref GameMusicVolume);
|
||||||
#endregion Sound
|
#endregion Sound
|
||||||
@@ -189,21 +184,19 @@ namespace Vocaluxe.Base
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
xmlReader.TryGetEnumValue<ESongMenu>("//root/Game/SongMenu", ref SongMenu);
|
xmlReader.TryGetEnumValue("//root/Game/SongMenu", ref SongMenu);
|
||||||
xmlReader.TryGetEnumValue<ESongSorting>("//root/Game/SongSorting", ref SongSorting);
|
xmlReader.TryGetEnumValue("//root/Game/SongSorting", ref SongSorting);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Game/IgnoreArticles", ref IgnoreArticles);
|
xmlReader.TryGetEnumValue("//root/Game/IgnoreArticles", ref IgnoreArticles);
|
||||||
xmlReader.TryGetFloatValue("//root/Game/ScoreAnimationTime", ref ScoreAnimationTime);
|
xmlReader.TryGetFloatValue("//root/Game/ScoreAnimationTime", ref ScoreAnimationTime);
|
||||||
xmlReader.TryGetEnumValue<ETimerMode>("//root/Game/TimerMode", ref TimerMode);
|
xmlReader.TryGetEnumValue("//root/Game/TimerMode", ref TimerMode);
|
||||||
xmlReader.TryGetIntValue("//root/Game/NumPlayer", ref NumPlayer);
|
xmlReader.TryGetIntValue("//root/Game/NumPlayer", ref NumPlayer);
|
||||||
xmlReader.TryGetEnumValue("//root/Game/Tabs", ref Tabs);
|
xmlReader.TryGetEnumValue("//root/Game/Tabs", ref Tabs);
|
||||||
xmlReader.GetValue("//root/Game/Language", ref Language, Language);
|
xmlReader.GetValue("//root/Game/Language", ref Language, Language);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Game/LyricsOnTop", ref LyricsOnTop);
|
xmlReader.TryGetEnumValue("//root/Game/LyricsOnTop", ref LyricsOnTop);
|
||||||
xmlReader.TryGetFloatValue("//root/Game/MinLineBreakTime", ref MinLineBreakTime);
|
xmlReader.TryGetFloatValue("//root/Game/MinLineBreakTime", ref MinLineBreakTime);
|
||||||
|
|
||||||
if ((ScoreAnimationTime > 0 && ScoreAnimationTime < 1) || ScoreAnimationTime < 0)
|
if ((ScoreAnimationTime > 0 && ScoreAnimationTime < 1) || ScoreAnimationTime < 0)
|
||||||
{
|
|
||||||
ScoreAnimationTime = 1;
|
ScoreAnimationTime = 1;
|
||||||
}
|
|
||||||
|
|
||||||
if (MinLineBreakTime < 0)
|
if (MinLineBreakTime < 0)
|
||||||
MinLineBreakTime = 0.1f;
|
MinLineBreakTime = 0.1f;
|
||||||
@@ -211,42 +204,25 @@ namespace Vocaluxe.Base
|
|||||||
if (NumPlayer < 1 || NumPlayer > CSettings.MaxNumPlayer)
|
if (NumPlayer < 1 || NumPlayer > CSettings.MaxNumPlayer)
|
||||||
NumPlayer = 2;
|
NumPlayer = 2;
|
||||||
|
|
||||||
List<string> _Languages = new List<string>();
|
bool _LangExists = CLanguage.SetLanguage(Language);
|
||||||
_Languages = CLanguage.GetLanguages();
|
|
||||||
|
|
||||||
bool _LangExists = false;
|
|
||||||
|
|
||||||
for (i = 0; i < _Languages.Count; i++)
|
|
||||||
{
|
|
||||||
if (_Languages[i] == Language)
|
|
||||||
{
|
|
||||||
_LangExists = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//TODO: What should we do, if English not exists?
|
//TODO: What should we do, if English not exists?
|
||||||
if(_LangExists == false){
|
if (_LangExists == false)
|
||||||
Language = "English";
|
Language = "English";
|
||||||
|
|
||||||
}
|
|
||||||
CLanguage.SetLanguage(Language);
|
|
||||||
|
|
||||||
//Read players from config
|
//Read players from config
|
||||||
for (i = 1; i <= CSettings.MaxNumPlayer; i++)
|
for (i = 1; i <= CSettings.MaxNumPlayer; i++)
|
||||||
{
|
|
||||||
xmlReader.GetValue("//root/Game/Players/Player" + i.ToString(), ref Players[i - 1], string.Empty);
|
xmlReader.GetValue("//root/Game/Players/Player" + i.ToString(), ref Players[i - 1], string.Empty);
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Game
|
#endregion Game
|
||||||
|
|
||||||
#region Video
|
#region Video
|
||||||
xmlReader.TryGetEnumValue<EVideoDecoder>("//root/Video/VideoDecoder", ref VideoDecoder);
|
xmlReader.TryGetEnumValue("//root/Video/VideoDecoder", ref VideoDecoder);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Video/VideoBackgrounds", ref VideoBackgrounds);
|
xmlReader.TryGetEnumValue("//root/Video/VideoBackgrounds", ref VideoBackgrounds);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Video/VideoPreview", ref VideoPreview);
|
xmlReader.TryGetEnumValue("//root/Video/VideoPreview", ref VideoPreview);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Video/VideosInSongs", ref VideosInSongs);
|
xmlReader.TryGetEnumValue("//root/Video/VideosInSongs", ref VideosInSongs);
|
||||||
xmlReader.TryGetEnumValue<EOffOn>("//root/Video/VideosToBackground", ref VideosToBackground);
|
xmlReader.TryGetEnumValue("//root/Video/VideosToBackground", ref VideosToBackground);
|
||||||
|
|
||||||
xmlReader.TryGetEnumValue<EWebcamLib>("//root/Video/WebcamLib", ref WebcamLib);
|
xmlReader.TryGetEnumValue("//root/Video/WebcamLib", ref WebcamLib);
|
||||||
WebcamConfig = new SWebcamConfig();
|
WebcamConfig = new SWebcamConfig();
|
||||||
xmlReader.GetValue("//root/Video/WebcamConfig/MonikerString", ref WebcamConfig.MonikerString, String.Empty);
|
xmlReader.GetValue("//root/Video/WebcamConfig/MonikerString", ref WebcamConfig.MonikerString, String.Empty);
|
||||||
xmlReader.TryGetIntValue("//root/Video/WebcamConfig/Framerate", ref WebcamConfig.Framerate);
|
xmlReader.TryGetIntValue("//root/Video/WebcamConfig/Framerate", ref WebcamConfig.Framerate);
|
||||||
@@ -275,346 +251,346 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static bool SaveConfig()
|
public static bool SaveConfig()
|
||||||
{
|
{
|
||||||
|
XmlWriter writer = null;
|
||||||
XmlWriter writer = XmlWriter.Create(CSettings.sFileConfig, _settings);
|
try
|
||||||
writer.WriteStartDocument();
|
|
||||||
writer.WriteStartElement("root");
|
|
||||||
|
|
||||||
#region Info
|
|
||||||
writer.WriteStartElement("Info");
|
|
||||||
|
|
||||||
writer.WriteElementString("Version", CSettings.GetFullVersionText());
|
|
||||||
writer.WriteElementString("Time", System.DateTime.Now.ToString());
|
|
||||||
writer.WriteElementString("Platform", System.Environment.OSVersion.Platform.ToString());
|
|
||||||
writer.WriteElementString("OSVersion", System.Environment.OSVersion.ToString());
|
|
||||||
writer.WriteElementString("ProcessorCount", System.Environment.ProcessorCount.ToString());
|
|
||||||
|
|
||||||
writer.WriteElementString("Screens", Screen.AllScreens.Length.ToString());
|
|
||||||
writer.WriteElementString("PrimaryScreenResolution", Screen.PrimaryScreen.Bounds.Size.ToString());
|
|
||||||
|
|
||||||
writer.WriteElementString("Directory", System.Environment.CurrentDirectory.ToString());
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
|
||||||
#endregion Info
|
|
||||||
|
|
||||||
#region Debug
|
|
||||||
writer.WriteStartElement("Debug");
|
|
||||||
|
|
||||||
writer.WriteComment("DebugLevel: " + CHelper.ListStrings(Enum.GetNames(typeof(EDebugLevel))));
|
|
||||||
writer.WriteElementString("DebugLevel", Enum.GetName(typeof(EDebugLevel), DebugLevel));
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
|
||||||
#endregion Debug
|
|
||||||
|
|
||||||
#region Graphics
|
|
||||||
writer.WriteStartElement("Graphics");
|
|
||||||
|
|
||||||
writer.WriteComment("Renderer: " + CHelper.ListStrings(Enum.GetNames(typeof(ERenderer))));
|
|
||||||
writer.WriteElementString("Renderer", Enum.GetName(typeof(ERenderer), Renderer));
|
|
||||||
|
|
||||||
writer.WriteComment("TextureQuality: " + CHelper.ListStrings(Enum.GetNames(typeof(ETextureQuality))));
|
|
||||||
writer.WriteElementString("TextureQuality", Enum.GetName(typeof(ETextureQuality), TextureQuality));
|
|
||||||
|
|
||||||
writer.WriteComment("CoverSize (pixels): 32, 64, 128, 256, 512, 1024 (default: 128)");
|
|
||||||
writer.WriteElementString("CoverSize", CoverSize.ToString());
|
|
||||||
|
|
||||||
writer.WriteComment("Screen width and height (pixels)");
|
|
||||||
writer.WriteElementString("ScreenW", ScreenW.ToString());
|
|
||||||
writer.WriteElementString("ScreenH", ScreenH.ToString());
|
|
||||||
|
|
||||||
writer.WriteComment("AAMode: " + CHelper.ListStrings(Enum.GetNames(typeof(EAntiAliasingModes))));
|
|
||||||
writer.WriteElementString("AAMode", Enum.GetName(typeof(EAntiAliasingModes), AAMode));
|
|
||||||
|
|
||||||
writer.WriteComment("Colors: " + CHelper.ListStrings(Enum.GetNames(typeof(EColorDeep))));
|
|
||||||
writer.WriteElementString("Colors", Enum.GetName(typeof(EColorDeep), Colors));
|
|
||||||
|
|
||||||
writer.WriteComment("MaxFPS should be between 1..200");
|
|
||||||
writer.WriteElementString("MaxFPS", MaxFPS.ToString("#"));
|
|
||||||
|
|
||||||
writer.WriteComment("VSync: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
|
||||||
writer.WriteElementString("VSync", Enum.GetName(typeof(EOffOn), VSync));
|
|
||||||
|
|
||||||
writer.WriteComment("FullScreen: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
|
||||||
writer.WriteElementString("FullScreen", Enum.GetName(typeof(EOffOn), FullScreen));
|
|
||||||
|
|
||||||
writer.WriteComment("FadeTime should be between 0..3 Seconds");
|
|
||||||
writer.WriteElementString("FadeTime", FadeTime.ToString("#0.00"));
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
|
||||||
#endregion Graphics
|
|
||||||
|
|
||||||
#region Theme
|
|
||||||
writer.WriteStartElement("Theme");
|
|
||||||
|
|
||||||
writer.WriteComment("Theme name");
|
|
||||||
writer.WriteElementString("Name", Theme);
|
|
||||||
|
|
||||||
writer.WriteComment("Skin name");
|
|
||||||
writer.WriteElementString("Skin", Skin);
|
|
||||||
|
|
||||||
writer.WriteComment("Name of cover-theme");
|
|
||||||
writer.WriteElementString("Cover", CoverTheme);
|
|
||||||
|
|
||||||
writer.WriteComment("Draw note-lines:" + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
|
||||||
writer.WriteElementString("DrawNoteLines", Enum.GetName(typeof(EOffOn), DrawNoteLines));
|
|
||||||
|
|
||||||
writer.WriteComment("Draw tone-helper:" + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
|
||||||
writer.WriteElementString("DrawToneHelper", Enum.GetName(typeof(EOffOn), DrawToneHelper));
|
|
||||||
|
|
||||||
writer.WriteComment("Look of timer:" + CHelper.ListStrings(Enum.GetNames(typeof(ETimerLook))));
|
|
||||||
writer.WriteElementString("TimerLook", Enum.GetName(typeof(ETimerLook), TimerLook));
|
|
||||||
|
|
||||||
writer.WriteComment("Information about players on SingScreen:" + CHelper.ListStrings(Enum.GetNames(typeof(EPlayerInfo))));
|
|
||||||
writer.WriteElementString("PlayerInfo", Enum.GetName(typeof(EPlayerInfo), PlayerInfo));
|
|
||||||
|
|
||||||
writer.WriteComment("Fade player-information with lyrics and notebars:" + CHelper.ListStrings(Enum.GetNames(typeof(EFadePlayerInfo))));
|
|
||||||
writer.WriteElementString("FadePlayerInfo", Enum.GetName(typeof(EFadePlayerInfo), FadePlayerInfo));
|
|
||||||
|
|
||||||
writer.WriteComment("Cover Loading:" + CHelper.ListStrings(Enum.GetNames(typeof(ECoverLoading))));
|
|
||||||
writer.WriteElementString("CoverLoading", Enum.GetName(typeof(ECoverLoading), CoverLoading));
|
|
||||||
|
|
||||||
writer.WriteComment("Lyric Style:" + CHelper.ListStrings(Enum.GetNames(typeof(ELyricStyle))));
|
|
||||||
writer.WriteElementString("LyricStyle", Enum.GetName(typeof(ELyricStyle), LyricStyle));
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
|
||||||
#endregion Theme
|
|
||||||
|
|
||||||
#region Sound
|
|
||||||
writer.WriteStartElement("Sound");
|
|
||||||
|
|
||||||
writer.WriteComment("PlayBackLib: " + CHelper.ListStrings(Enum.GetNames(typeof(EPlaybackLib))));
|
|
||||||
writer.WriteElementString("PlayBackLib", Enum.GetName(typeof(EPlaybackLib), PlayBackLib));
|
|
||||||
|
|
||||||
writer.WriteComment("RecordLib: " + CHelper.ListStrings(Enum.GetNames(typeof(ERecordLib))));
|
|
||||||
writer.WriteElementString("RecordLib", Enum.GetName(typeof(ERecordLib), RecordLib));
|
|
||||||
|
|
||||||
writer.WriteComment("AudioBufferSize: " + CHelper.ListStrings(Enum.GetNames(typeof(EBufferSize))));
|
|
||||||
writer.WriteElementString("AudioBufferSize", Enum.GetName(typeof(EBufferSize), AudioBufferSize));
|
|
||||||
|
|
||||||
writer.WriteComment("AudioLatency from -500 to 500 ms");
|
|
||||||
writer.WriteElementString("AudioLatency", AudioLatency.ToString());
|
|
||||||
|
|
||||||
writer.WriteComment("Background Music");
|
|
||||||
writer.WriteElementString("BackgroundMusic", Enum.GetName(typeof(EOffOn), BackgroundMusic));
|
|
||||||
|
|
||||||
writer.WriteComment("Background Music Volume from 0 to 100");
|
|
||||||
writer.WriteElementString("BackgroundMusicVolume", BackgroundMusicVolume.ToString());
|
|
||||||
|
|
||||||
writer.WriteComment("Background Music Source");
|
|
||||||
writer.WriteElementString("BackgroundMusicSource", Enum.GetName(typeof(EBackgroundMusicSource), BackgroundMusicSource));
|
|
||||||
|
|
||||||
writer.WriteComment("Background Music use start-tag of songs");
|
|
||||||
writer.WriteElementString("BackgroundMusicUseStart", Enum.GetName(typeof(EOffOn), BackgroundMusicUseStart));
|
|
||||||
|
|
||||||
writer.WriteComment("Preview Volume from 0 to 100");
|
|
||||||
writer.WriteElementString("PreviewMusicVolume", PreviewMusicVolume.ToString());
|
|
||||||
|
|
||||||
writer.WriteComment("Game Volume from 0 to 100");
|
|
||||||
writer.WriteElementString("GameMusicVolume", GameMusicVolume.ToString());
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
|
||||||
#endregion Sound
|
|
||||||
|
|
||||||
#region Game
|
|
||||||
writer.WriteStartElement("Game");
|
|
||||||
|
|
||||||
writer.WriteComment("Game-Language:");
|
|
||||||
writer.WriteElementString("Language", Language);
|
|
||||||
|
|
||||||
// SongFolder
|
|
||||||
// Check, if program was started with songfolder-parameters
|
|
||||||
if (SongFolderOld.Count > 0)
|
|
||||||
{
|
{
|
||||||
//Write "old" song-folders to config.
|
writer = XmlWriter.Create(CSettings.sFileConfig, _settings);
|
||||||
writer.WriteComment("SongFolder: SongFolder1, SongFolder2, SongFolder3, ...");
|
writer.WriteStartDocument();
|
||||||
for (int i = 0; i < SongFolderOld.Count; i++)
|
writer.WriteStartElement("root");
|
||||||
|
|
||||||
|
|
||||||
|
writer.WriteStartElement("Info");
|
||||||
|
|
||||||
|
writer.WriteElementString("Version", CSettings.GetFullVersionText());
|
||||||
|
writer.WriteElementString("Time", DateTime.Now.ToString());
|
||||||
|
writer.WriteElementString("Platform", Environment.OSVersion.Platform.ToString());
|
||||||
|
writer.WriteElementString("OSVersion", Environment.OSVersion.ToString());
|
||||||
|
writer.WriteElementString("ProcessorCount", Environment.ProcessorCount.ToString());
|
||||||
|
|
||||||
|
writer.WriteElementString("Screens", Screen.AllScreens.Length.ToString());
|
||||||
|
writer.WriteElementString("PrimaryScreenResolution", Screen.PrimaryScreen.Bounds.Size.ToString());
|
||||||
|
|
||||||
|
writer.WriteElementString("Directory", Environment.CurrentDirectory);
|
||||||
|
|
||||||
|
writer.WriteEndElement();
|
||||||
|
|
||||||
|
#region Debug
|
||||||
|
writer.WriteStartElement("Debug");
|
||||||
|
|
||||||
|
writer.WriteComment("DebugLevel: " + CHelper.ListStrings(Enum.GetNames(typeof(EDebugLevel))));
|
||||||
|
writer.WriteElementString("DebugLevel", Enum.GetName(typeof(EDebugLevel), DebugLevel));
|
||||||
|
|
||||||
|
writer.WriteEndElement();
|
||||||
|
#endregion Debug
|
||||||
|
|
||||||
|
#region Graphics
|
||||||
|
writer.WriteStartElement("Graphics");
|
||||||
|
|
||||||
|
writer.WriteComment("Renderer: " + CHelper.ListStrings(Enum.GetNames(typeof(ERenderer))));
|
||||||
|
writer.WriteElementString("Renderer", Enum.GetName(typeof(ERenderer), Renderer));
|
||||||
|
|
||||||
|
writer.WriteComment("TextureQuality: " + CHelper.ListStrings(Enum.GetNames(typeof(ETextureQuality))));
|
||||||
|
writer.WriteElementString("TextureQuality", Enum.GetName(typeof(ETextureQuality), TextureQuality));
|
||||||
|
|
||||||
|
writer.WriteComment("CoverSize (pixels): 32, 64, 128, 256, 512, 1024 (default: 128)");
|
||||||
|
writer.WriteElementString("CoverSize", CoverSize.ToString());
|
||||||
|
|
||||||
|
writer.WriteComment("Screen width and height (pixels)");
|
||||||
|
writer.WriteElementString("ScreenW", ScreenW.ToString());
|
||||||
|
writer.WriteElementString("ScreenH", ScreenH.ToString());
|
||||||
|
|
||||||
|
writer.WriteComment("AAMode: " + CHelper.ListStrings(Enum.GetNames(typeof(EAntiAliasingModes))));
|
||||||
|
writer.WriteElementString("AAMode", Enum.GetName(typeof(EAntiAliasingModes), AAMode));
|
||||||
|
|
||||||
|
writer.WriteComment("Colors: " + CHelper.ListStrings(Enum.GetNames(typeof(EColorDeep))));
|
||||||
|
writer.WriteElementString("Colors", Enum.GetName(typeof(EColorDeep), Colors));
|
||||||
|
|
||||||
|
writer.WriteComment("MaxFPS should be between 1..200");
|
||||||
|
writer.WriteElementString("MaxFPS", MaxFPS.ToString("#"));
|
||||||
|
|
||||||
|
writer.WriteComment("VSync: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
|
writer.WriteElementString("VSync", Enum.GetName(typeof(EOffOn), VSync));
|
||||||
|
|
||||||
|
writer.WriteComment("FullScreen: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
|
writer.WriteElementString("FullScreen", Enum.GetName(typeof(EOffOn), FullScreen));
|
||||||
|
|
||||||
|
writer.WriteComment("FadeTime should be between 0..3 Seconds");
|
||||||
|
writer.WriteElementString("FadeTime", FadeTime.ToString("#0.00"));
|
||||||
|
|
||||||
|
writer.WriteEndElement();
|
||||||
|
#endregion Graphics
|
||||||
|
|
||||||
|
#region Theme
|
||||||
|
writer.WriteStartElement("Theme");
|
||||||
|
|
||||||
|
writer.WriteComment("Theme name");
|
||||||
|
writer.WriteElementString("Name", Theme);
|
||||||
|
|
||||||
|
writer.WriteComment("Skin name");
|
||||||
|
writer.WriteElementString("Skin", Skin);
|
||||||
|
|
||||||
|
writer.WriteComment("Name of cover-theme");
|
||||||
|
writer.WriteElementString("Cover", CoverTheme);
|
||||||
|
|
||||||
|
writer.WriteComment("Draw note-lines:" + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
|
writer.WriteElementString("DrawNoteLines", Enum.GetName(typeof(EOffOn), DrawNoteLines));
|
||||||
|
|
||||||
|
writer.WriteComment("Draw tone-helper:" + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
|
writer.WriteElementString("DrawToneHelper", Enum.GetName(typeof(EOffOn), DrawToneHelper));
|
||||||
|
|
||||||
|
writer.WriteComment("Look of timer:" + CHelper.ListStrings(Enum.GetNames(typeof(ETimerLook))));
|
||||||
|
writer.WriteElementString("TimerLook", Enum.GetName(typeof(ETimerLook), TimerLook));
|
||||||
|
|
||||||
|
writer.WriteComment("Information about players on SingScreen:" + CHelper.ListStrings(Enum.GetNames(typeof(EPlayerInfo))));
|
||||||
|
writer.WriteElementString("PlayerInfo", Enum.GetName(typeof(EPlayerInfo), PlayerInfo));
|
||||||
|
|
||||||
|
writer.WriteComment("Fade player-information with lyrics and notebars:" + CHelper.ListStrings(Enum.GetNames(typeof(EFadePlayerInfo))));
|
||||||
|
writer.WriteElementString("FadePlayerInfo", Enum.GetName(typeof(EFadePlayerInfo), FadePlayerInfo));
|
||||||
|
|
||||||
|
writer.WriteComment("Cover Loading:" + CHelper.ListStrings(Enum.GetNames(typeof(ECoverLoading))));
|
||||||
|
writer.WriteElementString("CoverLoading", Enum.GetName(typeof(ECoverLoading), CoverLoading));
|
||||||
|
|
||||||
|
writer.WriteComment("Lyric Style:" + CHelper.ListStrings(Enum.GetNames(typeof(ELyricStyle))));
|
||||||
|
writer.WriteElementString("LyricStyle", Enum.GetName(typeof(ELyricStyle), LyricStyle));
|
||||||
|
|
||||||
|
writer.WriteEndElement();
|
||||||
|
#endregion Theme
|
||||||
|
|
||||||
|
#region Sound
|
||||||
|
writer.WriteStartElement("Sound");
|
||||||
|
|
||||||
|
writer.WriteComment("PlayBackLib: " + CHelper.ListStrings(Enum.GetNames(typeof(EPlaybackLib))));
|
||||||
|
writer.WriteElementString("PlayBackLib", Enum.GetName(typeof(EPlaybackLib), PlayBackLib));
|
||||||
|
|
||||||
|
writer.WriteComment("RecordLib: " + CHelper.ListStrings(Enum.GetNames(typeof(ERecordLib))));
|
||||||
|
writer.WriteElementString("RecordLib", Enum.GetName(typeof(ERecordLib), RecordLib));
|
||||||
|
|
||||||
|
writer.WriteComment("AudioBufferSize: " + CHelper.ListStrings(Enum.GetNames(typeof(EBufferSize))));
|
||||||
|
writer.WriteElementString("AudioBufferSize", Enum.GetName(typeof(EBufferSize), AudioBufferSize));
|
||||||
|
|
||||||
|
writer.WriteComment("AudioLatency from -500 to 500 ms");
|
||||||
|
writer.WriteElementString("AudioLatency", AudioLatency.ToString());
|
||||||
|
|
||||||
|
writer.WriteComment("Background Music");
|
||||||
|
writer.WriteElementString("BackgroundMusic", Enum.GetName(typeof(EOffOn), BackgroundMusic));
|
||||||
|
|
||||||
|
writer.WriteComment("Background Music Volume from 0 to 100");
|
||||||
|
writer.WriteElementString("BackgroundMusicVolume", BackgroundMusicVolume.ToString());
|
||||||
|
|
||||||
|
writer.WriteComment("Background Music Source");
|
||||||
|
writer.WriteElementString("BackgroundMusicSource", Enum.GetName(typeof(EBackgroundMusicSource), BackgroundMusicSource));
|
||||||
|
writer.WriteComment("Background Music use start-tag of songs");
|
||||||
|
writer.WriteElementString("BackgroundMusicUseStart", Enum.GetName(typeof(EOffOn), BackgroundMusicUseStart));
|
||||||
|
|
||||||
|
writer.WriteComment("Preview Volume from 0 to 100");
|
||||||
|
writer.WriteElementString("PreviewMusicVolume", PreviewMusicVolume.ToString());
|
||||||
|
|
||||||
|
writer.WriteComment("Preview Volume from 0 to 100");
|
||||||
|
writer.WriteElementString("PreviewMusicVolume", PreviewMusicVolume.ToString());
|
||||||
|
|
||||||
|
writer.WriteComment("Game Volume from 0 to 100");
|
||||||
|
writer.WriteElementString("GameMusicVolume", GameMusicVolume.ToString());
|
||||||
|
|
||||||
|
writer.WriteEndElement();
|
||||||
|
#endregion Sound
|
||||||
|
|
||||||
|
#region Game
|
||||||
|
writer.WriteStartElement("Game");
|
||||||
|
|
||||||
|
writer.WriteComment("Game-Language:");
|
||||||
|
writer.WriteElementString("Language", Language);
|
||||||
|
|
||||||
|
// SongFolder
|
||||||
|
// Check, if program was started with songfolder-parameters
|
||||||
|
if (SongFolderOld.Count > 0)
|
||||||
{
|
{
|
||||||
writer.WriteElementString("SongFolder" + (i + 1).ToString(), SongFolderOld[i]);
|
//Write "old" song-folders to config.
|
||||||
|
writer.WriteComment("SongFolder: SongFolder1, SongFolder2, SongFolder3, ...");
|
||||||
|
for (int i = 0; i < SongFolderOld.Count; i++)
|
||||||
|
writer.WriteElementString("SongFolder" + (i + 1).ToString(), SongFolderOld[i]);
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
else
|
|
||||||
{
|
|
||||||
//Write "normal" song-folders to config.
|
|
||||||
writer.WriteComment("SongFolder: SongFolder1, SongFolder2, SongFolder3, ...");
|
|
||||||
for (int i = 0; i < SongFolder.Count; i++)
|
|
||||||
{
|
{
|
||||||
writer.WriteElementString("SongFolder" + (i + 1).ToString(), SongFolder[i]);
|
//Write "normal" song-folders to config.
|
||||||
|
writer.WriteComment("SongFolder: SongFolder1, SongFolder2, SongFolder3, ...");
|
||||||
|
for (int i = 0; i < SongFolder.Count; i++)
|
||||||
|
writer.WriteElementString("SongFolder" + (i + 1).ToString(), SongFolder[i]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
writer.WriteComment("SongMenu: " + CHelper.ListStrings(Enum.GetNames(typeof(ESongMenu))));
|
writer.WriteComment("SongMenu: " + CHelper.ListStrings(Enum.GetNames(typeof(ESongMenu))));
|
||||||
writer.WriteElementString("SongMenu", Enum.GetName(typeof(ESongMenu), SongMenu));
|
writer.WriteElementString("SongMenu", Enum.GetName(typeof(ESongMenu), SongMenu));
|
||||||
|
|
||||||
writer.WriteComment("SongSorting: " + CHelper.ListStrings(Enum.GetNames(typeof(ESongSorting))));
|
writer.WriteComment("SongSorting: " + CHelper.ListStrings(Enum.GetNames(typeof(ESongSorting))));
|
||||||
writer.WriteElementString("SongSorting", Enum.GetName(typeof(ESongSorting), SongSorting));
|
writer.WriteElementString("SongSorting", Enum.GetName(typeof(ESongSorting), SongSorting));
|
||||||
|
|
||||||
writer.WriteComment("Ignore articles on song-sorting: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("Ignore articles on song-sorting: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("IgnoreArticles", Enum.GetName(typeof(EOffOn), IgnoreArticles));
|
writer.WriteElementString("IgnoreArticles", Enum.GetName(typeof(EOffOn), IgnoreArticles));
|
||||||
|
|
||||||
writer.WriteComment("ScoreAnimationTime: Values >= 1 or 0 for no animation. Time is in seconds.");
|
writer.WriteComment("ScoreAnimationTime: Values >= 1 or 0 for no animation. Time is in seconds.");
|
||||||
writer.WriteElementString("ScoreAnimationTime", ScoreAnimationTime.ToString());
|
writer.WriteElementString("ScoreAnimationTime", ScoreAnimationTime.ToString());
|
||||||
|
|
||||||
writer.WriteComment("TimerMode: " + CHelper.ListStrings(Enum.GetNames(typeof(ETimerMode))));
|
writer.WriteComment("TimerMode: " + CHelper.ListStrings(Enum.GetNames(typeof(ETimerMode))));
|
||||||
writer.WriteElementString("TimerMode", Enum.GetName(typeof(ETimerMode), TimerMode));
|
writer.WriteElementString("TimerMode", Enum.GetName(typeof(ETimerMode), TimerMode));
|
||||||
|
|
||||||
writer.WriteComment("NumPlayer: 1.." + CSettings.MaxNumPlayer.ToString());
|
writer.WriteComment("NumPlayer: 1.." + CSettings.MaxNumPlayer.ToString());
|
||||||
writer.WriteElementString("NumPlayer", NumPlayer.ToString());
|
writer.WriteElementString("NumPlayer", NumPlayer.ToString());
|
||||||
|
|
||||||
writer.WriteComment("Order songs in tabs: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("Order songs in tabs: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("Tabs", Enum.GetName(typeof(EOffOn), Tabs));
|
writer.WriteElementString("Tabs", Enum.GetName(typeof(EOffOn), Tabs));
|
||||||
|
|
||||||
writer.WriteComment("Lyrics also on Top of screen: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("Lyrics also on Top of screen: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("LyricsOnTop", Enum.GetName(typeof(EOffOn), LyricsOnTop));
|
writer.WriteElementString("LyricsOnTop", Enum.GetName(typeof(EOffOn), LyricsOnTop));
|
||||||
|
|
||||||
writer.WriteComment("MinLineBreakTime: Value >= 0 in s. Minimum time the text is shown before it is to be sung");
|
writer.WriteComment("MinLineBreakTime: Value >= 0 in s. Minimum time the text is shown before it is to be sung");
|
||||||
writer.WriteElementString("MinLineBreakTime", MinLineBreakTime.ToString());
|
writer.WriteElementString("MinLineBreakTime", MinLineBreakTime.ToString());
|
||||||
|
|
||||||
writer.WriteComment("Default profile for players 1..." + CSettings.MaxNumPlayer.ToString() + ":");
|
writer.WriteComment("Default profile for players 1..." + CSettings.MaxNumPlayer.ToString() + ":");
|
||||||
writer.WriteStartElement("Players");
|
writer.WriteStartElement("Players");
|
||||||
for (int i = 1; i <= CSettings.MaxNumPlayer; i++)
|
for (int i = 1; i <= CSettings.MaxNumPlayer; i++)
|
||||||
{
|
writer.WriteElementString("Player" + i.ToString(), Path.GetFileName(Players[i - 1]));
|
||||||
writer.WriteElementString("Player" + i.ToString(), Path.GetFileName(Players[i - 1]));
|
writer.WriteEndElement();
|
||||||
}
|
|
||||||
writer.WriteEndElement();
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
writer.WriteEndElement();
|
||||||
#endregion Game
|
#endregion Game
|
||||||
|
|
||||||
#region Video
|
#region Video
|
||||||
writer.WriteStartElement("Video");
|
writer.WriteStartElement("Video");
|
||||||
|
|
||||||
writer.WriteComment("VideoDecoder: " + CHelper.ListStrings(Enum.GetNames(typeof(EVideoDecoder))));
|
writer.WriteComment("VideoDecoder: " + CHelper.ListStrings(Enum.GetNames(typeof(EVideoDecoder))));
|
||||||
writer.WriteElementString("VideoDecoder", Enum.GetName(typeof(EVideoDecoder), VideoDecoder));
|
writer.WriteElementString("VideoDecoder", Enum.GetName(typeof(EVideoDecoder), VideoDecoder));
|
||||||
|
|
||||||
writer.WriteComment("VideoBackgrounds: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("VideoBackgrounds: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("VideoBackgrounds", Enum.GetName(typeof(EOffOn), VideoBackgrounds));
|
writer.WriteElementString("VideoBackgrounds", Enum.GetName(typeof(EOffOn), VideoBackgrounds));
|
||||||
|
|
||||||
writer.WriteComment("VideoPreview: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("VideoPreview: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("VideoPreview", Enum.GetName(typeof(EOffOn), VideoPreview));
|
writer.WriteElementString("VideoPreview", Enum.GetName(typeof(EOffOn), VideoPreview));
|
||||||
|
|
||||||
writer.WriteComment("Show Videos while singing: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("Show Videos while singing: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("VideosInSongs", Enum.GetName(typeof(EOffOn), VideosInSongs));
|
writer.WriteElementString("VideosInSongs", Enum.GetName(typeof(EOffOn), VideosInSongs));
|
||||||
|
|
||||||
writer.WriteComment("Show backgroundmusic videos as background: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
writer.WriteComment("Show backgroundmusic videos as background: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn))));
|
||||||
writer.WriteElementString("VideosToBackground", Enum.GetName(typeof(EOffOn), VideosToBackground));
|
writer.WriteElementString("VideosToBackground", Enum.GetName(typeof(EOffOn), VideosToBackground));
|
||||||
|
|
||||||
writer.WriteComment("WebcamLib: " + CHelper.ListStrings(Enum.GetNames(typeof(EWebcamLib))));
|
writer.WriteComment("WebcamLib: " + CHelper.ListStrings(Enum.GetNames(typeof(EWebcamLib))));
|
||||||
writer.WriteElementString("WebcamLib", Enum.GetName(typeof(EWebcamLib), WebcamLib));
|
writer.WriteElementString("WebcamLib", Enum.GetName(typeof(EWebcamLib), WebcamLib));
|
||||||
|
|
||||||
writer.WriteStartElement("WebcamConfig");
|
writer.WriteStartElement("WebcamConfig");
|
||||||
|
|
||||||
writer.WriteElementString("MonikerString", WebcamConfig.MonikerString);
|
writer.WriteElementString("MonikerString", WebcamConfig.MonikerString);
|
||||||
writer.WriteElementString("Framerate", WebcamConfig.Framerate.ToString());
|
writer.WriteElementString("Framerate", WebcamConfig.Framerate.ToString());
|
||||||
writer.WriteElementString("Width", WebcamConfig.Width.ToString());
|
writer.WriteElementString("Width", WebcamConfig.Width.ToString());
|
||||||
writer.WriteElementString("Height", WebcamConfig.Height.ToString());
|
writer.WriteElementString("Height", WebcamConfig.Height.ToString());
|
||||||
|
|
||||||
writer.WriteEndElement();
|
writer.WriteEndElement();
|
||||||
|
|
||||||
writer.WriteEndElement();
|
writer.WriteEndElement();
|
||||||
#endregion Video
|
#endregion Video
|
||||||
|
|
||||||
#region Record
|
#region Record
|
||||||
writer.WriteStartElement("Record");
|
writer.WriteStartElement("Record");
|
||||||
|
|
||||||
for (int p = 1; p <= CSettings.MaxNumPlayer; p++)
|
for (int p = 1; p <= CSettings.MaxNumPlayer; p++)
|
||||||
{
|
|
||||||
if (MicConfig[p - 1].DeviceName != String.Empty && MicConfig[p - 1].InputName != String.Empty && MicConfig[p - 1].Channel > 0)
|
|
||||||
{
|
{
|
||||||
writer.WriteStartElement("MicConfig" + p.ToString());
|
if (MicConfig[p - 1].DeviceName.Length > 0 && MicConfig[p - 1].InputName.Length > 0 && MicConfig[p - 1].Channel > 0)
|
||||||
|
{
|
||||||
|
writer.WriteStartElement("MicConfig" + p.ToString());
|
||||||
|
|
||||||
writer.WriteElementString("DeviceName", MicConfig[p - 1].DeviceName);
|
writer.WriteElementString("DeviceName", MicConfig[p - 1].DeviceName);
|
||||||
writer.WriteElementString("DeviceDriver", MicConfig[p - 1].DeviceDriver);
|
writer.WriteElementString("DeviceDriver", MicConfig[p - 1].DeviceDriver);
|
||||||
writer.WriteElementString("InputName", MicConfig[p - 1].InputName);
|
writer.WriteElementString("InputName", MicConfig[p - 1].InputName);
|
||||||
writer.WriteElementString("Channel", MicConfig[p - 1].Channel.ToString());
|
writer.WriteElementString("Channel", MicConfig[p - 1].Channel.ToString());
|
||||||
|
|
||||||
writer.WriteEndElement();
|
writer.WriteEndElement();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
writer.WriteComment("Mic delay in ms. 0, 20, 40, 60 ... 500");
|
||||||
|
writer.WriteElementString("MicDelay", MicDelay.ToString());
|
||||||
|
|
||||||
|
writer.WriteEndElement();
|
||||||
|
#endregion Record
|
||||||
|
|
||||||
|
// End of File
|
||||||
|
writer.WriteEndElement(); //end of root
|
||||||
|
writer.WriteEndDocument();
|
||||||
|
writer.Flush();
|
||||||
|
writer.Close();
|
||||||
|
writer = null;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
if (writer != null)
|
||||||
|
writer.Close();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
writer.WriteComment("Mic delay in ms. 0, 20, 40, 60 ... 500");
|
|
||||||
writer.WriteElementString("MicDelay", MicDelay.ToString());
|
|
||||||
|
|
||||||
writer.WriteEndElement();
|
|
||||||
#endregion Record
|
|
||||||
|
|
||||||
// End of File
|
|
||||||
writer.WriteEndElement(); //end of root
|
|
||||||
writer.WriteEndDocument();
|
|
||||||
|
|
||||||
writer.Flush();
|
|
||||||
writer.Close();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculates the maximum cycle time to reach the MaxFPS value.
|
/// Calculates the maximum cycle time to reach the MaxFPS value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static float CalcCycleTime()
|
public static float CalcCycleTime()
|
||||||
{
|
{
|
||||||
return (1f / MaxFPS)*1000f;
|
return (1f / MaxFPS) * 1000f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks, if there is a mic-configuration
|
/// Checks, if there is a mic-configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool IsMicConfig()
|
public static bool IsMicConfig()
|
||||||
{
|
{
|
||||||
SRecordDevice[] Devices = CSound.RecordGetDevices();
|
SRecordDevice[] Devices = CSound.RecordGetDevices();
|
||||||
if (Devices == null)
|
if (Devices == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (int dev = 0; dev < Devices.Length; dev++)
|
for (int dev = 0; dev < Devices.Length; dev++)
|
||||||
{
|
{
|
||||||
for (int inp = 0; inp < Devices[dev].Inputs.Count; inp++)
|
for (int inp = 0; inp < Devices[dev].Inputs.Count; inp++)
|
||||||
{
|
{
|
||||||
if (Devices[dev].Inputs[inp].PlayerChannel1 != 0 || Devices[dev].Inputs[inp].PlayerChannel2 != 0)
|
if (Devices[dev].Inputs[inp].PlayerChannel1 != 0 || Devices[dev].Inputs[inp].PlayerChannel2 != 0)
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks, if there is a mic-configuration
|
/// Checks, if there is a mic-configuration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="player">Player-Number</param>
|
/// <param name="player">Player-Number</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool IsMicConfig(int player)
|
public static bool IsMicConfig(int player)
|
||||||
{
|
{
|
||||||
SRecordDevice[] Devices = CSound.RecordGetDevices();
|
SRecordDevice[] Devices = CSound.RecordGetDevices();
|
||||||
if (Devices == null)
|
if (Devices == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (Devices != null)
|
if (Devices != null)
|
||||||
{
|
{
|
||||||
for (int dev = 0; dev < Devices.Length; dev++)
|
for (int dev = 0; dev < Devices.Length; dev++)
|
||||||
{
|
{
|
||||||
for (int inp = 0; inp < Devices[dev].Inputs.Count; inp++)
|
for (int inp = 0; inp < Devices[dev].Inputs.Count; inp++)
|
||||||
{
|
{
|
||||||
if (Devices[dev].Inputs[inp].PlayerChannel1 == player || Devices[dev].Inputs[inp].PlayerChannel2 == player)
|
if (Devices[dev].Inputs[inp].PlayerChannel1 == player || Devices[dev].Inputs[inp].PlayerChannel2 == player)
|
||||||
{
|
return true;
|
||||||
return true;
|
}
|
||||||
}
|
}
|
||||||
}
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Try to assign automatically player 1 and 2 to usb-mics.
|
/// Try to assign automatically player 1 and 2 to usb-mics.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool AutoAssignMics()
|
public static bool AutoAssignMics()
|
||||||
{
|
{
|
||||||
//Look for (usb-)mic
|
//Look for (usb-)mic
|
||||||
//SRecordDevice[] Devices = new SRecordDevice[CSound.RecordGetDevices().Length];
|
//SRecordDevice[] Devices = new SRecordDevice[CSound.RecordGetDevices().Length];
|
||||||
SRecordDevice[] Devices = CSound.RecordGetDevices();
|
SRecordDevice[] Devices = CSound.RecordGetDevices();
|
||||||
if (Devices == null)
|
if (Devices == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (int dev = 0; dev < Devices.Length; dev++)
|
for (int dev = 0; dev < Devices.Length; dev++)
|
||||||
{
|
{
|
||||||
@@ -652,7 +628,6 @@ namespace Vocaluxe.Base
|
|||||||
//Check if there are inputs.
|
//Check if there are inputs.
|
||||||
if (Devices[dev].Inputs.Count >= 1)
|
if (Devices[dev].Inputs.Count >= 1)
|
||||||
{
|
{
|
||||||
bool micfound = false;
|
|
||||||
//Check if there is one or more channels
|
//Check if there is one or more channels
|
||||||
if (Devices[dev].Inputs[0].Channels >= 1)
|
if (Devices[dev].Inputs[0].Channels >= 1)
|
||||||
{
|
{
|
||||||
@@ -662,21 +637,16 @@ namespace Vocaluxe.Base
|
|||||||
MicConfig[0].InputName = Devices[dev].Inputs[0].Name;
|
MicConfig[0].InputName = Devices[dev].Inputs[0].Name;
|
||||||
MicConfig[0].Channel = 1;
|
MicConfig[0].Channel = 1;
|
||||||
|
|
||||||
micfound = true;
|
if (Devices[dev].Inputs[0].Channels >= 2)
|
||||||
}
|
{
|
||||||
if (Devices[dev].Inputs[0].Channels >= 2)
|
//Set this device to player 2
|
||||||
{
|
MicConfig[1].DeviceName = Devices[dev].Name;
|
||||||
//Set this device to player 2
|
MicConfig[1].DeviceDriver = Devices[dev].Driver;
|
||||||
MicConfig[1].DeviceName = Devices[dev].Name;
|
MicConfig[1].InputName = Devices[dev].Inputs[0].Name;
|
||||||
MicConfig[1].DeviceDriver = Devices[dev].Driver;
|
MicConfig[1].Channel = 2;
|
||||||
MicConfig[1].InputName = Devices[dev].Inputs[0].Name;
|
|
||||||
MicConfig[1].Channel = 2;
|
|
||||||
|
|
||||||
micfound = true;
|
return true;
|
||||||
}
|
}
|
||||||
if (micfound)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -686,7 +656,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load command-line-parameters and their values to lists.
|
/// Load command-line-parameters and their values to lists.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="args">Parameters</param>
|
/// <param name="args">Parameters</param>
|
||||||
public static void LoadCommandLineParams(string[] args)
|
public static void LoadCommandLineParams(string[] args)
|
||||||
@@ -696,9 +666,7 @@ namespace Vocaluxe.Base
|
|||||||
//Complete argument string
|
//Complete argument string
|
||||||
string arguments = string.Empty;
|
string arguments = string.Empty;
|
||||||
foreach (string arg in args)
|
foreach (string arg in args)
|
||||||
{
|
|
||||||
arguments += arg + " ";
|
arguments += arg + " ";
|
||||||
}
|
|
||||||
|
|
||||||
args = SpliterParam.Split(arguments);
|
args = SpliterParam.Split(arguments);
|
||||||
|
|
||||||
@@ -714,10 +682,9 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
switch (parts.Length)
|
switch (parts.Length)
|
||||||
{
|
{
|
||||||
|
//Only found a parameter
|
||||||
//Only found a parameter
|
|
||||||
case 1:
|
case 1:
|
||||||
if (!Regex.IsMatch(parts[0], @"\s") && parts[0] != string.Empty)
|
if (!Regex.IsMatch(parts[0], @"\s") && parts[0].Length > 0)
|
||||||
{
|
{
|
||||||
//Add parameter
|
//Add parameter
|
||||||
_Params.Add(parts[0]);
|
_Params.Add(parts[0]);
|
||||||
@@ -728,9 +695,9 @@ namespace Vocaluxe.Base
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
//Found parameter and value
|
//Found parameter and value
|
||||||
case 2:
|
case 2:
|
||||||
if (!Regex.IsMatch(parts[0], @"\s") && parts[0] != string.Empty)
|
if (!Regex.IsMatch(parts[0], @"\s") && parts[0].Length > 0)
|
||||||
{
|
{
|
||||||
//Add parameter
|
//Add parameter
|
||||||
_Params.Add(parts[0]);
|
_Params.Add(parts[0]);
|
||||||
@@ -744,10 +711,10 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Apply command-line-parameters (before reading config.xml)
|
/// Apply command-line-parameters (before reading config.xml)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void UseCommandLineParamsBefore(){
|
public static void UseCommandLineParamsBefore()
|
||||||
|
{
|
||||||
//Check each parameter
|
//Check each parameter
|
||||||
for (int i = 0; i < _Params.Count; i++)
|
for (int i = 0; i < _Params.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -763,17 +730,13 @@ namespace Vocaluxe.Base
|
|||||||
case "configfile":
|
case "configfile":
|
||||||
//Check if value is valid
|
//Check if value is valid
|
||||||
if (CheckFile(value))
|
if (CheckFile(value))
|
||||||
{
|
|
||||||
CSettings.sFileConfig = value;
|
CSettings.sFileConfig = value;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "scorefile":
|
case "scorefile":
|
||||||
//Check if value is valid
|
//Check if value is valid
|
||||||
if (CheckFile(value))
|
if (CheckFile(value))
|
||||||
{
|
|
||||||
CSettings.sFileHighscoreDB = value;
|
CSettings.sFileHighscoreDB = value;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "playlistfolder":
|
case "playlistfolder":
|
||||||
@@ -790,11 +753,10 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Apply command-line-parameters (after reading config.xml)
|
/// Apply command-line-parameters (after reading config.xml)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void UseCommandLineParamsAfter()
|
public static void UseCommandLineParamsAfter()
|
||||||
{
|
{
|
||||||
|
|
||||||
//Check each parameter
|
//Check each parameter
|
||||||
for (int i = 0; i < _Params.Count; i++)
|
for (int i = 0; i < _Params.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -808,17 +770,6 @@ namespace Vocaluxe.Base
|
|||||||
switch (param)
|
switch (param)
|
||||||
{
|
{
|
||||||
case "songfolder":
|
case "songfolder":
|
||||||
//Check if SongFolders from config.xml are saved
|
|
||||||
if (SongFolderOld.Count == 0)
|
|
||||||
{
|
|
||||||
SongFolderOld.Clear();
|
|
||||||
SongFolderOld.AddRange(SongFolder);
|
|
||||||
SongFolder.Clear();
|
|
||||||
}
|
|
||||||
//Add parameter-value to SongFolder
|
|
||||||
SongFolder.Add(value);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "songpath":
|
case "songpath":
|
||||||
//Check if SongFolders from config.xml are saved
|
//Check if SongFolders from config.xml are saved
|
||||||
if (SongFolderOld.Count == 0)
|
if (SongFolderOld.Count == 0)
|
||||||
@@ -836,25 +787,21 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
private static bool CheckFile(string value)
|
private static bool CheckFile(string value)
|
||||||
{
|
{
|
||||||
char [] chars = Path.GetInvalidPathChars();
|
char[] chars = Path.GetInvalidPathChars();
|
||||||
for(int i=0; i<chars.Length; i++){
|
for (int i = 0; i < chars.Length; i++)
|
||||||
if(value.Contains(chars[i].ToString())){
|
{
|
||||||
|
if (value.Contains(chars[i].ToString()))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (Path.GetFileName(value) == string.Empty)
|
if (Path.GetFileName(value).Length == 0)
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
if (!Path.HasExtension(value))
|
if (!Path.HasExtension(value))
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Use saved players from config now for games
|
/// Use saved players from config now for games
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void UsePlayers()
|
public static void UsePlayers()
|
||||||
{
|
{
|
||||||
@@ -862,7 +809,7 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
for (int j = 0; j < CSettings.MaxNumPlayer; j++)
|
for (int j = 0; j < CSettings.MaxNumPlayer; j++)
|
||||||
{
|
{
|
||||||
if (Players[j] != string.Empty)
|
if (Players[j].Length > 0)
|
||||||
{
|
{
|
||||||
if (Path.GetFileName(CProfiles.Profiles[i].ProfileFile) == Players[j] && CProfiles.Profiles[i].Active == EOffOn.TR_CONFIG_ON)
|
if (Path.GetFileName(CProfiles.Profiles[i].ProfileFile) == Players[j] && CProfiles.Profiles[i].Active == EOffOn.TR_CONFIG_ON)
|
||||||
{
|
{
|
||||||
@@ -873,9 +820,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
CGame.Player[j].ProfileID = -1;
|
CGame.Player[j].ProfileID = -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+23
-38
@@ -3,9 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
using Vocaluxe.Lib.Draw;
|
|
||||||
using Vocaluxe.Menu;
|
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
@@ -25,12 +23,12 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
abstract class CCover
|
abstract class CCover
|
||||||
{
|
{
|
||||||
private static XmlWriterSettings _settings = new XmlWriterSettings();
|
private static readonly XmlWriterSettings _settings = new XmlWriterSettings();
|
||||||
private static List<SCover> _Cover = new List<SCover>();
|
private static readonly List<SCover> _Cover = new List<SCover>();
|
||||||
private static List<SCoverTheme> _CoverThemes = new List<SCoverTheme>();
|
private static readonly List<SCoverTheme> _CoverThemes = new List<SCoverTheme>();
|
||||||
private static STexture _NoCover = new STexture(-1);
|
private static STexture _NoCover = new STexture(-1);
|
||||||
|
|
||||||
private static Object _MutexCover = new Object();
|
private static readonly Object _MutexCover = new Object();
|
||||||
|
|
||||||
public static STexture NoCover
|
public static STexture NoCover
|
||||||
{
|
{
|
||||||
@@ -48,7 +46,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns an array of CoverThemes-Names
|
/// Returns an array of CoverThemes-Names
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string[] CoverThemes
|
public static string[] CoverThemes
|
||||||
{
|
{
|
||||||
@@ -56,16 +54,14 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
List<string> CoverThemes = new List<string>();
|
List<string> CoverThemes = new List<string>();
|
||||||
for (int i = 0; i < _CoverThemes.Count; i++)
|
for (int i = 0; i < _CoverThemes.Count; i++)
|
||||||
{
|
|
||||||
CoverThemes.Add(_CoverThemes[i].Name);
|
CoverThemes.Add(_CoverThemes[i].Name);
|
||||||
}
|
|
||||||
|
|
||||||
return CoverThemes.ToArray();
|
return CoverThemes.ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the current cover theme index
|
/// Returns the current cover theme index
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetCoverThemeIndex()
|
public static int GetCoverThemeIndex()
|
||||||
@@ -73,16 +69,14 @@ namespace Vocaluxe.Base
|
|||||||
for (int i = 0; i < _CoverThemes.Count; i++)
|
for (int i = 0; i < _CoverThemes.Count; i++)
|
||||||
{
|
{
|
||||||
if (_CoverThemes[i].Name == CConfig.CoverTheme)
|
if (_CoverThemes[i].Name == CConfig.CoverTheme)
|
||||||
{
|
|
||||||
return i;
|
return i;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a STexture for a given cover name. Returns "NoCover" if the cover does not exist.
|
/// Returns a STexture for a given cover name. Returns "NoCover" if the cover does not exist.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static STexture Cover(string Name)
|
public static STexture Cover(string Name)
|
||||||
{
|
{
|
||||||
STexture cov = _NoCover;
|
STexture cov = _NoCover;
|
||||||
@@ -101,7 +95,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if a cover with the given name exists.
|
/// Returns true if a cover with the given name exists.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool CoverExists(string Name)
|
public static bool CoverExists(string Name)
|
||||||
{
|
{
|
||||||
@@ -111,16 +105,14 @@ namespace Vocaluxe.Base
|
|||||||
foreach (SCover cover in _Cover)
|
foreach (SCover cover in _Cover)
|
||||||
{
|
{
|
||||||
if (cover.Name == Name)
|
if (cover.Name == Name)
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reloads cover to use a new cover-theme
|
/// Reloads cover to use a new cover-theme
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void ReloadCover()
|
public static void ReloadCover()
|
||||||
{
|
{
|
||||||
@@ -134,7 +126,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a SCoverTheme by cover-theme-name
|
/// Returns a SCoverTheme by cover-theme-name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static SCoverTheme CoverTheme(string coverThemeName)
|
private static SCoverTheme CoverTheme(string coverThemeName)
|
||||||
{
|
{
|
||||||
@@ -151,7 +143,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads all cover-themes to list.
|
/// Loads all cover-themes to list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static void LoadCoverThemes()
|
private static void LoadCoverThemes()
|
||||||
{
|
{
|
||||||
@@ -162,7 +154,7 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
foreach (string file in files)
|
foreach (string file in files)
|
||||||
{
|
{
|
||||||
CXMLReader xmlReader = CXMLReader.OpenFile((Path.Combine(path, file)));
|
CXMLReader xmlReader = CXMLReader.OpenFile(Path.Combine(path, file));
|
||||||
|
|
||||||
if (xmlReader != null)
|
if (xmlReader != null)
|
||||||
{
|
{
|
||||||
@@ -171,7 +163,7 @@ namespace Vocaluxe.Base
|
|||||||
xmlReader.GetValue("//root/Info/Name", ref coverTheme.Name, String.Empty);
|
xmlReader.GetValue("//root/Info/Name", ref coverTheme.Name, String.Empty);
|
||||||
xmlReader.GetValue("//root/Info/Folder", ref coverTheme.Folder, String.Empty);
|
xmlReader.GetValue("//root/Info/Folder", ref coverTheme.Folder, String.Empty);
|
||||||
|
|
||||||
if (coverTheme.Folder != String.Empty && coverTheme.Name != String.Empty)
|
if (coverTheme.Folder.Length > 0 && coverTheme.Name.Length > 0)
|
||||||
{
|
{
|
||||||
coverTheme.File = file;
|
coverTheme.File = file;
|
||||||
|
|
||||||
@@ -181,19 +173,18 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads all cover which are defined in the cover config file.
|
/// Loads all cover which are defined in the cover config file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static void LoadCover(string coverThemeName)
|
private static void LoadCover(string coverThemeName)
|
||||||
{
|
{
|
||||||
SCoverTheme coverTheme = new SCoverTheme();
|
SCoverTheme coverTheme = new SCoverTheme();
|
||||||
|
|
||||||
coverTheme = CoverTheme(coverThemeName);
|
coverTheme = CoverTheme(coverThemeName);
|
||||||
|
|
||||||
if (coverTheme.Name != String.Empty)
|
if (coverTheme.Name.Length > 0)
|
||||||
{
|
{
|
||||||
|
CXMLReader xmlReader = CXMLReader.OpenFile(Path.Combine(CSettings.sFolderCover, coverTheme.File));
|
||||||
CXMLReader xmlReader = CXMLReader.OpenFile((Path.Combine(CSettings.sFolderCover, coverTheme.File)));
|
|
||||||
|
|
||||||
if (xmlReader != null)
|
if (xmlReader != null)
|
||||||
{
|
{
|
||||||
@@ -209,22 +200,16 @@ namespace Vocaluxe.Base
|
|||||||
xmlReader.GetValue("//root/Cover/" + cover[i] + "/Name", ref name, String.Empty);
|
xmlReader.GetValue("//root/Cover/" + cover[i] + "/Name", ref name, String.Empty);
|
||||||
xmlReader.GetValue("//root/Cover/" + cover[i] + "/Path", ref value, String.Empty);
|
xmlReader.GetValue("//root/Cover/" + cover[i] + "/Path", ref value, String.Empty);
|
||||||
sk.Name = name;
|
sk.Name = name;
|
||||||
sk.Value = Path.Combine(coverTheme.Folder,value);
|
sk.Value = Path.Combine(coverTheme.Folder, value);
|
||||||
if (File.Exists(Path.Combine(CSettings.sFolderCover, Path.Combine(coverTheme.Folder, value))))
|
if (File.Exists(Path.Combine(CSettings.sFolderCover, Path.Combine(coverTheme.Folder, value))))
|
||||||
{
|
|
||||||
sk.Texture = CDraw.AddTexture(Path.Combine(CSettings.sFolderCover, Path.Combine(coverTheme.Folder, value)));
|
sk.Texture = CDraw.AddTexture(Path.Combine(CSettings.sFolderCover, Path.Combine(coverTheme.Folder, value)));
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
sk.Texture = _NoCover;
|
sk.Texture = _NoCover;
|
||||||
}
|
|
||||||
|
|
||||||
_Cover.Add(sk);
|
_Cover.Add(sk);
|
||||||
|
|
||||||
if (sk.Name == "NoCover")
|
if (sk.Name == "NoCover")
|
||||||
{
|
|
||||||
_NoCover = sk.Texture;
|
_NoCover = sk.Texture;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -248,7 +233,7 @@ namespace Vocaluxe.Base
|
|||||||
string value = String.Empty;
|
string value = String.Empty;
|
||||||
|
|
||||||
sk.Name = name;
|
sk.Name = name;
|
||||||
sk.Value = Path.Combine(coverTheme.Folder,Path.GetFileName(file));
|
sk.Value = Path.Combine(coverTheme.Folder, Path.GetFileName(file));
|
||||||
|
|
||||||
sk.Texture = CDraw.AddTexture(Path.Combine(CSettings.sFolderCover, sk.Value));
|
sk.Texture = CDraw.AddTexture(Path.Combine(CSettings.sFolderCover, sk.Value));
|
||||||
|
|
||||||
|
|||||||
+994
-1200
File diff suppressed because it is too large.
Load diff
+29
-29
@@ -1,19 +1,15 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Text;
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
using Vocaluxe.Base;
|
|
||||||
using Vocaluxe.Lib.Draw;
|
using Vocaluxe.Lib.Draw;
|
||||||
using Vocaluxe.Menu;
|
using VocaluxeLib.Menu;
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
static class CDraw
|
static class CDraw
|
||||||
{
|
{
|
||||||
private static IDraw _Draw = null;
|
private static IDraw _Draw;
|
||||||
|
|
||||||
public static void InitDraw()
|
public static void InitDraw()
|
||||||
{
|
{
|
||||||
@@ -31,9 +27,9 @@ namespace Vocaluxe.Base
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
MessageBox.Show(e.Message + " - Error in initializing of OpenGL. Please check whether" +
|
MessageBox.Show(e.Message + " - Error in initializing of OpenGL. Please check whether" +
|
||||||
" your graphic card drivers are up to date.");
|
" your graphic card drivers are up to date.");
|
||||||
CLog.LogError(e.Message + " - Error in initializing of OpenGL. Please check whether" +
|
CLog.LogError(e.Message + " - Error in initializing of OpenGL. Please check whether" +
|
||||||
" your graphic card drivers are up to date.");
|
" your graphic card drivers are up to date.");
|
||||||
Environment.Exit(Environment.ExitCode);
|
Environment.Exit(Environment.ExitCode);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -47,12 +43,12 @@ namespace Vocaluxe.Base
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
MessageBox.Show(e.Message + " - Error in initializing of Direct3D. Please check if " +
|
MessageBox.Show(e.Message + " - Error in initializing of Direct3D. Please check if " +
|
||||||
"your DirectX redistributables and graphic card drivers are up to date. You can " +
|
"your DirectX redistributables and graphic card drivers are up to date. You can " +
|
||||||
"download the DirectX runtimes at http://www.microsoft.com/download/en/details.aspx?id=8109",
|
"download the DirectX runtimes at http://www.microsoft.com/download/en/details.aspx?id=8109",
|
||||||
CSettings.sProgramName, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
CSettings.sProgramName, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
CLog.LogError(e.Message + " - Error in initializing of Direct3D. Please check if " +
|
CLog.LogError(e.Message + " - Error in initializing of Direct3D. Please check if " +
|
||||||
"your DirectX redistributables and graphic card drivers are up to date. You can " +
|
"your DirectX redistributables and graphic card drivers are up to date. You can " +
|
||||||
"download the DirectX runtimes at http://www.microsoft.com/download/en/details.aspx?id=8109");
|
"download the DirectX runtimes at http://www.microsoft.com/download/en/details.aspx?id=8109");
|
||||||
Environment.Exit(Environment.ExitCode);
|
Environment.Exit(Environment.ExitCode);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -73,7 +69,9 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static bool Unload()
|
public static bool Unload()
|
||||||
{
|
{
|
||||||
return _Draw.Unload();
|
bool result = _Draw.Unload();
|
||||||
|
_Draw = null;
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int GetScreenWidth()
|
public static int GetScreenWidth()
|
||||||
@@ -163,23 +161,25 @@ namespace Vocaluxe.Base
|
|||||||
if (MaxSize == 0)
|
if (MaxSize == 0)
|
||||||
return _Draw.AddTexture(TexturePath);
|
return _Draw.AddTexture(TexturePath);
|
||||||
|
|
||||||
if (!System.IO.File.Exists(TexturePath))
|
if (!File.Exists(TexturePath))
|
||||||
return new STexture(-1);
|
return new STexture(-1);
|
||||||
|
|
||||||
Bitmap origin = new Bitmap(TexturePath);
|
using (Bitmap origin = new Bitmap(TexturePath))
|
||||||
int w = MaxSize;
|
{
|
||||||
int h = MaxSize;
|
int w = MaxSize;
|
||||||
|
int h = MaxSize;
|
||||||
|
|
||||||
if (origin.Width >= origin.Height && origin.Width > w)
|
if (origin.Width >= origin.Height && origin.Width > w)
|
||||||
h = (int)Math.Round((float)w / origin.Width * origin.Height);
|
h = (int)Math.Round((float)w / origin.Width * origin.Height);
|
||||||
else if (origin.Height > origin.Width && origin.Height > h)
|
else if (origin.Height > origin.Width && origin.Height > h)
|
||||||
w = (int)Math.Round((float)h / origin.Height * origin.Width);
|
w = (int)Math.Round((float)h / origin.Height * origin.Width);
|
||||||
|
|
||||||
Bitmap bmp = new Bitmap(origin, w, h);
|
using (Bitmap bmp = new Bitmap(origin, w, h))
|
||||||
STexture tex = _Draw.AddTexture(bmp);
|
{
|
||||||
bmp.Dispose();
|
STexture tex = _Draw.AddTexture(bmp);
|
||||||
origin.Dispose();
|
return tex;
|
||||||
return tex;
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static STexture AddTexture(int W, int H, IntPtr Data)
|
public static STexture AddTexture(int W, int H, IntPtr Data)
|
||||||
@@ -257,7 +257,7 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
CHelper.SetRect(bounds, ref rect, rect.Width / rect.Height, Aspect);
|
CHelper.SetRect(bounds, ref rect, rect.Width / rect.Height, Aspect);
|
||||||
DrawTexture(Texture, new SRectF(rect.X, rect.Y, rect.Width, rect.Height, StaticBounds.Rect.Z),
|
DrawTexture(Texture, new SRectF(rect.X, rect.Y, rect.Width, rect.Height, StaticBounds.Rect.Z),
|
||||||
Texture.color, new SRectF(bounds.X, bounds.Y, bounds.Width, bounds.Height, 0f), false);
|
Texture.color, new SRectF(bounds.X, bounds.Y, bounds.Width, bounds.Height, 0f), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DrawTextureReflection(STexture Texture, SRectF rect, SColorF color, SRectF bounds, float space, float height)
|
public static void DrawTextureReflection(STexture Texture, SRectF rect, SColorF color, SRectF bounds, float space, float height)
|
||||||
|
|||||||
+229
-422
@@ -1,23 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
using System.Drawing.Imaging;
|
|
||||||
using System.Drawing.Text;
|
using System.Drawing.Text;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
using Vocaluxe.Lib.Draw;
|
|
||||||
using Vocaluxe.Menu;
|
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
class CGlyph
|
class CGlyph
|
||||||
{
|
{
|
||||||
private float _SIZEh = 50f;
|
private readonly float _SIZEh = 50f;
|
||||||
public float SIZEh
|
public float SIZEh
|
||||||
{
|
{
|
||||||
get { return _SIZEh; }
|
get { return _SIZEh; }
|
||||||
@@ -36,67 +32,69 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
float factor = GetFactor(chr, flags);
|
float factor = GetFactor(chr, flags);
|
||||||
CFonts.Height = SIZEh * factor;
|
CFonts.Height = SIZEh * factor;
|
||||||
Bitmap bmp = new Bitmap(10, 10);
|
Font fo;
|
||||||
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(bmp);
|
Size sizeB;
|
||||||
|
SizeF size;
|
||||||
|
using (Graphics g = Graphics.FromHwnd(IntPtr.Zero))
|
||||||
|
{
|
||||||
|
fo = CFonts.GetFont();
|
||||||
|
sizeB = TextRenderer.MeasureText(g, chr.ToString(), fo, new Size(int.MaxValue, int.MaxValue), flags);
|
||||||
|
|
||||||
Font fo = CFonts.GetFont();
|
size = g.MeasureString(chr.ToString(), fo);
|
||||||
Size sizeB = TextRenderer.MeasureText(g, chr.ToString(), fo, new Size(int.MaxValue, int.MaxValue), flags);
|
}
|
||||||
|
|
||||||
SizeF size = g.MeasureString(chr.ToString(), fo);
|
using (Bitmap bmp = new Bitmap((int)(sizeB.Width * 2f), sizeB.Height))
|
||||||
|
{
|
||||||
|
Graphics g = Graphics.FromImage(bmp);
|
||||||
|
g.Clear(Color.Transparent);
|
||||||
|
|
||||||
g.Dispose();
|
g.SmoothingMode = SmoothingMode.AntiAlias;
|
||||||
bmp.Dispose();
|
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||||
|
g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
|
||||||
|
CFonts.Height = SIZEh;
|
||||||
|
fo = CFonts.GetFont();
|
||||||
|
|
||||||
bmp = new Bitmap((int)(sizeB.Width * 2f), sizeB.Height);
|
PointF point = new PointF(
|
||||||
g = System.Drawing.Graphics.FromImage(bmp);
|
|
||||||
g.Clear(System.Drawing.Color.Transparent);
|
|
||||||
|
|
||||||
g.SmoothingMode = SmoothingMode.AntiAlias;
|
|
||||||
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
|
||||||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
|
|
||||||
CFonts.Height = SIZEh;
|
|
||||||
fo = CFonts.GetFont();
|
|
||||||
|
|
||||||
PointF point = new PointF(
|
|
||||||
outline * Math.Abs(sizeB.Width - size.Width) + (sizeB.Width - size.Width) / 2f + SIZEh / 5f,
|
outline * Math.Abs(sizeB.Width - size.Width) + (sizeB.Width - size.Width) / 2f + SIZEh / 5f,
|
||||||
(sizeB.Height - size.Height - (size.Height + SIZEh/4f) * (1f - factor)) / 2f);
|
(sizeB.Height - size.Height - (size.Height + SIZEh / 4f) * (1f - factor)) / 2f);
|
||||||
|
|
||||||
GraphicsPath path = new GraphicsPath();
|
using (GraphicsPath path = new GraphicsPath())
|
||||||
path.AddString(
|
{
|
||||||
chr.ToString(),
|
path.AddString(
|
||||||
fo.FontFamily,
|
chr.ToString(),
|
||||||
(int)fo.Style,
|
fo.FontFamily,
|
||||||
SIZEh,
|
(int)fo.Style,
|
||||||
point,
|
SIZEh,
|
||||||
new StringFormat());
|
point,
|
||||||
|
new StringFormat());
|
||||||
|
|
||||||
Pen pen = new Pen(
|
using (Pen pen = new Pen(
|
||||||
Color.FromArgb(
|
Color.FromArgb(
|
||||||
(int)CFonts.OutlineColor.A * 255,
|
(int)CFonts.OutlineColor.A * 255,
|
||||||
(int)CFonts.OutlineColor.R * 255,
|
(int)CFonts.OutlineColor.R * 255,
|
||||||
(int)CFonts.OutlineColor.G * 255,
|
(int)CFonts.OutlineColor.G * 255,
|
||||||
(int)CFonts.OutlineColor.B * 255),
|
(int)CFonts.OutlineColor.B * 255),
|
||||||
SIZEh * outline);
|
SIZEh * outline))
|
||||||
|
{
|
||||||
|
pen.LineJoin = LineJoin.Round;
|
||||||
|
g.DrawPath(pen, path);
|
||||||
|
g.FillPath(Brushes.White, path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pen.LineJoin = LineJoin.Round;
|
/*
|
||||||
g.DrawPath(pen, path);
|
g.DrawString(
|
||||||
g.FillPath(Brushes.White, path);
|
chr.ToString(),
|
||||||
|
fo,
|
||||||
/*
|
Brushes.White,
|
||||||
g.DrawString(
|
point);
|
||||||
chr.ToString(),
|
* */
|
||||||
fo,
|
Texture = CDraw.AddTexture(bmp);
|
||||||
Brushes.White,
|
//bmp.Save("test.png", ImageFormat.Png);
|
||||||
point);
|
Chr = chr;
|
||||||
* */
|
width = (int)((1f + outline / 2f) * sizeB.Width * Texture.width / factor / bmp.Width);
|
||||||
|
g.Dispose();
|
||||||
Texture = CDraw.AddTexture(bmp);
|
}
|
||||||
//bmp.Save("test.png", ImageFormat.Png);
|
|
||||||
Chr = chr;
|
|
||||||
width = (int)((1f + outline / 2f) * sizeB.Width * Texture.width/factor / bmp.Width);
|
|
||||||
|
|
||||||
bmp.Dispose();
|
|
||||||
g.Dispose();
|
|
||||||
fo.Dispose();
|
fo.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,63 +112,40 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
CFonts.Style = EStyle.Normal;
|
CFonts.Style = EStyle.Normal;
|
||||||
CFonts.Height = SIZEh;
|
CFonts.Height = SIZEh;
|
||||||
Bitmap bmp = new Bitmap(10, 10);
|
float h_style, h_normal;
|
||||||
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(bmp);
|
using (Graphics g = Graphics.FromHwnd(IntPtr.Zero))
|
||||||
|
{
|
||||||
Font fo = CFonts.GetFont();
|
Font fo = CFonts.GetFont();
|
||||||
Size sizeB = TextRenderer.MeasureText(g, chr.ToString(), fo, new Size(int.MaxValue, int.MaxValue), flags);
|
Size sizeB = TextRenderer.MeasureText(g, chr.ToString(), fo, new Size(int.MaxValue, int.MaxValue), flags);
|
||||||
//SizeF size = g.MeasureString(chr.ToString(), fo);
|
//SizeF size = g.MeasureString(chr.ToString(), fo);
|
||||||
float h_normal = sizeB.Height;
|
h_normal = sizeB.Height;
|
||||||
|
}
|
||||||
CFonts.Style = style;
|
CFonts.Style = style;
|
||||||
bmp = new Bitmap(10, 10);
|
using (Graphics g = Graphics.FromHwnd(IntPtr.Zero))
|
||||||
g = System.Drawing.Graphics.FromImage(bmp);
|
{
|
||||||
|
Font fo = CFonts.GetFont();
|
||||||
fo = CFonts.GetFont();
|
Size sizeB = TextRenderer.MeasureText(g, chr.ToString(), fo, new Size(int.MaxValue, int.MaxValue), flags);
|
||||||
sizeB = TextRenderer.MeasureText(g, chr.ToString(), fo, new Size(int.MaxValue, int.MaxValue), flags);
|
//size = g.MeasureString(chr.ToString(), fo);
|
||||||
//size = g.MeasureString(chr.ToString(), fo);
|
h_style = sizeB.Height;
|
||||||
float h_style = sizeB.Height;
|
}
|
||||||
g.Dispose();
|
|
||||||
return h_normal / h_style;
|
return h_normal / h_style;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class CFont
|
class CFont : IDisposable
|
||||||
{
|
{
|
||||||
private List<CGlyph> _Glyphs;
|
private readonly Dictionary<char, CGlyph> _Glyphs;
|
||||||
private Hashtable _htGlyphs;
|
|
||||||
private PrivateFontCollection fonts;
|
private PrivateFontCollection fonts;
|
||||||
private FontFamily family;
|
private FontFamily family;
|
||||||
private float SIZEh;
|
private readonly float SIZEh;
|
||||||
|
|
||||||
public string FilePath;
|
public string FilePath;
|
||||||
|
|
||||||
|
|
||||||
public Font GetFont()
|
|
||||||
{
|
|
||||||
if (fonts == null)
|
|
||||||
{
|
|
||||||
fonts = new PrivateFontCollection();
|
|
||||||
try
|
|
||||||
{
|
|
||||||
fonts.AddFontFile(FilePath);
|
|
||||||
family = fonts.Families[0];
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
CLog.LogError("Error opening font file " + FilePath + ": " + e.Message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return new Font(family, CFonts.Height, CFonts.GetFontStyle(), GraphicsUnit.Pixel);
|
|
||||||
}
|
|
||||||
|
|
||||||
public CFont(string File)
|
public CFont(string File)
|
||||||
{
|
{
|
||||||
FilePath = File;
|
FilePath = File;
|
||||||
|
|
||||||
_Glyphs = new List<CGlyph>();
|
_Glyphs = new Dictionary<char, CGlyph>();
|
||||||
_htGlyphs = new Hashtable();
|
|
||||||
|
|
||||||
switch (CConfig.TextureQuality)
|
switch (CConfig.TextureQuality)
|
||||||
{
|
{
|
||||||
@@ -195,79 +170,109 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DrawGlyph(char chr, float x, float y, float h, float z, SColorF color)
|
public Font GetFont()
|
||||||
{
|
{
|
||||||
AddGlyph(chr);
|
if (fonts == null)
|
||||||
|
{
|
||||||
|
fonts = new PrivateFontCollection();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
fonts.AddFontFile(FilePath);
|
||||||
|
family = fonts.Families[0];
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
CLog.LogError("Error opening font file " + FilePath + ": " + e.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CFonts.Height = h;
|
return new Font(family, CFonts.Height, CFonts.GetFontStyle(), GraphicsUnit.Pixel);
|
||||||
CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]];
|
|
||||||
float factor = h / glyph.Texture.height;
|
|
||||||
float d = glyph.SIZEh / 5f * factor;
|
|
||||||
CDraw.DrawTexture(glyph.Texture, new SRectF(x - d, y, glyph.Texture.width * factor, h, z), color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DrawGlyphReflection(char chr, float x, float y, float h, float z, SColorF color, float rspace, float rheight)
|
public void DrawGlyph(char chr, float x, float y, float h, float z, SColorF color)
|
||||||
{
|
{
|
||||||
AddGlyph(chr);
|
STexture texture;
|
||||||
|
SRectF rect;
|
||||||
CFonts.Height = h;
|
_GetGlyphTextureAndRect(chr, x, y, z, h, out texture, out rect);
|
||||||
CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]];
|
CDraw.DrawTexture(texture, rect, color);
|
||||||
float factor = h / glyph.Texture.height;
|
|
||||||
float d = glyph.SIZEh / 5f * factor;
|
|
||||||
SRectF rect = new SRectF(x - d, y, glyph.Texture.width * factor, h, z);
|
|
||||||
CDraw.DrawTextureReflection(glyph.Texture, rect, color, rect, rspace, rheight);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DrawGlyph(char chr, float x, float y, float h, float z, SColorF color, float begin, float end)
|
public void DrawGlyph(char chr, float x, float y, float h, float z, SColorF color, float begin, float end)
|
||||||
|
{
|
||||||
|
STexture texture;
|
||||||
|
SRectF rect;
|
||||||
|
_GetGlyphTextureAndRect(chr, x, y, z, h, out texture, out rect);
|
||||||
|
CDraw.DrawTexture(texture, rect, color, begin, end);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DrawGlyphReflection(char chr, float x, float y, float h, float z, SColorF color, float rspace, float rheight)
|
||||||
|
{
|
||||||
|
STexture texture;
|
||||||
|
SRectF rect;
|
||||||
|
_GetGlyphTextureAndRect(chr, x, y, z, h, out texture, out rect);
|
||||||
|
CDraw.DrawTextureReflection(texture, rect, color, rect, rspace, rheight);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void _GetGlyphTextureAndRect(char chr, float x, float y, float z, float h, out STexture texture, out SRectF rect)
|
||||||
{
|
{
|
||||||
AddGlyph(chr);
|
AddGlyph(chr);
|
||||||
|
|
||||||
CFonts.Height = h;
|
CFonts.Height = h;
|
||||||
CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]];
|
CGlyph glyph = _Glyphs[chr];
|
||||||
float factor = h / glyph.Texture.height;
|
texture = glyph.Texture;
|
||||||
float width = glyph.Texture.width * factor;
|
float factor = h / texture.height;
|
||||||
|
float width = texture.width * factor;
|
||||||
float d = glyph.SIZEh / 5f * factor;
|
float d = glyph.SIZEh / 5f * factor;
|
||||||
|
rect = new SRectF(x - d, y, width, h, z);
|
||||||
CDraw.DrawTexture(glyph.Texture, new SRectF(x - d, y, width, h, z), color, begin, end);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public float GetWidth(char chr)
|
public float GetWidth(char chr)
|
||||||
{
|
{
|
||||||
AddGlyph(chr);
|
AddGlyph(chr);
|
||||||
|
|
||||||
CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]];
|
CGlyph glyph = _Glyphs[chr];
|
||||||
float factor = CFonts.Height / glyph.Texture.height;
|
float factor = CFonts.Height / glyph.Texture.height;
|
||||||
return glyph.width * factor;
|
return glyph.width * factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float GetHeight(char chr)
|
public float GetHeight(char chr)
|
||||||
{
|
{
|
||||||
|
return CFonts.Height;
|
||||||
|
/*WTF???
|
||||||
AddGlyph(chr);
|
AddGlyph(chr);
|
||||||
|
|
||||||
CGlyph glyph = _Glyphs[(int)_htGlyphs[chr]];
|
CGlyph glyph = _Glyphs[chr];
|
||||||
float factor = CFonts.Height / glyph.Texture.height;
|
float factor = CFonts.Height / glyph.Texture.height;
|
||||||
return glyph.Texture.height * factor;
|
return glyph.Texture.height * factor;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddGlyph(char chr)
|
public void AddGlyph(char chr)
|
||||||
{
|
{
|
||||||
if (_htGlyphs.ContainsKey(chr))
|
if (_Glyphs.ContainsKey(chr))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float h = CFonts.Height;
|
float h = CFonts.Height;
|
||||||
_Glyphs.Add(new CGlyph(chr, SIZEh));
|
_Glyphs.Add(chr, new CGlyph(chr, SIZEh));
|
||||||
_htGlyphs.Add(chr, _Glyphs.Count - 1);
|
|
||||||
CFonts.Height = h;
|
CFonts.Height = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UnloadAllGlyphs()
|
public void UnloadAllGlyphs()
|
||||||
{
|
{
|
||||||
foreach (CGlyph glyph in _Glyphs)
|
foreach (CGlyph glyph in _Glyphs.Values)
|
||||||
{
|
|
||||||
glyph.UnloadTexture();
|
glyph.UnloadTexture();
|
||||||
}
|
|
||||||
_Glyphs.Clear();
|
_Glyphs.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
if (fonts != null)
|
||||||
|
{
|
||||||
|
fonts.Dispose();
|
||||||
|
fonts = null;
|
||||||
|
UnloadAllGlyphs();
|
||||||
|
}
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SFont
|
struct SFont
|
||||||
@@ -284,7 +289,7 @@ namespace Vocaluxe.Base
|
|||||||
public string FileBold;
|
public string FileBold;
|
||||||
public string FileBoldItalic;
|
public string FileBoldItalic;
|
||||||
|
|
||||||
public float Outline; //0..1, 0=not outline 1=100% outline
|
public float Outline; //0..1, 0=not outline 1=100% outline
|
||||||
public SColorF OutlineColor;
|
public SColorF OutlineColor;
|
||||||
|
|
||||||
public CFont Normal;
|
public CFont Normal;
|
||||||
@@ -295,14 +300,13 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
static class CFonts
|
static class CFonts
|
||||||
{
|
{
|
||||||
private static XmlWriterSettings _settings = new XmlWriterSettings();
|
private static readonly XmlWriterSettings _settings = new XmlWriterSettings();
|
||||||
|
|
||||||
private static List<SFont> _Fonts;
|
private static List<SFont> _Fonts;
|
||||||
private static int _CurrentFont;
|
private static int _CurrentFont;
|
||||||
private static float _Height = 1f;
|
private static float _Height = 1f;
|
||||||
|
|
||||||
public static int PartyModeID
|
public static int PartyModeID { get; set; }
|
||||||
{ get; set; }
|
|
||||||
|
|
||||||
public static EStyle Style = EStyle.Normal;
|
public static EStyle Style = EStyle.Normal;
|
||||||
|
|
||||||
@@ -354,7 +358,7 @@ namespace Vocaluxe.Base
|
|||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
_settings.Indent = true;
|
_settings.Indent = true;
|
||||||
_settings.Encoding = System.Text.Encoding.UTF8;
|
_settings.Encoding = Encoding.UTF8;
|
||||||
_settings.ConformanceLevel = ConformanceLevel.Document;
|
_settings.ConformanceLevel = ConformanceLevel.Document;
|
||||||
|
|
||||||
_CurrentFont = 0;
|
_CurrentFont = 0;
|
||||||
@@ -371,22 +375,25 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Font GetFont()
|
public static Font GetFont()
|
||||||
|
{
|
||||||
|
return _GetCurrentFont().GetFont();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static CFont _GetCurrentFont()
|
||||||
{
|
{
|
||||||
switch (Style)
|
switch (Style)
|
||||||
{
|
{
|
||||||
case EStyle.Normal:
|
case EStyle.Normal:
|
||||||
return _Fonts[_CurrentFont].Normal.GetFont();
|
return _Fonts[_CurrentFont].Normal;
|
||||||
case EStyle.Italic:
|
case EStyle.Italic:
|
||||||
return _Fonts[_CurrentFont].Italic.GetFont();
|
return _Fonts[_CurrentFont].Italic;
|
||||||
case EStyle.Bold:
|
case EStyle.Bold:
|
||||||
return _Fonts[_CurrentFont].Bold.GetFont();
|
return _Fonts[_CurrentFont].Bold;
|
||||||
case EStyle.BoldItalic:
|
case EStyle.BoldItalic:
|
||||||
return _Fonts[_CurrentFont].BoldItalic.GetFont();
|
return _Fonts[_CurrentFont].BoldItalic;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
// should never happen...
|
//Just in case...
|
||||||
return null;
|
return _Fonts[_CurrentFont].Normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region DrawText
|
#region DrawText
|
||||||
@@ -405,35 +412,17 @@ namespace Vocaluxe.Base
|
|||||||
if (h <= 0f)
|
if (h <= 0f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Text == String.Empty)
|
if (Text.Length == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Height = h;
|
Height = h;
|
||||||
|
CFont Font = _GetCurrentFont();
|
||||||
|
|
||||||
float dx = x;
|
float dx = x;
|
||||||
foreach (char chr in Text)
|
foreach (char chr in Text)
|
||||||
{
|
{
|
||||||
switch (Style)
|
Font.DrawGlyph(chr, dx, y, Height, z, color);
|
||||||
{
|
dx += Font.GetWidth(chr);
|
||||||
case EStyle.Normal:
|
|
||||||
_Fonts[_CurrentFont].Normal.DrawGlyph(chr, dx, y, Height, z, color);
|
|
||||||
dx += _Fonts[_CurrentFont].Normal.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Italic:
|
|
||||||
_Fonts[_CurrentFont].Italic.DrawGlyph(chr, dx, y, Height, z, color);
|
|
||||||
dx += _Fonts[_CurrentFont].Italic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Bold:
|
|
||||||
_Fonts[_CurrentFont].Bold.DrawGlyph(chr, dx, y, Height, z, color);
|
|
||||||
dx += _Fonts[_CurrentFont].Bold.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.BoldItalic:
|
|
||||||
_Fonts[_CurrentFont].BoldItalic.DrawGlyph(chr, dx, y, Height, z, color);
|
|
||||||
dx += _Fonts[_CurrentFont].BoldItalic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -442,35 +431,17 @@ namespace Vocaluxe.Base
|
|||||||
if (h <= 0f)
|
if (h <= 0f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Text == String.Empty)
|
if (Text.Length == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Height = h;
|
Height = h;
|
||||||
|
CFont Font = _GetCurrentFont();
|
||||||
|
|
||||||
float dx = x;
|
float dx = x;
|
||||||
foreach (char chr in Text)
|
foreach (char chr in Text)
|
||||||
{
|
{
|
||||||
switch (Style)
|
Font.DrawGlyphReflection(chr, dx, y, Height, z, color, rspace, rheight);
|
||||||
{
|
dx += Font.GetWidth(chr);
|
||||||
case EStyle.Normal:
|
|
||||||
_Fonts[_CurrentFont].Normal.DrawGlyphReflection(chr, dx, y, Height, z, color, rspace, rheight);
|
|
||||||
dx += _Fonts[_CurrentFont].Normal.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Italic:
|
|
||||||
_Fonts[_CurrentFont].Italic.DrawGlyphReflection(chr, dx, y, Height, z, color, rspace, rheight);
|
|
||||||
dx += _Fonts[_CurrentFont].Italic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Bold:
|
|
||||||
_Fonts[_CurrentFont].Bold.DrawGlyphReflection(chr, dx, y, Height, z, color, rspace, rheight);
|
|
||||||
dx += _Fonts[_CurrentFont].Bold.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.BoldItalic:
|
|
||||||
_Fonts[_CurrentFont].BoldItalic.DrawGlyphReflection(chr, dx, y, Height, z, color, rspace, rheight);
|
|
||||||
dx += _Fonts[_CurrentFont].BoldItalic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -479,7 +450,7 @@ namespace Vocaluxe.Base
|
|||||||
if (h <= 0f)
|
if (h <= 0f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Text == String.Empty)
|
if (Text.Length == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Height = h;
|
Height = h;
|
||||||
@@ -492,56 +463,23 @@ namespace Vocaluxe.Base
|
|||||||
float x1 = x + w * begin;
|
float x1 = x + w * begin;
|
||||||
float x2 = x + w * end;
|
float x2 = x + w * end;
|
||||||
|
|
||||||
|
CFont Font = _GetCurrentFont();
|
||||||
|
|
||||||
foreach (char chr in Text)
|
foreach (char chr in Text)
|
||||||
{
|
{
|
||||||
float w2 = 0f;
|
float w2 = Font.GetWidth(chr);
|
||||||
switch (Style)
|
|
||||||
{
|
|
||||||
case EStyle.Normal:
|
|
||||||
w2 = _Fonts[_CurrentFont].Normal.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Italic:
|
|
||||||
w2 = _Fonts[_CurrentFont].Italic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Bold:
|
|
||||||
w2 = _Fonts[_CurrentFont].Bold.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.BoldItalic:
|
|
||||||
w2 = _Fonts[_CurrentFont].BoldItalic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
float b = (x1 - dx) / w2;
|
float b = (x1 - dx) / w2;
|
||||||
if (b < 0f)
|
|
||||||
b = 0f;
|
|
||||||
|
|
||||||
if (b < 1f)
|
if (b < 1f)
|
||||||
{
|
{
|
||||||
|
if (b < 0f)
|
||||||
|
b = 0f;
|
||||||
float e = (x2 - dx) / w2;
|
float e = (x2 - dx) / w2;
|
||||||
if (e > 1f)
|
|
||||||
e = 1f;
|
|
||||||
|
|
||||||
if (e > 0f)
|
if (e > 0f)
|
||||||
{
|
{
|
||||||
switch (Style)
|
if (e > 1f)
|
||||||
{
|
e = 1f;
|
||||||
case EStyle.Normal:
|
Font.DrawGlyph(chr, dx, y, Height, z, color, b, e);
|
||||||
_Fonts[_CurrentFont].Normal.DrawGlyph(chr, dx, y, Height, z, color, b, e);
|
|
||||||
break;
|
|
||||||
case EStyle.Italic:
|
|
||||||
_Fonts[_CurrentFont].Italic.DrawGlyph(chr, dx, y, Height, z, color, b, e);
|
|
||||||
break;
|
|
||||||
case EStyle.Bold:
|
|
||||||
_Fonts[_CurrentFont].Bold.DrawGlyph(chr, dx, y, Height, z, color, b, e);
|
|
||||||
break;
|
|
||||||
case EStyle.BoldItalic:
|
|
||||||
_Fonts[_CurrentFont].BoldItalic.DrawGlyph(chr, dx, y, Height, z, color, b, e);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dx += w2;
|
dx += w2;
|
||||||
@@ -566,8 +504,8 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetFont(string FontName)
|
public static void SetFont(string FontName)
|
||||||
{
|
{
|
||||||
int Index = -1;
|
int Index = -1;
|
||||||
|
|
||||||
if (PartyModeID != -1)
|
if (PartyModeID != -1)
|
||||||
@@ -597,7 +535,7 @@ namespace Vocaluxe.Base
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RectangleF GetTextBounds(CText text)
|
public static RectangleF GetTextBounds(CText text)
|
||||||
{
|
{
|
||||||
@@ -607,32 +545,16 @@ namespace Vocaluxe.Base
|
|||||||
public static RectangleF GetTextBounds(CText text, float height)
|
public static RectangleF GetTextBounds(CText text, float height)
|
||||||
{
|
{
|
||||||
Height = height;
|
Height = height;
|
||||||
return new RectangleF(text.X, text.Y, GetTextWidth(CLanguage.Translate(text.Text, text.TranslationID)), GetTextHeight(CLanguage.Translate(text.Text, text.TranslationID)));
|
return new RectangleF(text.X, text.Y, GetTextWidth(CLanguage.Translate(text.Text, text.TranslationID)),
|
||||||
|
GetTextHeight(CLanguage.Translate(text.Text, text.TranslationID)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static float GetTextWidth(string text)
|
public static float GetTextWidth(string text)
|
||||||
{
|
{
|
||||||
float dx = 0;
|
float dx = 0;
|
||||||
|
CFont Font = _GetCurrentFont();
|
||||||
foreach (char chr in text)
|
foreach (char chr in text)
|
||||||
{
|
dx += Font.GetWidth(chr);
|
||||||
switch (Style)
|
|
||||||
{
|
|
||||||
case EStyle.Normal:
|
|
||||||
dx += _Fonts[_CurrentFont].Normal.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Italic:
|
|
||||||
dx += _Fonts[_CurrentFont].Italic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Bold:
|
|
||||||
dx += _Fonts[_CurrentFont].Bold.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.BoldItalic:
|
|
||||||
dx += _Fonts[_CurrentFont].BoldItalic.GetWidth(chr);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return dx;
|
return dx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -640,102 +562,17 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
//return TextRenderer.MeasureText(text, GetFont()).Height;
|
//return TextRenderer.MeasureText(text, GetFont()).Height;
|
||||||
float h = 0f;
|
float h = 0f;
|
||||||
|
CFont Font = _GetCurrentFont();
|
||||||
foreach (char chr in text)
|
foreach (char chr in text)
|
||||||
{
|
{
|
||||||
float hh = 0f;
|
float hh = Font.GetHeight(chr);
|
||||||
switch (Style)
|
if (hh > h)
|
||||||
{
|
|
||||||
case EStyle.Normal:
|
|
||||||
hh = _Fonts[_CurrentFont].Normal.GetHeight(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Italic:
|
|
||||||
hh = _Fonts[_CurrentFont].Italic.GetHeight(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.Bold:
|
|
||||||
hh = _Fonts[_CurrentFont].Bold.GetHeight(chr);
|
|
||||||
break;
|
|
||||||
case EStyle.BoldItalic:
|
|
||||||
hh = _Fonts[_CurrentFont].BoldItalic.GetHeight(chr);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hh>h)
|
|
||||||
h = hh;
|
h = hh;
|
||||||
}
|
}
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
private static void _LoadFontFiles(CXMLReader xmlReader, string FontFolder, string ThemeName = "", int PartyModeId = -1)
|
||||||
/// Load default fonts
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
private static bool LoadFontList()
|
|
||||||
{
|
|
||||||
CXMLReader xmlReader = CXMLReader.OpenFile(System.IO.Path.Combine(CSettings.sFolderFonts, CSettings.sFileFonts));
|
|
||||||
if (xmlReader == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
_Fonts.Clear();
|
|
||||||
|
|
||||||
string value = string.Empty;
|
|
||||||
int i = 1;
|
|
||||||
while (xmlReader.GetValue("//root/Font" + i.ToString() + "/Folder", ref value, value))
|
|
||||||
{
|
|
||||||
string Folder = value;
|
|
||||||
|
|
||||||
xmlReader.GetValue("//root/Font" + i.ToString() + "/FileNormal", ref value, value);
|
|
||||||
value = Path.Combine(Directory.GetCurrentDirectory(),
|
|
||||||
Path.Combine(CSettings.sFolderFonts, Path.Combine(Folder, value)));
|
|
||||||
CFont f = new CFont(value);
|
|
||||||
SFont sf = new SFont();
|
|
||||||
sf.Normal = f;
|
|
||||||
|
|
||||||
string name = String.Empty;
|
|
||||||
xmlReader.GetValue("//root/Font" + i.ToString() + "/Name", ref name, value);
|
|
||||||
sf.Name = name;
|
|
||||||
sf.IsThemeFont = false;
|
|
||||||
sf.ThemeName = String.Empty;
|
|
||||||
sf.PartyModeID = -1;
|
|
||||||
|
|
||||||
xmlReader.GetValue("//root/Font" + i.ToString() + "/FileItalic", ref value, value);
|
|
||||||
value = Path.Combine(Directory.GetCurrentDirectory(),
|
|
||||||
Path.Combine(CSettings.sFolderFonts, Path.Combine(Folder, value)));
|
|
||||||
f = new CFont(value);
|
|
||||||
sf.Italic = f;
|
|
||||||
|
|
||||||
xmlReader.GetValue("//root/Font" + i.ToString() + "/FileBold", ref value, value);
|
|
||||||
value = Path.Combine(Directory.GetCurrentDirectory(),
|
|
||||||
Path.Combine(CSettings.sFolderFonts, Path.Combine(Folder, value)));
|
|
||||||
f = new CFont(value);
|
|
||||||
sf.Bold = f;
|
|
||||||
|
|
||||||
xmlReader.GetValue("//root/Font" + i.ToString() + "/FileBoldItalic", ref value, value);
|
|
||||||
value = Path.Combine(Directory.GetCurrentDirectory(),
|
|
||||||
Path.Combine(CSettings.sFolderFonts, Path.Combine(Folder, value)));
|
|
||||||
f = new CFont(value);
|
|
||||||
sf.BoldItalic = f;
|
|
||||||
|
|
||||||
sf.Outline = 0f;
|
|
||||||
xmlReader.TryGetFloatValue("//root/Font" + i.ToString() + "/Outline", ref sf.Outline);
|
|
||||||
|
|
||||||
sf.OutlineColor = new SColorF(0f, 0f, 0f, 1f);
|
|
||||||
xmlReader.TryGetFloatValue("//root/Font" + i.ToString() + "/OutlineColorR", ref sf.OutlineColor.R);
|
|
||||||
xmlReader.TryGetFloatValue("//root/Font" + i.ToString() + "/OutlineColorG", ref sf.OutlineColor.G);
|
|
||||||
xmlReader.TryGetFloatValue("//root/Font" + i.ToString() + "/OutlineColorB", ref sf.OutlineColor.B);
|
|
||||||
xmlReader.TryGetFloatValue("//root/Font" + i.ToString() + "/OutlineColorA", ref sf.OutlineColor.A);
|
|
||||||
|
|
||||||
_Fonts.Add(sf);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Loads theme fonts from skin file
|
|
||||||
/// </summary>
|
|
||||||
public static void LoadThemeFonts(string ThemeName, string FontFolder, CXMLReader xmlReader)
|
|
||||||
{
|
{
|
||||||
string value = string.Empty;
|
string value = string.Empty;
|
||||||
int i = 1;
|
int i = 1;
|
||||||
@@ -743,23 +580,22 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
SFont sf = new SFont();
|
SFont sf = new SFont();
|
||||||
sf.Folder = value;
|
sf.Folder = value;
|
||||||
|
sf.IsThemeFont = ThemeName.Length > 0;
|
||||||
sf.IsThemeFont = true;
|
|
||||||
sf.ThemeName = ThemeName;
|
sf.ThemeName = ThemeName;
|
||||||
sf.PartyModeID = -1;
|
sf.PartyModeID = PartyModeId;
|
||||||
|
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
|
string name = String.Empty;
|
||||||
|
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/Name", ref name, value);
|
||||||
|
sf.Name = name;
|
||||||
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileNormal", ref value, value);
|
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileNormal", ref value, value);
|
||||||
sf.FileNormal = value;
|
sf.FileNormal = value;
|
||||||
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
||||||
CFont f = new CFont(value);
|
CFont f = new CFont(value);
|
||||||
sf.Normal = f;
|
sf.Normal = f;
|
||||||
|
|
||||||
string name = String.Empty;
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/Name", ref name, value);
|
|
||||||
sf.Name = name;
|
|
||||||
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileItalic", ref value, value);
|
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileItalic", ref value, value);
|
||||||
sf.FileItalic = value;
|
sf.FileItalic = value;
|
||||||
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
||||||
@@ -791,11 +627,52 @@ namespace Vocaluxe.Base
|
|||||||
_Fonts.Add(sf);
|
_Fonts.Add(sf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CLog.LogError("Error loading theme fonts for theme \"" + ThemeName + "\": Error in Font" + i.ToString());
|
string fontTypes;
|
||||||
|
if (PartyModeId >= 0)
|
||||||
|
fontTypes = "theme fonts for party mode";
|
||||||
|
else if (ThemeName.Length > 0)
|
||||||
|
fontTypes = "theme fonts for theme \"" + ThemeName + "\"";
|
||||||
|
else
|
||||||
|
fontTypes = "basic fonts";
|
||||||
|
CLog.LogError("Error loading " + fontTypes + ": Error in Font" + i.ToString());
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Load default fonts
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
private static bool LoadFontList()
|
||||||
|
{
|
||||||
|
CXMLReader xmlReader = CXMLReader.OpenFile(Path.Combine(CSettings.sFolderFonts, CSettings.sFileFonts));
|
||||||
|
if (xmlReader == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
_Fonts.Clear();
|
||||||
|
|
||||||
|
_LoadFontFiles(xmlReader, Path.Combine(Directory.GetCurrentDirectory(), CSettings.sFolderFonts));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Loads theme fonts from skin file
|
||||||
|
/// </summary>
|
||||||
|
public static void LoadThemeFonts(string ThemeName, string FontFolder, CXMLReader xmlReader)
|
||||||
|
{
|
||||||
|
_LoadFontFiles(xmlReader, FontFolder, ThemeName);
|
||||||
|
CLog.StartBenchmark(1, "BuildGlyphs");
|
||||||
|
BuildGlyphs();
|
||||||
|
CLog.StopBenchmark(1, "BuildGlyphs");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Loads party mode fonts from skin file
|
||||||
|
/// </summary>
|
||||||
|
public static void LoadPartyModeFonts(int PartyModeID, string FontFolder, CXMLReader xmlReader)
|
||||||
|
{
|
||||||
|
_LoadFontFiles(xmlReader, FontFolder, "", PartyModeID);
|
||||||
CLog.StartBenchmark(1, "BuildGlyphs");
|
CLog.StartBenchmark(1, "BuildGlyphs");
|
||||||
BuildGlyphs();
|
BuildGlyphs();
|
||||||
CLog.StopBenchmark(1, "BuildGlyphs");
|
CLog.StopBenchmark(1, "BuildGlyphs");
|
||||||
@@ -867,78 +744,9 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Loads party mode fonts from skin file
|
|
||||||
/// </summary>
|
|
||||||
public static void LoadPartyModeFonts(int PartyModeID, string FontFolder, CXMLReader xmlReader)
|
|
||||||
{
|
|
||||||
string value = string.Empty;
|
|
||||||
int i = 1;
|
|
||||||
while (xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/Folder", ref value, value))
|
|
||||||
{
|
|
||||||
SFont sf = new SFont();
|
|
||||||
sf.Folder = value;
|
|
||||||
|
|
||||||
sf.IsThemeFont = false;
|
|
||||||
sf.ThemeName = String.Empty;
|
|
||||||
sf.PartyModeID = PartyModeID;
|
|
||||||
|
|
||||||
bool ok = true;
|
|
||||||
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileNormal", ref value, value);
|
|
||||||
sf.FileNormal = value;
|
|
||||||
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
|
||||||
CFont f = new CFont(value);
|
|
||||||
sf.Normal = f;
|
|
||||||
|
|
||||||
string name = String.Empty;
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/Name", ref name, value);
|
|
||||||
sf.Name = name;
|
|
||||||
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileItalic", ref value, value);
|
|
||||||
sf.FileItalic = value;
|
|
||||||
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
|
||||||
f = new CFont(value);
|
|
||||||
sf.Italic = f;
|
|
||||||
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileBold", ref value, value);
|
|
||||||
sf.FileBold = value;
|
|
||||||
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
|
||||||
f = new CFont(value);
|
|
||||||
sf.Bold = f;
|
|
||||||
|
|
||||||
ok &= xmlReader.GetValue("//root/Fonts/Font" + i.ToString() + "/FileBoldItalic", ref value, value);
|
|
||||||
sf.FileBoldItalic = value;
|
|
||||||
value = Path.Combine(FontFolder, Path.Combine(sf.Folder, value));
|
|
||||||
f = new CFont(value);
|
|
||||||
sf.BoldItalic = f;
|
|
||||||
|
|
||||||
sf.Outline = 0f;
|
|
||||||
ok &= xmlReader.TryGetFloatValue("//root/Fonts/Font" + i.ToString() + "/Outline", ref sf.Outline);
|
|
||||||
|
|
||||||
sf.OutlineColor = new SColorF(0f, 0f, 0f, 1f);
|
|
||||||
ok &= xmlReader.TryGetFloatValue("//root/Fonts/Font" + i.ToString() + "/OutlineColorR", ref sf.OutlineColor.R);
|
|
||||||
ok &= xmlReader.TryGetFloatValue("//root/Fonts/Font" + i.ToString() + "/OutlineColorG", ref sf.OutlineColor.G);
|
|
||||||
ok &= xmlReader.TryGetFloatValue("//root/Fonts/Font" + i.ToString() + "/OutlineColorB", ref sf.OutlineColor.B);
|
|
||||||
ok &= xmlReader.TryGetFloatValue("//root/Fonts/Font" + i.ToString() + "/OutlineColorA", ref sf.OutlineColor.A);
|
|
||||||
|
|
||||||
if (ok)
|
|
||||||
_Fonts.Add(sf);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CLog.LogError("Error loading theme fonts for party mode from Folder \"" + FontFolder + "\": Error in Font" + i.ToString());
|
|
||||||
}
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
CLog.StartBenchmark(1, "BuildGlyphs");
|
|
||||||
BuildGlyphs();
|
|
||||||
CLog.StopBenchmark(1, "BuildGlyphs");
|
|
||||||
}
|
|
||||||
|
|
||||||
private static int GetFontIndex(string ThemeName, string FontName)
|
private static int GetFontIndex(string ThemeName, string FontName)
|
||||||
{
|
{
|
||||||
if (ThemeName == String.Empty || FontName == String.Empty)
|
if (ThemeName.Length == 0 || FontName.Length == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (int i = 0; i < _Fonts.Count; i++)
|
for (int i = 0; i < _Fonts.Count; i++)
|
||||||
@@ -952,7 +760,7 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
private static int GetFontIndexParty(int PartyModeID, string FontName)
|
private static int GetFontIndexParty(int PartyModeID, string FontName)
|
||||||
{
|
{
|
||||||
if (PartyModeID == -1 || FontName == String.Empty)
|
if (PartyModeID == -1 || FontName.Length == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (int i = 0; i < _Fonts.Count; i++)
|
for (int i = 0; i < _Fonts.Count; i++)
|
||||||
@@ -986,7 +794,6 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
Style = EStyle.Normal;
|
Style = EStyle.Normal;
|
||||||
SetFont("Normal");
|
SetFont("Normal");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+14
-35
@@ -1,14 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
using Vocaluxe.GameModes;
|
using Vocaluxe.GameModes;
|
||||||
using Vocaluxe.Lib.Draw;
|
using VocaluxeLib.Menu;
|
||||||
using Vocaluxe.Menu;
|
using VocaluxeLib.Menu.SingNotes;
|
||||||
using Vocaluxe.Menu.SingNotes;
|
using VocaluxeLib.Menu.SongMenu;
|
||||||
using Vocaluxe.Menu.SongMenu;
|
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
@@ -18,13 +13,13 @@ namespace Vocaluxe.Base
|
|||||||
private static SPlayer[] _Player;
|
private static SPlayer[] _Player;
|
||||||
private static int _NumPlayer = CConfig.NumPlayer;
|
private static int _NumPlayer = CConfig.NumPlayer;
|
||||||
|
|
||||||
private static float _Beat = 0f;
|
private static float _Beat;
|
||||||
private static int _CurrentBeat = 0;
|
private static int _CurrentBeat;
|
||||||
|
|
||||||
private static float _MidBeatD = 0f;
|
private static float _MidBeatD;
|
||||||
private static int _CurrentBeatD = 0;
|
private static int _CurrentBeatD;
|
||||||
private static int _OldBeatD = 0;
|
private static int _OldBeatD;
|
||||||
private static Random _Rand = new Random();
|
private static readonly Random _Rand = new Random();
|
||||||
|
|
||||||
public static Random Rand
|
public static Random Rand
|
||||||
{
|
{
|
||||||
@@ -221,20 +216,17 @@ namespace Vocaluxe.Base
|
|||||||
_Beat = b;
|
_Beat = b;
|
||||||
_CurrentBeat = (int)Math.Floor(_Beat);
|
_CurrentBeat = (int)Math.Floor(_Beat);
|
||||||
|
|
||||||
_MidBeatD = -0.5f + GetBeatFromTime(Time, song.BPM, song.Gap + CConfig.MicDelay/1000f);
|
_MidBeatD = -0.5f + GetBeatFromTime(Time, song.BPM, song.Gap + CConfig.MicDelay / 1000f);
|
||||||
_CurrentBeatD = (int)Math.Floor(_MidBeatD);
|
_CurrentBeatD = (int)Math.Floor(_MidBeatD);
|
||||||
|
|
||||||
for (int p = 0; p < _NumPlayer; p++)
|
for (int p = 0; p < _NumPlayer; p++)
|
||||||
{
|
|
||||||
CSound.AnalyzeBuffer(p);
|
CSound.AnalyzeBuffer(p);
|
||||||
}
|
|
||||||
|
|
||||||
if (_OldBeatD >= _CurrentBeatD)
|
if (_OldBeatD >= _CurrentBeatD)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (int p = 0; p < _NumPlayer; p++)
|
for (int p = 0; p < _NumPlayer; p++)
|
||||||
{
|
{
|
||||||
|
|
||||||
for (int beat = _OldBeatD + 1; beat <= _CurrentBeatD; beat++)
|
for (int beat = _OldBeatD + 1; beat <= _CurrentBeatD; beat++)
|
||||||
{
|
{
|
||||||
if ((_GameMode.GetCurrentGameMode() == EGameMode.TR_GAMEMODE_MEDLEY && song.Medley.EndBeat == beat) ||
|
if ((_GameMode.GetCurrentGameMode() == EGameMode.TR_GAMEMODE_MEDLEY && song.Medley.EndBeat == beat) ||
|
||||||
@@ -261,9 +253,7 @@ namespace Vocaluxe.Base
|
|||||||
_Player[p].CurrentLine = Line;
|
_Player[p].CurrentLine = Line;
|
||||||
|
|
||||||
while (_Player[p].SingLine.Count <= Line)
|
while (_Player[p].SingLine.Count <= Line)
|
||||||
{
|
|
||||||
_Player[p].SingLine.Add(new CLine());
|
_Player[p].SingLine.Add(new CLine());
|
||||||
}
|
|
||||||
|
|
||||||
CNote[] notes = lines[Line].Notes;
|
CNote[] notes = lines[Line].Notes;
|
||||||
int Note = -1;
|
int Note = -1;
|
||||||
@@ -304,12 +294,13 @@ namespace Vocaluxe.Base
|
|||||||
TonePlayer = Tone;
|
TonePlayer = Tone;
|
||||||
|
|
||||||
_Player[p].NoteDiff = Math.Abs(Tone - TonePlayer);
|
_Player[p].NoteDiff = Math.Abs(Tone - TonePlayer);
|
||||||
bool Hit=_Player[p].NoteDiff <= (2 - (int)_Player[p].Difficulty);
|
bool Hit = _Player[p].NoteDiff <= (2 - (int)_Player[p].Difficulty);
|
||||||
if (Hit)
|
if (Hit)
|
||||||
{
|
{
|
||||||
// valid
|
// valid
|
||||||
//CSound.RecordSetTone(p, Tone);
|
//CSound.RecordSetTone(p, Tone);
|
||||||
double points = (CSettings.MaxScore - CSettings.LinebonusScore) * (double)notes[Note].PointsForBeat / (double)song.Notes.GetLines(_Player[p].LineNr).Points;
|
double points = (CSettings.MaxScore - CSettings.LinebonusScore) * (double)notes[Note].PointsForBeat /
|
||||||
|
song.Notes.GetLines(_Player[p].LineNr).Points;
|
||||||
if (notes[Note].NoteType == ENoteType.Golden)
|
if (notes[Note].NoteType == ENoteType.Golden)
|
||||||
_Player[p].PointsGoldenNotes += points;
|
_Player[p].PointsGoldenNotes += points;
|
||||||
|
|
||||||
@@ -322,14 +313,10 @@ namespace Vocaluxe.Base
|
|||||||
if (notes[Note].StartBeat == beat || nt.EndBeat + 1 != beat || nt.Tone != Tone || !nt.Hit)
|
if (notes[Note].StartBeat == beat || nt.EndBeat + 1 != beat || nt.Tone != Tone || !nt.Hit)
|
||||||
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, Tone, String.Empty, true, notes[Note].NoteType));
|
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, Tone, String.Empty, true, notes[Note].NoteType));
|
||||||
else
|
else
|
||||||
{
|
|
||||||
_Player[p].SingLine[Line].IncLastNoteLength();
|
_Player[p].SingLine[Line].IncLastNoteLength();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, Tone, String.Empty, true, notes[Note].NoteType));
|
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, Tone, String.Empty, true, notes[Note].NoteType));
|
||||||
}
|
|
||||||
|
|
||||||
_Player[p].SingLine[Line].LastNote.IsPerfect(notes[Note]);
|
_Player[p].SingLine[Line].LastNote.IsPerfect(notes[Note]);
|
||||||
_Player[p].SingLine[Line].IsPerfect(lines[Line]);
|
_Player[p].SingLine[Line].IsPerfect(lines[Line]);
|
||||||
@@ -340,19 +327,12 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
CNote nt = _Player[p].SingLine[Line].LastNote;
|
CNote nt = _Player[p].SingLine[Line].LastNote;
|
||||||
if (nt.Tone == TonePlayer && nt.EndBeat + 1 == beat && !nt.Hit)
|
if (nt.Tone == TonePlayer && nt.EndBeat + 1 == beat && !nt.Hit)
|
||||||
{
|
|
||||||
_Player[p].SingLine[Line].IncLastNoteLength();
|
_Player[p].SingLine[Line].IncLastNoteLength();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, TonePlayer, String.Empty, false, ENoteType.Freestyle));
|
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, TonePlayer, String.Empty, false, ENoteType.Freestyle));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, TonePlayer, String.Empty, false, ENoteType.Freestyle));
|
_Player[p].SingLine[Line].AddNote(new CNote(beat, 1, TonePlayer, String.Empty, false, ENoteType.Freestyle));
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -362,7 +342,7 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
if (notes[Note].EndBeat == beat && lines[Line].Points > 0f)
|
if (notes[Note].EndBeat == beat && lines[Line].Points > 0f)
|
||||||
{
|
{
|
||||||
double factor = (double)_Player[p].SingLine[Line].Points / (double)lines[Line].Points;
|
double factor = _Player[p].SingLine[Line].Points / (double)lines[Line].Points;
|
||||||
if (factor < 0.4)
|
if (factor < 0.4)
|
||||||
factor = 0.0;
|
factor = 0.0;
|
||||||
else if (factor > 0.9)
|
else if (factor > 0.9)
|
||||||
@@ -381,7 +361,6 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_OldBeatD = _CurrentBeatD;
|
_OldBeatD = _CurrentBeatD;
|
||||||
|
|||||||
+29
-57
@@ -2,12 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
|
||||||
using Vocaluxe.PartyModes;
|
|
||||||
using Vocaluxe.Screens;
|
using Vocaluxe.Screens;
|
||||||
|
using VocaluxeLib.Menu;
|
||||||
|
using VocaluxeLib.PartyModes;
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
{
|
{
|
||||||
@@ -21,14 +19,14 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
class CCursor
|
class CCursor
|
||||||
{
|
{
|
||||||
private Stopwatch _CursorFadingTimer;
|
private readonly Stopwatch _CursorFadingTimer;
|
||||||
private float _CursorTargetAlpha;
|
private float _CursorTargetAlpha;
|
||||||
private float _CursorStartAlpha;
|
private float _CursorStartAlpha;
|
||||||
private float _CursorFadingTime;
|
private float _CursorFadingTime;
|
||||||
private STexture _Cursor;
|
private STexture _Cursor;
|
||||||
private string _CursorName = String.Empty;
|
private readonly string _CursorName = String.Empty;
|
||||||
|
|
||||||
private Stopwatch _Movetimer;
|
private readonly Stopwatch _Movetimer;
|
||||||
|
|
||||||
public bool ShowCursor;
|
public bool ShowCursor;
|
||||||
public bool Visible = true;
|
public bool Visible = true;
|
||||||
@@ -162,7 +160,7 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
static class CGraphics
|
static class CGraphics
|
||||||
{
|
{
|
||||||
private static bool _Fading = false;
|
private static bool _Fading;
|
||||||
private static Stopwatch _FadingTimer;
|
private static Stopwatch _FadingTimer;
|
||||||
private static CCursor _Cursor;
|
private static CCursor _Cursor;
|
||||||
private static float _GlobalAlpha;
|
private static float _GlobalAlpha;
|
||||||
@@ -173,11 +171,11 @@ namespace Vocaluxe.Base
|
|||||||
private static EScreens _NextScreen;
|
private static EScreens _NextScreen;
|
||||||
private static EPopupScreens _CurrentPopupScreen;
|
private static EPopupScreens _CurrentPopupScreen;
|
||||||
|
|
||||||
private static List<IMenu> _Screens = new List<IMenu>();
|
private static readonly List<IMenu> _Screens = new List<IMenu>();
|
||||||
private static List<IMenu> _PopupScreens = new List<IMenu>();
|
private static readonly List<IMenu> _PopupScreens = new List<IMenu>();
|
||||||
|
|
||||||
private static Stopwatch _VolumePopupTimer;
|
private static Stopwatch _VolumePopupTimer;
|
||||||
private static bool CursorOverVolumeControl = false;
|
private static bool CursorOverVolumeControl;
|
||||||
|
|
||||||
public static float GlobalAlpha
|
public static float GlobalAlpha
|
||||||
{
|
{
|
||||||
@@ -251,58 +249,46 @@ namespace Vocaluxe.Base
|
|||||||
for (int i = 0; i < _Screens.Count; i++)
|
for (int i = 0; i < _Screens.Count; i++)
|
||||||
{
|
{
|
||||||
CLog.StartBenchmark(1, "Load Theme " + Enum.GetNames(typeof(EScreens))[i]);
|
CLog.StartBenchmark(1, "Load Theme " + Enum.GetNames(typeof(EScreens))[i]);
|
||||||
_Screens[i].Initialize();
|
_Screens[i].Init();
|
||||||
_Screens[i].LoadTheme(CTheme.GetThemeScreensPath(-1));
|
_Screens[i].LoadTheme(CTheme.GetThemeScreensPath(-1));
|
||||||
CLog.StopBenchmark(1, "Load Theme " + Enum.GetNames(typeof(EScreens))[i]);
|
CLog.StopBenchmark(1, "Load Theme " + Enum.GetNames(typeof(EScreens))[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < _PopupScreens.Count; i++)
|
for (int i = 0; i < _PopupScreens.Count; i++)
|
||||||
{
|
{
|
||||||
_PopupScreens[i].Initialize();
|
_PopupScreens[i].Init();
|
||||||
_PopupScreens[i].LoadTheme(CTheme.GetThemeScreensPath(-1));
|
_PopupScreens[i].LoadTheme(CTheme.GetThemeScreensPath(-1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ReloadTheme()
|
public static void ReloadTheme()
|
||||||
{
|
{
|
||||||
ReloadCursor();
|
ReloadCursor();
|
||||||
for (int i = 0; i < _Screens.Count; i++)
|
for (int i = 0; i < _Screens.Count; i++)
|
||||||
{
|
|
||||||
_Screens[i].ReloadTheme(CTheme.GetThemeScreensPath(-1));
|
_Screens[i].ReloadTheme(CTheme.GetThemeScreensPath(-1));
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < _PopupScreens.Count; i++)
|
for (int i = 0; i < _PopupScreens.Count; i++)
|
||||||
{
|
|
||||||
_PopupScreens[i].ReloadTheme(CTheme.GetThemeScreensPath(-1));
|
_PopupScreens[i].ReloadTheme(CTheme.GetThemeScreensPath(-1));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ReloadSkin()
|
public static void ReloadSkin()
|
||||||
{
|
{
|
||||||
ReloadCursor();
|
ReloadCursor();
|
||||||
for (int i = 0; i < _Screens.Count; i++)
|
for (int i = 0; i < _Screens.Count; i++)
|
||||||
{
|
|
||||||
_Screens[i].ReloadTextures();
|
_Screens[i].ReloadTextures();
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < _PopupScreens.Count; i++)
|
for (int i = 0; i < _PopupScreens.Count; i++)
|
||||||
{
|
_PopupScreens[i].ReloadTextures();
|
||||||
_PopupScreens[i].ReloadTextures();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SaveTheme()
|
public static void SaveTheme()
|
||||||
{
|
{
|
||||||
CTheme.SaveTheme();
|
CTheme.SaveTheme();
|
||||||
for (int i = 0; i < _Screens.Count; i++)
|
for (int i = 0; i < _Screens.Count; i++)
|
||||||
{
|
|
||||||
_Screens[i].SaveTheme();
|
_Screens[i].SaveTheme();
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < _PopupScreens.Count; i++)
|
for (int i = 0; i < _PopupScreens.Count; i++)
|
||||||
{
|
|
||||||
_PopupScreens[i].SaveTheme();
|
_PopupScreens[i].SaveTheme();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void InitFirstScreen()
|
public static void InitFirstScreen()
|
||||||
@@ -374,8 +360,8 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
float factor = (float)ms / FadeTime;
|
float factor = (float)ms / FadeTime;
|
||||||
|
|
||||||
_GlobalAlpha = 1f;// -factor / 100f;
|
_GlobalAlpha = 1f; // -factor / 100f;
|
||||||
_ZOffset = CSettings.zFar/2;
|
_ZOffset = CSettings.zFar / 2;
|
||||||
|
|
||||||
if (_CurrentScreen == EScreens.ScreenPartyDummy)
|
if (_CurrentScreen == EScreens.ScreenPartyDummy)
|
||||||
{
|
{
|
||||||
@@ -407,7 +393,7 @@ namespace Vocaluxe.Base
|
|||||||
GC.Collect();
|
GC.Collect();
|
||||||
_CurrentScreen = _NextScreen;
|
_CurrentScreen = _NextScreen;
|
||||||
_NextScreen = EScreens.ScreenNull;
|
_NextScreen = EScreens.ScreenNull;
|
||||||
if(CBackgroundMusic.Playing)
|
if (CBackgroundMusic.Playing)
|
||||||
CBackgroundMusic.Play();
|
CBackgroundMusic.Play();
|
||||||
_Screens[(int)_CurrentScreen].OnShowFinish();
|
_Screens[(int)_CurrentScreen].OnShowFinish();
|
||||||
_Screens[(int)_CurrentScreen].ProcessMouseMove(_Cursor.X, _Cursor.Y);
|
_Screens[(int)_CurrentScreen].ProcessMouseMove(_Cursor.X, _Cursor.Y);
|
||||||
@@ -440,9 +426,7 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < _PopupScreens.Count; i++)
|
for (int i = 0; i < _PopupScreens.Count; i++)
|
||||||
{
|
|
||||||
_PopupScreens[i].Draw();
|
_PopupScreens[i].Draw();
|
||||||
}
|
|
||||||
|
|
||||||
_Cursor.Draw();
|
_Cursor.Draw();
|
||||||
DrawDebugInfos();
|
DrawDebugInfos();
|
||||||
@@ -492,7 +476,6 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
_Cursor.ShowCursor = true;
|
_Cursor.ShowCursor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion public methods
|
#endregion public methods
|
||||||
|
|
||||||
#region private stuff
|
#region private stuff
|
||||||
@@ -504,8 +487,9 @@ namespace Vocaluxe.Base
|
|||||||
MouseEvent InputMouseEvent = new MouseEvent();
|
MouseEvent InputMouseEvent = new MouseEvent();
|
||||||
|
|
||||||
bool PopupPlayerControlAllowed = _CurrentScreen != EScreens.ScreenOptionsRecord && _CurrentScreen != EScreens.ScreenSing &&
|
bool PopupPlayerControlAllowed = _CurrentScreen != EScreens.ScreenOptionsRecord && _CurrentScreen != EScreens.ScreenSing &&
|
||||||
(_CurrentScreen != EScreens.ScreenSong || (_CurrentScreen == EScreens.ScreenSong && CSongs.Category == -1 && CConfig.Tabs ==EOffOn.TR_CONFIG_ON))
|
(_CurrentScreen != EScreens.ScreenSong ||
|
||||||
&& _CurrentScreen != EScreens.ScreenCredits && !CBackgroundMusic.Disabled;
|
(_CurrentScreen == EScreens.ScreenSong && !CSongs.IsInCategory && CConfig.Tabs == EOffOn.TR_CONFIG_ON))
|
||||||
|
&& _CurrentScreen != EScreens.ScreenCredits && !CBackgroundMusic.Disabled;
|
||||||
|
|
||||||
bool PopupVolumeControlAllowed = _CurrentScreen != EScreens.ScreenCredits && _CurrentScreen != EScreens.ScreenOptionsRecord;
|
bool PopupVolumeControlAllowed = _CurrentScreen != EScreens.ScreenCredits && _CurrentScreen != EScreens.ScreenOptionsRecord;
|
||||||
//Hide volume control for bg-music if bg-music is disabled
|
//Hide volume control for bg-music if bg-music is disabled
|
||||||
@@ -557,15 +541,16 @@ namespace Vocaluxe.Base
|
|||||||
int Diff = 0;
|
int Diff = 0;
|
||||||
if ((KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.Add || KeyEvent.Key == Keys.PageUp)) || (KeyEvent.Sender == ESender.WiiMote && KeyEvent.Key == Keys.Add))
|
if ((KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.Add || KeyEvent.Key == Keys.PageUp)) || (KeyEvent.Sender == ESender.WiiMote && KeyEvent.Key == Keys.Add))
|
||||||
Diff = 5;
|
Diff = 5;
|
||||||
else if ((KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.Subtract || KeyEvent.Key == Keys.PageDown)) || (KeyEvent.Sender == ESender.WiiMote && KeyEvent.Key == Keys.Subtract))
|
else if ((KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.Subtract || KeyEvent.Key == Keys.PageDown)) ||
|
||||||
|
(KeyEvent.Sender == ESender.WiiMote && KeyEvent.Key == Keys.Subtract))
|
||||||
Diff = -5;
|
Diff = -5;
|
||||||
|
|
||||||
if (Diff != 0)
|
if (Diff != 0)
|
||||||
{
|
{
|
||||||
switch (CGraphics.CurrentScreen)
|
switch (CurrentScreen)
|
||||||
{
|
{
|
||||||
case EScreens.ScreenSong:
|
case EScreens.ScreenSong:
|
||||||
if (CSongs.Category != -1)
|
if (CSongs.IsInCategory)
|
||||||
{
|
{
|
||||||
CConfig.PreviewMusicVolume += Diff;
|
CConfig.PreviewMusicVolume += Diff;
|
||||||
_Screens[(int)_CurrentScreen].ApplyVolume();
|
_Screens[(int)_CurrentScreen].ApplyVolume();
|
||||||
@@ -601,17 +586,11 @@ namespace Vocaluxe.Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.F1))
|
if (KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.F1))
|
||||||
{
|
|
||||||
CSettings.GameState = EGameState.EditTheme;
|
CSettings.GameState = EGameState.EditTheme;
|
||||||
}
|
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter))
|
||||||
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter ))
|
|
||||||
{
|
|
||||||
CSettings.bFullScreen = !CSettings.bFullScreen;
|
CSettings.bFullScreen = !CSettings.bFullScreen;
|
||||||
}
|
|
||||||
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P))
|
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P))
|
||||||
{
|
|
||||||
CDraw.MakeScreenShot();
|
CDraw.MakeScreenShot();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!_Fading)
|
if (!_Fading)
|
||||||
@@ -644,7 +623,7 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
UpdateMousePosition(MouseEvent.X, MouseEvent.Y);
|
UpdateMousePosition(MouseEvent.X, MouseEvent.Y);
|
||||||
|
|
||||||
bool isOverPopupPlayerControl = CHelper.IsInBounds(_PopupScreens[(int)EPopupScreens.PopupPlayerControl].GetScreenArea(), MouseEvent);
|
bool isOverPopupPlayerControl = CHelper.IsInBounds(_PopupScreens[(int)EPopupScreens.PopupPlayerControl].ScreenArea, MouseEvent);
|
||||||
if (PopupPlayerControlAllowed && isOverPopupPlayerControl)
|
if (PopupPlayerControlAllowed && isOverPopupPlayerControl)
|
||||||
{
|
{
|
||||||
if (_CurrentPopupScreen == EPopupScreens.NoPopup && CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON)
|
if (_CurrentPopupScreen == EPopupScreens.NoPopup && CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON)
|
||||||
@@ -654,7 +633,7 @@ namespace Vocaluxe.Base
|
|||||||
if (!isOverPopupPlayerControl && _CurrentPopupScreen == EPopupScreens.PopupPlayerControl)
|
if (!isOverPopupPlayerControl && _CurrentPopupScreen == EPopupScreens.PopupPlayerControl)
|
||||||
HidePopup(EPopupScreens.PopupPlayerControl);
|
HidePopup(EPopupScreens.PopupPlayerControl);
|
||||||
|
|
||||||
bool isOverPopupVolumeControl = CHelper.IsInBounds(_PopupScreens[(int)EPopupScreens.PopupVolumeControl].GetScreenArea(), MouseEvent);
|
bool isOverPopupVolumeControl = CHelper.IsInBounds(_PopupScreens[(int)EPopupScreens.PopupVolumeControl].ScreenArea, MouseEvent);
|
||||||
if (PopupVolumeControlAllowed && isOverPopupVolumeControl)
|
if (PopupVolumeControlAllowed && isOverPopupVolumeControl)
|
||||||
{
|
{
|
||||||
if (_CurrentPopupScreen == EPopupScreens.NoPopup)
|
if (_CurrentPopupScreen == EPopupScreens.NoPopup)
|
||||||
@@ -705,13 +684,9 @@ namespace Vocaluxe.Base
|
|||||||
_Screens[(int)_CurrentScreen].NextInteraction();
|
_Screens[(int)_CurrentScreen].NextInteraction();
|
||||||
}
|
}
|
||||||
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter))
|
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter))
|
||||||
{
|
|
||||||
CSettings.bFullScreen = !CSettings.bFullScreen;
|
CSettings.bFullScreen = !CSettings.bFullScreen;
|
||||||
}
|
|
||||||
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P))
|
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P))
|
||||||
{
|
|
||||||
CDraw.MakeScreenShot();
|
CDraw.MakeScreenShot();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!_Fading)
|
if (!_Fading)
|
||||||
@@ -736,16 +711,14 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
private static bool Update()
|
private static bool Update()
|
||||||
{
|
{
|
||||||
if(_VolumePopupTimer.IsRunning && _VolumePopupTimer.ElapsedMilliseconds >= 1500 && _CurrentPopupScreen == EPopupScreens.PopupVolumeControl)
|
if (_VolumePopupTimer.IsRunning && _VolumePopupTimer.ElapsedMilliseconds >= 1500 && _CurrentPopupScreen == EPopupScreens.PopupVolumeControl)
|
||||||
{
|
{
|
||||||
_VolumePopupTimer.Reset();
|
_VolumePopupTimer.Reset();
|
||||||
HidePopup(EPopupScreens.PopupVolumeControl);
|
HidePopup(EPopupScreens.PopupVolumeControl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_VolumePopupTimer.IsRunning)
|
if (_VolumePopupTimer.IsRunning)
|
||||||
{
|
|
||||||
_Cursor.FadeIn();
|
_Cursor.FadeIn();
|
||||||
}
|
|
||||||
|
|
||||||
if (_CurrentPopupScreen != EPopupScreens.NoPopup)
|
if (_CurrentPopupScreen != EPopupScreens.NoPopup)
|
||||||
_PopupScreens[(int)_CurrentPopupScreen].UpdateGame();
|
_PopupScreens[(int)_CurrentPopupScreen].UpdateGame();
|
||||||
@@ -754,7 +727,6 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
private static void DrawDebugInfos()
|
private static void DrawDebugInfos()
|
||||||
{
|
{
|
||||||
|
|
||||||
string txt = String.Empty;
|
string txt = String.Empty;
|
||||||
CFonts.Style = EStyle.Normal;
|
CFonts.Style = EStyle.Normal;
|
||||||
CFonts.SetFont("Normal");
|
CFonts.SetFont("Normal");
|
||||||
@@ -881,7 +853,7 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
_Cursor.UnloadTextures();
|
_Cursor.UnloadTextures();
|
||||||
|
|
||||||
if (CTheme.Cursor.color != string.Empty)
|
if (CTheme.Cursor.color.Length > 0)
|
||||||
{
|
{
|
||||||
SColorF color;
|
SColorF color;
|
||||||
color = CTheme.GetColor(CTheme.Cursor.color, -1);
|
color = CTheme.GetColor(CTheme.Cursor.color, -1);
|
||||||
|
|||||||
Loaded 100 of 225 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user