1
0
mirror of synced 2024-11-23 23:21:06 +01:00

fix layout shift on the nameplate title select on the heya menu

This commit is contained in:
0auBSQ 2024-07-27 01:01:32 +09:00
parent e8ab079e4d
commit 694e1119a3

View File

@ -740,6 +740,11 @@ namespace TJAPlayer3 {
if (_dans != null && _dans.ContainsKey(_dan))
iDanTitleCurrent = _dans.Keys.ToList().IndexOf(_dan) + 1;
foreach (var plate in _titles.Select((value, i) => new { i, value })) {
if (TJAPlayer3.SaveFileInstances[iPlayer].data.TitleId == plate.value)
iTitleCurrent = plate.i + 1;
}
iCharacterCurrent = Math.Max(0, Math.Min(TJAPlayer3.Skin.Characters_Ptn - 1, TJAPlayer3.SaveFileInstances[iPlayer].data.Character));
//iPuchiCharaCurrent = Math.Max(0, Math.Min(TJAPlayer3.Skin.Puchichara_Ptn - 1, TJAPlayer3.NamePlateConfig.data.PuchiChara[this.iPlayer]));