fixed party screen translations
This commit is contained in:
1 parent
196a881bcc
commit
632206c317
12 files changed
+123
-23
No files matched your search
@@ -25,6 +25,7 @@ namespace Vocaluxe.Menu
|
||||
private List<CInteraction> _Interactions;
|
||||
private int _Selection = 0;
|
||||
private string _ThemePath = String.Empty;
|
||||
protected int _PartyModeID = -1;
|
||||
|
||||
private List<CBackground> _Backgrounds;
|
||||
private List<CButton> _Buttons;
|
||||
@@ -233,6 +234,7 @@ namespace Vocaluxe.Menu
|
||||
for (int i = 0; i < _ThemeTexts.Length; i++)
|
||||
{
|
||||
CText text = new CText(_Base);
|
||||
text.PartyModeID = _PartyModeID;
|
||||
if (text.LoadTheme("//root/" + _ThemeName, _ThemeTexts[i], navigator, SkinIndex))
|
||||
{
|
||||
_htTexts.Add(_ThemeTexts[i], AddText(text));
|
||||
@@ -1300,6 +1302,7 @@ namespace Vocaluxe.Menu
|
||||
|
||||
public int AddText(CText text)
|
||||
{
|
||||
text.PartyModeID = _PartyModeID;
|
||||
_Texts.Add(text);
|
||||
_AddInteraction(_Texts.Count - 1, EType.TText);
|
||||
return _Texts.Count - 1;
|
||||
@@ -2311,11 +2314,13 @@ namespace Vocaluxe.Menu
|
||||
|
||||
// Texts
|
||||
CText text = new CText(_Base);
|
||||
text.PartyModeID = _PartyModeID;
|
||||
i = 1;
|
||||
while (text.LoadTheme("//root/" + _ThemeName, "Text" + i.ToString(), navigator, SkinIndex))
|
||||
{
|
||||
AddText(text);
|
||||
text = new CText(_Base);
|
||||
text.PartyModeID = _PartyModeID;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,16 @@ namespace Vocaluxe.Menu
|
||||
{
|
||||
}
|
||||
|
||||
public void SetPartyModeID(int PartyModeID)
|
||||
{
|
||||
_PartyModeID = PartyModeID;
|
||||
}
|
||||
|
||||
public int GetPartyModeID()
|
||||
{
|
||||
return _PartyModeID;
|
||||
}
|
||||
|
||||
/*
|
||||
public sealed override void LoadTheme()
|
||||
{
|
||||
|
||||
@@ -43,6 +43,12 @@ namespace Vocaluxe.Menu
|
||||
void ProcessMouseMove(int x, int y);
|
||||
}
|
||||
|
||||
public interface IMenuParty
|
||||
{
|
||||
void SetPartyModeID(int PartyModeID);
|
||||
int GetPartyModeID();
|
||||
}
|
||||
|
||||
public interface IConfig
|
||||
{
|
||||
void SetBackgroundMusicVolume(int NewVolume);
|
||||
|
||||
Reference in new issue
Block a user