fixed some bugs
This commit is contained in:
1 parent
2f1795d9a3
commit
50046901fd
2 files changed
+6
No files matched your search
@@ -103,6 +103,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
_ChooseAvatarStatic = GetNewStatic();
|
_ChooseAvatarStatic = GetNewStatic();
|
||||||
_ChooseAvatarStatic.Visible = false;
|
_ChooseAvatarStatic.Visible = false;
|
||||||
|
_ChooseAvatarStatic.Aspect = EAspect.Crop;
|
||||||
|
|
||||||
CProfiles.AddProfileChangedCallback(new ProfileChangedCallback(_OnProfileChanged));
|
CProfiles.AddProfileChangedCallback(new ProfileChangedCallback(_OnProfileChanged));
|
||||||
}
|
}
|
||||||
@@ -112,7 +113,10 @@ namespace Vocaluxe.Screens
|
|||||||
base.LoadTheme(xmlPath);
|
base.LoadTheme(xmlPath);
|
||||||
|
|
||||||
for (int i = 0; i < CSettings.MaxNumPlayer; i++)
|
for (int i = 0; i < CSettings.MaxNumPlayer; i++)
|
||||||
|
{
|
||||||
_OriginalPlayerAvatarTextures[i] = _Statics[_StaticPlayerAvatar[i]].Texture;
|
_OriginalPlayerAvatarTextures[i] = _Statics[_StaticPlayerAvatar[i]].Texture;
|
||||||
|
_Statics[_StaticPlayerAvatar[i]].Aspect = EAspect.Crop;
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 1; i <= CSettings.MaxNumPlayer; i++)
|
for (int i = 1; i <= CSettings.MaxNumPlayer; i++)
|
||||||
_Equalizers["EqualizerPlayer" + i].ScreenHandles = true;
|
_Equalizers["EqualizerPlayer" + i].ScreenHandles = true;
|
||||||
@@ -472,6 +476,7 @@ namespace Vocaluxe.Screens
|
|||||||
//Update texture and name
|
//Update texture and name
|
||||||
_Statics[_StaticPlayerAvatar[_SelectingSwitchNr]].Texture = _OriginalPlayerAvatarTextures[_SelectingSwitchNr];
|
_Statics[_StaticPlayerAvatar[_SelectingSwitchNr]].Texture = _OriginalPlayerAvatarTextures[_SelectingSwitchNr];
|
||||||
_Texts[_TextPlayer[_SelectingSwitchNr]].Text = CProfiles.GetPlayerName(-1, (_SelectingSwitchNr + 1));
|
_Texts[_TextPlayer[_SelectingSwitchNr]].Text = CProfiles.GetPlayerName(-1, (_SelectingSwitchNr + 1));
|
||||||
|
_NameSelections[_NameSelection].UpdateList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_SelectingSwitchNr = -1;
|
_SelectingSwitchNr = -1;
|
||||||
|
|||||||
@@ -489,6 +489,7 @@ namespace VocaluxeLib.Menu
|
|||||||
{
|
{
|
||||||
SRectF rect = new SRectF(Rect.X + j * (_TileW + _SpaceW), Rect.Y + i * (_TileH + _SpaceH), _TileW, _TileH, Rect.Z);
|
SRectF rect = new SRectF(Rect.X + j * (_TileW + _SpaceW), Rect.Y + i * (_TileH + _SpaceH), _TileW, _TileH, Rect.Z);
|
||||||
CStatic tileStatic = new CStatic(_PartyModeID, _TextureEmptyTile, ColorEmptyTile, rect);
|
CStatic tileStatic = new CStatic(_PartyModeID, _TextureEmptyTile, ColorEmptyTile, rect);
|
||||||
|
tileStatic.Aspect = EAspect.Crop;
|
||||||
CText tileText = new CText(rect.X + rect.W / 2, rect.Y + rect.H + _Theme.NameSpace, rect.Z, _Theme.NameHeight, rect.W, EAlignment.Center, _Theme.NameStyle,
|
CText tileText = new CText(rect.X + rect.W / 2, rect.Y + rect.H + _Theme.NameSpace, rect.Z, _Theme.NameHeight, rect.W, EAlignment.Center, _Theme.NameStyle,
|
||||||
_Theme.NameFont, _Theme.NameColor, "");
|
_Theme.NameFont, _Theme.NameColor, "");
|
||||||
_Tiles.Add(new CTile(tileStatic, tileText, -1));
|
_Tiles.Add(new CTile(tileStatic, tileText, -1));
|
||||||
|
|||||||
Reference in new issue
Block a user