From 044b053e20e07b8d22c02b2750ef663e7a8d6230 Mon Sep 17 00:00:00 2001 From: Florian Kuepper Date: Sun, 16 Dec 2012 12:58:24 +0100 Subject: [PATCH] Draw avatars. --- .../Challenge/Code/PartyScreenChallengeNames.cs | 13 ++++++++++--- PartyModeChallenge/PartyScreenChallengeNames.cs | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Output/PartyModes/Challenge/Code/PartyScreenChallengeNames.cs b/Output/PartyModes/Challenge/Code/PartyScreenChallengeNames.cs index af6c4718..151ed406 100644 --- a/Output/PartyModes/Challenge/Code/PartyScreenChallengeNames.cs +++ b/Output/PartyModes/Challenge/Code/PartyScreenChallengeNames.cs @@ -238,11 +238,14 @@ namespace Vocaluxe.PartyModes //Add Player-ID to list. ProfileIDs[i] = SelectedPlayerNr; UpdateButtonNext(); - //TODO: Update texture and name - //Buttons[htButtons(PlayerButtons[i])]. = chooseAvatarStatic.Texture; + //Update texture and name + PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 1); + PlayerDestinationButtons[i].SColor = new SColorF(1, 1, 1, 1); + PlayerDestinationButtons[i].Texture = chooseAvatarStatic.Texture; + PlayerDestinationButtons[i].STexture = chooseAvatarStatic.Texture; PlayerDestinationButtons[i].Text.Text = _Base.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName; //Update Tiles-List - + UpdateButtonPlayerChoose(); } } } @@ -325,6 +328,10 @@ namespace Vocaluxe.PartyModes { PlayerChooseButtons[i].ProfileID = i; PlayerChooseButtons[i].Button.Text.Text = _Base.Profiles.GetProfiles()[i].PlayerName; + PlayerChooseButtons[i].Button.Texture = _Base.Profiles.GetProfiles()[i].Avatar.Texture; + PlayerChooseButtons[i].Button.STexture = _Base.Profiles.GetProfiles()[i].Avatar.Texture; + PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 1); + PlayerChooseButtons[i].Button.SColor = new SColorF(1, 1, 1, 1); } } } diff --git a/PartyModeChallenge/PartyScreenChallengeNames.cs b/PartyModeChallenge/PartyScreenChallengeNames.cs index af6c4718..151ed406 100644 --- a/PartyModeChallenge/PartyScreenChallengeNames.cs +++ b/PartyModeChallenge/PartyScreenChallengeNames.cs @@ -238,11 +238,14 @@ namespace Vocaluxe.PartyModes //Add Player-ID to list. ProfileIDs[i] = SelectedPlayerNr; UpdateButtonNext(); - //TODO: Update texture and name - //Buttons[htButtons(PlayerButtons[i])]. = chooseAvatarStatic.Texture; + //Update texture and name + PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 1); + PlayerDestinationButtons[i].SColor = new SColorF(1, 1, 1, 1); + PlayerDestinationButtons[i].Texture = chooseAvatarStatic.Texture; + PlayerDestinationButtons[i].STexture = chooseAvatarStatic.Texture; PlayerDestinationButtons[i].Text.Text = _Base.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName; //Update Tiles-List - + UpdateButtonPlayerChoose(); } } } @@ -325,6 +328,10 @@ namespace Vocaluxe.PartyModes { PlayerChooseButtons[i].ProfileID = i; PlayerChooseButtons[i].Button.Text.Text = _Base.Profiles.GetProfiles()[i].PlayerName; + PlayerChooseButtons[i].Button.Texture = _Base.Profiles.GetProfiles()[i].Avatar.Texture; + PlayerChooseButtons[i].Button.STexture = _Base.Profiles.GetProfiles()[i].Avatar.Texture; + PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 1); + PlayerChooseButtons[i].Button.SColor = new SColorF(1, 1, 1, 1); } } }