Merge branch 'main' of https://github.com/0auBSQ/OpenTaiko
@ -323,6 +323,8 @@ namespace TJAPlayer3
|
||||
public Cシステムサウンド[] voiceClearClear = new Cシステムサウンド[5];
|
||||
public Cシステムサウンド[] voiceClearFullCombo = new Cシステムサウンド[5];
|
||||
public Cシステムサウンド[] voiceClearAllPerfect = new Cシステムサウンド[5];
|
||||
public Cシステムサウンド[] voiceAIWin = new Cシステムサウンド[5];
|
||||
public Cシステムサウンド[] voiceAILose = new Cシステムサウンド[5];
|
||||
|
||||
// Sounds\Menu
|
||||
|
||||
@ -383,6 +385,8 @@ namespace TJAPlayer3
|
||||
public Cシステムサウンド bgmタイトルイン = null;
|
||||
public Cシステムサウンド bgm選曲画面 = null;
|
||||
public Cシステムサウンド bgm選曲画面イン = null;
|
||||
public Cシステムサウンド bgmSongSelect_Dan = null;
|
||||
public Cシステムサウンド bgmSongSelect_Dan_In = null;
|
||||
public Cシステムサウンド bgmリザルト = null;
|
||||
public Cシステムサウンド bgmリザルトイン = null;
|
||||
|
||||
@ -741,7 +745,7 @@ namespace TJAPlayer3
|
||||
this.bgm起動画面 = new Cシステムサウンド(@"Sounds\Setup BGM.ogg", true, true, false, ESoundGroup.SongPlayback);
|
||||
this.bgmオプション画面 = new Cシステムサウンド(@"Sounds\Option BGM.ogg", true, true, false, ESoundGroup.SongPlayback);
|
||||
this.bgmコンフィグ画面 = new Cシステムサウンド(@"Sounds\Config BGM.ogg", true, true, false, ESoundGroup.SongPlayback);
|
||||
this.bgm選曲画面 = new Cシステムサウンド(@"Sounds\Select BGM.ogg", true, true, false, ESoundGroup.SongPlayback);
|
||||
//this.bgm選曲画面 = new Cシステムサウンド(@"Sounds\Select BGM.ogg", true, true, false, ESoundGroup.SongPlayback);
|
||||
//this.soundSongSelectChara = new Cシステムサウンド(@"Sounds\SongSelect Chara.ogg", false, false, false, ESoundGroup.SongPlayback);
|
||||
this.soundSkip = new Cシステムサウンド(@"Sounds\Skip.ogg", false, false, false, ESoundGroup.SoundEffect);
|
||||
this.SoundBanapas = new Cシステムサウンド(@"Sounds\Banapas.ogg", false, false, false, ESoundGroup.SoundEffect);
|
||||
@ -759,6 +763,8 @@ namespace TJAPlayer3
|
||||
this.bgmタイトル = new Cシステムサウンド(@"Sounds\BGM\Title.ogg", true, false, true, ESoundGroup.SongPlayback);
|
||||
this.bgm選曲画面イン = new Cシステムサウンド(@"Sounds\BGM\SongSelect_Start.ogg", false, false, true, ESoundGroup.SongPlayback);
|
||||
this.bgm選曲画面 = new Cシステムサウンド(@"Sounds\BGM\SongSelect.ogg", true, false, true, ESoundGroup.SongPlayback);
|
||||
this.bgmSongSelect_Dan_In = new Cシステムサウンド(@"Sounds\BGM\SongSelect_Dan_Start.ogg", false, false, true, ESoundGroup.SongPlayback);
|
||||
this.bgmSongSelect_Dan = new Cシステムサウンド(@"Sounds\BGM\SongSelect_Dan.ogg", true, false, true, ESoundGroup.SongPlayback);
|
||||
this.bgmリザルトイン音 = new Cシステムサウンド(@"Sounds\BGM\Result_In.ogg", false, false, true, ESoundGroup.SongPlayback);
|
||||
this.bgmリザルト音 = new Cシステムサウンド(@"Sounds\BGM\Result.ogg", true, false, true, ESoundGroup.SongPlayback);
|
||||
|
||||
@ -3105,6 +3111,46 @@ namespace TJAPlayer3
|
||||
else if (strCommand == nameof(SongLoading_SubTitle_Y))
|
||||
{
|
||||
SongLoading_SubTitle_Y = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_Plate_X_AI))
|
||||
{
|
||||
SongLoading_Plate_X_AI = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_Plate_Y_AI))
|
||||
{
|
||||
SongLoading_Plate_Y_AI = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_Title_X_AI))
|
||||
{
|
||||
SongLoading_Title_X_AI = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_Title_Y_AI))
|
||||
{
|
||||
SongLoading_Title_Y_AI = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_SubTitle_X_AI))
|
||||
{
|
||||
SongLoading_SubTitle_X_AI = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_SubTitle_Y_AI))
|
||||
{
|
||||
SongLoading_SubTitle_Y_AI = int.Parse(strParam);
|
||||
}
|
||||
else if (strCommand == "SongLoading_Fade_AI_Anime_Ring")
|
||||
{
|
||||
string[] strSplit = strParam.Split(',');
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
SongLoading_Fade_AI_Anime_Ring[i] = int.Parse(strSplit[i]);
|
||||
}
|
||||
}
|
||||
else if (strCommand == "SongLoading_Fade_AI_Anime_LoadBar")
|
||||
{
|
||||
string[] strSplit = strParam.Split(',');
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
SongLoading_Fade_AI_Anime_LoadBar[i] = int.Parse(strSplit[i]);
|
||||
}
|
||||
}
|
||||
else if (strCommand == nameof(SongLoading_Title_FontSize))
|
||||
{
|
||||
@ -4824,6 +4870,14 @@ namespace TJAPlayer3
|
||||
{
|
||||
Game_Effect_FlyingNotes_EndPoint_Y = strParam.Split(',').Select(int.Parse).ToArray();
|
||||
}
|
||||
else if (strCommand == nameof(Game_Effect_FlyingNotes_EndPoint_X_AI))
|
||||
{
|
||||
Game_Effect_FlyingNotes_EndPoint_X_AI = strParam.Split(',').Select(int.Parse).ToArray();
|
||||
}
|
||||
else if (strCommand == nameof(Game_Effect_FlyingNotes_EndPoint_Y_AI))
|
||||
{
|
||||
Game_Effect_FlyingNotes_EndPoint_Y_AI = strParam.Split(',').Select(int.Parse).ToArray();
|
||||
}
|
||||
else if (strCommand == nameof(Game_Effect_FlyingNotes_Sine))
|
||||
{
|
||||
Game_Effect_FlyingNotes_Sine = int.Parse(strParam);
|
||||
@ -7949,7 +8003,18 @@ namespace TJAPlayer3
|
||||
public int SongLoading_Title_X = 640;
|
||||
public int SongLoading_Title_Y = 280;
|
||||
public int SongLoading_SubTitle_X = 640;
|
||||
public int SongLoading_SubTitle_Y = 325;
|
||||
public int SongLoading_SubTitle_Y = 325;
|
||||
|
||||
public int SongLoading_Plate_X_AI = 640;
|
||||
public int SongLoading_Plate_Y_AI = 360;
|
||||
public int SongLoading_Title_X_AI = 640;
|
||||
public int SongLoading_Title_Y_AI = 313;
|
||||
public int SongLoading_SubTitle_X_AI = 640;
|
||||
public int SongLoading_SubTitle_Y_AI = 365;
|
||||
|
||||
public int[] SongLoading_Fade_AI_Anime_Ring = new int[] { 466, 185 };
|
||||
public int[] SongLoading_Fade_AI_Anime_LoadBar = new int[] { 490, 382 };
|
||||
|
||||
public int SongLoading_Title_FontSize = 31;
|
||||
public int SongLoading_SubTitle_FontSize = 20;
|
||||
public int[] SongLoading_Chara_Move = new int[] { 250, -80 };
|
||||
@ -8294,6 +8359,8 @@ namespace TJAPlayer3
|
||||
public int[] Game_Effect_FlyingNotes_StartPoint_Y = new int[] { 260, 434 };
|
||||
public int[] Game_Effect_FlyingNotes_EndPoint_X = new int[] { 1222, 1222 }; // 1P, 2P
|
||||
public int[] Game_Effect_FlyingNotes_EndPoint_Y = new int[] { 164, 554 };
|
||||
public int[] Game_Effect_FlyingNotes_EndPoint_X_AI = new int[] { 1222, 1222 }; // 1P, 2P
|
||||
public int[] Game_Effect_FlyingNotes_EndPoint_Y_AI = new int[] { -230, 820 };
|
||||
|
||||
public int Game_Effect_FlyingNotes_Sine = 220;
|
||||
public bool Game_Effect_FlyingNotes_IsUsingEasing = true;
|
||||
|
@ -1230,7 +1230,10 @@ namespace TJAPlayer3
|
||||
r直前のステージ = r現在のステージ;
|
||||
r現在のステージ = stageコンフィグ;
|
||||
|
||||
foreach( STPlugin pg in this.listプラグイン )
|
||||
CSongSelectSongManager.stopSong();
|
||||
CSongSelectSongManager.enable();
|
||||
|
||||
foreach ( STPlugin pg in this.listプラグイン )
|
||||
{
|
||||
Directory.SetCurrentDirectory( pg.strプラグインフォルダ );
|
||||
pg.plugin.Onステージ変更();
|
||||
|
@ -20,13 +20,13 @@ namespace TJAPlayer3
|
||||
// Stage
|
||||
public const string TITLE = @"1_Title\";
|
||||
public const string CONFIG = @"2_Config\";
|
||||
const string SONGSELECT = @"3_SongSelect\";
|
||||
public const string SONGSELECT = @"3_SongSelect\";
|
||||
public const string DANISELECT = @"3_DaniSelect\";
|
||||
const string SONGLOADING = @"4_SongLoading\";
|
||||
public const string GAME = @"5_Game\";
|
||||
const string RESULT = @"6_Result\";
|
||||
public const string RESULT = @"6_Result\";
|
||||
public const string EXIT = @"7_Exit\";
|
||||
const string DANRESULT = @"7_DanResult\";
|
||||
public const string DANRESULT = @"7_DanResult\";
|
||||
const string TOWERRESULT = @"8_TowerResult\";
|
||||
public const string HEYA = @"10_Heya\";
|
||||
|
||||
@ -354,6 +354,17 @@ namespace TJAPlayer3
|
||||
SongLoading_Fade = TxC(SONGLOADING + @"Fade.png");
|
||||
SongLoading_Bg_Dan = TxC(SONGLOADING + @"Bg_Dan.png");
|
||||
|
||||
SongLoading_Plate_AI = TxC(SONGLOADING + @"Plate_AI.png");
|
||||
SongLoading_Bg_AI = TxC(SONGLOADING + @"Bg_AI.png");
|
||||
SongLoading_Bg_AI_Wait = TxC(SONGLOADING + @"Bg_AI_Wait.png");
|
||||
SongLoading_Fade_AI = TxC(SONGLOADING + @"Fade_AI.png");
|
||||
SongLoading_Fade_AI_Anime_Base = TxC(SONGLOADING + @"Fade_AI_Anime_Base.png");
|
||||
SongLoading_Fade_AI_Anime_Ring = TxC(SONGLOADING + @"Fade_AI_Anime_Ring.png");
|
||||
SongLoading_Fade_AI_Anime_NowLoading = TxC(SONGLOADING + @"Fade_AI_Anime_NowLoading.png");
|
||||
SongLoading_Fade_AI_Anime_Start = TxC(SONGLOADING + @"Fade_AI_Anime_Start.png");
|
||||
SongLoading_Fade_AI_Anime_LoadBar_Base = TxC(SONGLOADING + @"Fade_AI_Anime_LoadBar_Base.png");
|
||||
SongLoading_Fade_AI_Anime_LoadBar = TxC(SONGLOADING + @"Fade_AI_Anime_LoadBar.png");
|
||||
|
||||
#endregion
|
||||
|
||||
#region 5_演奏画面
|
||||
@ -1765,6 +1776,8 @@ namespace TJAPlayer3
|
||||
_skin.voiceClearClear[player]?.Dispose();
|
||||
_skin.voiceClearFullCombo[player]?.Dispose();
|
||||
_skin.voiceClearAllPerfect[player]?.Dispose();
|
||||
_skin.voiceAIWin[player]?.Dispose();
|
||||
_skin.voiceAILose[player]?.Dispose();
|
||||
_skin.voiceMenuSongSelect[player]?.Dispose();
|
||||
_skin.voiceMenuSongDecide[player]?.Dispose();
|
||||
_skin.voiceMenuDiffSelect[player]?.Dispose();
|
||||
@ -1788,6 +1801,8 @@ namespace TJAPlayer3
|
||||
_skin.voiceClearClear[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Clear\Clear");
|
||||
_skin.voiceClearFullCombo[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Clear\FullCombo");
|
||||
_skin.voiceClearAllPerfect[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Clear\AllPerfect");
|
||||
_skin.voiceAIWin[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Clear\AIBattle_Win");
|
||||
_skin.voiceAILose[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Clear\AIBattle_Lose");
|
||||
_skin.voiceMenuSongSelect[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Menu\SongSelect");
|
||||
_skin.voiceMenuSongDecide[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Menu\SongDecide");
|
||||
_skin.voiceMenuDiffSelect[player] = VoiceSelectOggOrWav(charaPath + @"\Sounds\Menu\DiffSelect");
|
||||
@ -1959,7 +1974,18 @@ namespace TJAPlayer3
|
||||
SongLoading_BgWait,
|
||||
SongLoading_Chara,
|
||||
SongLoading_Bg_Dan,
|
||||
SongLoading_Fade;
|
||||
SongLoading_Fade,
|
||||
|
||||
SongLoading_Plate_AI,
|
||||
SongLoading_Bg_AI,
|
||||
SongLoading_Bg_AI_Wait,
|
||||
SongLoading_Fade_AI,
|
||||
SongLoading_Fade_AI_Anime_Base,
|
||||
SongLoading_Fade_AI_Anime_Ring,
|
||||
SongLoading_Fade_AI_Anime_NowLoading,
|
||||
SongLoading_Fade_AI_Anime_Start,
|
||||
SongLoading_Fade_AI_Anime_LoadBar_Base,
|
||||
SongLoading_Fade_AI_Anime_LoadBar;
|
||||
#endregion
|
||||
|
||||
#region 5_演奏画面
|
||||
|
@ -20,21 +20,50 @@ namespace TJAPlayer3
|
||||
|
||||
static internal class CSongSelectSongManager
|
||||
{
|
||||
public static CSkin.Cシステムサウンド bgmIn
|
||||
{
|
||||
get
|
||||
{
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
return TJAPlayer3.Skin.bgmSongSelect_Dan_In;
|
||||
}
|
||||
else
|
||||
{
|
||||
return TJAPlayer3.Skin.bgm選曲画面イン;
|
||||
}
|
||||
}
|
||||
}
|
||||
public static CSkin.Cシステムサウンド bgmLoop
|
||||
{
|
||||
get
|
||||
{
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
return TJAPlayer3.Skin.bgmSongSelect_Dan;
|
||||
}
|
||||
else
|
||||
{
|
||||
return TJAPlayer3.Skin.bgm選曲画面;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void playSongIfPossible()
|
||||
{
|
||||
if (CSongSelectSongManager.isSongDisabled)
|
||||
return;
|
||||
|
||||
if (TJAPlayer3.ConfigIni.bBGM音を発声する && !TJAPlayer3.Skin.bgm選曲画面イン.b再生中 && !TJAPlayer3.Skin.bgm選曲画面.b再生中)
|
||||
if (TJAPlayer3.ConfigIni.bBGM音を発声する && !bgmIn.b再生中 && !bgmLoop.b再生中)
|
||||
{
|
||||
if (inSongPlayed == false)
|
||||
{
|
||||
TJAPlayer3.Skin.bgm選曲画面イン.t再生する();
|
||||
bgmIn.t再生する();
|
||||
CSongSelectSongManager.inSongPlayed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Skin.bgm選曲画面.t再生する();
|
||||
bgmLoop.t再生する();
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,8 +71,8 @@ namespace TJAPlayer3
|
||||
|
||||
public static void stopSong()
|
||||
{
|
||||
TJAPlayer3.Skin.bgm選曲画面イン.t停止する();
|
||||
TJAPlayer3.Skin.bgm選曲画面.t停止する();
|
||||
bgmIn.t停止する();
|
||||
bgmLoop.t停止する();
|
||||
CSongSelectSongManager.inSongPlayed = false;
|
||||
}
|
||||
|
||||
@ -325,7 +354,10 @@ namespace TJAPlayer3
|
||||
public override void OnManagedリソースの作成()
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
{
|
||||
AI_Background = new ScriptBG(CSkin.Path($@"{TextureLoader.BASE}{TextureLoader.SONGSELECT}\AIBattle\Script.lua"));
|
||||
AI_Background.Init();
|
||||
|
||||
this.ct背景スクロール用タイマー = new CCounter(0, TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width, 30, TJAPlayer3.Timer);
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
@ -333,7 +365,8 @@ namespace TJAPlayer3
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
{
|
||||
TJAPlayer3.t安全にDisposeする(ref AI_Background);
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
@ -373,10 +406,18 @@ namespace TJAPlayer3
|
||||
//ctDonchan_Jump[1].t進行();
|
||||
//ctDonchan_Normal.t進行Loop();
|
||||
|
||||
this.ct登場時アニメ用共通.t進行();
|
||||
|
||||
if (TJAPlayer3.Tx.SongSelect_Background != null)
|
||||
TJAPlayer3.Tx.SongSelect_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
this.ct登場時アニメ用共通.t進行();
|
||||
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
AI_Background?.Update();
|
||||
AI_Background?.Draw();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongSelect_Background != null)
|
||||
TJAPlayer3.Tx.SongSelect_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
|
||||
if (this.r現在選択中の曲 != null)
|
||||
{
|
||||
@ -390,25 +431,28 @@ namespace TJAPlayer3
|
||||
if (this.OldUseGenre)
|
||||
nOldGenreBack = this.nStrジャンルtoNum(this.OldGenre);
|
||||
else
|
||||
nOldGenreBack = this.OldBg;
|
||||
// }
|
||||
if (TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack] != null)
|
||||
{
|
||||
for (int i = 0; i < (TJAPlayer3.Skin.Resolution[0] / TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width) + 2; i++)
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack] != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack].color4 = C変換.ColorToColor4(this.NowBgColor);
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack].Opacity = 255;
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack].t2D描画(TJAPlayer3.app.Device, -(int)ct背景スクロール用タイマー.n現在の値 + TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width * i, 0);
|
||||
}
|
||||
if (TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack] != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack].color4 = C変換.ColorToColor4(this.OldBgColor);
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack].Opacity = 600 - ctBackgroundFade.n現在の値;
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack].t2D描画(TJAPlayer3.app.Device, -(int)ct背景スクロール用タイマー.n現在の値 + TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width * i, 0);
|
||||
}
|
||||
}
|
||||
nOldGenreBack = this.OldBg;
|
||||
// }
|
||||
if (!TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack] != null)
|
||||
{
|
||||
for (int i = 0; i < (TJAPlayer3.Skin.Resolution[0] / TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width) + 2; i++)
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack] != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack].color4 = C変換.ColorToColor4(this.NowBgColor);
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack].Opacity = 255;
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nGenreBack].t2D描画(TJAPlayer3.app.Device, -(int)ct背景スクロール用タイマー.n現在の値 + TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width * i, 0);
|
||||
}
|
||||
if (TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack] != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack].color4 = C変換.ColorToColor4(this.OldBgColor);
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack].Opacity = 600 - ctBackgroundFade.n現在の値;
|
||||
TJAPlayer3.Tx.SongSelect_GenreBack[nOldGenreBack].t2D描画(TJAPlayer3.app.Device, -(int)ct背景スクロール用タイマー.n現在の値 + TJAPlayer3.Tx.SongSelect_Background.szテクスチャサイズ.Width * i, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.r現在選択中の曲.eノード種別 == C曲リストノード.Eノード種別.BOX)
|
||||
@ -1252,8 +1296,9 @@ namespace TJAPlayer3
|
||||
public CActPlayOption actPlayOption;
|
||||
|
||||
public CActSortSongs actSortSongs;
|
||||
private CActSelectQuickConfig actQuickConfig;
|
||||
|
||||
private CActSelectQuickConfig actQuickConfig;
|
||||
|
||||
private ScriptBG AI_Background;
|
||||
private const int MaxSong = 3;
|
||||
public int NowSong = 1;
|
||||
|
||||
@ -1445,8 +1490,6 @@ namespace TJAPlayer3
|
||||
if ((this.act曲リスト.rGetSideSong(1).eノード種別 == C曲リストノード.Eノード種別.SCORE) || this.act曲リスト.rGetSideSong(1).eノード種別 == C曲リストノード.Eノード種別.BACKBOX)
|
||||
{
|
||||
TJAPlayer3.stage選曲.bBGMIn再生した = false;
|
||||
TJAPlayer3.Skin.bgm選曲画面イン.n位置_現在のサウンド = 0;
|
||||
TJAPlayer3.Skin.bgm選曲画面.n位置_現在のサウンド = 0;
|
||||
|
||||
CSongSelectSongManager.disable();
|
||||
}
|
||||
|
@ -262,8 +262,126 @@ namespace TJAPlayer3
|
||||
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] != (int)Difficulty.Dan)
|
||||
{
|
||||
void drawPlate()
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongLoading_Plate != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.bスクリーン合成 = TJAPlayer3.Skin.SongLoading_Plate_ScreenBlend; //あまりにも出番が無い
|
||||
TJAPlayer3.Tx.SongLoading_Plate.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X, TJAPlayer3.Skin.SongLoading_Plate_Y - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X - TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Width, TJAPlayer3.Skin.SongLoading_Plate_Y - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Width / 2), TJAPlayer3.Skin.SongLoading_Plate_Y - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
//CDTXMania.act文字コンソール.tPrint( 0, 16, C文字コンソール.Eフォント種別.灰, C変換.nParsentTo255( ( this.ct曲名表示.n現在の値 / 30.0 ) ).ToString() );
|
||||
|
||||
|
||||
int y = 720 - 45;
|
||||
if (this.txタイトル != null)
|
||||
{
|
||||
int nサブタイトル補正 = string.IsNullOrEmpty(TJAPlayer3.stage選曲.r確定されたスコア.譜面情報.strサブタイトル) ? 15 : 0;
|
||||
|
||||
this.txタイトル.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Title_X, TJAPlayer3.Skin.SongLoading_Title_Y - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Title_X - (this.txタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X), TJAPlayer3.Skin.SongLoading_Title_Y - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, (TJAPlayer3.Skin.SongLoading_Title_X - ((this.txタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X) / 2)), TJAPlayer3.Skin.SongLoading_Title_Y - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
}
|
||||
if (this.txサブタイトル != null)
|
||||
{
|
||||
this.txサブタイトル.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_SubTitle_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_SubTitle_X, TJAPlayer3.Skin.SongLoading_SubTitle_Y - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_SubTitle_X - (this.txサブタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X), TJAPlayer3.Skin.SongLoading_SubTitle_Y - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, (TJAPlayer3.Skin.SongLoading_SubTitle_X - ((this.txサブタイトル.sz画像サイズ.Width * txサブタイトル.vc拡大縮小倍率.X) / 2)), TJAPlayer3.Skin.SongLoading_SubTitle_Y - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void drawPlate_AI()
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongLoading_Plate_AI != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.bスクリーン合成 = TJAPlayer3.Skin.SongLoading_Plate_ScreenBlend; //あまりにも出番が無い
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X_AI, TJAPlayer3.Skin.SongLoading_Plate_Y_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X_AI - TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Width, TJAPlayer3.Skin.SongLoading_Plate_Y_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Width / 2), TJAPlayer3.Skin.SongLoading_Plate_Y_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
//CDTXMania.act文字コンソール.tPrint( 0, 16, C文字コンソール.Eフォント種別.灰, C変換.nParsentTo255( ( this.ct曲名表示.n現在の値 / 30.0 ) ).ToString() );
|
||||
|
||||
|
||||
int y = 720 - 45;
|
||||
if (this.txタイトル != null)
|
||||
{
|
||||
int nサブタイトル補正 = string.IsNullOrEmpty(TJAPlayer3.stage選曲.r確定されたスコア.譜面情報.strサブタイトル) ? 15 : 0;
|
||||
|
||||
this.txタイトル.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Title_X_AI, TJAPlayer3.Skin.SongLoading_Title_Y_AI - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Title_X_AI - (this.txタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X), TJAPlayer3.Skin.SongLoading_Title_Y_AI - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, (TJAPlayer3.Skin.SongLoading_Title_X_AI - ((this.txタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X) / 2)), TJAPlayer3.Skin.SongLoading_Title_Y_AI - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
}
|
||||
if (this.txサブタイトル != null)
|
||||
{
|
||||
this.txサブタイトル.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_SubTitle_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_SubTitle_X_AI, TJAPlayer3.Skin.SongLoading_SubTitle_Y_AI - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_SubTitle_X_AI - (this.txサブタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X), TJAPlayer3.Skin.SongLoading_SubTitle_Y_AI - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, (TJAPlayer3.Skin.SongLoading_SubTitle_X_AI - ((this.txサブタイトル.sz画像サイズ.Width * txサブタイトル.vc拡大縮小倍率.X) / 2)), TJAPlayer3.Skin.SongLoading_SubTitle_Y_AI - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region [ Loading screen (except dan) ]
|
||||
//-----------------------------
|
||||
//-----------------------------
|
||||
this.ct曲名表示.t進行();
|
||||
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Tower)
|
||||
@ -294,74 +412,27 @@ namespace TJAPlayer3
|
||||
}
|
||||
|
||||
#endregion
|
||||
drawPlate();
|
||||
}
|
||||
else if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI_Wait.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
drawPlate_AI();
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
#region [Ensou loading screen]
|
||||
|
||||
if (TJAPlayer3.Tx.SongLoading_BgWait != null) TJAPlayer3.Tx.SongLoading_BgWait.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
if (TJAPlayer3.Tx.SongLoading_Chara != null) TJAPlayer3.Tx.SongLoading_Chara.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
drawPlate();
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//CDTXMania.act文字コンソール.tPrint( 0, 0, C文字コンソール.Eフォント種別.灰, this.ct曲名表示.n現在の値.ToString() );
|
||||
|
||||
if (TJAPlayer3.Tx.SongLoading_Plate != null)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.bスクリーン合成 = TJAPlayer3.Skin.SongLoading_Plate_ScreenBlend; //あまりにも出番が無い
|
||||
TJAPlayer3.Tx.SongLoading_Plate.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X, TJAPlayer3.Skin.SongLoading_Plate_Y - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X - TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Width, TJAPlayer3.Skin.SongLoading_Plate_Y - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Width / 2), TJAPlayer3.Skin.SongLoading_Plate_Y - (TJAPlayer3.Tx.SongLoading_Plate.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
//CDTXMania.act文字コンソール.tPrint( 0, 16, C文字コンソール.Eフォント種別.灰, C変換.nParsentTo255( ( this.ct曲名表示.n現在の値 / 30.0 ) ).ToString() );
|
||||
|
||||
|
||||
int y = 720 - 45;
|
||||
if (this.txタイトル != null)
|
||||
{
|
||||
int nサブタイトル補正 = string.IsNullOrEmpty(TJAPlayer3.stage選曲.r確定されたスコア.譜面情報.strサブタイトル) ? 15 : 0;
|
||||
|
||||
this.txタイトル.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Title_X, TJAPlayer3.Skin.SongLoading_Title_Y - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Title_X - (this.txタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X), TJAPlayer3.Skin.SongLoading_Title_Y - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txタイトル.t2D描画(TJAPlayer3.app.Device, (TJAPlayer3.Skin.SongLoading_Title_X - ((this.txタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X) / 2)), TJAPlayer3.Skin.SongLoading_Title_Y - (this.txタイトル.sz画像サイズ.Height / 2) + nサブタイトル補正);
|
||||
}
|
||||
}
|
||||
if (this.txサブタイトル != null)
|
||||
{
|
||||
this.txサブタイトル.Opacity = 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_SubTitle_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_SubTitle_X, TJAPlayer3.Skin.SongLoading_SubTitle_Y - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Title_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_SubTitle_X - (this.txサブタイトル.sz画像サイズ.Width * txタイトル.vc拡大縮小倍率.X), TJAPlayer3.Skin.SongLoading_SubTitle_Y - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txサブタイトル.t2D描画(TJAPlayer3.app.Device, (TJAPlayer3.Skin.SongLoading_SubTitle_X - ((this.txサブタイトル.sz画像サイズ.Width * txサブタイトル.vc拡大縮小倍率.X) / 2)), TJAPlayer3.Skin.SongLoading_SubTitle_Y - (this.txサブタイトル.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
//-----------------------------
|
||||
#endregion
|
||||
}
|
||||
|
@ -296,6 +296,7 @@ namespace TJAPlayer3
|
||||
}
|
||||
|
||||
NowAIBattleSectionCount = 0;
|
||||
bIsAIBattleWin = false;
|
||||
|
||||
ctChipAnime = new CCounter[5];
|
||||
ctChipAnimeLag = new CCounter[5];
|
||||
@ -904,6 +905,11 @@ namespace TJAPlayer3
|
||||
return (int)_AIBattleState;
|
||||
}
|
||||
}
|
||||
public bool bIsAIBattleWin
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public class AIBattleSection
|
||||
{
|
||||
@ -950,6 +956,16 @@ namespace TJAPlayer3
|
||||
}
|
||||
actAIBattle.BatchAnimeCounter.n現在の値 = 0;
|
||||
_AIBattleState = 0;
|
||||
|
||||
int clearCount = 0;
|
||||
for (int i = 0; i < TJAPlayer3.stage演奏ドラム画面.AIBattleSections.Count; i++)
|
||||
{
|
||||
if (TJAPlayer3.stage演奏ドラム画面.AIBattleSections[i].End == CStage演奏画面共通.AIBattleSection.EndType.Clear)
|
||||
{
|
||||
clearCount++;
|
||||
}
|
||||
}
|
||||
bIsAIBattleWin = clearCount >= TJAPlayer3.stage演奏ドラム画面.AIBattleSections.Count / 2.0;
|
||||
}
|
||||
|
||||
private void AIRegisterInput(int nPlayer, float move)
|
||||
|
@ -23,7 +23,7 @@ namespace TJAPlayer3
|
||||
// メソッド
|
||||
public virtual void Start(int nPlayer, int Lane)
|
||||
{
|
||||
if (TJAPlayer3.Tx.Gauge_Soul_Explosion != null)
|
||||
if (TJAPlayer3.Tx.Gauge_Soul_Explosion != null && TJAPlayer3.ConfigIni.nPlayerCount <= 2 && !TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
for (int i = 0; i < 128; i++)
|
||||
{
|
||||
|
@ -83,6 +83,17 @@ namespace TJAPlayer3
|
||||
// 段位認定モード、クリア失敗
|
||||
this.Mode[0] = EndMode.StageFailed;
|
||||
}
|
||||
}
|
||||
else if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
if (TJAPlayer3.stage演奏ドラム画面.bIsAIBattleWin)
|
||||
{
|
||||
this.Mode[0] = EndMode.AI_Win;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Mode[0] = EndMode.AI_Lose;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -97,7 +108,7 @@ namespace TJAPlayer3
|
||||
//if (TJAPlayer3.stage演奏ドラム画面.nヒット数_Auto含まない.Drums.Miss == 0)
|
||||
{
|
||||
if (TJAPlayer3.stage演奏ドラム画面.CChartScore[i].nGood == 0)
|
||||
//if (TJAPlayer3.stage演奏ドラム画面.nヒット数_Auto含まない.Drums.Great == 0)
|
||||
//if (TJAPlayer3.stage演奏ドラム画面.nヒット数_Auto含まない.Drums.Great == 0)
|
||||
{
|
||||
this.Mode[i] = EndMode.StageDondaFullCombo;
|
||||
}
|
||||
@ -139,26 +150,40 @@ namespace TJAPlayer3
|
||||
{
|
||||
var origindir = CSkin.Path($"{TextureLoader.BASE}{TextureLoader.GAME}{TextureLoader.END}");
|
||||
|
||||
FailedScript = new EndAnimeScript($@"{origindir}ClearFailed\Script.lua");//ClearFailed
|
||||
FailedScript.Init();
|
||||
|
||||
ClearScript = new EndAnimeScript($@"{origindir}Clear\Script.lua");
|
||||
ClearScript.Init();
|
||||
|
||||
FullComboScript = new EndAnimeScript($@"{origindir}FullCombo\Script.lua");
|
||||
FullComboScript.Init();
|
||||
|
||||
DondaFullComboScript = new EndAnimeScript($@"{origindir}DondaFullCombo\Script.lua");
|
||||
DondaFullComboScript.Init();
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
this.soundClear[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Clear.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundFailed[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Failed.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundFullCombo[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\FullCombo.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundDondaFullCombo[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\AllPerfect.ogg"), ESoundGroup.SoundEffect);
|
||||
AIWinScript = new EndAnimeScript($@"{origindir}AI_Win\Script.lua");
|
||||
AIWinScript.Init();
|
||||
|
||||
AILoseScript = new EndAnimeScript($@"{origindir}AI_Lose\Script.lua");
|
||||
AILoseScript.Init();
|
||||
|
||||
this.soundAIWin = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\AIBattle_Win.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundAILose = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\AIBattle_Lose.ogg"), ESoundGroup.SoundEffect);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
FailedScript = new EndAnimeScript($@"{origindir}ClearFailed\Script.lua");//ClearFailed
|
||||
FailedScript.Init();
|
||||
|
||||
ClearScript = new EndAnimeScript($@"{origindir}Clear\Script.lua");
|
||||
ClearScript.Init();
|
||||
|
||||
FullComboScript = new EndAnimeScript($@"{origindir}FullCombo\Script.lua");
|
||||
FullComboScript.Init();
|
||||
|
||||
DondaFullComboScript = new EndAnimeScript($@"{origindir}DondaFullCombo\Script.lua");
|
||||
DondaFullComboScript.Init();
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
this.soundClear[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Clear.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundFailed[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Failed.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundFullCombo[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\FullCombo.ogg"), ESoundGroup.SoundEffect);
|
||||
this.soundDondaFullCombo[i] = TJAPlayer3.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\AllPerfect.ogg"), ESoundGroup.SoundEffect);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
}
|
||||
@ -167,18 +192,30 @@ namespace TJAPlayer3
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
FailedScript.Dispose();
|
||||
ClearScript.Dispose();
|
||||
FullComboScript.Dispose();
|
||||
DondaFullComboScript.Dispose();
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
AIWinScript.Dispose();
|
||||
AILoseScript.Dispose();
|
||||
|
||||
this.soundAIWin?.t解放する();
|
||||
this.soundAILose?.t解放する();
|
||||
}
|
||||
else
|
||||
{
|
||||
FailedScript.Dispose();
|
||||
ClearScript.Dispose();
|
||||
FullComboScript.Dispose();
|
||||
DondaFullComboScript.Dispose();
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
this.soundClear[i]?.t解放する();
|
||||
this.soundFailed[i]?.t解放する();
|
||||
this.soundFullCombo[i]?.t解放する();
|
||||
this.soundDondaFullCombo[i]?.t解放する();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
@ -449,6 +486,8 @@ namespace TJAPlayer3
|
||||
{
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
if (i == 1 && TJAPlayer3.ConfigIni.bAIBattleMode) break;
|
||||
|
||||
switch (this.Mode[i])
|
||||
{
|
||||
case EndMode.StageFailed:
|
||||
@ -471,35 +510,55 @@ namespace TJAPlayer3
|
||||
this.soundDondaFullCombo[i]?.t再生を開始する();
|
||||
TJAPlayer3.Skin.voiceClearAllPerfect[TJAPlayer3.GetActualPlayer(i)]?.t再生する();
|
||||
break;
|
||||
case EndMode.AI_Win:
|
||||
AIWinScript.PlayEndAnime(i);
|
||||
this.soundAIWin?.t再生を開始する();
|
||||
TJAPlayer3.Skin.voiceAIWin[TJAPlayer3.GetActualPlayer(0)]?.t再生する();
|
||||
break;
|
||||
case EndMode.AI_Lose:
|
||||
AILoseScript.PlayEndAnime(i);
|
||||
this.soundAILose?.t再生を開始する();
|
||||
TJAPlayer3.Skin.voiceAILose[TJAPlayer3.GetActualPlayer(1)]?.t再生する();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bSongsPlayed = true;
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
switch (this.Mode[i])
|
||||
{
|
||||
case EndMode.StageFailed:
|
||||
this.showEndEffect_Failed(i);
|
||||
break;
|
||||
case EndMode.StageCleared:
|
||||
this.showEndEffect_Clear(i);
|
||||
break;
|
||||
case EndMode.StageFullCombo:
|
||||
this.showEndEffect_FullCombo(i);
|
||||
break;
|
||||
case EndMode.StageDondaFullCombo:
|
||||
this.showEndEffect_DondaFullCombo(i);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
if (i == 1 && TJAPlayer3.ConfigIni.bAIBattleMode) break;
|
||||
|
||||
switch (this.Mode[i])
|
||||
{
|
||||
case EndMode.StageFailed:
|
||||
this.showEndEffect_Failed(i);
|
||||
break;
|
||||
case EndMode.StageCleared:
|
||||
this.showEndEffect_Clear(i);
|
||||
break;
|
||||
case EndMode.StageFullCombo:
|
||||
this.showEndEffect_FullCombo(i);
|
||||
break;
|
||||
case EndMode.StageDondaFullCombo:
|
||||
this.showEndEffect_DondaFullCombo(i);
|
||||
break;
|
||||
case EndMode.AI_Win:
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) AIWinScript.Update(i);
|
||||
AIWinScript.Draw(i);
|
||||
break;
|
||||
case EndMode.AI_Lose:
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) AILoseScript.Update(i);
|
||||
AILoseScript.Draw(i);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -519,7 +578,10 @@ namespace TJAPlayer3
|
||||
private EndAnimeScript FailedScript;
|
||||
private EndAnimeScript ClearScript;
|
||||
private EndAnimeScript FullComboScript;
|
||||
private EndAnimeScript DondaFullComboScript;
|
||||
private EndAnimeScript DondaFullComboScript;
|
||||
|
||||
private EndAnimeScript AIWinScript;
|
||||
private EndAnimeScript AILoseScript;
|
||||
|
||||
bool b再生済み;
|
||||
bool bリザルトボイス再生済み;
|
||||
@ -539,13 +601,17 @@ namespace TJAPlayer3
|
||||
CSound[] soundFailed = new CSound[5];
|
||||
CSound[] soundFullCombo = new CSound[5];
|
||||
CSound[] soundDondaFullCombo = new CSound[5];
|
||||
CSound soundAIWin;
|
||||
CSound soundAILose;
|
||||
EndMode[] Mode;
|
||||
enum EndMode
|
||||
{
|
||||
StageFailed,
|
||||
StageCleared,
|
||||
StageFullCombo,
|
||||
StageDondaFullCombo
|
||||
StageDondaFullCombo,
|
||||
AI_Win,
|
||||
AI_Lose
|
||||
}
|
||||
|
||||
void StarDraw(int x, int y, int count, int starttime = 0, int Endtime = 20)
|
||||
|
@ -112,8 +112,22 @@ namespace TJAPlayer3
|
||||
}
|
||||
for (int n = Flying[i].OldValue; n < Flying[i].Counter.n現在の値; n += 16)
|
||||
{
|
||||
int movingDistanceX = TJAPlayer3.Skin.Game_Effect_FlyingNotes_EndPoint_X[Flying[i].Player] - StartPointX[Flying[i].Player];
|
||||
int movingDistanceY = TJAPlayer3.Skin.Game_Effect_FlyingNotes_EndPoint_Y[Flying[i].Player] - TJAPlayer3.Skin.Game_Effect_FlyingNotes_StartPoint_Y[Flying[i].Player];
|
||||
int endX;
|
||||
int endY;
|
||||
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
endX = TJAPlayer3.Skin.Game_Effect_FlyingNotes_EndPoint_X_AI[Flying[i].Player];
|
||||
endY = TJAPlayer3.Skin.Game_Effect_FlyingNotes_EndPoint_Y_AI[Flying[i].Player];
|
||||
}
|
||||
else
|
||||
{
|
||||
endX = TJAPlayer3.Skin.Game_Effect_FlyingNotes_EndPoint_X[Flying[i].Player];
|
||||
endY = TJAPlayer3.Skin.Game_Effect_FlyingNotes_EndPoint_Y[Flying[i].Player];
|
||||
}
|
||||
|
||||
int movingDistanceX = endX - StartPointX[Flying[i].Player];
|
||||
int movingDistanceY = endY - TJAPlayer3.Skin.Game_Effect_FlyingNotes_StartPoint_Y[Flying[i].Player];
|
||||
|
||||
/*
|
||||
if (TJAPlayer3.Skin.Game_Effect_FlyingNotes_IsUsingEasing)
|
||||
@ -131,7 +145,15 @@ namespace TJAPlayer3
|
||||
|
||||
Flying[i].X = StartPointX[Flying[i].Player] + TJAPlayer3.stage演奏ドラム画面.GetJPOSCROLLX(Flying[i].Player) + (movingDistanceX * value);
|
||||
Flying[i].Y = TJAPlayer3.Skin.Game_Effect_FlyingNotes_StartPoint_Y[Flying[i].Player] + TJAPlayer3.stage演奏ドラム画面.GetJPOSCROLLX(Flying[i].Player) + (int)(movingDistanceY * value);
|
||||
Flying[i].Y += Math.Sin(value * Math.PI) * (Flying[i].Player == 0 ? -TJAPlayer3.Skin.Game_Effect_FlyingNotes_Sine : TJAPlayer3.Skin.Game_Effect_FlyingNotes_Sine);
|
||||
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
Flying[i].Y += Math.Sin(value * Math.PI) * ((Flying[i].Player == 0 ? -TJAPlayer3.Skin.Game_Effect_FlyingNotes_Sine : TJAPlayer3.Skin.Game_Effect_FlyingNotes_Sine) / 3.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
Flying[i].Y += Math.Sin(value * Math.PI) * (Flying[i].Player == 0 ? -TJAPlayer3.Skin.Game_Effect_FlyingNotes_Sine : TJAPlayer3.Skin.Game_Effect_FlyingNotes_Sine);
|
||||
}
|
||||
|
||||
if (TJAPlayer3.Skin.Game_Effect_FlyingNotes_IsUsingEasing)
|
||||
{
|
||||
|
@ -209,7 +209,7 @@ namespace TJAPlayer3
|
||||
currentFloorPositionMax140 = Math.Min(TJAPlayer3.stage演奏ドラム画面.actPlayInfo.NowMeasure[0] / (float)nightTime, 1f);
|
||||
}
|
||||
|
||||
LuaUpdateValues.Call(TJAPlayer3.FPS.DeltaTime, TJAPlayer3.FPS.n現在のFPS, TJAPlayer3.stage演奏ドラム画面.bIsAlreadyCleared, (double)currentFloorPositionMax140, TJAPlayer3.stage演奏ドラム画面.AIBattleState);
|
||||
LuaUpdateValues.Call(TJAPlayer3.FPS.DeltaTime, TJAPlayer3.FPS.n現在のFPS, TJAPlayer3.stage演奏ドラム画面.bIsAlreadyCleared, (double)currentFloorPositionMax140, TJAPlayer3.stage演奏ドラム画面.AIBattleState, TJAPlayer3.stage演奏ドラム画面.bIsAIBattleWin);
|
||||
/*LuaScript.SetObjectToPath("fps", TJAPlayer3.FPS.n現在のFPS);
|
||||
LuaScript.SetObjectToPath("deltaTime", TJAPlayer3.FPS.DeltaTime);
|
||||
LuaScript.SetObjectToPath("isClear", TJAPlayer3.stage演奏ドラム画面.bIsAlreadyCleared);
|
||||
|
@ -644,7 +644,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region [Modals preprocessing]
|
||||
|
||||
if (TJAPlayer3.ConfigIni.nPlayerCount == 1)
|
||||
if (TJAPlayer3.ConfigIni.nPlayerCount == 1 || TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
mqModals = new ModalQueue(Modal.EModalFormat.Full);
|
||||
}
|
||||
@ -743,8 +743,12 @@ namespace TJAPlayer3
|
||||
this.ttkRemaningLifes = new TitleTextureKey(CFloorManagement.CurrentNumberOfLives.ToString() + " / " + CFloorManagement.MaxNumberOfLives.ToString(), pfTowerText, Color.Black, Color.Transparent, 700);
|
||||
this.ttkScoreCount = new TitleTextureKey(TJAPlayer3.stage結果.st演奏記録.Drums.nスコア.ToString(), pfTowerText, Color.Black, Color.Transparent, 700);
|
||||
}
|
||||
else if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Dan)
|
||||
else if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Dan)
|
||||
{
|
||||
//Luaに移植する時にコメントアウトを解除
|
||||
//Background = new ScriptBG(CSkin.Path($@"{TextureLoader.BASE}{TextureLoader.DANRESULT}\Script.lua"));
|
||||
//Background.Init();
|
||||
|
||||
if (!string.IsNullOrEmpty(TJAPlayer3.ConfigIni.FontName))
|
||||
{
|
||||
this.pfDanTitles = new CPrivateFastFont(new FontFamily(TJAPlayer3.ConfigIni.FontName), TJAPlayer3.Skin.DanResult_Font_DanTitles_Size);
|
||||
@ -767,6 +771,17 @@ namespace TJAPlayer3
|
||||
700);
|
||||
}
|
||||
}
|
||||
else if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($@"{TextureLoader.BASE}{TextureLoader.RESULT}\AIBattle\Script.lua"));
|
||||
Background.Init();
|
||||
}
|
||||
else
|
||||
{
|
||||
//Luaに移植する時にコメントアウトを解除
|
||||
//Background = new ScriptBG(CSkin.Path($@"{TextureLoader.BASE}{TextureLoader.RESULT}\Script.lua"));
|
||||
//Background.Init();
|
||||
}
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
@ -780,6 +795,8 @@ namespace TJAPlayer3
|
||||
this.ct登場用 = null;
|
||||
}
|
||||
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
Dan_Plate?.Dispose();
|
||||
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Tower)
|
||||
@ -830,10 +847,12 @@ namespace TJAPlayer3
|
||||
{
|
||||
this.bアニメが完了 = false;
|
||||
}
|
||||
}
|
||||
|
||||
// 描画
|
||||
|
||||
}
|
||||
|
||||
// 描画
|
||||
|
||||
Background?.Update();
|
||||
Background?.Draw();
|
||||
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] != (int)Difficulty.Dan && TJAPlayer3.stage選曲.n確定された曲の難易度[0] != (int)Difficulty.Tower)
|
||||
{
|
||||
@ -844,254 +863,258 @@ namespace TJAPlayer3
|
||||
TJAPlayer3.Skin.bgmリザルト音.t再生する();
|
||||
b音声再生 = true;
|
||||
}
|
||||
|
||||
if (TJAPlayer3.Tx.Result_Background != null)
|
||||
if (!TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
bool is1P = (TJAPlayer3.ConfigIni.nPlayerCount == 1);
|
||||
bool is2PSide = TJAPlayer3.P1IsBlue();
|
||||
int mountainTexId = (is2PSide && is1P) ? 2 : 0;
|
||||
|
||||
int CloudType = 0;
|
||||
float MountainAppearValue = this.actParameterPanel.MountainAppearValue;
|
||||
|
||||
//2000 + (this.actParameterPanel.ctゲージアニメ.n終了値 * 66) + 8360 - 85;
|
||||
int gaugeAnimFactors = 0;
|
||||
|
||||
if (this.actParameterPanel.ct全体進行.n現在の値 >= MountainAppearValue && is1P)
|
||||
if (TJAPlayer3.Tx.Result_Background != null)
|
||||
{
|
||||
#region [Mountain Bump (1P only)]
|
||||
bool is1P = (TJAPlayer3.ConfigIni.nPlayerCount == 1);
|
||||
bool is2PSide = TJAPlayer3.P1IsBlue();
|
||||
int mountainTexId = (is2PSide && is1P) ? 2 : 0;
|
||||
|
||||
if (bClear[0])
|
||||
int CloudType = 0;
|
||||
float MountainAppearValue = this.actParameterPanel.MountainAppearValue;
|
||||
|
||||
//2000 + (this.actParameterPanel.ctゲージアニメ.n終了値 * 66) + 8360 - 85;
|
||||
int gaugeAnimFactors = 0;
|
||||
|
||||
if (this.actParameterPanel.ct全体進行.n現在の値 >= MountainAppearValue && is1P)
|
||||
{
|
||||
//int gaugeAnimationFactor = (this.actParameterPanel.ct全体進行.n現在の値 - (10275 + ((int)this.actParameterPanel.ctゲージアニメ[0].n終了値 * 66))) * 3;
|
||||
#region [Mountain Bump (1P only)]
|
||||
|
||||
gaugeAnimFactors = (this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue) * 3;
|
||||
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = gaugeAnimFactors;
|
||||
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].Opacity = gaugeAnimFactors;
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 0].Opacity = 255 - gaugeAnimFactors;
|
||||
|
||||
if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 90)
|
||||
if (bClear[0])
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 1.0f - (float)Math.Sin((float)this.actParameterPanel.ctMountain_ClearIn.n現在の値 * (Math.PI / 180)) * 0.18f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 225)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 0.82f + (float)Math.Sin((float)(this.actParameterPanel.ctMountain_ClearIn.n現在の値 - 90) / 1.5f * (Math.PI / 180)) * 0.58f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 245)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 1.4f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 335)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 0.9f + (float)Math.Sin((float)(this.actParameterPanel.ctMountain_ClearIn.n現在の値 - 155) * (Math.PI / 180)) * 0.5f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 515)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 0.9f + (float)Math.Sin((float)(this.actParameterPanel.ctMountain_ClearIn.n現在の値 - 335) * (Math.PI / 180)) * 0.4f;
|
||||
}
|
||||
}
|
||||
//int gaugeAnimationFactor = (this.actParameterPanel.ct全体進行.n現在の値 - (10275 + ((int)this.actParameterPanel.ctゲージアニメ[0].n終了値 * 66))) * 3;
|
||||
|
||||
#endregion
|
||||
}
|
||||
else if (is1P)
|
||||
{
|
||||
gaugeAnimFactors = (this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue) * 3;
|
||||
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = 0;
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 0].Opacity = 255;
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].Opacity = 0;
|
||||
}
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = gaugeAnimFactors;
|
||||
|
||||
#region [Display background]
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].Opacity = gaugeAnimFactors;
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 0].Opacity = 255 - gaugeAnimFactors;
|
||||
|
||||
if (is1P)
|
||||
{
|
||||
if (is2PSide)
|
||||
TJAPlayer3.Tx.Result_Background[2].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
else
|
||||
TJAPlayer3.Tx.Result_Background[0].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
TJAPlayer3.Tx.Result_Background[1].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (TJAPlayer3.ConfigIni.nPlayerCount <= 2)
|
||||
{
|
||||
gaugeAnimFactors = (this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue) * 3;
|
||||
|
||||
int width1 = TJAPlayer3.Tx.Result_Background[1].szテクスチャサイズ.Width / 2;
|
||||
int height1 = TJAPlayer3.Tx.Result_Background[1].szテクスチャサイズ.Height;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
int width2 = TJAPlayer3.Tx.Result_Background[2 * i].szテクスチャサイズ.Width / 2;
|
||||
int height2 = TJAPlayer3.Tx.Result_Background[2 * i].szテクスチャサイズ.Height;
|
||||
TJAPlayer3.Tx.Result_Background[2 * i].t2D描画(TJAPlayer3.app.Device, width2 * i, 0, new Rectangle(width2 * i, 0, width2, height2));
|
||||
|
||||
if (bClear[i])
|
||||
if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 90)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = gaugeAnimFactors;
|
||||
TJAPlayer3.Tx.Result_Background[1].t2D描画(TJAPlayer3.app.Device, width1 * i, 0, new Rectangle(width1 * i, 0, width1, height1));
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 1.0f - (float)Math.Sin((float)this.actParameterPanel.ctMountain_ClearIn.n現在の値 * (Math.PI / 180)) * 0.18f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 225)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 0.82f + (float)Math.Sin((float)(this.actParameterPanel.ctMountain_ClearIn.n現在の値 - 90) / 1.5f * (Math.PI / 180)) * 0.58f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 245)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 1.4f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 335)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 0.9f + (float)Math.Sin((float)(this.actParameterPanel.ctMountain_ClearIn.n現在の値 - 155) * (Math.PI / 180)) * 0.5f;
|
||||
}
|
||||
else if (this.actParameterPanel.ctMountain_ClearIn.n現在の値 <= 515)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].vc拡大縮小倍率.Y = 0.9f + (float)Math.Sin((float)(this.actParameterPanel.ctMountain_ClearIn.n現在の値 - 335) * (Math.PI / 180)) * 0.4f;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
else if (is1P)
|
||||
{
|
||||
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = 0;
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 0].Opacity = 255;
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].Opacity = 0;
|
||||
}
|
||||
|
||||
#region [Display background]
|
||||
|
||||
if (is1P)
|
||||
{
|
||||
if (is2PSide)
|
||||
TJAPlayer3.Tx.Result_Background[2].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
else
|
||||
TJAPlayer3.Tx.Result_Background[0].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
TJAPlayer3.Tx.Result_Background[1].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
CTexture[] texs = new CTexture[5] {
|
||||
{
|
||||
if (TJAPlayer3.ConfigIni.nPlayerCount <= 2)
|
||||
{
|
||||
gaugeAnimFactors = (this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue) * 3;
|
||||
|
||||
int width1 = TJAPlayer3.Tx.Result_Background[1].szテクスチャサイズ.Width / 2;
|
||||
int height1 = TJAPlayer3.Tx.Result_Background[1].szテクスチャサイズ.Height;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
int width2 = TJAPlayer3.Tx.Result_Background[2 * i].szテクスチャサイズ.Width / 2;
|
||||
int height2 = TJAPlayer3.Tx.Result_Background[2 * i].szテクスチャサイズ.Height;
|
||||
TJAPlayer3.Tx.Result_Background[2 * i].t2D描画(TJAPlayer3.app.Device, width2 * i, 0, new Rectangle(width2 * i, 0, width2, height2));
|
||||
|
||||
if (bClear[i])
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = gaugeAnimFactors;
|
||||
TJAPlayer3.Tx.Result_Background[1].t2D描画(TJAPlayer3.app.Device, width1 * i, 0, new Rectangle(width1 * i, 0, width1, height1));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
CTexture[] texs = new CTexture[5] {
|
||||
TJAPlayer3.Tx.Result_Background[0],
|
||||
TJAPlayer3.Tx.Result_Background[2],
|
||||
TJAPlayer3.Tx.Result_Background[3],
|
||||
TJAPlayer3.Tx.Result_Background[4],
|
||||
TJAPlayer3.Tx.Result_Background[5]
|
||||
};
|
||||
int count = Math.Max(TJAPlayer3.ConfigIni.nPlayerCount, 4);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
if (bClear[i])
|
||||
int count = Math.Max(TJAPlayer3.ConfigIni.nPlayerCount, 4);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
gaugeAnimFactors = (this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue) * 3;
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = gaugeAnimFactors;
|
||||
if (bClear[i])
|
||||
{
|
||||
gaugeAnimFactors = (this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue) * 3;
|
||||
TJAPlayer3.Tx.Result_Background[1].Opacity = gaugeAnimFactors;
|
||||
}
|
||||
int width = texs[i].szテクスチャサイズ.Width / count;
|
||||
texs[i].t2D描画(TJAPlayer3.app.Device, width * i, 0, new RectangleF(width * i, 0, width, texs[i].szテクスチャサイズ.Height));
|
||||
if (bClear[i])
|
||||
TJAPlayer3.Tx.Result_Background[1].t2D描画(TJAPlayer3.app.Device, width * i, 0, new RectangleF(width * i, 0, width, texs[i].szテクスチャサイズ.Height));
|
||||
}
|
||||
int width = texs[i].szテクスチャサイズ.Width / count;
|
||||
texs[i].t2D描画(TJAPlayer3.app.Device, width * i, 0, new RectangleF(width * i, 0, width, texs[i].szテクスチャサイズ.Height));
|
||||
if (bClear[i])
|
||||
TJAPlayer3.Tx.Result_Background[1].t2D描画(TJAPlayer3.app.Device, width * i, 0, new RectangleF(width * i, 0, width, texs[i].szテクスチャサイズ.Height));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
if (is1P)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 0].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].t2D拡大率考慮下基準描画(TJAPlayer3.app.Device, 0, TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].szテクスチャサイズ.Height);
|
||||
|
||||
// TJAPlayer3.act文字コンソール.tPrint(0, 0, C文字コンソール.Eフォント種別.白, ctShine_Plate.n現在の値.ToString());
|
||||
// TJAPlayer3.act文字コンソール.tPrint(10, 10, C文字コンソール.Eフォント種別.白, this.actParameterPanel.ct全体進行.n現在の値.ToString());
|
||||
|
||||
#region [Background Clouds]
|
||||
|
||||
if (bClear[0] && this.actParameterPanel.ct全体進行.n現在の値 >= MountainAppearValue)
|
||||
{
|
||||
CloudType = Math.Min(255, Math.Max(0, (int)this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue));
|
||||
}
|
||||
|
||||
int cloud_width = TJAPlayer3.Tx.Result_Cloud.szテクスチャサイズ.Width / TJAPlayer3.Skin.Result_Cloud_Count;
|
||||
int cloud_height = TJAPlayer3.Tx.Result_Cloud.szテクスチャサイズ.Height / 3;
|
||||
|
||||
for (int i = TJAPlayer3.Skin.Result_Cloud_Count - 1; i >= 0; i--)
|
||||
{
|
||||
int CurMoveRed = (int)((double)TJAPlayer3.Skin.Result_Cloud_MaxMove[i] * Math.Tanh((double)this.actParameterPanel.ct全体進行.n現在の値 / 10000));
|
||||
int CurMoveGold = (int)((double)TJAPlayer3.Skin.Result_Cloud_MaxMove[i] * Math.Tanh(Math.Max(0, (double)this.actParameterPanel.ct全体進行.n現在の値 - (double)MountainAppearValue) / 10000));
|
||||
|
||||
int cloudOffset = (is2PSide) ? cloud_height * 2 : 0;
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.vc拡大縮小倍率.X = 0.65f;
|
||||
TJAPlayer3.Tx.Result_Cloud.vc拡大縮小倍率.Y = 0.65f;
|
||||
TJAPlayer3.Tx.Result_Cloud.Opacity = CloudType;
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Cloud_X[i] - CurMoveGold, TJAPlayer3.Skin.Result_Cloud_Y[i],
|
||||
new Rectangle(i * cloud_width, cloud_height, cloud_width, cloud_height));
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.Opacity = 255 - CloudType;
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Cloud_X[i] - CurMoveRed, TJAPlayer3.Skin.Result_Cloud_Y[i],
|
||||
new Rectangle(i * cloud_width, cloudOffset, cloud_width, cloud_height));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
if (bClear[0] && this.actParameterPanel.ct全体進行.n現在の値 >= MountainAppearValue)
|
||||
if (is1P)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 0].t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].t2D拡大率考慮下基準描画(TJAPlayer3.app.Device, 0, TJAPlayer3.Tx.Result_Mountain[mountainTexId + 1].szテクスチャサイズ.Height);
|
||||
|
||||
#region [Background shines]
|
||||
// TJAPlayer3.act文字コンソール.tPrint(0, 0, C文字コンソール.Eフォント種別.白, ctShine_Plate.n現在の値.ToString());
|
||||
// TJAPlayer3.act文字コンソール.tPrint(10, 10, C文字コンソール.Eフォント種別.白, this.actParameterPanel.ct全体進行.n現在の値.ToString());
|
||||
|
||||
int ShineTime = (int)ctShine_Plate.n現在の値;
|
||||
int Quadrant500 = ShineTime % 500;
|
||||
#region [Background Clouds]
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.Skin.Result_Shine_Count; i++)
|
||||
if (bClear[0] && this.actParameterPanel.ct全体進行.n現在の値 >= MountainAppearValue)
|
||||
{
|
||||
if (i < 2 && ShineTime >= 500 || i >= 2 && ShineTime < 500)
|
||||
TJAPlayer3.Tx.Result_Shine.Opacity = 0;
|
||||
else if (Quadrant500 >= ShinePFade && Quadrant500 <= 500 - ShinePFade)
|
||||
TJAPlayer3.Tx.Result_Shine.Opacity = 255;
|
||||
CloudType = Math.Min(255, Math.Max(0, (int)this.actParameterPanel.ct全体進行.n現在の値 - (int)MountainAppearValue));
|
||||
}
|
||||
|
||||
int cloud_width = TJAPlayer3.Tx.Result_Cloud.szテクスチャサイズ.Width / TJAPlayer3.Skin.Result_Cloud_Count;
|
||||
int cloud_height = TJAPlayer3.Tx.Result_Cloud.szテクスチャサイズ.Height / 3;
|
||||
|
||||
for (int i = TJAPlayer3.Skin.Result_Cloud_Count - 1; i >= 0; i--)
|
||||
{
|
||||
int CurMoveRed = (int)((double)TJAPlayer3.Skin.Result_Cloud_MaxMove[i] * Math.Tanh((double)this.actParameterPanel.ct全体進行.n現在の値 / 10000));
|
||||
int CurMoveGold = (int)((double)TJAPlayer3.Skin.Result_Cloud_MaxMove[i] * Math.Tanh(Math.Max(0, (double)this.actParameterPanel.ct全体進行.n現在の値 - (double)MountainAppearValue) / 10000));
|
||||
|
||||
int cloudOffset = (is2PSide) ? cloud_height * 2 : 0;
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.vc拡大縮小倍率.X = 0.65f;
|
||||
TJAPlayer3.Tx.Result_Cloud.vc拡大縮小倍率.Y = 0.65f;
|
||||
TJAPlayer3.Tx.Result_Cloud.Opacity = CloudType;
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Cloud_X[i] - CurMoveGold, TJAPlayer3.Skin.Result_Cloud_Y[i],
|
||||
new Rectangle(i * cloud_width, cloud_height, cloud_width, cloud_height));
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.Opacity = 255 - CloudType;
|
||||
|
||||
TJAPlayer3.Tx.Result_Cloud.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Cloud_X[i] - CurMoveRed, TJAPlayer3.Skin.Result_Cloud_Y[i],
|
||||
new Rectangle(i * cloud_width, cloudOffset, cloud_width, cloud_height));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
if (bClear[0] && this.actParameterPanel.ct全体進行.n現在の値 >= MountainAppearValue)
|
||||
{
|
||||
|
||||
#region [Background shines]
|
||||
|
||||
int ShineTime = (int)ctShine_Plate.n現在の値;
|
||||
int Quadrant500 = ShineTime % 500;
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.Skin.Result_Shine_Count; i++)
|
||||
{
|
||||
if (i < 2 && ShineTime >= 500 || i >= 2 && ShineTime < 500)
|
||||
TJAPlayer3.Tx.Result_Shine.Opacity = 0;
|
||||
else if (Quadrant500 >= ShinePFade && Quadrant500 <= 500 - ShinePFade)
|
||||
TJAPlayer3.Tx.Result_Shine.Opacity = 255;
|
||||
else
|
||||
TJAPlayer3.Tx.Result_Shine.Opacity = (255 * Math.Min(Quadrant500, 500 - Quadrant500)) / ShinePFade;
|
||||
|
||||
TJAPlayer3.Tx.Result_Shine.vc拡大縮小倍率.X = TJAPlayer3.Skin.Result_Shine_Size[i];
|
||||
TJAPlayer3.Tx.Result_Shine.vc拡大縮小倍率.Y = TJAPlayer3.Skin.Result_Shine_Size[i];
|
||||
|
||||
TJAPlayer3.Tx.Result_Shine.t2D中心基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Shine_X[is2PSide ? 1 : 0][i], TJAPlayer3.Skin.Result_Shine_Y[is2PSide ? 1 : 0][i]);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region [Fireworks]
|
||||
|
||||
// Primary pop
|
||||
if (this.actParameterPanel.ct全体進行.n現在の値 <= MountainAppearValue + 1000)
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (this.actParameterPanel.ct全体進行.n現在の値 <= MountainAppearValue + 255)
|
||||
{
|
||||
int TmpTimer = (int)(this.actParameterPanel.ct全体進行.n現在の値 - MountainAppearValue);
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f * ((float)TmpTimer / 225f);
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f * ((float)TmpTimer / 225f);
|
||||
}
|
||||
else
|
||||
{
|
||||
int TmpTimer = Math.Max(0, (2 * 255) - (int)(this.actParameterPanel.ct全体進行.n現在の値 - MountainAppearValue - 255));
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer / 2;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f;
|
||||
}
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Work_X[is2PSide ? 1 : 0][i], TJAPlayer3.Skin.Result_Work_Y[is2PSide ? 1 : 0][i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
TJAPlayer3.Tx.Result_Shine.Opacity = (255 * Math.Min(Quadrant500, 500 - Quadrant500)) / ShinePFade;
|
||||
|
||||
TJAPlayer3.Tx.Result_Shine.vc拡大縮小倍率.X = TJAPlayer3.Skin.Result_Shine_Size[i];
|
||||
TJAPlayer3.Tx.Result_Shine.vc拡大縮小倍率.Y = TJAPlayer3.Skin.Result_Shine_Size[i];
|
||||
|
||||
TJAPlayer3.Tx.Result_Shine.t2D中心基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Shine_X[is2PSide ? 1 : 0][i], TJAPlayer3.Skin.Result_Shine_Y[is2PSide ? 1 : 0][i]);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region [Fireworks]
|
||||
|
||||
// Primary pop
|
||||
if (this.actParameterPanel.ct全体進行.n現在の値 <= MountainAppearValue + 1000)
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (this.actParameterPanel.ct全体進行.n現在の値 <= MountainAppearValue + 255)
|
||||
ctWork_Plate.t進行Loop();
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int TmpTimer = (int)(this.actParameterPanel.ct全体進行.n現在の値 - MountainAppearValue);
|
||||
int TmpStamp = WorksTimeStamp[i];
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f * ((float)TmpTimer / 225f);
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f * ((float)TmpTimer / 225f);
|
||||
if (ctWork_Plate.n現在の値 <= TmpStamp + 255)
|
||||
{
|
||||
int TmpTimer = (int)(ctWork_Plate.n現在の値 - TmpStamp);
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f * ((float)TmpTimer / 225f);
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f * ((float)TmpTimer / 225f);
|
||||
}
|
||||
else
|
||||
{
|
||||
int TmpTimer = Math.Max(0, (2 * 255) - (int)(ctWork_Plate.n現在の値 - TmpStamp - 255));
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer / 2;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f;
|
||||
}
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Work_X[is2PSide ? 1 : 0][i], TJAPlayer3.Skin.Result_Work_Y[is2PSide ? 1 : 0][i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
int TmpTimer = Math.Max(0, (2 * 255) - (int)(this.actParameterPanel.ct全体進行.n現在の値 - MountainAppearValue - 255));
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer / 2;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f;
|
||||
}
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Work_X[is2PSide ? 1 : 0][i], TJAPlayer3.Skin.Result_Work_Y[is2PSide ? 1 : 0][i]);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ctWork_Plate.t進行Loop();
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int TmpStamp = WorksTimeStamp[i];
|
||||
|
||||
if (ctWork_Plate.n現在の値 <= TmpStamp + 255)
|
||||
{
|
||||
int TmpTimer = (int)(ctWork_Plate.n現在の値 - TmpStamp);
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f * ((float)TmpTimer / 225f);
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f * ((float)TmpTimer / 225f);
|
||||
}
|
||||
else
|
||||
{
|
||||
int TmpTimer = Math.Max(0, (2 * 255) - (int)(ctWork_Plate.n現在の値 - TmpStamp - 255));
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].Opacity = TmpTimer / 2;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.X = 0.6f;
|
||||
TJAPlayer3.Tx.Result_Work[i].vc拡大縮小倍率.Y = 0.6f;
|
||||
}
|
||||
|
||||
TJAPlayer3.Tx.Result_Work[i].t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Result_Work_X[is2PSide ? 1 : 0][i], TJAPlayer3.Skin.Result_Work_Y[is2PSide ? 1 : 0][i]);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (TJAPlayer3.Tx.Result_Header != null)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Header.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.ct登場用.b進行中 && (TJAPlayer3.Tx.Result_Header != null))
|
||||
@ -1114,10 +1137,6 @@ namespace TJAPlayer3
|
||||
b音声再生 = true;
|
||||
}
|
||||
|
||||
if (TJAPlayer3.Tx.Result_Header != null)
|
||||
{
|
||||
TJAPlayer3.Tx.Result_Header.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@ -1431,6 +1450,8 @@ namespace TJAPlayer3
|
||||
|
||||
for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++)
|
||||
{
|
||||
if (TJAPlayer3.ConfigIni.bAIBattleMode && i == 1) break;
|
||||
|
||||
int pos = i;
|
||||
if (TJAPlayer3.P1IsBlue() && TJAPlayer3.stage選曲.n確定された曲の難易度[0] < (int)Difficulty.Tower)
|
||||
pos = 1;
|
||||
@ -1948,7 +1969,8 @@ namespace TJAPlayer3
|
||||
private readonly int[] nチャンネル0Atoレーン07;
|
||||
private int n最後に再生したHHのWAV番号;
|
||||
private int n最後に再生したHHのチャンネル番号;
|
||||
private CSound rResultSound;
|
||||
private CSound rResultSound;
|
||||
private ScriptBG Background;
|
||||
|
||||
public bool[] bClear
|
||||
{
|
||||
|
@ -17,8 +17,14 @@ namespace TJAPlayer3
|
||||
TJAPlayer3.Skin.soundDanSelectBGM.t停止する();
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Dan)
|
||||
this.counter = new CCounter(0, 1255, 1, TJAPlayer3.Timer);
|
||||
else if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
this.counter = new CCounter(0, 5500, 1, TJAPlayer3.Timer);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.counter = new CCounter(0, 3580, 1, TJAPlayer3.Timer);
|
||||
}
|
||||
}
|
||||
public void tフェードイン開始()
|
||||
{
|
||||
@ -31,8 +37,14 @@ namespace TJAPlayer3
|
||||
TJAPlayer3.stage演奏ドラム画面.actDan.Start(TJAPlayer3.stage演奏ドラム画面.ListDan_Number);
|
||||
TJAPlayer3.stage演奏ドラム画面.ListDan_Number++;
|
||||
}
|
||||
else
|
||||
else if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
this.counter = new CCounter(0, 3580, 1, TJAPlayer3.Timer);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.counter = new CCounter(0, 3580, 1, TJAPlayer3.Timer);
|
||||
}
|
||||
}
|
||||
public void tフェードイン完了() // #25406 2011.6.9 yyagi
|
||||
{
|
||||
@ -66,21 +78,91 @@ namespace TJAPlayer3
|
||||
}
|
||||
this.counter.t進行();
|
||||
|
||||
if(TJAPlayer3.stage選曲.n確定された曲の難易度[0] >= (int)Difficulty.Tower)
|
||||
{
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] >= (int)Difficulty.Tower)
|
||||
{
|
||||
if (TJAPlayer3.Tx.Tile_Black != null)
|
||||
{
|
||||
TJAPlayer3.Tx.Tile_Black.Opacity = this.mode == EFIFOモード.フェードアウト ? -1000 + counter.n現在の値 : 255 - counter.n現在の値;
|
||||
for (int i = 0; i <= (SampleFramework.GameWindowSize.Width / 64); i++) // #23510 2010.10.31 yyagi: change "clientSize.Width" to "640" to fix FIFO drawing size
|
||||
for (int i = 0; i <= (SampleFramework.GameWindowSize.Width / TJAPlayer3.Tx.Tile_Black.szテクスチャサイズ.Width); i++) // #23510 2010.10.31 yyagi: change "clientSize.Width" to "640" to fix FIFO drawing size
|
||||
{
|
||||
for (int j = 0; j <= (SampleFramework.GameWindowSize.Height / 64); j++) // #23510 2010.10.31 yyagi: change "clientSize.Height" to "480" to fix FIFO drawing size
|
||||
for (int j = 0; j <= (SampleFramework.GameWindowSize.Height / TJAPlayer3.Tx.Tile_Black.szテクスチャサイズ.Height); j++) // #23510 2010.10.31 yyagi: change "clientSize.Height" to "480" to fix FIFO drawing size
|
||||
{
|
||||
TJAPlayer3.Tx.Tile_Black.t2D描画(TJAPlayer3.app.Device, i * 64, j * 64);
|
||||
TJAPlayer3.Tx.Tile_Black.t2D描画(TJAPlayer3.app.Device, i * TJAPlayer3.Tx.Tile_Black.szテクスチャサイズ.Width, j * TJAPlayer3.Tx.Tile_Black.szテクスチャサイズ.Height);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (TJAPlayer3.ConfigIni.bAIBattleMode)
|
||||
{
|
||||
if (this.mode == EFIFOモード.フェードアウト)
|
||||
{
|
||||
var preTime = (this.counter.n現在の値 >= 2000 ? this.counter.n現在の値 - 2000 : 0) * 2;
|
||||
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI.Opacity = preTime;
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
if (preTime > 500)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_Base.vc拡大縮小倍率.X = Math.Min(((preTime - 500) / 255.0f), 1.0f);
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_Base.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Resolution[0] / 2, TJAPlayer3.Skin.Resolution[1] / 2);
|
||||
}
|
||||
|
||||
if (preTime > 1000)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_Ring.Opacity = preTime - 1000;
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_Ring.fZ軸中心回転 = preTime / 6000.0f;
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_Ring.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Fade_AI_Anime_Ring[0], TJAPlayer3.Skin.SongLoading_Fade_AI_Anime_Ring[1]);
|
||||
if (preTime - 1000 < 1500)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_NowLoading.Opacity = preTime - 1000;
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_NowLoading.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_LoadBar_Base.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Fade_AI_Anime_LoadBar[0], TJAPlayer3.Skin.SongLoading_Fade_AI_Anime_LoadBar[1]);
|
||||
|
||||
float value = (preTime - 1000) / 1500.0f;
|
||||
value = 1.0f - (float)Math.Cos(value * Math.PI / 2.0);
|
||||
value = 1.0f - (float)Math.Cos(value * Math.PI / 2.0);
|
||||
value = 1.0f - (float)Math.Cos(value * Math.PI / 2.0);
|
||||
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_LoadBar.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Fade_AI_Anime_LoadBar[0], TJAPlayer3.Skin.SongLoading_Fade_AI_Anime_LoadBar[1],
|
||||
new RectangleF(0, 0, TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_LoadBar.szテクスチャサイズ.Width * value,
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_LoadBar.szテクスチャサイズ.Height));
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Fade_AI_Anime_Start.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
var time = this.counter.n現在の値 >= 5000 ? this.counter.n現在の値 - 5000 : 0;
|
||||
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI.Opacity = time;
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI_Wait.Opacity = time - 255;
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI_Wait.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.Opacity = time - 255;
|
||||
if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Left)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X_AI, TJAPlayer3.Skin.SongLoading_Plate_Y_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else if (TJAPlayer3.Skin.SongLoading_Plate_ReferencePoint == CSkin.ReferencePoint.Right)
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X_AI - TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Width, TJAPlayer3.Skin.SongLoading_Plate_Y_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Height / 2));
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Plate_AI.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.SongLoading_Plate_X_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Width / 2), TJAPlayer3.Skin.SongLoading_Plate_Y_AI - (TJAPlayer3.Tx.SongLoading_Plate_AI.sz画像サイズ.Height / 2));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI.Opacity = 255 - counter.n現在の値;
|
||||
TJAPlayer3.Tx.SongLoading_Bg_AI.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.mode == EFIFOモード.フェードアウト)
|
||||
{
|
||||
@ -134,7 +216,7 @@ namespace TJAPlayer3
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void DrawBack(CTexture ShowTex, double time, double max, double end, bool IsExit)
|
||||
private void DrawBack(CTexture ShowTex, double time, double max, double end, bool IsExit)
|
||||
{
|
||||
if (ShowTex == null) return;
|
||||
if (time - max >= end) time = end + max;
|
||||
@ -154,7 +236,7 @@ namespace TJAPlayer3
|
||||
/// キラキラ✨
|
||||
/// </summary>
|
||||
/// <param name="opacity"></param>
|
||||
public void DrawStar(float opacity)
|
||||
private void DrawStar(float opacity)
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongLoading_BgWait is null) return;
|
||||
|
||||
@ -167,7 +249,7 @@ namespace TJAPlayer3
|
||||
/// </summary>
|
||||
/// <param name="opacity"></param>
|
||||
/// <param name="scaleX"></param>
|
||||
public void DrawPlate(float opacity, float scaleX, float scaleY = 1f)
|
||||
private void DrawPlate(float opacity, float scaleX, float scaleY = 1f)
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongLoading_Plate is null) return;
|
||||
var SizeX_Harf = TJAPlayer3.Tx.SongLoading_Plate.szテクスチャサイズ.Width / 2.0f;
|
||||
@ -179,7 +261,7 @@ namespace TJAPlayer3
|
||||
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)
|
||||
private void DrawChara(double time, float opacity, float X = -1, float Y = -1)
|
||||
{
|
||||
if (TJAPlayer3.Tx.SongLoading_Plate is null || (X == -1 && Y == -1 ? time <= 680 : false)) return;
|
||||
var SizeXHarf = TJAPlayer3.Tx.SongLoading_Chara.szテクスチャサイズ.Width / 2f;
|
||||
|
@ -6,17 +6,19 @@ local deltaTime = 0
|
||||
local isClear = { false, false, false, false, false }
|
||||
local towerNightNum = 0
|
||||
local battleState = 0
|
||||
local battleWin = false
|
||||
|
||||
function setConstValues(_playerCount, _p1IsBlue)
|
||||
playerCount = _playerCount
|
||||
p1IsBlue = _p1IsBlue
|
||||
end
|
||||
|
||||
function updateValues(_deltaTime, _fps, _isClear, _towerNightNum, _battleState)
|
||||
function updateValues(_deltaTime, _fps, _isClear, _towerNightNum, _battleState, _battleWin)
|
||||
deltaTime = _deltaTime
|
||||
fps = _fps
|
||||
isClear = _isClear
|
||||
towerNightNum = _towerNightNum
|
||||
deltaTime = _deltaTime
|
||||
battleState = _battleState
|
||||
battleWin = _battleWin
|
||||
end
|
@ -388,6 +388,11 @@ Game_Effect_FlyingNotes_EndPoint_X=1222,1222
|
||||
Game_Effect_FlyingNotes_EndPoint_Y=164,554
|
||||
|
||||
|
||||
Game_Effect_FlyingNotes_EndPoint_X_AI=1222,1222
|
||||
|
||||
Game_Effect_FlyingNotes_EndPoint_Y_AI=-230,820
|
||||
|
||||
|
||||
Game_Effect_FlyingNotes_Sine=220
|
||||
|
||||
Game_Effect_FlyingNotes_Timer=4
|
||||
|
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 497 KiB |
@ -0,0 +1,30 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("BG_Space.png")
|
||||
func:AddGraph("BG_Frame.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "BG_Space.png")
|
||||
func:DrawGraph(0, 0, "BG_Frame.png")
|
||||
end
|
BIN
Test/System/SimpleStyle/Graphics/4_SongLoading/Bg_AI.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
Test/System/SimpleStyle/Graphics/4_SongLoading/Bg_AI_Wait.png
Normal file
After Width: | Height: | Size: 529 KiB |
BIN
Test/System/SimpleStyle/Graphics/4_SongLoading/Fade_AI.png
Normal file
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 563 B |
After Width: | Height: | Size: 534 B |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 14 KiB |
BIN
Test/System/SimpleStyle/Graphics/4_SongLoading/Plate_AI.png
Normal file
After Width: | Height: | Size: 135 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 546 B |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 46 KiB |
BIN
Test/System/SimpleStyle/Graphics/5_Game/9_End/AI_Lose/Base.png
Normal file
After Width: | Height: | Size: 197 KiB |
@ -0,0 +1,44 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local animeCounter = 0
|
||||
|
||||
local x = 640
|
||||
local y = 360
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function playEndAnime(player)
|
||||
animeCounter = 0
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Base.png")
|
||||
end
|
||||
|
||||
function update(player)
|
||||
animeCounter = animeCounter + (1.0 * deltaTime)
|
||||
end
|
||||
|
||||
function draw(player)
|
||||
value = math.min(animeCounter * 3, 1)
|
||||
scale = 2 - value
|
||||
|
||||
func:SetOpacity(value * 255, "Base.png")
|
||||
func:SetScale(scale, scale, "Base.png")
|
||||
|
||||
func:DrawGraphCenter(x, y, "Base.png")
|
||||
end
|
BIN
Test/System/SimpleStyle/Graphics/5_Game/9_End/AI_Win/Base.png
Normal file
After Width: | Height: | Size: 231 KiB |
@ -0,0 +1,44 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local animeCounter = 0
|
||||
|
||||
local x = 640
|
||||
local y = 360
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function playEndAnime(player)
|
||||
animeCounter = 0
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Base.png")
|
||||
end
|
||||
|
||||
function update(player)
|
||||
animeCounter = animeCounter + (1.0 * deltaTime)
|
||||
end
|
||||
|
||||
function draw(player)
|
||||
value = math.min(animeCounter * 3, 1)
|
||||
scale = 2 - value
|
||||
|
||||
func:SetOpacity(value * 255, "Base.png")
|
||||
func:SetScale(scale, scale, "Base.png")
|
||||
|
||||
func:DrawGraphCenter(x, y, "Base.png")
|
||||
end
|
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 417 KiB |
After Width: | Height: | Size: 391 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 226 KiB |
@ -0,0 +1,35 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background_Win.png")
|
||||
func:AddGraph("Background_Lose.png")
|
||||
func:AddGraph("Background_Gradation.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
if battleWin then
|
||||
func:DrawGraph(0, 0, "Background_Win.png")
|
||||
else
|
||||
func:DrawGraph(0, 0, "Background_Lose.png")
|
||||
end
|
||||
func:DrawGraph(0, 0, "Background_Gradation.png")
|
||||
end
|
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 584 B |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 69 KiB |
26
Test/System/SimpleStyle/Graphics/6_Result/Script.lua
Normal file
@ -0,0 +1,26 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
end
|
26
Test/System/SimpleStyle/Graphics/7_DanResult/Script.lua
Normal file
@ -0,0 +1,26 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
end
|
@ -17,6 +17,26 @@ SongLoading_SubTitle_X=640
|
||||
SongLoading_SubTitle_Y=325
|
||||
|
||||
|
||||
SongLoading_Plate_X_AI=640
|
||||
|
||||
SongLoading_Plate_Y_AI=360
|
||||
|
||||
|
||||
SongLoading_Title_X_AI=640
|
||||
|
||||
SongLoading_Title_Y_AI=313
|
||||
|
||||
|
||||
SongLoading_SubTitle_X_AI=640
|
||||
|
||||
SongLoading_SubTitle_Y_AI=365
|
||||
|
||||
|
||||
SongLoading_Fade_AI_Anime_Ring=466,185
|
||||
|
||||
SongLoading_Fade_AI_Anime_LoadBar=490,382
|
||||
|
||||
|
||||
SongLoading_Title_FontSize=31
|
||||
|
||||
SongLoading_SubTitle_FontSize=20
|
||||
|