fixed theme switching
This commit is contained in:
1 parent
f756ce4158
commit
0e8e61905c
5 files changed
+7
-7
No files matched your search
@@ -268,12 +268,12 @@ namespace Vocaluxe.Base
|
|||||||
ReloadCursor();
|
ReloadCursor();
|
||||||
for (int i = 0; i < _Screens.Count; i++)
|
for (int i = 0; i < _Screens.Count; i++)
|
||||||
{
|
{
|
||||||
_Screens[i].ReloadTheme();
|
_Screens[i].ReloadTheme(CTheme.GetThemeScreensPath(-1));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < _PopupScreens.Count; i++)
|
for (int i = 0; i < _PopupScreens.Count; i++)
|
||||||
{
|
{
|
||||||
_PopupScreens[i].ReloadTheme();
|
_PopupScreens[i].ReloadTheme(CTheme.GetThemeScreensPath(-1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ReloadTheme() { }
|
public override void ReloadTheme(string XmlPath) { }
|
||||||
|
|
||||||
public override void SaveTheme() { }
|
public override void SaveTheme() { }
|
||||||
|
|
||||||
|
|||||||
@@ -663,14 +663,14 @@ namespace Vocaluxe.Menu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void ReloadTheme()
|
public virtual void ReloadTheme(string XmlPath)
|
||||||
{
|
{
|
||||||
if (_ThemePath == String.Empty)
|
if (_ThemePath == String.Empty)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UnloadTextures();
|
UnloadTextures();
|
||||||
Init();
|
Init();
|
||||||
LoadTheme(_ThemePath);
|
LoadTheme(XmlPath);
|
||||||
}
|
}
|
||||||
#endregion ThemeHandler
|
#endregion ThemeHandler
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Vocaluxe.Menu
|
|||||||
void SaveTheme();
|
void SaveTheme();
|
||||||
void ReloadTextures();
|
void ReloadTextures();
|
||||||
void UnloadTextures();
|
void UnloadTextures();
|
||||||
void ReloadTheme();
|
void ReloadTheme(string XmlPath);
|
||||||
|
|
||||||
bool HandleInput(KeyEvent KeyEvent);
|
bool HandleInput(KeyEvent KeyEvent);
|
||||||
bool HandleMouse(MouseEvent MouseEvent);
|
bool HandleMouse(MouseEvent MouseEvent);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
AddText(Warning);
|
AddText(Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ReloadTheme()
|
public override void ReloadTheme(string XmlPath)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user