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

Display clear and scorerank status on the song select screen for all difficulties and display the difficulty icon next to it

This commit is contained in:
0aubsq 2022-03-25 07:09:22 +01:00
parent fb55b51fb5
commit 2674b99340

View File

@ -2462,7 +2462,58 @@ namespace TJAPlayer3
TJAPlayer3.Tx.SongSelect_ScoreRank.vc拡大縮小倍率.X = _resize; TJAPlayer3.Tx.SongSelect_ScoreRank.vc拡大縮小倍率.X = _resize;
TJAPlayer3.Tx.SongSelect_ScoreRank.vc拡大縮小倍率.Y = _resize; TJAPlayer3.Tx.SongSelect_ScoreRank.vc拡大縮小倍率.Y = _resize;
int bestCrown = -1;
int bestScoreRank = -1;
for (int i = 0; i <= (int)Difficulty.Edit; i++)
{
if ([i] > 0)
bestCrown = i;
if ([i] > 0)
bestScoreRank = i;
}
if (bestCrown >= 0)
{
TJAPlayer3.Tx.SongSelect_Crown?.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y, new RectangleF(12 * 43.2f + ([bestCrown] - 1) * 43.2f, 0, 43.2f, 39));
}
if (bestScoreRank >= 0)
{
TJAPlayer3.Tx.SongSelect_ScoreRank?.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y + 30, new RectangleF(0, ([bestScoreRank] - 1) * 42.71f, 50, 42.71f));
}
if (TJAPlayer3.Tx.Dani_Difficulty_Cymbol != null)
{
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.Opacity = TJAPlayer3.Tx.SongSelect_Favorite.Opacity;
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.vc拡大縮小倍率.X = 0.5f;
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.vc拡大縮小倍率.Y = 0.5f;
if (bestCrown >= 0)
{
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.t2D中心基準描画(TJAPlayer3.app.Device,
x + 22,
y + 22,
new Rectangle(bestCrown * 53, 0, 53, 53));
}
if (bestScoreRank >= 0)
{
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.t2D中心基準描画(TJAPlayer3.app.Device,
x + 22,
y + 52,
new Rectangle(bestScoreRank * 53, 0, 53, 53));
}
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.Opacity = 255;
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.vc拡大縮小倍率.X = 1f;
TJAPlayer3.Tx.Dani_Difficulty_Cymbol.vc拡大縮小倍率.Y = 1f;
}
// Other crowns // Other crowns
/*
if ([3] > 0 && [4] == 0) if ([3] > 0 && [4] == 0)
TJAPlayer3.Tx.SongSelect_Crown.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y, new RectangleF(9 * 43.2f + ([3] - 1) * 43.2f, 0, 43.2f, 39)); TJAPlayer3.Tx.SongSelect_Crown.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y, new RectangleF(9 * 43.2f + ([3] - 1) * 43.2f, 0, 43.2f, 39));
else if ([4] > 0) else if ([4] > 0)
@ -2472,6 +2523,7 @@ namespace TJAPlayer3
TJAPlayer3.Tx.SongSelect_ScoreRank.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y + 30, new RectangleF(0, ([3] - 1) * 42.71f, 50, 42.71f)); TJAPlayer3.Tx.SongSelect_ScoreRank.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y + 30, new RectangleF(0, ([3] - 1) * 42.71f, 50, 42.71f));
else if ([4] > 0) else if ([4] > 0)
TJAPlayer3.Tx.SongSelect_ScoreRank.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y + 30, new RectangleF(0, ([4] - 1) * 42.71f, 50, 42.71f)); TJAPlayer3.Tx.SongSelect_ScoreRank.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y + 30, new RectangleF(0, ([4] - 1) * 42.71f, 50, 42.71f));
*/
} }
public void displayFavoriteStatus(int x, int y, CSongUniqueID csu, float _resize) public void displayFavoriteStatus(int x, int y, CSongUniqueID csu, float _resize)