1
0
mirror of synced 2025-01-18 17:14:07 +01:00

Fix table over context box

This commit is contained in:
0aubsq 2022-04-03 00:26:28 +02:00
parent aaa500a693
commit c3bd2954c4
2 changed files with 125 additions and 114 deletions

View File

@ -176,8 +176,8 @@ namespace TJAPlayer3
// Expend if substitute to match menu size
if (_substitute)
{
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.X = 1.4f;
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.Y = 1.4f;
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.X = 1.3f;
_ref[_ctref[player].n現在の値].vc拡大縮小倍率.Y = 1.3f;
}
@ -186,14 +186,20 @@ namespace TJAPlayer3
//_ref[_ctref[player].n現在の値].t2D描画(TJAPlayer3.app.Device, x, y);
//_ref[_ctref[player].n現在の値].t2D中心基準描画(TJAPlayer3.app.Device, x + 150, y + 156);
_ref[_ctref[player].n現在の値].t2D拡大率考慮下中心基準描画(TJAPlayer3.app.Device, x + 150, y + 312);
_ref[_ctref[player].n現在の値].t2D拡大率考慮下中心基準描画(TJAPlayer3.app.Device,
x + 150,
y + ((_substitute == true) ? 290 : 312)
);
}
else
{
//_ref[_ctref[player].n現在の値].t2D左右反転描画(TJAPlayer3.app.Device, x, y);
//_ref[_ctref[player].n現在の値].t2D中心基準描画Mirrored(TJAPlayer3.app.Device, x + 150, y + 156);
_ref[_ctref[player].n現在の値].t2D拡大率考慮下中心基準描画Mirrored(TJAPlayer3.app.Device, x + 150, y + 312);
_ref[_ctref[player].n現在の値].t2D拡大率考慮下中心基準描画Mirrored(TJAPlayer3.app.Device,
x + 150,
y + ((_substitute == true) ? 290 : 312)
);
}
// Restore if substitute to avoid breaking in-game display

View File

