More unification of menuelements and fix for screensing theme
This commit is contained in:
1 parent
1b4f3ced7d
commit
63fc406735
9 files changed
+86
-404
No files matched your search
@@ -180,18 +180,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP1N1">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>350</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP1N1">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -209,18 +197,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP1N2">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>150</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP1N2">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -238,18 +214,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP2N2">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>350</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP2N2">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -267,18 +231,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP1N3">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>10</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP1N3">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -296,18 +248,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP2N3">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>210</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP2N3">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -325,18 +265,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP3N3">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>410</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP3N3">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -354,18 +282,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP1N4">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>150</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP1N4">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -383,18 +299,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP2N4">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>350</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP2N4">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -412,18 +316,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP3N4">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>150</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP3N4">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -441,18 +333,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP4N4">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>350</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP4N4">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -470,18 +350,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP1N5">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>10</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP1N5">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -499,18 +367,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP2N5">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>210</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP2N5">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -528,18 +384,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP3N5">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>410</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP3N5">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -557,18 +401,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP4N5">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>150</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP4N5">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -586,18 +418,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP5N5">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>350</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP5N5">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -615,18 +435,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP1N6">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>10</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP1N6">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -644,18 +452,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP2N6">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>210</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP2N6">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -673,18 +469,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP3N6">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>528</X>
|
||||
<Y>410</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP3N6">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -702,18 +486,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP4N6">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>10</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP4N6">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -731,18 +503,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP5N6">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>210</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP5N6">
|
||||
<Skin/>
|
||||
<Color>
|
||||
@@ -760,18 +520,6 @@
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticScoreP6N6">
|
||||
<Skin/>
|
||||
<Color Name="StaticColor" />
|
||||
<Rect>
|
||||
<X>1150</X>
|
||||
<Y>410</Y>
|
||||
<W>100</W>
|
||||
<H>50</H>
|
||||
<Z>-0.75</Z>
|
||||
</Rect>
|
||||
<Reflection Enabled="false" />
|
||||
</Static>
|
||||
<Static Name="StaticAvatarP6N6">
|
||||
<Skin/>
|
||||
<Color>
|
||||
|
||||
@@ -117,9 +117,6 @@ namespace Vocaluxe.Screens
|
||||
_OriginalPlayerAvatarTextures[i] = _Statics[_StaticPlayerAvatar[i]].Texture;
|
||||
_Statics[_StaticPlayerAvatar[i]].Aspect = EAspect.Crop;
|
||||
}
|
||||
|
||||
for (int i = 1; i <= CSettings.MaxNumPlayer; i++)
|
||||
_Equalizers["EqualizerPlayer" + i].ScreenHandles = true;
|
||||
}
|
||||
|
||||
public override bool HandleInput(SKeyEvent keyEvent)
|
||||
@@ -574,8 +571,6 @@ namespace Vocaluxe.Screens
|
||||
|
||||
if (_ChooseAvatarStatic.Visible)
|
||||
_ChooseAvatarStatic.Draw();
|
||||
for (int i = 1; i <= CGame.NumPlayer; i++)
|
||||
_Equalizers["EqualizerPlayer" + i].Draw();
|
||||
return true;
|
||||
}
|
||||
#endregion public methods
|
||||
|
||||
@@ -107,9 +107,6 @@ namespace Vocaluxe.Screens
|
||||
_Statics[_StaticEnergyChannel[i]].Visible = false;
|
||||
_ChannelEnergy[i] = 0f;
|
||||
}
|
||||
|
||||
_Equalizers[_EqualizerChannel1].ScreenHandles = true;
|
||||
_Equalizers[_EqualizerChannel2].ScreenHandles = true;
|
||||
}
|
||||
|
||||
public override bool HandleInput(SKeyEvent keyEvent)
|
||||
@@ -330,9 +327,6 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
}
|
||||
|
||||
_Equalizers[_EqualizerChannel1].Draw();
|
||||
_Equalizers[_EqualizerChannel2].Draw();
|
||||
|
||||
_DrawFG();
|
||||
|
||||
return true;
|
||||
|
||||
@@ -25,7 +25,6 @@ using System.Windows.Forms;
|
||||
using Vocaluxe.Base;
|
||||
using Vocaluxe.Base.Fonts;
|
||||
using Vocaluxe.Base.ThemeSystem;
|
||||
using Vocaluxe.Lib.Video;
|
||||
using VocaluxeLib;
|
||||
using VocaluxeLib.Draw;
|
||||
using VocaluxeLib.Menu;
|
||||
@@ -71,7 +70,6 @@ namespace Vocaluxe.Screens
|
||||
private const string _StaticLyricHelperTop = "StaticLyricHelperTop";
|
||||
private const string _StaticPauseBG = "StaticPauseBG";
|
||||
|
||||
private string[,] _StaticScores;
|
||||
private string[,] _StaticAvatars;
|
||||
|
||||
private const string _ButtonCancel = "ButtonCancel";
|
||||
@@ -183,11 +181,7 @@ namespace Vocaluxe.Screens
|
||||
{
|
||||
base.HandleInput(keyEvent);
|
||||
|
||||
if (keyEvent.KeyPressed)
|
||||
{
|
||||
//
|
||||
}
|
||||
else
|
||||
if (!keyEvent.KeyPressed)
|
||||
{
|
||||
switch (keyEvent.Key)
|
||||
{
|
||||
@@ -244,14 +238,17 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
break;
|
||||
case Keys.Enter:
|
||||
if (_Buttons[_ButtonContinue].Selected && _Pause)
|
||||
_TogglePause();
|
||||
if (_Buttons[_ButtonCancel].Selected && _Pause)
|
||||
_Stop();
|
||||
if (_Buttons[_ButtonSkip].Selected && _Pause)
|
||||
if (_Pause)
|
||||
{
|
||||
_LoadNextSong();
|
||||
_TogglePause();
|
||||
if (_Buttons[_ButtonContinue].Selected)
|
||||
_SetPause(false);
|
||||
if (_Buttons[_ButtonCancel].Selected)
|
||||
_Stop();
|
||||
if (_Buttons[_ButtonSkip].Selected)
|
||||
{
|
||||
_LoadNextSong();
|
||||
_SetPause(false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -304,16 +301,16 @@ namespace Vocaluxe.Screens
|
||||
|
||||
if (mouseEvent.LB && _IsMouseOverCurSelection(mouseEvent) && _Pause)
|
||||
{
|
||||
if (_Buttons[_ButtonContinue].Selected && _Pause)
|
||||
_TogglePause();
|
||||
if (_Buttons[_ButtonContinue].Selected)
|
||||
_SetPause(false);
|
||||
|
||||
if (_Buttons[_ButtonCancel].Selected && _Pause)
|
||||
if (_Buttons[_ButtonCancel].Selected)
|
||||
_Stop();
|
||||
|
||||
if (_Buttons[_ButtonSkip].Selected && _Pause)
|
||||
if (_Buttons[_ButtonSkip].Selected)
|
||||
{
|
||||
_LoadNextSong();
|
||||
_TogglePause();
|
||||
_SetPause(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -346,6 +343,8 @@ namespace Vocaluxe.Screens
|
||||
|
||||
CGame.UpdatePoints(_CurrentTime);
|
||||
_UpdateLyrics();
|
||||
if (CGame.GameMode == EGameMode.TR_GAMEMODE_MEDLEY)
|
||||
_UpdateMedleyCountdown();
|
||||
|
||||
float[] alpha = _CalcFadingAlpha();
|
||||
if (alpha != null)
|
||||
@@ -372,7 +371,6 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
if (CConfig.FadePlayerInfo == EFadePlayerInfo.TR_CONFIG_FADEPLAYERINFO_ALL)
|
||||
{
|
||||
_Statics[_StaticScores[p, CGame.NumPlayer - 1]].Alpha = alpha[CGame.Players[p].VoiceNr * 2];
|
||||
_Statics[_StaticAvatars[p, CGame.NumPlayer - 1]].Alpha = alpha[CGame.Players[p].VoiceNr * 2];
|
||||
_Texts[_TextNames[p, CGame.NumPlayer - 1]].Alpha = alpha[CGame.Players[p].VoiceNr * 2];
|
||||
_Texts[_TextScores[p, CGame.NumPlayer - 1]].Alpha = alpha[CGame.Players[p].VoiceNr * 2];
|
||||
@@ -403,9 +401,7 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
|
||||
if (_CurrentVideo != null && !_FadeOut && CConfig.VideosInSongs == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
CVideo.GetFrame(_CurrentVideo, _CurrentTime);
|
||||
}
|
||||
|
||||
if (_Webcam)
|
||||
CWebcam.GetFrame(ref _CurrentWebcamFrameTexture);
|
||||
@@ -427,7 +423,7 @@ namespace Vocaluxe.Screens
|
||||
_Length = -1f;
|
||||
_TimeToFirstNote = 0f;
|
||||
_TimeToFirstNoteDuet = 0f;
|
||||
_Pause = false;
|
||||
_SetPause(false);
|
||||
|
||||
_TimeRects.Clear();
|
||||
|
||||
@@ -486,13 +482,7 @@ namespace Vocaluxe.Screens
|
||||
_SlideShow.Draw();
|
||||
}
|
||||
|
||||
_DrawBG();
|
||||
|
||||
foreach (CStatic stat in _Statics)
|
||||
stat.Draw();
|
||||
|
||||
foreach (CText text in _Texts)
|
||||
text.Draw();
|
||||
base.Draw();
|
||||
|
||||
switch (CConfig.TimerLook)
|
||||
{
|
||||
@@ -505,32 +495,13 @@ namespace Vocaluxe.Screens
|
||||
break;
|
||||
}
|
||||
|
||||
_Lyrics[_LyricSub].Draw(-100);
|
||||
_Lyrics[_LyricMain].Draw(CGame.CurrentBeatF);
|
||||
|
||||
_Lyrics[_LyricSubDuet].Draw(-100);
|
||||
_Lyrics[_LyricMainDuet].Draw(CGame.CurrentBeatF);
|
||||
|
||||
_Lyrics[_LyricSubTop].Draw(-100);
|
||||
_Lyrics[_LyricMainTop].Draw(CGame.CurrentBeatF);
|
||||
|
||||
|
||||
for (int i = 0; i < CGame.NumPlayer; i++)
|
||||
_SingNotes[_SingBars].Draw(_NoteLines[i], CGame.Players[i].SungLines, i);
|
||||
|
||||
_DrawLyricHelper();
|
||||
|
||||
if (CGame.GameMode == EGameMode.TR_GAMEMODE_MEDLEY)
|
||||
{
|
||||
_UpdateMedleyCountdown();
|
||||
_Texts[_TextMedleyCountdown].Draw();
|
||||
}
|
||||
|
||||
if (_Pause)
|
||||
{
|
||||
_Statics[_StaticPauseBG].Draw(true);
|
||||
_Texts[_TextPause].Draw(true);
|
||||
|
||||
foreach (CButton button in _Buttons)
|
||||
button.Draw();
|
||||
|
||||
@@ -558,9 +529,7 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
CRecord.Stop();
|
||||
if (_CurrentVideo != null)
|
||||
{
|
||||
CVideo.Close(ref _CurrentVideo);
|
||||
}
|
||||
CDraw.RemoveTexture(ref _Background);
|
||||
|
||||
if (_SlideShow != null)
|
||||
@@ -792,6 +761,15 @@ namespace Vocaluxe.Screens
|
||||
|
||||
|
||||
_CurrentBeat = CGame.CurrentBeat;
|
||||
_Lyrics[_LyricSub].Update(-100);
|
||||
_Lyrics[_LyricMain].Update(CGame.CurrentBeatF);
|
||||
|
||||
_Lyrics[_LyricSubDuet].Update(-100);
|
||||
_Lyrics[_LyricMainDuet].Update(CGame.CurrentBeatF);
|
||||
|
||||
_Lyrics[_LyricSubTop].Update(-100);
|
||||
_Lyrics[_LyricMainTop].Update(CGame.CurrentBeatF);
|
||||
|
||||
for (int i = 0; i < song.Notes.VoiceCount; i++)
|
||||
{
|
||||
if (i > 1)
|
||||
@@ -864,27 +842,21 @@ namespace Vocaluxe.Screens
|
||||
|
||||
private void _TogglePause()
|
||||
{
|
||||
_Pause = !_Pause;
|
||||
_SetPause(!_Pause);
|
||||
}
|
||||
|
||||
private void _SetPause(bool paused)
|
||||
{
|
||||
_Pause = paused;
|
||||
_Statics[_StaticPauseBG].Visible = _Pause;
|
||||
_Texts[_TextPause].Visible = _Pause;
|
||||
_Buttons[_ButtonCancel].Visible = _Pause;
|
||||
_Buttons[_ButtonContinue].Visible = _Pause;
|
||||
_Buttons[_ButtonSkip].Visible = _Pause && CGame.NumRounds > CGame.RoundNr && CGame.NumRounds > 1;
|
||||
if (_Pause)
|
||||
{
|
||||
_Buttons[_ButtonCancel].Visible = true;
|
||||
_Buttons[_ButtonContinue].Visible = true;
|
||||
if (CGame.NumRounds > CGame.RoundNr && CGame.NumRounds > 1)
|
||||
_Buttons[_ButtonSkip].Visible = true;
|
||||
else
|
||||
_Buttons[_ButtonSkip].Visible = false;
|
||||
CSound.Pause(_CurrentStream);
|
||||
}
|
||||
else
|
||||
{
|
||||
//CGame.ResetToLastLine(_CurrentStream, _CurrentVideo);
|
||||
_Buttons[_ButtonCancel].Visible = false;
|
||||
_Buttons[_ButtonContinue].Visible = false;
|
||||
_Buttons[_ButtonSkip].Visible = false;
|
||||
CSound.Play(_CurrentStream);
|
||||
if (_Webcam)
|
||||
CWebcam.Start();
|
||||
}
|
||||
}
|
||||
|
||||
private void _BuildTextStrings(List<string> texts)
|
||||
@@ -911,7 +883,6 @@ namespace Vocaluxe.Screens
|
||||
|
||||
private void _BuildStaticStrings(ref List<string> statics)
|
||||
{
|
||||
_StaticScores = new string[CSettings.MaxNumPlayer,CSettings.MaxNumPlayer];
|
||||
_StaticAvatars = new string[CSettings.MaxNumPlayer,CSettings.MaxNumPlayer];
|
||||
|
||||
for (int numplayer = 0; numplayer < CSettings.MaxNumPlayer; numplayer++)
|
||||
@@ -921,10 +892,8 @@ namespace Vocaluxe.Screens
|
||||
if (player <= numplayer)
|
||||
{
|
||||
string target = "P" + (player + 1) + "N" + (numplayer + 1);
|
||||
_StaticScores[player, numplayer] = "StaticScore" + target;
|
||||
_StaticAvatars[player, numplayer] = "StaticAvatar" + target;
|
||||
|
||||
statics.Add(_StaticScores[player, numplayer]);
|
||||
statics.Add(_StaticAvatars[player, numplayer]);
|
||||
}
|
||||
}
|
||||
@@ -947,21 +916,16 @@ namespace Vocaluxe.Screens
|
||||
|
||||
for (int numplayer = 0; numplayer < CSettings.MaxNumPlayer; numplayer++)
|
||||
{
|
||||
for (int player = 0; player < CSettings.MaxNumPlayer; player++)
|
||||
for (int player = 0; player < CSettings.MaxNumPlayer && player <= numplayer; player++)
|
||||
{
|
||||
if (player <= numplayer)
|
||||
{
|
||||
_Texts[_TextScores[player, numplayer]].Visible = numplayer + 1 == CGame.NumPlayer;
|
||||
_Texts[_TextNames[player, numplayer]].Visible = (numplayer + 1 == CGame.NumPlayer)
|
||||
&&
|
||||
(CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH ||
|
||||
CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_NAME);
|
||||
_Statics[_StaticScores[player, numplayer]].Visible = numplayer + 1 == CGame.NumPlayer;
|
||||
_Statics[_StaticAvatars[player, numplayer]].Visible = (numplayer + 1 == CGame.NumPlayer)
|
||||
&&
|
||||
(CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH ||
|
||||
CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_AVATAR);
|
||||
}
|
||||
bool isIvisible = numplayer + 1 == CGame.NumPlayer && player <= CGame.NumPlayer;
|
||||
_Texts[_TextScores[player, numplayer]].Visible = isIvisible;
|
||||
_Texts[_TextNames[player, numplayer]].Visible = isIvisible &&
|
||||
(CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH ||
|
||||
CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_NAME);
|
||||
_Statics[_StaticAvatars[player, numplayer]].Visible = isIvisible &&
|
||||
(CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH ||
|
||||
CConfig.PlayerInfo == EPlayerInfo.TR_CONFIG_PLAYERINFO_AVATAR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
public bool Selected;
|
||||
public bool Visible;
|
||||
public bool ScreenHandles;
|
||||
|
||||
public string GetThemeName()
|
||||
{
|
||||
@@ -90,7 +89,6 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
Selected = false;
|
||||
Visible = true;
|
||||
ScreenHandles = false;
|
||||
|
||||
Reflection = false;
|
||||
ReflectionSpace = 0f;
|
||||
@@ -103,7 +101,6 @@ namespace VocaluxeLib.Menu
|
||||
_Theme = theme;
|
||||
|
||||
Visible = true;
|
||||
ScreenHandles = false;
|
||||
|
||||
LoadSkin();
|
||||
}
|
||||
|
||||
@@ -56,18 +56,7 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
public bool DrawAsForeground
|
||||
{
|
||||
get
|
||||
{
|
||||
return Type == EType.Button ||
|
||||
Type == EType.SelectSlide ||
|
||||
Type == EType.Static ||
|
||||
Type == EType.NameSelection ||
|
||||
Type == EType.Text ||
|
||||
Type == EType.SongMenu ||
|
||||
Type == EType.Equalizer ||
|
||||
Type == EType.Playlist ||
|
||||
Type == EType.ParticleEffect;
|
||||
}
|
||||
get { return Type != EType.Background && Type != EType.SingNote; }
|
||||
}
|
||||
|
||||
public CInteraction(int num, EType type)
|
||||
|
||||
+30
-23
@@ -55,6 +55,8 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
private float _Alpha = 1f;
|
||||
|
||||
private float _CurrentBeat = -1;
|
||||
|
||||
public string GetThemeName()
|
||||
{
|
||||
return _Theme.Name;
|
||||
@@ -199,33 +201,38 @@ namespace VocaluxeLib.Menu
|
||||
return _X - _Width / 2;
|
||||
}
|
||||
|
||||
public void Update(float currentBeat)
|
||||
{
|
||||
_CurrentBeat = currentBeat;
|
||||
}
|
||||
|
||||
#region draw
|
||||
public void Draw(float actualBeat)
|
||||
public void Draw()
|
||||
{
|
||||
if (Visible || CBase.Settings.GetProgramState() == EProgramState.EditTheme)
|
||||
{
|
||||
switch (LyricStyle)
|
||||
{
|
||||
case ELyricStyle.Fill:
|
||||
_DrawFill(actualBeat);
|
||||
_DrawFill();
|
||||
break;
|
||||
case ELyricStyle.Jump:
|
||||
_DrawJump(actualBeat);
|
||||
_DrawJump();
|
||||
break;
|
||||
case ELyricStyle.Slide:
|
||||
_DrawSlide(actualBeat);
|
||||
_DrawSlide();
|
||||
break;
|
||||
case ELyricStyle.Zoom:
|
||||
_DrawZoom(actualBeat);
|
||||
_DrawZoom();
|
||||
break;
|
||||
default:
|
||||
_DrawSlide(actualBeat);
|
||||
_DrawSlide();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void _DrawSlide(float currentBeat)
|
||||
private void _DrawSlide()
|
||||
{
|
||||
float x = _X - _Width / 2;
|
||||
|
||||
@@ -234,9 +241,9 @@ namespace VocaluxeLib.Menu
|
||||
_Text.X = x;
|
||||
_SetText(note);
|
||||
|
||||
if (currentBeat >= note.StartBeat)
|
||||
if (_CurrentBeat >= note.StartBeat)
|
||||
{
|
||||
if (currentBeat <= note.EndBeat)
|
||||
if (_CurrentBeat <= note.EndBeat)
|
||||
{
|
||||
_Text.Color = _ColorProcessed;
|
||||
|
||||
@@ -245,9 +252,9 @@ namespace VocaluxeLib.Menu
|
||||
_Text.Draw(0f, 1f);
|
||||
else
|
||||
{
|
||||
_Text.Draw(0f, (currentBeat - note.StartBeat) / diff);
|
||||
_Text.Draw(0f, (_CurrentBeat - note.StartBeat) / diff);
|
||||
_Text.Color = _Color;
|
||||
_Text.Draw((currentBeat - note.StartBeat) / diff, 1f);
|
||||
_Text.Draw((_CurrentBeat - note.StartBeat) / diff, 1f);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -266,12 +273,12 @@ namespace VocaluxeLib.Menu
|
||||
}
|
||||
}
|
||||
|
||||
private void _DrawZoom(float currentBeat)
|
||||
private void _DrawZoom()
|
||||
{
|
||||
float x = _X - _Width / 2; // most left position
|
||||
|
||||
//find last active note
|
||||
int lastNote = _Line.FindPreviousNote((int)currentBeat);
|
||||
int lastNote = _Line.FindPreviousNote((int)_CurrentBeat);
|
||||
|
||||
int zoomNote = -1;
|
||||
int endBeat = -1;
|
||||
@@ -282,13 +289,13 @@ namespace VocaluxeLib.Menu
|
||||
_Text.X = x;
|
||||
_SetText(_Line.Notes[note]);
|
||||
|
||||
if (currentBeat >= _Line.Notes[note].StartBeat)
|
||||
if (_CurrentBeat >= _Line.Notes[note].StartBeat)
|
||||
{
|
||||
int curEndBeat = _Line.Notes[note].EndBeat;
|
||||
if (note < _Line.Notes.Length - 1)
|
||||
curEndBeat = _Line.Notes[note + 1].StartBeat - 1;
|
||||
|
||||
if (currentBeat <= curEndBeat)
|
||||
if (_CurrentBeat <= curEndBeat)
|
||||
{
|
||||
zoomNote = note;
|
||||
endBeat = curEndBeat;
|
||||
@@ -321,7 +328,7 @@ namespace VocaluxeLib.Menu
|
||||
if (diff <= 0f)
|
||||
diff = 1f;
|
||||
|
||||
float p = (currentBeat - _Line.Notes[zoomNote].StartBeat) / diff;
|
||||
float p = (_CurrentBeat - _Line.Notes[zoomNote].StartBeat) / diff;
|
||||
if (p > 1f)
|
||||
p = 1f;
|
||||
|
||||
@@ -347,7 +354,7 @@ namespace VocaluxeLib.Menu
|
||||
}
|
||||
}
|
||||
|
||||
private void _DrawFill(float currentBeat)
|
||||
private void _DrawFill()
|
||||
{
|
||||
float x = _X - _Width / 2; // most left position
|
||||
|
||||
@@ -356,7 +363,7 @@ namespace VocaluxeLib.Menu
|
||||
_Text.X = x;
|
||||
_SetText(note);
|
||||
|
||||
if (currentBeat >= note.StartBeat)
|
||||
if (_CurrentBeat >= note.StartBeat)
|
||||
{
|
||||
_Text.Color = _ColorProcessed;
|
||||
_Text.Draw();
|
||||
@@ -372,12 +379,12 @@ namespace VocaluxeLib.Menu
|
||||
}
|
||||
}
|
||||
|
||||
private void _DrawJump(float currentBeat)
|
||||
private void _DrawJump()
|
||||
{
|
||||
float x = _X - _Width / 2; // most left position
|
||||
|
||||
//find last active note
|
||||
int lastNote = _Line.FindPreviousNote((int)currentBeat);
|
||||
int lastNote = _Line.FindPreviousNote((int)_CurrentBeat);
|
||||
|
||||
int jumpNote = -1;
|
||||
float jumpx = 0f;
|
||||
@@ -387,13 +394,13 @@ namespace VocaluxeLib.Menu
|
||||
_Text.X = x;
|
||||
_SetText(_Line.Notes[note]);
|
||||
|
||||
if (currentBeat >= _Line.Notes[note].StartBeat)
|
||||
if (_CurrentBeat >= _Line.Notes[note].StartBeat)
|
||||
{
|
||||
int curEndBeat = _Line.Notes[note].EndBeat;
|
||||
if (note < _Line.Notes.Length - 1)
|
||||
curEndBeat = _Line.Notes[note + 1].StartBeat - 1;
|
||||
|
||||
if (currentBeat <= curEndBeat)
|
||||
if (_CurrentBeat <= curEndBeat)
|
||||
{
|
||||
jumpNote = note;
|
||||
jumpx = _Text.X;
|
||||
@@ -427,7 +434,7 @@ namespace VocaluxeLib.Menu
|
||||
if (diff <= 0)
|
||||
diff = 1;
|
||||
|
||||
float p = 1f - (currentBeat - _Line.Notes[jumpNote].StartBeat) / diff;
|
||||
float p = 1f - (_CurrentBeat - _Line.Notes[jumpNote].StartBeat) / diff;
|
||||
|
||||
if (Math.Abs(p) < float.Epsilon)
|
||||
_Text.Draw();
|
||||
|
||||
@@ -1160,12 +1160,7 @@ namespace VocaluxeLib.Menu
|
||||
break;
|
||||
|
||||
case EType.Equalizer:
|
||||
if (!_Equalizers[_Interactions[interaction].Num].ScreenHandles)
|
||||
{
|
||||
//TODO:
|
||||
//Call Update-Method of Equalizer and give infos about bg-sound.
|
||||
//_Equalizers[_Interactions[interaction].Num].Draw();
|
||||
}
|
||||
_Equalizers[_Interactions[interaction].Num].Draw();
|
||||
break;
|
||||
|
||||
case EType.Playlist:
|
||||
@@ -1176,10 +1171,9 @@ namespace VocaluxeLib.Menu
|
||||
_ParticleEffects[_Interactions[interaction].Num].Draw();
|
||||
break;
|
||||
|
||||
//TODO:
|
||||
//case EType.TLyric:
|
||||
// _Lyrics[_Interactions[interaction].Num].Draw(0);
|
||||
// break;
|
||||
case EType.Lyric:
|
||||
_Lyrics[_Interactions[interaction].Num].Draw();
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endregion InteractionHandling
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace VocaluxeLib.Menu.SingNotes
|
||||
|
||||
public abstract class CSingNotes : IMenuElement
|
||||
{
|
||||
protected readonly int _PartyModeID;
|
||||
private readonly int _PartyModeID;
|
||||
private SThemeSingBar _Theme;
|
||||
private bool _ThemeLoaded;
|
||||
|
||||
@@ -88,8 +88,7 @@ namespace VocaluxeLib.Menu.SingNotes
|
||||
protected CSingNotes(int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
_Theme = new SThemeSingBar();
|
||||
_Theme.BarPos = new SBarPosition[CHelper.Sum(CBase.Settings.GetMaxNumPlayer())];
|
||||
_Theme = new SThemeSingBar {BarPos = new SBarPosition[CHelper.Sum(CBase.Settings.GetMaxNumPlayer())]};
|
||||
_ThemeLoaded = false;
|
||||
|
||||
_PlayerNotes = new List<SPlayerNotes>();
|
||||
@@ -240,11 +239,6 @@ namespace VocaluxeLib.Menu.SingNotes
|
||||
return _PlayerNotes[n].Alpha;
|
||||
}
|
||||
|
||||
public void Draw(int id, int player)
|
||||
{
|
||||
Draw(id, null, player);
|
||||
}
|
||||
|
||||
public void Draw(int id, List<CSungLine> sungLines, int player)
|
||||
{
|
||||
int n = _FindPlayerNotes(id);
|
||||
|
||||
Reference in new issue
Block a user