1
0
mirror of synced 2024-11-28 09:20:53 +01:00

Base code for render image support for Characters and puchicharas on heya

This commit is contained in:
0auBSQ 2023-02-18 04:32:08 +09:00
parent b3cd18cd26
commit 159852524a
3 changed files with 19 additions and 2 deletions

View File

@ -12,6 +12,7 @@ namespace TJAPlayer3
class CPuchichara class CPuchichara
{ {
public CTexture tx; public CTexture tx;
public CTexture render;
public CSkin.Cシステムサウンド welcome; public CSkin.Cシステムサウンド welcome;
public DBPuchichara.PuchicharaData metadata; public DBPuchichara.PuchicharaData metadata;
public DBUnlockables.CUnlockConditions unlock; public DBUnlockables.CUnlockConditions unlock;
@ -28,6 +29,9 @@ namespace TJAPlayer3
tx.vc拡大縮小倍率 = new SharpDX.Vector3(TJAPlayer3.Skin.Game_PuchiChara_Scale[0]); tx.vc拡大縮小倍率 = new SharpDX.Vector3(TJAPlayer3.Skin.Game_PuchiChara_Scale[0]);
} }
// Heya render
render = TJAPlayer3.Tx.TxCAbsolute($@"{path}\Render.png");
// Puchichara welcome sfx // Puchichara welcome sfx
welcome = new CSkin.Cシステムサウンド($@"{path}\Welcome.ogg", false, false, true, ESoundGroup.Voice); welcome = new CSkin.Cシステムサウンド($@"{path}\Welcome.ogg", false, false, true, ESoundGroup.Voice);

View File

@ -1019,6 +1019,7 @@ namespace TJAPlayer3
Heya_Center_Menu_Box = TxC(HEYA + @"Center_Menu_Box.png"); Heya_Center_Menu_Box = TxC(HEYA + @"Center_Menu_Box.png");
Heya_Center_Menu_Box_Slot = TxC(HEYA + @"Center_Menu_Box_Slot.png"); Heya_Center_Menu_Box_Slot = TxC(HEYA + @"Center_Menu_Box_Slot.png");
Heya_Side_Menu = TxC(HEYA + @"Side_Menu.png"); Heya_Side_Menu = TxC(HEYA + @"Side_Menu.png");
Heya_Render_Field = TxC(HEYA + @"Render_Field.png");
Heya_Box = TxC(HEYA + @"Box.png"); Heya_Box = TxC(HEYA + @"Box.png");
Heya_Lock = TxC(HEYA + @"Lock.png"); Heya_Lock = TxC(HEYA + @"Lock.png");
@ -1032,6 +1033,7 @@ namespace TJAPlayer3
TJAPlayer3.Skin.Characters_Ptn = charaDirs.Length; TJAPlayer3.Skin.Characters_Ptn = charaDirs.Length;
Characters_Heya_Preview = new CTexture[TJAPlayer3.Skin.Characters_Ptn]; Characters_Heya_Preview = new CTexture[TJAPlayer3.Skin.Characters_Ptn];
Characters_Heya_Render = new CTexture[TJAPlayer3.Skin.Characters_Ptn];
Characters = new CCharacter[TJAPlayer3.Skin.Characters_Ptn]; Characters = new CCharacter[TJAPlayer3.Skin.Characters_Ptn];
Characters_Normal = new CTexture[TJAPlayer3.Skin.Characters_Ptn][]; Characters_Normal = new CTexture[TJAPlayer3.Skin.Characters_Ptn][];
@ -1139,6 +1141,7 @@ namespace TJAPlayer3
for (int i = 0; i < TJAPlayer3.Skin.Characters_Ptn; i++) for (int i = 0; i < TJAPlayer3.Skin.Characters_Ptn; i++)
{ {
Characters_Heya_Preview[i] = TxCGlobal(CHARACTERS + TJAPlayer3.Skin.Characters_DirName[i] + @"\Normal\0.png"); Characters_Heya_Preview[i] = TxCGlobal(CHARACTERS + TJAPlayer3.Skin.Characters_DirName[i] + @"\Normal\0.png");
Characters_Heya_Render[i] = TxCGlobal(CHARACTERS + TJAPlayer3.Skin.Characters_DirName[i] + @"Render.png");
Characters[i] = new CCharacter(charaDirs[i]); Characters[i] = new CCharacter(charaDirs[i]);
} }
@ -2246,6 +2249,7 @@ namespace TJAPlayer3
Heya_Center_Menu_Box_Slot, Heya_Center_Menu_Box_Slot,
Heya_Side_Menu, Heya_Side_Menu,
Heya_Box, Heya_Box,
Heya_Render_Field,
Heya_Lock; Heya_Lock;
#endregion #endregion
@ -2279,7 +2283,8 @@ namespace TJAPlayer3
Characters_Result_Failed_In, Characters_Result_Failed_In,
Characters_Result_Normal; Characters_Result_Normal;
public CTexture[] Characters_Heya_Preview; public CTexture[] Characters_Heya_Preview,
Characters_Heya_Render;
public CCharacter[] Characters; public CCharacter[] Characters;
#endregion #endregion

View File

@ -193,6 +193,14 @@ namespace TJAPlayer3
Background.Draw(); Background.Draw();
//TJAPlayer3.Tx.Heya_Background.t2D描画(TJAPlayer3.app.Device, 0, 0); //TJAPlayer3.Tx.Heya_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
#region [Render field]
if (iCurrentMenu == 0 || iCurrentMenu == 1) TJAPlayer3.Tx.Heya_Render_Field?.t2D描画(TJAPlayer3.app.Device, 0, 0);
if (iCurrentMenu == 0) TJAPlayer3.Tx.Puchichara[iPuchiCharaCurrent].render?.t2D描画(TJAPlayer3.app.Device, 0, 0);
if (iCurrentMenu == 1) TJAPlayer3.Tx.Characters_Heya_Render[iCharacterCurrent]?.t2D描画(TJAPlayer3.app.Device, 0, 0);
#endregion
#region [Menus display] #region [Menus display]
#region [Main menu (Side bar)] #region [Main menu (Side bar)]