@ -433,13 +433,6 @@ namespace TJAPlayer3
this.actInformation.On進行描画();
#region [ ]
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
TJAPlayer3.NamePlate.tNamePlateDraw(TJAPlayer3.Skin.SongSelect_NamePlate_X[i], TJAPlayer3.Skin.SongSelect_NamePlate_Y[i], i);
}
#endregion
#region[ ]
if (TJAPlayer3.Tx.SongSelect_Auto != null)
@ -481,11 +474,110 @@ namespace TJAPlayer3
}
if (this.ctDiffSelect移動待ち != null)
this.ctDiffSelect移動待ち.t進行();
this.ctDiffSelect移動待ち.t進行();
#region [Pad displayables]
int defaultTable = Math.Max(0, Math.Min((int)Difficulty.Edit + 1, TJAPlayer3.ConfigIni.nDefaultCourse));
int[] currentPads = new int[2] {
defaultTable,
defaultTable };
int tablesGap = 1034;
//int currentPad = (int)Difficulty.Edit + 1;
if (TJAPlayer3.stage選曲.act難易度選択画面.bIsDifficltSelect)
{
if (TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[0] >= 2)
currentPads[0] = TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[0] - 2;
if (TJAPlayer3.ConfigIni.nPlayerCount > 1 && TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[1] >= 2)
currentPads[1] = TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[1] - 2;
}
/*
TJAPlayer3.Tx.SongSelect_Table[currentPads[0]]?.t2D描画(TJAPlayer3.app.Device, 0, 0);
if (TJAPlayer3.ConfigIni.nPlayerCount > 1)
TJAPlayer3.Tx.SongSelect_Table[currentPads[1]]?.t2D描画(TJAPlayer3.app.Device, tablesGap, 0);
*/
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
int p = TJAPlayer3.GetActualPlayer(i);
TJAPlayer3.Tx.SongSelect_Table[currentPads[i]]?.t2D描画(TJAPlayer3.app.Device, i * tablesGap, 0);
CActSelect曲リスト.CScorePad[] SPArrRef = CSongDict.ScorePads[p];
// Current board
for (int j = 0; j < 10; j++)
{
tBoardNumberDraw(this.ptBoardNumber[j].X - 10 + i * tablesGap, this.ptBoardNumber[j].Y, j < 7 ?
SPArrRef[currentPads[i]].ScoreRankCount[j].ToString()
: SPArrRef[currentPads[i]].CrownCount[j - 7].ToString());
}
}
TJAPlayer3.Tx.SongSelect_Coin_Slot?.t2D描画(TJAPlayer3.app.Device, 0, 0,
new Rectangle(0, 0, 640 + ((TJAPlayer3.ConfigIni.nPlayerCount > 1) ? 640 : 0), 720));
// キー入力
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
int p = TJAPlayer3.GetActualPlayer(i);
if (TJAPlayer3.NamePlateConfig.data.Medals[p] >= 0)
tBoardNumberDraw(this.ptBoardNumber[10].X - 10 + i * 1140, this.ptBoardNumber[10].Y, TJAPlayer3.NamePlateConfig.data.Medals[p].ToString());
#region [HiScore plate]
var song = this.r現在選択中の曲;
if (song != null && song.eード種別 == C曲リストード.Eード種別.SCORE)
{
var closest = this.act曲リスト.n現在のアンカ難易度レベルに最も近い難易度レベルを返す(song);
var score = song.arスコア[closest];
if (score != null)
{
int posx = (i == 1) ? 1280 - this.ptBoardNumber[11].X : this.ptBoardNumber[11].X;
int displayedScore = 0;
int table = 0;
TJAPlayer3.Tx.SongSelect_High_Score?.t2D中心基準描画(TJAPlayer3.app.Device, posx, this.ptBoardNumber[11].Y);
if (this.n現在選択中の曲の難易度 > (int)Difficulty.Edit)
table = 0;
else if (currentPads[i] <= (int)Difficulty.Edit)
table = currentPads[i];
else
table = closest;
displayedScore = score.GPInfo[p].nHighScore[table];
if (this.n現在選択中の曲の難易度 <= (int)Difficulty.Edit)
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.t2D中心基準描画(TJAPlayer3.app.Device,
posx - 78,
this.ptBoardNumber[11].Y + 2,
new Rectangle(table * 53, 0, 53, 53));
tBoardNumberDraw(posx - 10, this.ptBoardNumber[11].Y + 6, displayedScore.ToString());
}
}
#endregion
}
#endregion
#region [ Inputs ]
// キー入力
if (base.eフェーズID == CStage.Eフェーズ._通常状態
&& TJAPlayer3.act現在入力を占有中のプラグイン == null)
{
@ -873,9 +965,11 @@ namespace TJAPlayer3
this.actSortSongs.t進行描画();
this.actQuickConfig.t進行描画();
}
//------------------------------
}
#endregion
//------------------------------
if (this.act難易度選択画面.bIsDifficltSelect)
{
if (this.act曲リスト.ctDifficultyIn.n現在の値 >= 1255)
@ -920,8 +1014,14 @@ namespace TJAPlayer3
}
}
// Would be good to have a separate class for Don + Puchichara + Nameplate
#region [Donchan & PuchiChara]
#region [ Nameplate ]
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
TJAPlayer3.NamePlate.tNamePlateDraw(TJAPlayer3.Skin.SongSelect_NamePlate_X[i], TJAPlayer3.Skin.SongSelect_NamePlate_Y[i], i);
}
#endregion
#region [Character & PuchiChara]
//if (this.ctDonchan_Select.b終了値に達してない)
@ -986,102 +1086,7 @@ namespace TJAPlayer3
#endregion
#region [Pad displayables]
int defaultTable = Math.Max(0, Math.Min((int)Difficulty.Edit + 1, TJAPlayer3.ConfigIni.nDefaultCourse));
int[] currentPads = new int[2] {
defaultTable,
defaultTable };
int tablesGap = 1034;
//int currentPad = (int)Difficulty.Edit + 1;
if (TJAPlayer3.stage選曲.act難易度選択画面.bIsDifficltSelect)
{
if (TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[0] >= 2)
currentPads[0] = TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[0] - 2;
if (TJAPlayer3.ConfigIni.nPlayerCount > 1 && TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[1] >= 2)
currentPads[1] = TJAPlayer3.stage選曲.act難易度選択画面.n現在の選択行[1] - 2;
}
/*
TJAPlayer3.Tx.SongSelect_Table[currentPads[0]]?.t2D描画(TJAPlayer3.app.Device, 0, 0);
if (TJAPlayer3.ConfigIni.nPlayerCount > 1)
TJAPlayer3.Tx.SongSelect_Table[currentPads[1]]?.t2D描画(TJAPlayer3.app.Device, tablesGap, 0);
*/
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
int p = TJAPlayer3.GetActualPlayer(i);
TJAPlayer3.Tx.SongSelect_Table[currentPads[i]]?.t2D描画(TJAPlayer3.app.Device, i * tablesGap, 0);
CActSelect曲リスト.CScorePad[] SPArrRef = CSongDict.ScorePads[p];
// Current board
for (int j = 0; j < 10; j++)
{
tBoardNumberDraw(this.ptBoardNumber[j].X - 10 + i * tablesGap, this.ptBoardNumber[j].Y, j < 7 ?
SPArrRef[currentPads[i]].ScoreRankCount[j].ToString()
: SPArrRef[currentPads[i]].CrownCount[j - 7].ToString());
}
}
TJAPlayer3.Tx.SongSelect_Coin_Slot?.t2D描画(TJAPlayer3.app.Device, 0, 0,
new Rectangle(0, 0, 640 + ((TJAPlayer3.ConfigIni.nPlayerCount > 1) ? 640 : 0), 720));
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
{
int p = TJAPlayer3.GetActualPlayer(i);
if (TJAPlayer3.NamePlateConfig.data.Medals[p] >= 0)
tBoardNumberDraw(this.ptBoardNumber[10].X - 10 + i * 1140, this.ptBoardNumber[10].Y, TJAPlayer3.NamePlateConfig.data.Medals[p].ToString());
#region [HiScore plate]
var song = this.r現在選択中の曲;
if (song != null && song.eード種別 == C曲リストード.Eード種別.SCORE)
{
var closest = this.act曲リスト.n現在のアンカ難易度レベルに最も近い難易度レベルを返す(song);
var score = song.arスコア[closest];
if (score != null)
{
int posx = (i == 1) ? 1280 - this.ptBoardNumber[11].X : this.ptBoardNumber[11].X;
int displayedScore = 0;
int table = 0;
TJAPlayer3.Tx.SongSelect_High_Score?.t2D中心基準描画(TJAPlayer3.app.Device, posx, this.ptBoardNumber[11].Y);
if (this.n現在選択中の曲の難易度 > (int)Difficulty.Edit)
table = 0;
else if (currentPads[i] <= (int)Difficulty.Edit)
table = currentPads[i];
else
table = closest;
displayedScore = score.GPInfo[p].nHighScore[table];
if (this.n現在選択中の曲の難易度 <= (int)Difficulty.Edit)
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.t2D中心基準描画(TJAPlayer3.app.Device,
posx - 78,
this.ptBoardNumber[11].Y + 2,
new Rectangle(table * 53, 0, 53, 53));
tBoardNumberDraw(posx - 10, this.ptBoardNumber[11].Y + 6, displayedScore.ToString());
}
}
#endregion
}
#endregion
if (act難易度選択画面.bOption[0]) actPlayOption.On進行描画(0);
if (act難易度選択画面.bOption[1]) actPlayOption.On進行描画(1);