Merge branch 'develop' of github.com:Vocaluxe/Vocaluxe into develop
This commit is contained in:
commit
fa05e062b5
7 files changed
+39
-20
No files matched your search
@@ -18,9 +18,7 @@
|
|||||||
Minus
|
Minus
|
||||||
RepeatIcon
|
RepeatIcon
|
||||||
</Textures>
|
</Textures>
|
||||||
<Videos>
|
<Videos></Videos>
|
||||||
BG_Video
|
|
||||||
</Videos>
|
|
||||||
<Colors>
|
<Colors>
|
||||||
Player1
|
Player1
|
||||||
Player2
|
Player2
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ namespace Vocaluxe.Base
|
|||||||
public void Load(string videoName)
|
public void Load(string videoName)
|
||||||
{
|
{
|
||||||
_VideoStream = CThemes.GetSkinVideo(videoName, -1, false);
|
_VideoStream = CThemes.GetSkinVideo(videoName, -1, false);
|
||||||
|
if (_VideoStream == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
_Loaded = true;
|
_Loaded = true;
|
||||||
CVideo.Pause(_VideoStream);
|
CVideo.Pause(_VideoStream);
|
||||||
}
|
}
|
||||||
@@ -68,6 +72,11 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public void Draw()
|
public void Draw()
|
||||||
{
|
{
|
||||||
|
if (!_Loaded)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_Finished)
|
if (!_Finished)
|
||||||
{
|
{
|
||||||
float videoTime = _VideoTimer.ElapsedMilliseconds / 1000f;
|
float videoTime = _VideoTimer.ElapsedMilliseconds / 1000f;
|
||||||
@@ -83,6 +92,10 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public void PreLoad()
|
public void PreLoad()
|
||||||
{
|
{
|
||||||
|
if (!_Loaded)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
bool paused = _VideoTimer.IsRunning;
|
bool paused = _VideoTimer.IsRunning;
|
||||||
if (paused)
|
if (paused)
|
||||||
CVideo.Resume(_VideoStream);
|
CVideo.Resume(_VideoStream);
|
||||||
|
|||||||
@@ -178,8 +178,8 @@ namespace Vocaluxe.Base.ThemeSystem
|
|||||||
CVideoSkinElement sk = new CVideoSkinElement {FileName = kvp.Value};
|
CVideoSkinElement sk = new CVideoSkinElement {FileName = kvp.Value};
|
||||||
if (!File.Exists(Path.Combine(_Folder, sk.FileName)))
|
if (!File.Exists(Path.Combine(_Folder, sk.FileName)))
|
||||||
{
|
{
|
||||||
CLog.LogError("Video \"" + kvp.Key + "\": (" + sk.FileName + ") not found!", true);
|
CLog.LogError("Video \"" + kvp.Key + "\": (" + sk.FileName + ") not found!");
|
||||||
return false;
|
continue;
|
||||||
}
|
}
|
||||||
_Videos.Add(kvp.Key, sk);
|
_Videos.Add(kvp.Key, sk);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -411,6 +411,10 @@ namespace Vocaluxe.Screens
|
|||||||
{
|
{
|
||||||
_Playlist.Selected = false;
|
_Playlist.Selected = false;
|
||||||
_SongMenu.Selected = true;
|
_SongMenu.Selected = true;
|
||||||
|
if (mouseEvent.LB)
|
||||||
|
{
|
||||||
|
_ToggleSongOptions(ESongOptionsView.None);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mouseEvent.RB)
|
if (mouseEvent.RB)
|
||||||
|
|||||||
@@ -318,11 +318,15 @@ namespace VocaluxeLib.Menu
|
|||||||
|
|
||||||
private bool _DrawVideo()
|
private bool _DrawVideo()
|
||||||
{
|
{
|
||||||
CBase.Video.GetFrame(_VideoStream, _VideoStream.VideoTime);
|
if (_VideoStream != null)
|
||||||
if (_VideoStream.Texture != null)
|
|
||||||
{
|
{
|
||||||
CBase.Drawing.DrawTexture(_VideoStream.Texture, Rect, EAspect.Crop);
|
CBase.Video.GetFrame(_VideoStream, _VideoStream.VideoTime);
|
||||||
return true;
|
if (_VideoStream.Texture != null)
|
||||||
|
{
|
||||||
|
CBase.Drawing.DrawTexture(_VideoStream.Texture, Rect, EAspect.Crop);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace VocaluxeLib.Menu
|
|||||||
|
|
||||||
public SRectF Rect
|
public SRectF Rect
|
||||||
{
|
{
|
||||||
get { return MaxRect; }
|
get { return _CompleteRect; }
|
||||||
}
|
}
|
||||||
public SRectF MaxRect { get; set; }
|
public SRectF MaxRect { get; set; }
|
||||||
private bool _Selectable = true;
|
private bool _Selectable = true;
|
||||||
@@ -1038,27 +1038,27 @@ namespace VocaluxeLib.Menu
|
|||||||
{
|
{
|
||||||
_PlaylistElements.Clear();
|
_PlaylistElements.Clear();
|
||||||
|
|
||||||
for (int i = 0; i < Math.Floor(Rect.H / _Theme.EntryHeight); i++)
|
for (int i = 0; i < Math.Floor(_Theme.Rect.H / _Theme.EntryHeight); i++)
|
||||||
{
|
{
|
||||||
var en = new CPlaylistElement
|
var en = new CPlaylistElement
|
||||||
{
|
{
|
||||||
Background = new CStatic(_PartyModeID, _Theme.SkinBackground, _BackgroundColor,
|
Background = new CStatic(_PartyModeID, _Theme.SkinBackground, _BackgroundColor,
|
||||||
new SRectF(Rect.X, Rect.Y + (i * _Theme.EntryHeight), Rect.W, _Theme.EntryHeight, Rect.Z)),
|
new SRectF(_Theme.Rect.X, _Theme.Rect.Y + (i * _Theme.EntryHeight), _Theme.Rect.W, _Theme.EntryHeight, _Theme.Rect.Z)),
|
||||||
Cover = new CStatic(_Theme.StaticCover, _PartyModeID)
|
Cover = new CStatic(_Theme.StaticCover, _PartyModeID)
|
||||||
};
|
};
|
||||||
|
|
||||||
en.Cover.LoadSkin();
|
en.Cover.LoadSkin();
|
||||||
en.Cover.Y += Rect.Y + (i * _Theme.EntryHeight);
|
en.Cover.Y += _Theme.Rect.Y + (i * _Theme.EntryHeight);
|
||||||
en.Cover.X += Rect.X;
|
en.Cover.X += _Theme.Rect.X;
|
||||||
|
|
||||||
en.Text1 = new CText(_Text1);
|
en.Text1 = new CText(_Text1);
|
||||||
en.Text1.X += Rect.X;
|
en.Text1.X += _Theme.Rect.X;
|
||||||
en.Text1.Y += Rect.Y + (i * _Theme.EntryHeight);
|
en.Text1.Y += _Theme.Rect.Y + (i * _Theme.EntryHeight);
|
||||||
|
|
||||||
en.SelectSlide = new CSelectSlide(_SelectSlideGameMode);
|
en.SelectSlide = new CSelectSlide(_SelectSlideGameMode);
|
||||||
en.SelectSlide.LoadSkin();
|
en.SelectSlide.LoadSkin();
|
||||||
en.SelectSlide.X += Rect.X;
|
en.SelectSlide.X += _Theme.Rect.X;
|
||||||
en.SelectSlide.Y += Rect.Y + (i * _Theme.EntryHeight);
|
en.SelectSlide.Y += _Theme.Rect.Y + (i * _Theme.EntryHeight);
|
||||||
|
|
||||||
en.Content = -1;
|
en.Content = -1;
|
||||||
|
|
||||||
@@ -1181,7 +1181,7 @@ namespace VocaluxeLib.Menu
|
|||||||
private void _UpdateRect()
|
private void _UpdateRect()
|
||||||
{
|
{
|
||||||
//Check for highest x/y-coords
|
//Check for highest x/y-coords
|
||||||
_CompleteRect = Rect;
|
_CompleteRect = _Theme.Rect;
|
||||||
//ButtonPlaylistClose
|
//ButtonPlaylistClose
|
||||||
if (_ButtonPlaylistClose.Rect.X < _CompleteRect.X)
|
if (_ButtonPlaylistClose.Rect.X < _CompleteRect.X)
|
||||||
_CompleteRect.X = _ButtonPlaylistClose.Rect.X;
|
_CompleteRect.X = _ButtonPlaylistClose.Rect.X;
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ namespace VocaluxeLib.Songs
|
|||||||
if (identifier.StartsWith("DUETSINGER"))
|
if (identifier.StartsWith("DUETSINGER"))
|
||||||
{
|
{
|
||||||
identifier = identifier.Substring(10);
|
identifier = identifier.Substring(10);
|
||||||
if (identifier.StartsWith("P")) // fix for missing "P"
|
if (!identifier.StartsWith("P")) // fix for missing "P"
|
||||||
identifier = "P" + identifier;
|
identifier = "P" + identifier;
|
||||||
}
|
}
|
||||||
if (identifier.StartsWith("P"))
|
if (identifier.StartsWith("P"))
|
||||||
|
|||||||
Reference in new issue
Block a user