Add serialization for all theme-elements.
This commit is contained in:
1 parent
4bbb0bfb14
commit
b2102b11d9
17 files changed
+740
-61
No files matched your search
@@ -17,11 +17,12 @@
|
||||
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using VocaluxeLib.Draw;
|
||||
|
||||
namespace VocaluxeLib.Menu
|
||||
{
|
||||
enum ESettingType
|
||||
public enum ESettingType
|
||||
{
|
||||
Int,
|
||||
String,
|
||||
@@ -29,10 +30,14 @@ namespace VocaluxeLib.Menu
|
||||
Texture
|
||||
}
|
||||
|
||||
struct SScreenSetting
|
||||
[XmlType("ScreenSetting")]
|
||||
public struct SScreenSetting
|
||||
{
|
||||
[XmlAttributeAttribute(AttributeName = "Name")]
|
||||
public string Name;
|
||||
[XmlElement("Value")]
|
||||
public string Value;
|
||||
[XmlElement("Type")]
|
||||
public ESettingType Type;
|
||||
}
|
||||
|
||||
@@ -51,6 +56,11 @@ namespace VocaluxeLib.Menu
|
||||
return _Theme.Name;
|
||||
}
|
||||
|
||||
public bool ThemeLoaded
|
||||
{
|
||||
get { return _ThemeLoaded; }
|
||||
}
|
||||
|
||||
public CScreenSetting(int partyModeID)
|
||||
{
|
||||
_PartyModeID = partyModeID;
|
||||
@@ -113,6 +123,11 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
public void ReloadTextures() {}
|
||||
|
||||
public SScreenSetting GetTheme()
|
||||
{
|
||||
return _Theme;
|
||||
}
|
||||
|
||||
#region Private
|
||||
private int _GetIntValue(string value)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user