1
0
mirror of synced 2024-11-24 15:40:22 +01:00

Fix Heya crash + center menu character animations

This commit is contained in:
0aubsq 2022-04-02 23:32:03 +02:00
parent 87dba7c871
commit 438e3c1e84
3 changed files with 20 additions and 3 deletions

View File

@ -376,6 +376,12 @@ namespace FDK
{
this.t2D描画(device, x - (this.szテクスチャサイズ.Width / 2), y - (this.szテクスチャサイズ.Height / 2), 1f, this.rc全画像);
}
public void t2D中心基準描画Mirrored(Device device, int x, int y)
{
this.t2D左右反転描画(device, x - (this.szテクスチャサイズ.Width / 2), y - (this.szテクスチャサイズ.Height / 2), 1f, this.rc全画像);
}
public void t2D中心基準描画(Device device, int x, int y, Rectangle rc画像内の描画領域)
{
this.t2D描画(device, x - (rc画像内の描画領域.Width / 2), y - (rc画像内の描画領域.Height / 2), 1f, rc画像内の描画領域);

View File

@ -140,9 +140,19 @@ namespace TJAPlayer3
_ctref[player].t進行();
if (player % 2 == 0)
_ref[_ctref[player].n現在の値].t2D描画(TJAPlayer3.app.Device, x, y);
{
//_ref[_ctref[player].n現在の値].t2D描画(TJAPlayer3.app.Device, x, y);
_ref[_ctref[player].n現在の値].t2D中心基準描画(TJAPlayer3.app.Device, x + 150, y + 156);
}
else
_ref[_ctref[player].n現在の値].t2D左右反転描画(TJAPlayer3.app.Device, x, y);
{
//_ref[_ctref[player].n現在の値].t2D左右反転描画(TJAPlayer3.app.Device, x, y);
_ref[_ctref[player].n現在の値].t2D中心基準描画Mirrored(TJAPlayer3.app.Device, x + 150, y + 156);
}
}
}

View File

@ -469,7 +469,7 @@ namespace TJAPlayer3
#endregion
#region [ ]
#region [ Inputs ]
if (TJAPlayer3.Input管理.Keyboard.bキーが押された((int)SlimDXKeys.Key.RightArrow) ||
TJAPlayer3.Pad.b押された(E楽器パート.DRUMS, Eパッド.RBlue))
@ -540,6 +540,7 @@ namespace TJAPlayer3
{
// Reload character, a bit time expensive but with a O(N) memory complexity instead of O(N * M)
TJAPlayer3.Tx.ReloadCharacter(TJAPlayer3.NamePlateConfig.data.Character[iPlayer], iCharacterCurrent, iPlayer);
CMenuCharacter.tMenuResetTimer(CMenuCharacter.ECharacterAnimation.NORMAL);
TJAPlayer3.NamePlateConfig.data.Character[iPlayer] = iCharacterCurrent;