Work on challenge-names. Problem: Screen loads only 6 player-buttons.
This commit is contained in:
1 parent
def7be77e3
commit
cd74ff602e
4 files changed
+568
-11
No files matched your search
@@ -67,12 +67,22 @@ namespace Vocaluxe.PartyModes
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
|
UpdateSlides();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonBack)].Selected)
|
if (Buttons[htButtons(ButtonBack)].Selected)
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
if (Buttons[htButtons(ButtonNext)].Selected)
|
if (Buttons[htButtons(ButtonNext)].Selected)
|
||||||
Next();
|
Next();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Keys.Left:
|
||||||
|
UpdateSlides();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Keys.Right:
|
||||||
|
UpdateSlides();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
const string ButtonNext = "ButtonNext";
|
const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
const string ButtonBack = "ButtonBack";
|
||||||
|
const string NameSelection = "NameSelection";
|
||||||
|
|
||||||
|
private List<string> PlayerButtons;
|
||||||
|
|
||||||
|
//TODO: Get this data from party-mode!
|
||||||
|
private int NumPlayers = 10;
|
||||||
|
|
||||||
private DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
|
|
||||||
@@ -25,8 +31,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
|
PlayerButtons = new List<string>();
|
||||||
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
|
{
|
||||||
|
PlayerButtons.Add("ButtonPlayer" + i);
|
||||||
|
}
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeNames";
|
_ThemeName = "PartyScreenChallengeNames";
|
||||||
_ThemeButtons = new string[] { ButtonNext, ButtonBack };
|
List<string> buttons = new List<string>();
|
||||||
|
buttons.Add(ButtonNext);
|
||||||
|
buttons.Add(ButtonBack);
|
||||||
|
buttons.AddRange(PlayerButtons);
|
||||||
|
_ThemeButtons = buttons.ToArray();
|
||||||
|
_ThemeNameSelections = new string[] { NameSelection };
|
||||||
_ScreenVersion = ScreenVersion;
|
_ScreenVersion = ScreenVersion;
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
@@ -87,7 +104,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
if (MouseEvent.RB)
|
if (MouseEvent.RB)
|
||||||
{
|
{
|
||||||
FadeTo(EScreens.ScreenParty);
|
Back();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -96,6 +113,18 @@ namespace Vocaluxe.PartyModes
|
|||||||
public override void OnShow()
|
public override void OnShow()
|
||||||
{
|
{
|
||||||
base.OnShow();
|
base.OnShow();
|
||||||
|
Buttons[htButtons(ButtonBack)].Text.Text = _PartyMode.GetMaxPlayer().ToString();
|
||||||
|
/**
|
||||||
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
|
{
|
||||||
|
Buttons[htButtons("ButtonPlayer" + i)].Text.Text = "Player " + i;
|
||||||
|
if (i <= NumPlayers)
|
||||||
|
Buttons[htButtons("ButtonPlayer" + i)].Visible = true;
|
||||||
|
else
|
||||||
|
Buttons[htButtons("ButtonPlayer" + i)].Visible = false;
|
||||||
|
}
|
||||||
|
**/
|
||||||
|
NameSelections[htNameSelections(NameSelection)].Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool UpdateGame()
|
public override bool UpdateGame()
|
||||||
|
|||||||
@@ -172,12 +172,502 @@
|
|||||||
<Height>26</Height>
|
<Height>26</Height>
|
||||||
</SReflection>
|
</SReflection>
|
||||||
</ButtonBack>
|
</ButtonBack>
|
||||||
|
<ButtonPlayer1>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>900</X>
|
||||||
|
<Y>105</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer1>
|
||||||
|
<ButtonPlayer2>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>1015</X>
|
||||||
|
<Y>105</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer2>
|
||||||
|
<ButtonPlayer3>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>1130</X>
|
||||||
|
<Y>105</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer3>
|
||||||
|
<ButtonPlayer4>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>900</X>
|
||||||
|
<Y>230</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer4>
|
||||||
|
<ButtonPlayer5>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>1015</X>
|
||||||
|
<Y>230</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer5>
|
||||||
|
<ButtonPlayer6>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>1130</X>
|
||||||
|
<Y>230</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer6>
|
||||||
|
<ButtonPlayer7>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>952</X>
|
||||||
|
<Y>345</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer7>
|
||||||
|
<ButtonPlayer8>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>1077</X>
|
||||||
|
<Y>345</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer8>
|
||||||
|
<ButtonPlayer9>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>952</X>
|
||||||
|
<Y>460</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer9>
|
||||||
|
<ButtonPlayer10>
|
||||||
|
<!--<Skin>: Texture name-->
|
||||||
|
<Skin>CoverTile</Skin>
|
||||||
|
<!--<SkinSelected>: Texture name for selected button-->
|
||||||
|
<SkinSelected>CoverTile</SkinSelected>
|
||||||
|
<!--<X>, <Y>, <Z>, <W>, <H>: Button position, width and height-->
|
||||||
|
<X>1077</X>
|
||||||
|
<Y>460</Y>
|
||||||
|
<Z>0,00</Z>
|
||||||
|
<W>100</W>
|
||||||
|
<H>100</H>
|
||||||
|
<!--<Color>: Button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonColor</Color>
|
||||||
|
<!--<SColor>: Selected button color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonSColor</SColor>
|
||||||
|
<Text>
|
||||||
|
<!--<X>, <Y>: Text position-->
|
||||||
|
<X>50</X>
|
||||||
|
<Y>102</Y>
|
||||||
|
<!--<H>: Text height-->
|
||||||
|
<H>20</H>
|
||||||
|
<!--<MaxW>: Maximum text width (if exists)-->
|
||||||
|
<MaxW>98</MaxW>
|
||||||
|
<!--<Color>: Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <R>, <G>, <B>, <A> (lower priority)-->
|
||||||
|
<Color>ButtonTextColor</Color>
|
||||||
|
<!--<SColor>: Selected Text color from ColorScheme (high priority)-->
|
||||||
|
<!--or <SR>, <SG>, <SB>, <SA> (lower priority)-->
|
||||||
|
<SColor>ButtonTextSColor</SColor>
|
||||||
|
<!--<Align>: Text align horizontal: Left, Center, Right-->
|
||||||
|
<Align>Center</Align>
|
||||||
|
<!--<HAlign>: Text align vertical (on downsizing): Top, Center, Bottom-->
|
||||||
|
<HAlign>Center</HAlign>
|
||||||
|
<!--<Style>: Text style: Normal, Italic, Bold, BoldItalic-->
|
||||||
|
<Style>Bold</Style>
|
||||||
|
<!--<Font>: Text font name-->
|
||||||
|
<Font>Outline</Font>
|
||||||
|
<!--<Text>: Nothing or translation tag-->
|
||||||
|
<Text />
|
||||||
|
</Text>
|
||||||
|
<!--<Reflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space-->
|
||||||
|
<!-- <Height>: Reflection Height-->
|
||||||
|
<!--<SReflection> If exists:-->
|
||||||
|
<!-- <Space>: Reflection Space of selected button-->
|
||||||
|
<!-- <Height>: Reflection Height of selected button-->
|
||||||
|
</ButtonPlayer10>
|
||||||
<NameSelection>
|
<NameSelection>
|
||||||
<!--<X>, <Y>, <Z>, <W>, <H>: NameSelection position, width and height-->
|
<!--<X>, <Y>, <Z>, <W>, <H>: NameSelection position, width and height-->
|
||||||
<X>172</X>
|
<X>52</X>
|
||||||
<Y>127</Y>
|
<Y>105</Y>
|
||||||
<Z>0,00</Z>
|
<Z>0,00</Z>
|
||||||
<W>945</W>
|
<W>805</W>
|
||||||
<H>393</H>
|
<H>393</H>
|
||||||
<!--<SkinEmptyTile>: Texture name-->
|
<!--<SkinEmptyTile>: Texture name-->
|
||||||
<SkinEmptyTile>CoverTile</SkinEmptyTile>
|
<SkinEmptyTile>CoverTile</SkinEmptyTile>
|
||||||
@@ -195,11 +685,11 @@
|
|||||||
<W>100</W>
|
<W>100</W>
|
||||||
<H>100</H>
|
<H>100</H>
|
||||||
<!--<NumW>, <NumH>: Number of tiles-->
|
<!--<NumW>, <NumH>: Number of tiles-->
|
||||||
<NumW>8</NumW>
|
<NumW>7</NumW>
|
||||||
<NumH>3</NumH>
|
<NumH>4</NumH>
|
||||||
<!--<SpaceW>, <SpaceH>: Space between tiles-->
|
<!--<SpaceW>, <SpaceH>: Space between tiles-->
|
||||||
<SpaceW>20,71</SpaceW>
|
<SpaceW>15,00</SpaceW>
|
||||||
<SpaceH>30,00</SpaceH>
|
<SpaceH>25,00</SpaceH>
|
||||||
<!--<Name>: Options for player-name-->
|
<!--<Name>: Options for player-name-->
|
||||||
<Name>
|
<Name>
|
||||||
<!--<Space>: Space between name and tile-->
|
<!--<Space>: Space between name and tile-->
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
const string ButtonNext = "ButtonNext";
|
const string ButtonNext = "ButtonNext";
|
||||||
const string ButtonBack = "ButtonBack";
|
const string ButtonBack = "ButtonBack";
|
||||||
|
const string NameSelection = "NameSelection";
|
||||||
|
|
||||||
|
private List<string> PlayerButtons;
|
||||||
|
|
||||||
|
//TODO: Get this data from party-mode!
|
||||||
|
private int NumPlayers = 10;
|
||||||
|
|
||||||
private DataFromScreen Data;
|
private DataFromScreen Data;
|
||||||
|
|
||||||
@@ -25,8 +31,19 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
|
PlayerButtons = new List<string>();
|
||||||
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
|
{
|
||||||
|
PlayerButtons.Add("ButtonPlayer" + i);
|
||||||
|
}
|
||||||
|
|
||||||
_ThemeName = "PartyScreenChallengeNames";
|
_ThemeName = "PartyScreenChallengeNames";
|
||||||
_ThemeButtons = new string[] { ButtonNext, ButtonBack };
|
List<string> buttons = new List<string>();
|
||||||
|
buttons.Add(ButtonNext);
|
||||||
|
buttons.Add(ButtonBack);
|
||||||
|
buttons.AddRange(PlayerButtons);
|
||||||
|
_ThemeButtons = buttons.ToArray();
|
||||||
|
_ThemeNameSelections = new string[] { NameSelection };
|
||||||
_ScreenVersion = ScreenVersion;
|
_ScreenVersion = ScreenVersion;
|
||||||
|
|
||||||
Data = new DataFromScreen();
|
Data = new DataFromScreen();
|
||||||
@@ -87,7 +104,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
|
|
||||||
if (MouseEvent.RB)
|
if (MouseEvent.RB)
|
||||||
{
|
{
|
||||||
FadeTo(EScreens.ScreenParty);
|
Back();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -96,6 +113,17 @@ namespace Vocaluxe.PartyModes
|
|||||||
public override void OnShow()
|
public override void OnShow()
|
||||||
{
|
{
|
||||||
base.OnShow();
|
base.OnShow();
|
||||||
|
/**
|
||||||
|
for (int i = 1; i <= _PartyMode.GetMaxPlayer(); i++)
|
||||||
|
{
|
||||||
|
Buttons[htButtons("ButtonPlayer" + i)].Text.Text = "Player " + i;
|
||||||
|
if (i <= NumPlayers)
|
||||||
|
Buttons[htButtons("ButtonPlayer" + i)].Visible = true;
|
||||||
|
else
|
||||||
|
Buttons[htButtons("ButtonPlayer" + i)].Visible = false;
|
||||||
|
}
|
||||||
|
**/
|
||||||
|
NameSelections[htNameSelections(NameSelection)].Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool UpdateGame()
|
public override bool UpdateGame()
|
||||||
|
|||||||
Reference in new issue
Block a user