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

Add Modals textures and Author section for Puchichara databases

This commit is contained in:
0aubsq 2022-03-05 09:28:00 +01:00
parent 8b38b907a9
commit b6b0659bd6
20 changed files with 26 additions and 2 deletions

View File

@ -19,10 +19,11 @@ namespace TJAPlayer3
public class PuchicharaData
{
public PuchicharaData(string pcn, string pcr)
public PuchicharaData(string pcn, string pcr, string pca)
{
Name = pcn;
Rarity = pcr;
Author = pca;
}
@ -31,6 +32,9 @@ namespace TJAPlayer3
[JsonProperty("rarity")]
public string Rarity;
[JsonProperty("author")]
public string Author;
}
#endregion

View File

@ -120,6 +120,7 @@ namespace TJAPlayer3
iPuchiCharaCount = 120;
ttkPuchiCharaNames = new TitleTextureKey[iPuchiCharaCount];
ttkPuchiCharaAuthors = new TitleTextureKey[iPuchiCharaCount];
var RarityToColor = new Dictionary<string, Color>
{
@ -144,6 +145,7 @@ namespace TJAPlayer3
textColor = RarityToColor[rarity];
ttkPuchiCharaNames[i] = new TitleTextureKey(dbData[i].Name, this.pfHeyaFont, textColor, Color.Black, 1000);
ttkPuchiCharaAuthors[i] = new TitleTextureKey(dbData[i].Author, this.pfHeyaFont, Color.White, Color.Black, 1000);
}
}
@ -239,17 +241,28 @@ namespace TJAPlayer3
TJAPlayer3.Tx.PuchiChara.color4 = C変換.ColorToColor4(Color.White);
#region [Database related values]
if (ttkPuchiCharaNames[pos] != null)
{
CTexture tmpTex = TJAPlayer3.stage選曲.act曲リスト.ResolveTitleTexture(ttkPuchiCharaNames[pos]);
tmpTex.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 620 + 302 * i, 448);
tmpTex.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 620 + 302 * i, 434);
}
if (ttkPuchiCharaAuthors[pos] != null)
{
CTexture tmpTex = TJAPlayer3.stage選曲.act曲リスト.ResolveTitleTexture(ttkPuchiCharaAuthors[pos]);
tmpTex.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 620 + 302 * i, 460);
}
if (puchiUnlockables.ContainsKey(pos)
&& !TJAPlayer3.NamePlateConfig.data.UnlockedPuchicharas[iPlayer].Contains(pos))
TJAPlayer3.Tx.Heya_Lock?.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 620 + 302 * i, 200);
#endregion
}
}
@ -620,6 +633,7 @@ namespace TJAPlayer3
private int iPuchiCharaCurrent;
private TitleTextureKey[] ttkPuchiCharaNames;
private TitleTextureKey[] ttkPuchiCharaAuthors;
private TitleTextureKey ttkInfoSection;
private int iCharacterCurrent;

View File

@ -2,25 +2,31 @@
0: {
"name" : "Empty0",
"rarity": "Common",
"author": "申しコミ",
},
1: {
"name" : "Empty1",
"rarity": "Common",
"author": "申しコミ",
},
2: {
"name" : "Empty2",
"rarity": "Uncommon",
"author": "申しコミ",
},
3: {
"name" : "Empty3",
"rarity": "Rare",
"author": "申しコミ",
},
4: {
"name" : "Empty4",
"rarity": "Epic",
"author": "申しコミ",
},
5: {
"name" : "Empty5",
"rarity": "Legendary",
"author": "申しコミ",
},
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB