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

読み込み画面のキャラの移動距離を変更可能に (#331)

This commit is contained in:
Takkkom 2022-11-27 15:20:17 +09:00 committed by GitHub
parent 00e982ddfc
commit 26b45e3e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 5 deletions

View File

@ -2478,6 +2478,14 @@ namespace TJAPlayer3
if (int.Parse(strParam) > 0)
SongLoading_SubTitle_FontSize = int.Parse(strParam);
}
else if (strCommand == "SongLoading_Chara_Move")
{
string[] strSplit = strParam.Split(',');
for (int i = 0; i < 2; i++)
{
SongLoading_Chara_Move[i] = int.Parse(strSplit[i]);
}
}
else if (strCommand == nameof(SongLoading_Plate_ReferencePoint))
{
SongLoading_Plate_ReferencePoint = (ReferencePoint)int.Parse(strParam);
@ -4126,6 +4134,7 @@ namespace TJAPlayer3
public int SongLoading_SubTitle_Y = 325;
public int SongLoading_Title_FontSize = 31;
public int SongLoading_SubTitle_FontSize = 20;
public int[] SongLoading_Chara_Move = new int[] { 250, -80 };
public ReferencePoint SongLoading_Plate_ReferencePoint = ReferencePoint.Center;
public ReferencePoint SongLoading_Title_ReferencePoint = ReferencePoint.Center;
public ReferencePoint SongLoading_SubTitle_ReferencePoint = ReferencePoint.Center;

View File

@ -176,7 +176,7 @@ namespace TJAPlayer3
TJAPlayer3.Tx.SongLoading_Plate.Opacity = (int)opacity;
TJAPlayer3.Tx.SongLoading_Plate.vc拡大縮小倍率.X = scaleX;
TJAPlayer3.Tx.SongLoading_Plate.vc拡大縮小倍率.Y = scaleY;
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, SizeX_Harf - (SizeX_Harf * scaleX) + (1280.0f / 2.0f) - SizeX_Harf, TJAPlayer3.Skin.SongLoading_Plate_Y - SizeY_Harf + ((1f - scaleY) * SizeY_Harf));
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X + SizeX_Harf - (SizeX_Harf * scaleX) - SizeX_Harf, TJAPlayer3.Skin.SongLoading_Plate_Y - SizeY_Harf + ((1f - scaleY) * SizeY_Harf));
}
public void DrawChara(double time, float opacity, float X = -1, float Y = -1)
@ -187,15 +187,15 @@ namespace TJAPlayer3
if (X == -1 && Y == -1)
{
Y = -(float)(Math.Sin((time - 680f) * (Math.PI / 320.0)) * 80f);
X = (float)((time - 680f) / 320.0) * 250f;
Y = (float)(Math.Sin((time - 680f) * (Math.PI / 320.0)) * TJAPlayer3.Skin.SongLoading_Chara_Move[1]);
X = (float)((time - 680f) / 320.0) * TJAPlayer3.Skin.SongLoading_Chara_Move[0];
}
TJAPlayer3.Tx.SongLoading_Chara.Opacity = (int)opacity;
//左どんちゃん
TJAPlayer3.Tx.SongLoading_Chara.t2D描画(TJAPlayer3.app.Device, -250f + X, Y, new RectangleF(0, 0, SizeXHarf, SizeY));
TJAPlayer3.Tx.SongLoading_Chara.t2D描画(TJAPlayer3.app.Device, -TJAPlayer3.Skin.SongLoading_Chara_Move[0] + X, Y, new RectangleF(0, 0, SizeXHarf, SizeY));
//左どんちゃん
TJAPlayer3.Tx.SongLoading_Chara.t2D描画(TJAPlayer3.app.Device, SizeXHarf + 250f - X, Y, new RectangleF(SizeXHarf, 0, SizeXHarf, SizeY));
TJAPlayer3.Tx.SongLoading_Chara.t2D描画(TJAPlayer3.app.Device, SizeXHarf + TJAPlayer3.Skin.SongLoading_Chara_Move[0] - X, Y, new RectangleF(SizeXHarf, 0, SizeXHarf, SizeY));
}
// その他

View File

@ -15,6 +15,7 @@ Game_Taiko_NamePlate_Y=297,371
#include TitleConfig.ini
#include ConfigConfig.ini
#include SongSelectConfig.ini
#include SongLoadingConfig.ini
Game_Notes_Anime=1

View File

@ -0,0 +1,25 @@
;Included file
;あとは通常通り設定できます
SongLoading_Plate_X=640
SongLoading_Plate_Y=360
SongLoading_Title_X=640
SongLoading_Title_Y=280
SongLoading_SubTitle_X=640
SongLoading_SubTitle_Y=325
SongLoading_Title_FontSize=31
SongLoading_SubTitle_FontSize=20
SongLoading_Chara_Move=250,-80