1
0
mirror of synced 2025-02-17 19:09:25 +01:00

Fix opacity & position

This commit is contained in:
0aubsq 2022-04-03 11:18:12 +02:00
parent 7d2aeeaf42
commit 206480aaa8
2 changed files with 11 additions and 6 deletions

View File

@ -214,7 +214,7 @@ namespace TJAPlayer3
}
}
public static void tMenuDisplayCharacter(int player, int x, int y, ECharacterAnimation eca)
public static void tMenuDisplayCharacter(int player, int x, int y, ECharacterAnimation eca, int opacity = 255)
{
CTexture[] _ref = _getReferenceArray(player, eca);
CCounter[] _ctref = _getReferenceCounter(eca);
@ -235,7 +235,8 @@ namespace TJAPlayer3
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.X = 1.3f;
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.Y = 1.3f;
}
_ref[_ctref[player].n現在の値].Opacity = opacity;
if (player % 2 == 0)
{
@ -244,7 +245,7 @@ namespace TJAPlayer3
_ref[_ctref[player].n現在の値].t2D拡大率考慮下中心基準描画(TJAPlayer3.app.Device,
x + 150,
y + ((_substitute == true) ? 290 : 312)
y + ((_substitute == true) ? 290 : _ref[_ctref[player].n現在の値].szテクスチャサイズ.Height) // 312
);
}
else
@ -254,7 +255,7 @@ namespace TJAPlayer3
_ref[_ctref[player].n現在の値].t2D拡大率考慮下中心基準描画Mirrored(TJAPlayer3.app.Device,
x + 150,
y + ((_substitute == true) ? 290 : 312)
y + ((_substitute == true) ? 290 : _ref[_ctref[player].n現在の値].szテクスチャサイズ.Height) // 312
);
}
@ -265,6 +266,8 @@ namespace TJAPlayer3
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.Y = 1f;
}
_ref[_ctref[player].n現在の値].Opacity = 255;
}
}

View File

@ -520,18 +520,20 @@ namespace TJAPlayer3
TJAPlayer3.Tx.Entry_Player[0].Opacity = alpha;
TJAPlayer3.Tx.Entry_Player[1].Opacity = alpha;
/*
var ___ttx = CMenuCharacter._getReferenceArray(0, CMenuCharacter.ECharacterAnimation.ENTRY)
[CMenuCharacter._getReferenceCounter(CMenuCharacter.ECharacterAnimation.ENTRY)[0].n現在の値];
___ttx.Opacity = alpha;
*/
//TJAPlayer3.Tx.Donchan_Entry[this.ctどんちゃんエントリーループ.n現在の値].Opacity = alpha;
TJAPlayer3.Tx.Entry_Player[0].t2D描画(TJAPlayer3.app.Device, 0, 0);
//TJAPlayer3.Tx.Donchan_Entry[this.ctどんちゃんエントリーループ.n現在の値].t2D描画(TJAPlayer3.app.Device, 485, 140);
CMenuCharacter.tMenuDisplayCharacter(0, 485, 140, CMenuCharacter.ECharacterAnimation.ENTRY);
CMenuCharacter.tMenuDisplayCharacter(0, 485, 140, CMenuCharacter.ECharacterAnimation.ENTRY, alpha);
___ttx.Opacity = 255;
//___ttx.Opacity = 255;
this.PuchiChara.On進行描画(485 + 100, 140 + 190, false, alpha);