Merge pull request #51 from xDarkice/develop
merge xDarkice/Vocaluxe/develop into develop
This commit is contained in:
commit
1d5201f1ab
4 files changed
+32
-12
No files matched your search
@@ -928,6 +928,18 @@ namespace Vocaluxe.Menu
|
|||||||
CConfig.BackgroundMusicVolume = 0;
|
CConfig.BackgroundMusicVolume = 0;
|
||||||
CConfig.SaveConfig();
|
CConfig.SaveConfig();
|
||||||
}
|
}
|
||||||
|
else if (KeyEvent.Key == Keys.MediaNextTrack)
|
||||||
|
CBackgroundMusic.Next();
|
||||||
|
else if (KeyEvent.Key == Keys.MediaPreviousTrack)
|
||||||
|
CBackgroundMusic.Previous();
|
||||||
|
else if (KeyEvent.Key == Keys.MediaPlayPause)
|
||||||
|
{
|
||||||
|
if (CBackgroundMusic.Playing)
|
||||||
|
CBackgroundMusic.Pause();
|
||||||
|
else
|
||||||
|
CBackgroundMusic.Play();
|
||||||
|
}
|
||||||
|
|
||||||
CBackgroundMusic.ApplyVolume();
|
CBackgroundMusic.ApplyVolume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public float Alpha;
|
public float Alpha;
|
||||||
|
|
||||||
|
public EAspect Aspect = EAspect.Stretch;
|
||||||
|
|
||||||
public CStatic()
|
public CStatic()
|
||||||
{
|
{
|
||||||
_Theme = new SThemeStatic();
|
_Theme = new SThemeStatic();
|
||||||
@@ -213,25 +215,25 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public void Draw()
|
public void Draw()
|
||||||
{
|
{
|
||||||
Draw(1f, Rect.Z, false, false);
|
Draw(1f, Rect.Z, Aspect, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(bool aspect)
|
public void Draw(EAspect aspect)
|
||||||
{
|
{
|
||||||
Draw(1f, Rect.Z, aspect, false);
|
Draw(1f, Rect.Z, aspect, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(float scale, bool aspect)
|
public void Draw(float scale, EAspect aspect)
|
||||||
{
|
{
|
||||||
Draw(scale, Rect.Z, aspect, false);
|
Draw(scale, Rect.Z, aspect, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ForceDraw()
|
public void ForceDraw()
|
||||||
{
|
{
|
||||||
Draw(1f, Rect.Z, false, true);
|
Draw(1f, Rect.Z, Aspect, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(float scale, float z, bool aspect, bool ForceDraw)
|
public void Draw(float scale, float z, EAspect aspect, bool ForceDraw)
|
||||||
{
|
{
|
||||||
STexture texture;
|
STexture texture;
|
||||||
if (_Texture.index != -1)
|
if (_Texture.index != -1)
|
||||||
@@ -248,11 +250,11 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
SRectF rect = bounds;
|
SRectF rect = bounds;
|
||||||
|
|
||||||
if (aspect)
|
if (aspect != EAspect.Stretch)
|
||||||
{
|
{
|
||||||
RectangleF bounds2 = new RectangleF(bounds.X, bounds.Y, bounds.W, bounds.H);
|
RectangleF bounds2 = new RectangleF(bounds.X, bounds.Y, bounds.W, bounds.H);
|
||||||
RectangleF rect2 = new RectangleF(0f, 0f, texture.width, texture.height);
|
RectangleF rect2 = new RectangleF(0f, 0f, texture.width, texture.height);
|
||||||
CHelper.SetRect(bounds2, ref rect2, texture.width / texture.height, EAspect.Crop);
|
CHelper.SetRect(bounds2, ref rect2, texture.width / texture.height, aspect);
|
||||||
|
|
||||||
rect.X = rect2.X;
|
rect.X = rect2.X;
|
||||||
rect.Y = rect2.Y;
|
rect.Y = rect2.Y;
|
||||||
|
|||||||
@@ -408,13 +408,13 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
foreach (CStatic tile in _Tiles)
|
foreach (CStatic tile in _Tiles)
|
||||||
{
|
{
|
||||||
if (tile.Selected && _Active)
|
if (tile.Selected && _Active)
|
||||||
tile.Draw(1.2f, tile.Rect.Z - 0.1f, true, false);
|
tile.Draw(1.2f, tile.Rect.Z - 0.1f, EAspect.Crop, false);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (tile.Texture.index != _CoverTexture.index)
|
if (tile.Texture.index != _CoverTexture.index)
|
||||||
tile.Draw(1f, tile.Rect.Z, true, false);
|
tile.Draw(1f, tile.Rect.Z, EAspect.Crop, false);
|
||||||
else
|
else
|
||||||
tile.Draw(1f, tile.Rect.Z, false, false);
|
tile.Draw(1f, tile.Rect.Z, EAspect.Stretch, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -465,9 +465,9 @@ namespace Vocaluxe.Menu.SongMenu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_CoverBig.Draw(1f, true);
|
_CoverBig.Draw(1f, EAspect.Crop);
|
||||||
if (_vidtex.color.A < 1)
|
if (_vidtex.color.A < 1)
|
||||||
_CoverBig.Draw(1f, true);
|
_CoverBig.Draw(1f, EAspect.Crop);
|
||||||
_TextBG.Draw();
|
_TextBG.Draw();
|
||||||
|
|
||||||
if (_vidtex.index != -1 && _Video != -1)
|
if (_vidtex.index != -1 && _Video != -1)
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ namespace Vocaluxe.Screens
|
|||||||
public override void LoadTheme()
|
public override void LoadTheme()
|
||||||
{
|
{
|
||||||
base.LoadTheme();
|
base.LoadTheme();
|
||||||
|
|
||||||
Statics[htStatics(StaticTimeLine)].Visible = false;
|
Statics[htStatics(StaticTimeLine)].Visible = false;
|
||||||
Statics[htStatics(StaticTimeLineExpandedNormal)].Visible = false;
|
Statics[htStatics(StaticTimeLineExpandedNormal)].Visible = false;
|
||||||
Statics[htStatics(StaticTimeLineExpandedHighlighted)].Visible = false;
|
Statics[htStatics(StaticTimeLineExpandedHighlighted)].Visible = false;
|
||||||
@@ -427,6 +428,11 @@ namespace Vocaluxe.Screens
|
|||||||
{
|
{
|
||||||
Lyrics[i].LyricStyle = CConfig.LyricStyle;
|
Lyrics[i].LyricStyle = CConfig.LyricStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int p = 0; p < CGame.NumPlayer; p++)
|
||||||
|
{
|
||||||
|
Statics[htStatics(StaticAvatars[p, CGame.NumPlayer - 1])].Aspect = EAspect.Crop;
|
||||||
|
}
|
||||||
SetVisuability();
|
SetVisuability();
|
||||||
|
|
||||||
UpdateAvatars();
|
UpdateAvatars();
|
||||||
|
|||||||
Reference in new issue
Block a user