Fix bug on selecting profiles with keyboard.

This commit is contained in:
Florian Kuepper committed 2012-06-02 13:48:49 +02:00
1 parent 5f6ab8f3db
commit c9014fbc23
2 files changed
+2 -8

No files matched your search

+1 -7
View File
@@ -363,7 +363,7 @@ namespace Vocaluxe.Menu
break;
}
Selection = _Offset * _Tiles.Count + _actualSelection;
Selection = VisibleProfiles[_Offset * _Tiles.Count + _actualSelection];
}
public void KeyboardSelection(bool active, int player)
@@ -474,12 +474,6 @@ namespace Vocaluxe.Menu
return new CStatic();
}
public CStatic TilePlayerAvatar(int nr)
{
nr -= _Offset * _Tiles.Count;
return _Tiles[nr].Avatar;
}
public void UnloadTextures()
{
}
+1 -1
View File
@@ -148,7 +148,7 @@ namespace Vocaluxe.Screens
CConfig.Players[selectingKeyboardPlayerNr - 1] = CProfiles.Profiles[SelectedPlayerNr].ProfileFile;
CConfig.SaveConfig();
//Update texture and name
Statics[htStatics(StaticPlayerAvatar[selectingKeyboardPlayerNr-1])].Texture = NameSelections[htNameSelections(NameSelection)].TilePlayerAvatar(SelectedPlayerNr).Texture;
Statics[htStatics(StaticPlayerAvatar[selectingKeyboardPlayerNr-1])].Texture = CProfiles.Profiles[SelectedPlayerNr].Avatar.Texture;
Texts[htTexts(TextPlayer[selectingKeyboardPlayerNr-1])].Text = CProfiles.Profiles[SelectedPlayerNr].PlayerName;
//Update profile-warning
CheckPlayers();