From dd68cc5dbfb8cf6cea7a3b629252209a4c456b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Sun, 6 Jan 2013 15:25:13 +0100 Subject: [PATCH] Finished scrolling in tic-tac-toe-names. --- .../Screens/PartyScreenTicTacToeNames.xml | 98 +++++++++++++++++++ .../PartyScreenTicTacToeNames.cs | 8 +- 2 files changed, 103 insertions(+), 3 deletions(-) diff --git a/Output/PartyModes/TicTacToe/Screens/PartyScreenTicTacToeNames.xml b/Output/PartyModes/TicTacToe/Screens/PartyScreenTicTacToeNames.xml index 15071a58..ee4f79d1 100644 --- a/Output/PartyModes/TicTacToe/Screens/PartyScreenTicTacToeNames.xml +++ b/Output/PartyModes/TicTacToe/Screens/PartyScreenTicTacToeNames.xml @@ -116,6 +116,104 @@ + + + ScrollUp + + ScrollUp + + 609 + 90 + -0,01 + 28 + 15 + + + ButtonColor + + + ButtonSColor + + + 75 + 10 + + 32 + + 142 + + + ButtonTextColor + + + ButtonTextSColor + + Center + + Center + + + + Outline + + + + + + + + + + + + + ScrollDown + + ScrollDown + + 609 + 345 + -0,01 + 28 + 15 + + + ButtonColor + + + ButtonSColor + + + 75 + 10 + + 32 + + 142 + + + ButtonTextColor + + + ButtonTextSColor + + Center + + Center + + + + Outline + + + + + + + + + + Button diff --git a/PartyModes/PartyModeTicTacToe/PartyScreenTicTacToeNames.cs b/PartyModes/PartyModeTicTacToe/PartyScreenTicTacToeNames.cs index 14285d11..c850b723 100644 --- a/PartyModes/PartyModeTicTacToe/PartyScreenTicTacToeNames.cs +++ b/PartyModes/PartyModeTicTacToe/PartyScreenTicTacToeNames.cs @@ -277,10 +277,10 @@ namespace Vocaluxe.PartyModes if (Buttons[htButtons(ButtonNext)].Selected) Next(); - if (Buttons[htButtons(ButtonPlayerChooseScrollUp)].Selected)) + if (Buttons[htButtons(ButtonPlayerChooseScrollUp)].Selected) Scroll(-1); - if (Buttons[htButtons(ButtonPlayerChooseScrollDown)].Selected)) + if (Buttons[htButtons(ButtonPlayerChooseScrollDown)].Selected) Scroll(1); } @@ -339,7 +339,7 @@ namespace Vocaluxe.PartyModes PlayerChooseButtonsOffset += Offset; UpdateButtonPlayerChoose(); } - else if (PlayerChooseButtonsVisibleProfiles.Count > PlayerChooseButtons.Count + (PlayerChooseButtonsOffset + Offset) * PlayerChooseButtonsNumH) + else if (PlayerChooseButtonsVisibleProfiles.Count < PlayerChooseButtons.Count + (PlayerChooseButtonsOffset + Offset) * PlayerChooseButtonsNumH) { PlayerChooseButtonsOffset += Offset; UpdateButtonPlayerChoose(); @@ -409,6 +409,8 @@ namespace Vocaluxe.PartyModes { UpdateButtonPlayerChoose(PlayerChooseButtonsOffset); } + Buttons[htButtons(ButtonPlayerChooseScrollUp)].Enabled = PlayerChooseButtonsOffset > 0; + Buttons[htButtons(ButtonPlayerChooseScrollDown)].Enabled = PlayerChooseButtonsVisibleProfiles.Count > PlayerChooseButtons.Count + PlayerChooseButtonsOffset * PlayerChooseButtonsNumH; } private void UpdateButtonPlayerChoose(int Offset)