Merge branch 'develop' into medley

Conflicts:
	Vocaluxe/Lib/Song/CSong.cs
This commit is contained in:
Alexander Eckart committed 2012-12-02 15:18:35 +01:00
commit a05aab5f07
12 files changed
+27 -4

No files matched your search

@@ -497,13 +497,13 @@
<H>50</H> <H>50</H>
<!--<ArrowLeftX>, <ArrowLeftY>, <ArrowLeftZ>, <ArrowLeftW>, <ArrowLeftH>: Left arrow position, width and height--> <!--<ArrowLeftX>, <ArrowLeftY>, <ArrowLeftZ>, <ArrowLeftW>, <ArrowLeftH>: Left arrow position, width and height-->
<ArrowLeftX>505</ArrowLeftX> <ArrowLeftX>505</ArrowLeftX>
<ArrowLeftY>225</ArrowLeftY> <ArrowLeftY>285</ArrowLeftY>
<ArrowLeftZ>0,00</ArrowLeftZ> <ArrowLeftZ>0,00</ArrowLeftZ>
<ArrowLeftW>40</ArrowLeftW> <ArrowLeftW>40</ArrowLeftW>
<ArrowLeftH>40</ArrowLeftH> <ArrowLeftH>40</ArrowLeftH>
<!--<ArrowRightX>, <ArrowRightY>, <ArrowRightZ>, <ArrowRightW>, <ArrowRightH>: Right arrow position, width and height--> <!--<ArrowRightX>, <ArrowRightY>, <ArrowRightZ>, <ArrowRightW>, <ArrowRightH>: Right arrow position, width and height-->
<ArrowRightX>1170</ArrowRightX> <ArrowRightX>1170</ArrowRightX>
<ArrowRightY>225</ArrowRightY> <ArrowRightY>285</ArrowRightY>
<ArrowRightZ>0,00</ArrowRightZ> <ArrowRightZ>0,00</ArrowRightZ>
<ArrowRightW>40</ArrowRightW> <ArrowRightW>40</ArrowRightW>
<ArrowRightH>40</ArrowRightH> <ArrowRightH>40</ArrowRightH>
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.
+5
View File
@@ -79,6 +79,11 @@ namespace Vocaluxe.Lib.Song
{ {
get { return _CoverLoaded; } get { return _CoverLoaded; }
} }
public bool NotesLoaded
{
get { return _NotesLoaded; }
}
public bool CoverBigLoaded = false; public bool CoverBigLoaded = false;
public STexture CoverTextureSmall public STexture CoverTextureSmall
+18 -2
View File
@@ -263,10 +263,11 @@ namespace Vocaluxe.Screens
private void UpdateRatings() private void UpdateRatings()
{ {
CSong song = null;
SPlayer[] player = new SPlayer[CGame.NumPlayer]; SPlayer[] player = new SPlayer[CGame.NumPlayer];
if (_Round != 0) if (_Round != 0)
{ {
CSong song = CGame.GetSong(_Round); song = CGame.GetSong(_Round);
if (song == null) if (song == null)
return; return;
@@ -299,9 +300,24 @@ namespace Vocaluxe.Screens
player[p].Points = (int)(player[p].Points / CGame.NumRounds); player[p].Points = (int)(player[p].Points / CGame.NumRounds);
} }
} }
for (int p = 0; p < player.Length; p++) for (int p = 0; p < player.Length; p++)
{ {
Texts[htTexts(TextNames[p, CGame.NumPlayer - 1])].Text = player[p].Name; if (song != null)
{
if (!song.IsDuet)
Texts[htTexts(TextNames[p, CGame.NumPlayer - 1])].Text = player[p].Name;
else
if (player[p].LineNr == 0 && song.DuetPart1 != "Part 1")
Texts[htTexts(TextNames[p, CGame.NumPlayer - 1])].Text = player[p].Name + " (" + song.DuetPart1 + ")";
else if (player[p].LineNr == 1 && song.DuetPart2 != "Part 2")
Texts[htTexts(TextNames[p, CGame.NumPlayer - 1])].Text = player[p].Name + " (" + song.DuetPart2 + ")";
else
Texts[htTexts(TextNames[p, CGame.NumPlayer - 1])].Text = player[p].Name;
}
else
Texts[htTexts(TextNames[p, CGame.NumPlayer - 1])].Text = player[p].Name;
Texts[htTexts(TextScores[p, CGame.NumPlayer - 1])].Text = ((int)Math.Round(player[p].Points)).ToString("0000") + " " + CLanguage.Translate("TR_SCREENSCORE_POINTS"); Texts[htTexts(TextScores[p, CGame.NumPlayer - 1])].Text = ((int)Math.Round(player[p].Points)).ToString("0000") + " " + CLanguage.Translate("TR_SCREENSCORE_POINTS");
if (CGame.NumPlayer <= 3) if (CGame.NumPlayer <= 3)
{ {
+2
View File
@@ -963,6 +963,8 @@ namespace Vocaluxe.Screens
CSong Song = CGame.GetSong(); CSong Song = CGame.GetSong();
if (Song == null) if (Song == null)
return null; return null;
else if (!Song.NotesLoaded)
return null;
float[] Alpha = new float[Song.Notes.Lines.Length * 2]; float[] Alpha = new float[Song.Notes.Lines.Length * 2];
CLines[] lines = new CLines[Song.Notes.Lines.Length]; CLines[] lines = new CLines[Song.Notes.Lines.Length];