Try it for background.
This commit is contained in:
1 parent
6b958527ce
commit
4bbb0bfb14
2 files changed
+27
-7
No files matched your search
@@ -18,6 +18,7 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using System.Diagnostics;
|
||||
using System.Collections.Generic;
|
||||
using VocaluxeLib.Draw;
|
||||
@@ -33,18 +34,22 @@ namespace VocaluxeLib.Menu
|
||||
Video
|
||||
}
|
||||
|
||||
struct SThemeBackground
|
||||
[XmlType("Background")]
|
||||
public struct SThemeBackground
|
||||
{
|
||||
[XmlAttributeAttribute(AttributeName = "Name")]
|
||||
public string Name;
|
||||
|
||||
[XmlElement("Type")]
|
||||
public EBackgroundTypes Type;
|
||||
|
||||
[XmlArray]
|
||||
public List<string> SlideShowTextures;
|
||||
|
||||
[XmlElement("Video")]
|
||||
public string VideoName;
|
||||
[XmlElement("Skin")]
|
||||
public string TextureName;
|
||||
|
||||
[XmlElement("ColorName")]
|
||||
public string ColorName;
|
||||
public SColorF Color;
|
||||
}
|
||||
|
||||
public class CBackground : IMenuElement
|
||||
@@ -101,6 +106,8 @@ namespace VocaluxeLib.Menu
|
||||
_ThemeLoaded &= success;
|
||||
}
|
||||
|
||||
_Theme.Color = new SColorF(Color);
|
||||
|
||||
int i = 1;
|
||||
|
||||
while (xmlReader.ItemExists(item + "/SlideShow" + i))
|
||||
@@ -244,6 +251,11 @@ namespace VocaluxeLib.Menu
|
||||
UnloadTextures();
|
||||
LoadTextures();
|
||||
}
|
||||
|
||||
public SThemeBackground GetTheme()
|
||||
{
|
||||
return _Theme;
|
||||
}
|
||||
#endregion public
|
||||
|
||||
#region internal
|
||||
|
||||
Reference in new issue
Block a user