1
0
mirror of synced 2025-02-25 14:25:23 +01:00

Assisted clear badge on the result screen and a bit of code cleaning

This commit is contained in:
0auBSQ 2024-06-18 20:57:08 +09:00
parent b65e539ac0
commit 48a2007b57
25 changed files with 257 additions and 1131 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

After

Width:  |  Height:  |  Size: 237 KiB

View File

@ -1362,59 +1362,39 @@ namespace TJAPlayer3
} }
#if false // #23625 2011.1.11 Config.iniからダメージ/回復値の定数変更を行う場合はここを有効にする 087リリースに合わせ機能無効化
//----------------------------------------
public float[,] fGaugeFactor = new float[5,2];
public float[] fDamageLevelFactor = new float[3];
//----------------------------------------
#endif
public int nBGAlpha; public int nBGAlpha;
public bool bAVI有効; public bool bEnableAVI;
public bool bBGA有効; public bool bEnableBGA;
public bool bBGM音を発声する; public bool bBGM音を発声する;
public STDGBVALUE<bool> bHidden;
public STDGBVALUE<bool> bLeft;
public STDGBVALUE<bool> bLight;
public bool bLogDTX詳細ログ出力; public bool bLogDTX詳細ログ出力;
public bool bLog曲検索ログ出力; public bool bLog曲検索ログ出力;
public bool bLog作成解放ログ出力; public bool bLog作成解放ログ出力;
public STDGBVALUE<bool> bReverse; public STDGBVALUE<bool> bReverse;
public E判定表示優先度 e判定表示優先度;
public STDGBVALUE<E判定位置> e判定位置; // #33891 2014.6.26 yyagi
public bool bScoreIniを出力する;
public bool bDanTowerHide; public bool bDanTowerHide;
public bool bSTAGEFAILED有効;
public STDGBVALUE<bool> bSudden;
public bool bTight; public bool bTight;
public STDGBVALUE<bool> bGraph; // #24074 2011.01.23 add ikanick
public bool bWave再生位置自動調整機能有効;
public bool bストイックモード; public bool bストイックモード;
public bool bランダムセレクトで子BOXを検索対象とする; public bool bIncludeSubfoldersOnRandomSelect;
public bool bログ出力; public bool bOutputLogs;
public bool b演奏情報を表示する; public bool bDisplayDebugInfo;
public bool b垂直帰線待ちを行う; public bool bEnableVSync;
public bool b全画面モード; public bool bFullScreen;
public int n初期ウィンドウ開始位置X; // #30675 2013.02.04 ikanick add public int nWindowBaseXPosition; // #30675 2013.02.04 ikanick add
public int n初期ウィンドウ開始位置Y; public int nWindowBaseYPosition;
public int nウインドウwidth; // #23510 2010.10.31 yyagi add public int nWindowWidth; // #23510 2010.10.31 yyagi add
public int nウインドウheight; // #23510 2010.10.31 yyagi add public int nWindowHeight; // #23510 2010.10.31 yyagi add
public Dictionary<int, string> dicJoystick; public Dictionary<int, string> dicJoystick;
public Dictionary<int, string> dicGamepad; public Dictionary<int, string> dicGamepad;
public Eダークモード eDark; public ERandomMode[] eRandom;
public Eランダムモード[] eRandom;
public Eダメージレベル eダメージレベル;
public CKeyAssign KeyAssign; public CKeyAssign KeyAssign;
public int n非フォーカス時スリープms; // #23568 2010.11.04 ikanick add public int n非フォーカス時スリープms; // #23568 2010.11.04 ikanick add
public int nフレーム毎スリープms; // #xxxxx 2011.11.27 yyagi add public int nフレーム毎スリープms; // #xxxxx 2011.11.27 yyagi add
public int n演奏速度; public int nSongSpeed;
public double SongPlaybackSpeed public double SongPlaybackSpeed
{ {
get => ((double)n演奏速度) / 20.0; get => ((double)nSongSpeed) / 20.0;
} }
public bool b演奏速度が一倍速であるとき以外音声を再生しない; public bool b演奏速度が一倍速であるとき以外音声を再生しない;
@ -1493,8 +1473,7 @@ namespace TJAPlayer3
public int[] nTimingZones; public int[] nTimingZones;
public EGameType[] nGameType; public EGameType[] nGameType;
public EFunMods[] nFunMods; public EFunMods[] nFunMods;
public string strDTXManiaのバージョン; public string strSongsPath;
public string str曲データ検索パス;
public string FontName; public string FontName;
public string BoxFontName; public string BoxFontName;
public bool bBranchGuide; public bool bBranchGuide;
@ -1610,7 +1589,6 @@ namespace TJAPlayer3
// public int n切り捨て下限Velocity; // #23857 2010.12.12 yyagi VelocityMin // public int n切り捨て下限Velocity; // #23857 2010.12.12 yyagi VelocityMin
public int nInputAdjustTimeMs; public int nInputAdjustTimeMs;
public int nGlobalOffsetMs; public int nGlobalOffsetMs;
public STDGBVALUE<int> nJudgeLinePosOffset; // #31602 2013.6.23 yyagi 判定ライン表示位置のオフセット
public bool bIsAutoResultCapture; // #25399 2011.6.9 yyagi リザルト画像自動保存機能のON/OFF制御 public bool bIsAutoResultCapture; // #25399 2011.6.9 yyagi リザルト画像自動保存機能のON/OFF制御
public int nPoliphonicSounds; // #28228 2012.5.1 yyagi レーン毎の最大同時発音数 public int nPoliphonicSounds; // #28228 2012.5.1 yyagi レーン毎の最大同時発音数
public bool bBufferedInputs; public bool bBufferedInputs;
@ -1641,22 +1619,22 @@ namespace TJAPlayer3
{ {
get get
{ {
return !this.b全画面モード; return !this.bFullScreen;
} }
set set
{ {
this.b全画面モード = !value; this.bFullScreen = !value;
} }
} }
public bool b演奏情報を表示しない public bool b演奏情報を表示しない
{ {
get get
{ {
return !this.b演奏情報を表示する; return !this.bDisplayDebugInfo;
} }
set set
{ {
this.b演奏情報を表示する = !value; this.bDisplayDebugInfo = !value;
} }
} }
public int n背景の透過度 public int n背景の透過度
@ -2093,34 +2071,28 @@ namespace TJAPlayer3
this.fDamageLevelFactor[2] = 1.5f; this.fDamageLevelFactor[2] = 1.5f;
//---------------------------------------- //----------------------------------------
#endif #endif
this.strDTXManiaのバージョン = "Unknown"; this.strSongsPath = "Songs" + Path.DirectorySeparatorChar;
this.str曲データ検索パス = "Songs" + Path.DirectorySeparatorChar; this.bFullScreen = false;
this.b全画面モード = false; this.bEnableVSync = true;
this.b垂直帰線待ちを行う = true; this.nWindowBaseXPosition = 100; // #30675 2013.02.04 ikanick add
this.n初期ウィンドウ開始位置X = 100; // #30675 2013.02.04 ikanick add this.nWindowBaseYPosition = 100;
this.n初期ウィンドウ開始位置Y = 100; this.nWindowWidth = SampleFramework.GameWindowSize.Width; // #23510 2010.10.31 yyagi add
this.nウインドウwidth = SampleFramework.GameWindowSize.Width; // #23510 2010.10.31 yyagi add this.nWindowHeight = SampleFramework.GameWindowSize.Height; //
this.nウインドウheight = SampleFramework.GameWindowSize.Height; //
this.nフレーム毎スリープms = -1; // #xxxxx 2011.11.27 yyagi add this.nフレーム毎スリープms = -1; // #xxxxx 2011.11.27 yyagi add
this.n非フォーカス時スリープms = 1; // #23568 2010.11.04 ikanick add this.n非フォーカス時スリープms = 1; // #23568 2010.11.04 ikanick add
this._bGuitar有効 = true; this._bGuitar有効 = true;
this._bDrums有効 = true; this._bDrums有効 = true;
this.nBGAlpha = 100; this.nBGAlpha = 100;
this.eダメージレベル = Eダメージレベル.; this.bEnableAVI = false;
this.bSTAGEFAILED有効 = true;
this.bAVI有効 = false;
this.eClipDispType = EClipDispType.; this.eClipDispType = EClipDispType.;
this.bBGA有効 = true; this.bEnableBGA = true;
this.n曲が選択されてからプレビュー音が鳴るまでのウェイトms = 1000; this.n曲が選択されてからプレビュー音が鳴るまでのウェイトms = 1000;
this.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms = 100; this.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms = 100;
//this.bWave再生位置自動調整機能有効 = true;
this.bWave再生位置自動調整機能有効 = false;
this.bBGM音を発声する = true; this.bBGM音を発声する = true;
this.bScoreIniを出力する = true;
this.bDanTowerHide = false; this.bDanTowerHide = false;
this.bランダムセレクトで子BOXを検索対象とする = true; this.bIncludeSubfoldersOnRandomSelect = true;
this.n表示可能な最小コンボ数 = new STDGBVALUE<int>(); this.n表示可能な最小コンボ数 = new STDGBVALUE<int>();
this.n表示可能な最小コンボ数.Drums = 10; this.n表示可能な最小コンボ数.Drums = 10;
this.n表示可能な最小コンボ数.Guitar = 10; this.n表示可能な最小コンボ数.Guitar = 10;
@ -2160,14 +2132,9 @@ namespace TJAPlayer3
this.SongPreviewLevel = CSound.DefaultSongPreviewLevel; this.SongPreviewLevel = CSound.DefaultSongPreviewLevel;
this.SongPlaybackLevel = CSound.DefaultSongPlaybackLevel; this.SongPlaybackLevel = CSound.DefaultSongPlaybackLevel;
this.KeyboardSoundLevelIncrement = DefaultKeyboardSoundLevelIncrement; this.KeyboardSoundLevelIncrement = DefaultKeyboardSoundLevelIncrement;
this.bログ出力 = true; this.bOutputLogs = true;
this.bSudden = new STDGBVALUE<bool>();
this.bHidden = new STDGBVALUE<bool>();
this.bReverse = new STDGBVALUE<bool>(); this.bReverse = new STDGBVALUE<bool>();
this.eRandom = new Eランダムモード[5]; this.eRandom = new ERandomMode[5];
this.bLight = new STDGBVALUE<bool>();
this.bLeft = new STDGBVALUE<bool>();
this.e判定位置 = new STDGBVALUE<E判定位置>(); // #33891 2014.6.26 yyagi
this. = new STDGBVALUE<E判定文字表示位置>(); this. = new STDGBVALUE<E判定文字表示位置>();
this.nScrollSpeed = new int[5] { 9, 9, 9, 9, 9 }; this.nScrollSpeed = new int[5] { 9, 9, 9, 9, 9 };
this.nTimingZones = new int[5] { 2, 2, 2, 2, 2 }; this.nTimingZones = new int[5] { 2, 2, 2, 2, 2 };
@ -2175,32 +2142,22 @@ namespace TJAPlayer3
this.nFunMods = new EFunMods[5] { EFunMods.NONE, EFunMods.NONE, EFunMods.NONE, EFunMods.NONE, EFunMods.NONE }; this.nFunMods = new EFunMods[5] { EFunMods.NONE, EFunMods.NONE, EFunMods.NONE, EFunMods.NONE, EFunMods.NONE };
this.nInputAdjustTimeMs = 0; this.nInputAdjustTimeMs = 0;
this.nGlobalOffsetMs = 0; this.nGlobalOffsetMs = 0;
this.nJudgeLinePosOffset = new STDGBVALUE<int>(); // #31602 2013.6.23 yyagi
this.e判定表示優先度 = E判定表示優先度.Chipより下;
for ( int i = 0; i < 3; i++ ) for ( int i = 0; i < 3; i++ )
{ {
this.bSudden[ i ] = false;
this.bHidden[ i ] = false;
this.bReverse[ i ] = false; this.bReverse[ i ] = false;
this.bLight[ i ] = false;
this.bLeft[ i ] = false;
this.[ i ] = E判定文字表示位置.; this.[ i ] = E判定文字表示位置.;
this.nJudgeLinePosOffset[ i ] = 0;
this.eInvisible[ i ] = EInvisible.OFF; this.eInvisible[ i ] = EInvisible.OFF;
//this.nViewerScrollSpeed[ i ] = 1;
this.e判定位置[ i ] = E判定位置.;
//this.e判定表示優先度[ i ] = E判定表示優先度.Chipより下;
} }
for (int i = 0; i < 5; i++) for (int i = 0; i < 5; i++)
{ {
this.eRandom[i] = Eランダムモード.OFF; this.eRandom[i] = ERandomMode.OFF;
this.nScrollSpeed[i] = 9; this.nScrollSpeed[i] = 9;
this.nTimingZones[i] = 2; this.nTimingZones[i] = 2;
} }
this.n演奏速度 = 20; this.nSongSpeed = 20;
this.b演奏速度が一倍速であるとき以外音声を再生しない = false; this.b演奏速度が一倍速であるとき以外音声を再生しない = false;
#region [ AutoPlay ] #region [ AutoPlay ]
this.bAutoPlay = new STAUTOPLAY(); this.bAutoPlay = new STAUTOPLAY();
@ -2386,7 +2343,7 @@ namespace TJAPlayer3
sw.WriteLine( @"; セミコロン(;)で区切ることにより複数のパスを指定できます。(例: d:\tja\;e:\tja2\" ); sw.WriteLine( @"; セミコロン(;)で区切ることにより複数のパスを指定できます。(例: d:\tja\;e:\tja2\" );
sw.WriteLine( "; Pathes for TJA data." ); sw.WriteLine( "; Pathes for TJA data." );
sw.WriteLine( @"; You can specify many pathes separated with semicolon(;). (e.g. d:\tja\;e:\tja2\)" ); sw.WriteLine( @"; You can specify many pathes separated with semicolon(;). (e.g. d:\tja\;e:\tja2\)" );
sw.WriteLine( "TJAPath={0}", this.str曲データ検索パス ); sw.WriteLine( "TJAPath={0}", this.strSongsPath );
sw.WriteLine(); sw.WriteLine();
#endregion #endregion
#region [ ] #region [ ]
@ -2462,23 +2419,23 @@ namespace TJAPlayer3
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 画面モード(0:ウィンドウ, 1:全画面)" ); sw.WriteLine( "; 画面モード(0:ウィンドウ, 1:全画面)" );
sw.WriteLine( "; Screen mode. (0:Window, 1:Fullscreen)" ); sw.WriteLine( "; Screen mode. (0:Window, 1:Fullscreen)" );
sw.WriteLine( "FullScreen={0}", this.b全画面モード ? 1 : 0 ); sw.WriteLine( "FullScreen={0}", this.bFullScreen ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine("; ウインドウモード時の画面幅"); // #23510 2010.10.31 yyagi add sw.WriteLine("; ウインドウモード時の画面幅"); // #23510 2010.10.31 yyagi add
sw.WriteLine("; A width size in the window mode."); // sw.WriteLine("; A width size in the window mode."); //
sw.WriteLine("WindowWidth={0}", this.nウインドウwidth); // sw.WriteLine("WindowWidth={0}", this.nWindowWidth); //
sw.WriteLine(); // sw.WriteLine(); //
sw.WriteLine("; ウインドウモード時の画面高さ"); // sw.WriteLine("; ウインドウモード時の画面高さ"); //
sw.WriteLine("; A height size in the window mode."); // sw.WriteLine("; A height size in the window mode."); //
sw.WriteLine("WindowHeight={0}", this.nウインドウheight); // sw.WriteLine("WindowHeight={0}", this.nWindowHeight); //
sw.WriteLine(); // sw.WriteLine(); //
sw.WriteLine( "; ウィンドウモード時の位置X" ); // #30675 2013.02.04 ikanick add sw.WriteLine( "; ウィンドウモード時の位置X" ); // #30675 2013.02.04 ikanick add
sw.WriteLine( "; X position in the window mode." ); // sw.WriteLine( "; X position in the window mode." ); //
sw.WriteLine( "WindowX={0}", this.n初期ウィンドウ開始位置X ); // sw.WriteLine( "WindowX={0}", this.nWindowBaseXPosition ); //
sw.WriteLine(); // sw.WriteLine(); //
sw.WriteLine( "; ウィンドウモード時の位置Y" ); // sw.WriteLine( "; ウィンドウモード時の位置Y" ); //
sw.WriteLine( "; Y position in the window mode." ); // sw.WriteLine( "; Y position in the window mode." ); //
sw.WriteLine( "WindowY={0}", this.n初期ウィンドウ開始位置Y ); // sw.WriteLine( "WindowY={0}", this.nWindowBaseYPosition ); //
sw.WriteLine(); // sw.WriteLine(); //
sw.WriteLine( "; ウインドウをダブルクリックした時にフルスクリーンに移行するか(0:移行しない,1:移行する)" ); // #26752 2011.11.27 yyagi sw.WriteLine( "; ウインドウをダブルクリックした時にフルスクリーンに移行するか(0:移行しない,1:移行する)" ); // #26752 2011.11.27 yyagi
@ -2506,7 +2463,7 @@ namespace TJAPlayer3
#endregion #endregion
#region [ (VSync, sleep) ] #region [ (VSync, sleep) ]
sw.WriteLine("; 垂直帰線同期(0:OFF,1:ON)"); sw.WriteLine("; 垂直帰線同期(0:OFF,1:ON)");
sw.WriteLine( "VSyncWait={0}", this.b垂直帰線待ちを行う ? 1 : 0 ); sw.WriteLine( "VSyncWait={0}", this.bEnableVSync ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; フレーム毎のsleep値[ms] (-1でスリープ無し, 0以上で毎フレームスリープ。動画キャプチャ等で活用下さい)" ); // #xxxxx 2011.11.27 yyagi add sw.WriteLine( "; フレーム毎のsleep値[ms] (-1でスリープ無し, 0以上で毎フレームスリープ。動画キャプチャ等で活用下さい)" ); // #xxxxx 2011.11.27 yyagi add
sw.WriteLine( "; A sleep time[ms] per frame." ); // sw.WriteLine( "; A sleep time[ms] per frame." ); //
@ -2581,15 +2538,12 @@ namespace TJAPlayer3
sw.WriteLine( "; Transparency for background image in playing screen.(0:tranaparent - 255:no transparent)" ); sw.WriteLine( "; Transparency for background image in playing screen.(0:tranaparent - 255:no transparent)" );
sw.WriteLine( "BGAlpha={0}", this.nBGAlpha ); sw.WriteLine( "BGAlpha={0}", this.nBGAlpha );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; ゲージゼロでSTAGE FAILED (0:OFF, 1:ON)" );
sw.WriteLine( "StageFailed={0}", this.bSTAGEFAILED有効 ? 1 : 0 );
sw.WriteLine();
#region [ AVI/BGA ] #region [ AVI/BGA ]
sw.WriteLine( "; AVIの表示(0:OFF, 1:ON)" ); sw.WriteLine( "; AVIの表示(0:OFF, 1:ON)" );
sw.WriteLine( "AVI={0}", this.bAVI有効 ? 1 : 0 ); sw.WriteLine( "AVI={0}", this.bEnableAVI ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; BGAの表示(0:OFF, 1:ON)" ); sw.WriteLine( "; BGAの表示(0:OFF, 1:ON)" );
sw.WriteLine( "BGA={0}", this.bBGA有効 ? 1 : 0 ); sw.WriteLine( "BGA={0}", this.bEnableBGA ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 動画表示モード( 0:表示しない, 1:背景のみ, 2:窓表示のみ, 3:両方)" ); sw.WriteLine( "; 動画表示モード( 0:表示しない, 1:背景のみ, 2:窓表示のみ, 3:両方)" );
sw.WriteLine( "ClipDispType={0}", (int) this.eClipDispType ); sw.WriteLine( "ClipDispType={0}", (int) this.eClipDispType );
@ -2610,9 +2564,6 @@ namespace TJAPlayer3
sw.WriteLine( "BGMSound={0}", this.bBGM音を発声する ? 1 : 0 ); sw.WriteLine( "BGMSound={0}", this.bBGM音を発声する ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
#endregion #endregion
sw.WriteLine( "; 演奏記録(~.score.iniの出力 (0:OFF, 1:ON)" );
sw.WriteLine( "SaveScoreIni={0}", this.bScoreIniを出力する ? 1 : 0 );
sw.WriteLine();
sw.WriteLine("; Hide Dan and Tower charts from the ensou song select screen (0:OFF, 1:ON)"); sw.WriteLine("; Hide Dan and Tower charts from the ensou song select screen (0:OFF, 1:ON)");
sw.WriteLine("DanTowerHide={0}", this.bDanTowerHide ? 1 : 0); sw.WriteLine("DanTowerHide={0}", this.bDanTowerHide ? 1 : 0);
sw.WriteLine(); sw.WriteLine();
@ -2620,11 +2571,11 @@ namespace TJAPlayer3
sw.WriteLine("MinComboDrums={0}", this.n表示可能な最小コンボ数.Drums); sw.WriteLine("MinComboDrums={0}", this.n表示可能な最小コンボ数.Drums);
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; RANDOM SELECT で子BOXを検索対象に含める (0:OFF, 1:ON)" ); sw.WriteLine( "; RANDOM SELECT で子BOXを検索対象に含める (0:OFF, 1:ON)" );
sw.WriteLine( "RandomFromSubBox={0}", this.bランダムセレクトで子BOXを検索対象とする ? 1 : 0 ); sw.WriteLine( "RandomFromSubBox={0}", this.bIncludeSubfoldersOnRandomSelect ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 演奏情報を表示する (0:OFF, 1:ON)" ); sw.WriteLine( "; 演奏情報を表示する (0:OFF, 1:ON)" );
sw.WriteLine( "; Showing playing info on the playing screen. (0:OFF, 1:ON)" ); sw.WriteLine( "; Showing playing info on the playing screen. (0:OFF, 1:ON)" );
sw.WriteLine( "ShowDebugStatus={0}", this.b演奏情報を表示する ? 1 : 0 ); sw.WriteLine( "ShowDebugStatus={0}", this.bDisplayDebugInfo ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine("; BS1770GAIN によるラウドネスメータの測量を適用する (0:OFF, 1:ON)"); sw.WriteLine("; BS1770GAIN によるラウドネスメータの測量を適用する (0:OFF, 1:ON)");
sw.WriteLine( "; Apply BS1770GAIN loudness metadata (0:OFF, 1:ON)" ); sw.WriteLine( "; Apply BS1770GAIN loudness metadata (0:OFF, 1:ON)" );
@ -2705,10 +2656,6 @@ namespace TJAPlayer3
sw.WriteLine("GlobalOffset={0}", this.nGlobalOffsetMs); sw.WriteLine("GlobalOffset={0}", this.nGlobalOffsetMs);
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 判定ラインの表示位置調整(ドラム, ギター, ベース)(-9999)[px]" ); // #31602 2013.6.23 yyagi 判定ラインの表示位置オフセット
sw.WriteLine( "; Offset value to adjust displaying judgement line for the drums, guitar and bass." ); //
sw.WriteLine( "JudgeLinePosOffsetDrums={0}", this.nJudgeLinePosOffset.Drums ); //
sw.WriteLine();
#endregion #endregion
sw.WriteLine("; TJAPlayer3のboxの表示をするかどうか (0:OFF, 1:ON)"); sw.WriteLine("; TJAPlayer3のboxの表示をするかどうか (0:OFF, 1:ON)");
sw.WriteLine("{0}={1}", nameof(TJAP3FolderMode), TJAP3FolderMode ? 1 : 0); sw.WriteLine("{0}={1}", nameof(TJAP3FolderMode), TJAP3FolderMode ? 1 : 0);
@ -2753,7 +2700,7 @@ namespace TJAPlayer3
sw.WriteLine( "[Log]" ); sw.WriteLine( "[Log]" );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; Log出力(0:OFF, 1:ON)" ); sw.WriteLine( "; Log出力(0:OFF, 1:ON)" );
sw.WriteLine( "OutputLog={0}", this.bログ出力 ? 1 : 0 ); sw.WriteLine( "OutputLog={0}", this.bOutputLogs ? 1 : 0 );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 曲データ検索に関するLog出力(0:OFF, 1:ON)" ); sw.WriteLine( "; 曲データ検索に関するLog出力(0:OFF, 1:ON)" );
sw.WriteLine( "TraceSongSearch={0}", this.bLog曲検索ログ出力 ? 1 : 0 ); sw.WriteLine( "TraceSongSearch={0}", this.bLog曲検索ログ出力 ? 1 : 0 );
@ -2783,36 +2730,17 @@ namespace TJAPlayer3
sw.WriteLine("ShowFooter={0}", ShowFooter ? 1 : 0); sw.WriteLine("ShowFooter={0}", ShowFooter ? 1 : 0);
sw.WriteLine("; ぷちキャラ画像 (0:OFF, 1:ON)"); sw.WriteLine("; ぷちキャラ画像 (0:OFF, 1:ON)");
sw.WriteLine("ShowPuchiChara={0}", ShowPuchiChara ? 1 : 0); sw.WriteLine("ShowPuchiChara={0}", ShowPuchiChara ? 1 : 0);
sw.WriteLine();
sw.WriteLine( "; DARKモード(0:OFF, 1:HALF, 2:FULL)" );
sw.WriteLine( "Dark={0}", (int) this.eDark );
sw.WriteLine();
sw.WriteLine(); sw.WriteLine();
sw.WriteLine("; 選曲画面でのタイマーを有効にするかどうか(0:無効,1:有効)"); sw.WriteLine("; 選曲画面でのタイマーを有効にするかどうか(0:無効,1:有効)");
sw.WriteLine("; Enable countdown in songselect.(0:No, 1:Yes)"); sw.WriteLine("; Enable countdown in songselect.(0:No, 1:Yes)");
sw.WriteLine("EnableCountDownTimer={0}", this.bEnableCountdownTimer ? 1 : 0); sw.WriteLine("EnableCountDownTimer={0}", this.bEnableCountdownTimer ? 1 : 0);
sw.WriteLine(); sw.WriteLine();
#region [ SUDDEN ]
sw.WriteLine( "; ドラムSUDDENモード(0:OFF, 1:ON)" );
sw.WriteLine( "DrumsSudden={0}", this.bSudden.Drums ? 1 : 0 );
sw.WriteLine();
#endregion
#region [ HIDDEN ]
sw.WriteLine( "; ドラムHIDDENモード(0:OFF, 1:ON)" );
sw.WriteLine( "DrumsHidden={0}", this.bHidden.Drums ? 1 : 0 );
sw.WriteLine();
#endregion
#region [ Invisible ] #region [ Invisible ]
sw.WriteLine( "; ドラムチップ非表示モード (0:OFF, 1=SEMI, 2:FULL)" ); sw.WriteLine( "; ドラムチップ非表示モード (0:OFF, 1=SEMI, 2:FULL)" );
sw.WriteLine( "; Drums chip invisible mode" ); sw.WriteLine( "; Drums chip invisible mode" );
sw.WriteLine( "DrumsInvisible={0}", (int) this.eInvisible.Drums ); sw.WriteLine( "DrumsInvisible={0}", (int) this.eInvisible.Drums );
sw.WriteLine(); sw.WriteLine();
//sw.WriteLine( "; Semi-InvisibleでMissった時のチップ再表示時間(ms)" );
//sw.WriteLine( "InvisibleDisplayTimeMs={0}", (int) this.nDisplayTimesMs );
//sw.WriteLine();
//sw.WriteLine( "; Semi-InvisibleでMissってチップ再表示時間終了後のフェードアウト時間(ms)" );
//sw.WriteLine( "InvisibleFadeoutTimeMs={0}", (int) this.nFadeoutTimeMs );
//sw.WriteLine();
#endregion #endregion
sw.WriteLine( "; ドラムREVERSEモード(0:OFF, 1:ON)" ); sw.WriteLine( "; ドラムREVERSEモード(0:OFF, 1:ON)" );
sw.WriteLine( "DrumsReverse={0}", this.bReverse.Drums ? 1 : 0 ); sw.WriteLine( "DrumsReverse={0}", this.bReverse.Drums ? 1 : 0 );
@ -2854,7 +2782,7 @@ namespace TJAPlayer3
sw.WriteLine("FunMods5P={0}", (int)this.nFunMods[4]); sw.WriteLine("FunMods5P={0}", (int)this.nFunMods[4]);
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 演奏速度(540)(→x5/20x40/20)" ); sw.WriteLine( "; 演奏速度(540)(→x5/20x40/20)" );
sw.WriteLine( "PlaySpeed={0}", this.n演奏速度 ); sw.WriteLine( "PlaySpeed={0}", this.nSongSpeed );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine("; 演奏速度が一倍速であるときのみBGMを再生する(0:OFF, 1:ON)"); sw.WriteLine("; 演奏速度が一倍速であるときのみBGMを再生する(0:OFF, 1:ON)");
@ -2863,18 +2791,13 @@ namespace TJAPlayer3
sw.WriteLine("; デフォルトで選択される難易度"); sw.WriteLine("; デフォルトで選択される難易度");
sw.WriteLine("DefaultCourse={0}", this.nDefaultCourse); sw.WriteLine("DefaultCourse={0}", this.nDefaultCourse);
sw.WriteLine(); sw.WriteLine();
sw.WriteLine( "; 譜面分岐のガイド表示(0:OFF, 1:ON)" );
sw.WriteLine( "BranchGuide={0}", this.bGraph.Drums ? 1 : 0 );
sw.WriteLine();
sw.WriteLine( "; スコア計算方法(0:旧配点, 1:旧筐体配点, 2:新配点)" ); sw.WriteLine( "; スコア計算方法(0:旧配点, 1:旧筐体配点, 2:新配点)" );
sw.WriteLine( "ScoreMode={0}", this.nScoreMode ); sw.WriteLine( "ScoreMode={0}", this.nScoreMode );
sw.WriteLine(); sw.WriteLine();
sw.WriteLine("; 真打モード (0:OFF, 1:ON)"); sw.WriteLine("; 真打モード (0:OFF, 1:ON)");
sw.WriteLine("; Fixed score mode (0:OFF, 1:ON)"); sw.WriteLine("; Fixed score mode (0:OFF, 1:ON)");
sw.WriteLine("{0}={1}", nameof(ShinuchiMode), ShinuchiMode ? 1 : 0); sw.WriteLine("{0}={1}", nameof(ShinuchiMode), ShinuchiMode ? 1 : 0);
//sw.WriteLine( "; 1ーツごとのスクロール速度をランダムで変更します。(0:OFF, 1:ON)" );
//sw.WriteLine( "HispeedRandom={0}", this.bHispeedRandom ? 1 : 0 );
//sw.WriteLine();
sw.WriteLine( "; 大音符の両手入力待機時間(ms)" ); sw.WriteLine( "; 大音符の両手入力待機時間(ms)" );
sw.WriteLine( "BigNotesWaitTime={0}", this.nBigNoteWaitTimems ); sw.WriteLine( "BigNotesWaitTime={0}", this.nBigNoteWaitTimems );
sw.WriteLine(); sw.WriteLine();
@ -2941,9 +2864,7 @@ namespace TJAPlayer3
sw.WriteLine( "; プレイ人数" ); sw.WriteLine( "; プレイ人数" );
sw.WriteLine( "PlayerCount={0}", this.nPlayerCount ); sw.WriteLine( "PlayerCount={0}", this.nPlayerCount );
sw.WriteLine(); sw.WriteLine();
//sw.WriteLine( "; 選曲画面の初期選択難易度(ベータ版)" );
//sw.WriteLine( "DifficultPriority={0}", this.bJudgeCountDisplay ? 1 : 0 );
//sw.WriteLine();
sw.WriteLine( ";-------------------" ); sw.WriteLine( ";-------------------" );
#endregion #endregion
@ -3191,11 +3112,6 @@ namespace TJAPlayer3
str = reader.ReadToEnd(); str = reader.ReadToEnd();
} }
t文字列から読み込み( str ); t文字列から読み込み( str );
CDTXVersion version = new CDTXVersion( this.strDTXManiaのバージョン );
//if( version.n整数部 <= 69 )
//{
// this.tデフォルトのキーアサインに設定する();
//}
} }
} }
@ -3288,48 +3204,10 @@ namespace TJAPlayer3
//----------------------------- //-----------------------------
case Eセクション種別.System: case Eセクション種別.System:
{ {
#if false // #23625 2011.1.11 Config.iniからダメージ/回復値の定数変更を行う場合はここを有効にする 087リリースに合わせ機能無効化
//----------------------------------------
if (str3.Equals("GaugeFactorD"))
{
int p = 0;
string[] splittedFactor = str4.Split(',');
foreach (string s in splittedFactor) {
this.fGaugeFactor[p++, 0] = Convert.ToSingle(s);
}
} else
if (str3.Equals("GaugeFactorG"))
{
int p = 0;
string[] splittedFactor = str4.Split(',');
foreach (string s in splittedFactor)
{
this.fGaugeFactor[p++, 1] = Convert.ToSingle(s);
}
}
else
if (str3.Equals("DamageFactor"))
{
int p = 0;
string[] splittedFactor = str4.Split(',');
foreach (string s in splittedFactor)
{
this.fDamageLevelFactor[p++] = Convert.ToSingle(s);
}
}
else
//----------------------------------------
#endif
#region [ Version ]
if ( str3.Equals( "Version" ) )
{
this.strDTXManiaのバージョン = str4;
}
#endregion
#region [ TJAPath ] #region [ TJAPath ]
else if( str3.Equals( "TJAPath" ) ) if( str3.Equals( "TJAPath" ) )
{ {
this.str曲データ検索パス = str4; this.strSongsPath = str4;
} }
#endregion #endregion
@ -3401,32 +3279,32 @@ namespace TJAPlayer3
} }
else if (str3.Equals("FullScreen")) else if (str3.Equals("FullScreen"))
{ {
this.b全画面モード = CConversion.bONorOFF(str4[0]); this.bFullScreen = CConversion.bONorOFF(str4[0]);
} }
else if ( str3.Equals( "WindowX" ) ) // #30675 2013.02.04 ikanick add else if ( str3.Equals( "WindowX" ) ) // #30675 2013.02.04 ikanick add
{ {
this.n初期ウィンドウ開始位置X = CConversion.n値を文字列から取得して範囲内に丸めて返す( this.nWindowBaseXPosition = CConversion.n値を文字列から取得して範囲内に丸めて返す(
str4, 0, 9999 , this.n初期ウィンドウ開始位置X ); str4, 0, 9999 , this.nWindowBaseXPosition );
} }
else if ( str3.Equals( "WindowY" ) ) // #30675 2013.02.04 ikanick add else if ( str3.Equals( "WindowY" ) ) // #30675 2013.02.04 ikanick add
{ {
this.n初期ウィンドウ開始位置Y = CConversion.n値を文字列から取得して範囲内に丸めて返す( this.nWindowBaseYPosition = CConversion.n値を文字列から取得して範囲内に丸めて返す(
str4, 0, 9999 , this.n初期ウィンドウ開始位置Y ); str4, 0, 9999 , this.nWindowBaseYPosition );
} }
else if ( str3.Equals( "WindowWidth" ) ) // #23510 2010.10.31 yyagi add else if ( str3.Equals( "WindowWidth" ) ) // #23510 2010.10.31 yyagi add
{ {
this.nウインドウwidth = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 1, 65535, this.nウインドウwidth ); this.nWindowWidth = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 1, 65535, this.nWindowWidth );
if( this.nウインドウwidth <= 0 ) if( this.nWindowWidth <= 0 )
{ {
this.nウインドウwidth = SampleFramework.GameWindowSize.Width; this.nWindowWidth = SampleFramework.GameWindowSize.Width;
} }
} }
else if( str3.Equals( "WindowHeight" ) ) // #23510 2010.10.31 yyagi add else if( str3.Equals( "WindowHeight" ) ) // #23510 2010.10.31 yyagi add
{ {
this.nウインドウheight = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 1, 65535, this.nウインドウheight ); this.nWindowHeight = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 1, 65535, this.nWindowHeight );
if( this.nウインドウheight <= 0 ) if( this.nWindowHeight <= 0 )
{ {
this.nウインドウheight = SampleFramework.GameWindowSize.Height; this.nWindowHeight = SampleFramework.GameWindowSize.Height;
} }
} }
else if ( str3.Equals( "DoubleClickFullScreen" ) ) // #26752 2011.11.27 yyagi else if ( str3.Equals( "DoubleClickFullScreen" ) ) // #26752 2011.11.27 yyagi
@ -3492,7 +3370,7 @@ namespace TJAPlayer3
else if ( str3.Equals( "VSyncWait" ) ) else if ( str3.Equals( "VSyncWait" ) )
{ {
this.b垂直帰線待ちを行う = CConversion.bONorOFF( str4[ 0 ] ); this.bEnableVSync = CConversion.bONorOFF( str4[ 0 ] );
} }
else if( str3.Equals( "SleepTimePerFrame" ) ) // #23568 2011.11.27 yyagi else if( str3.Equals( "SleepTimePerFrame" ) ) // #23568 2011.11.27 yyagi
{ {
@ -3502,22 +3380,14 @@ namespace TJAPlayer3
{ {
this.n背景の透過度 = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 0xff, this.n背景の透過度 ); this.n背景の透過度 = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 0xff, this.n背景の透過度 );
} }
else if( str3.Equals( "DamageLevel" ) )
{
this.eダメージレベル = (Eダメージレベル) CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 2, (int) this.eダメージレベル );
}
else if ( str3.Equals( "StageFailed" ) )
{
this.bSTAGEFAILED有効 = CConversion.bONorOFF( str4[ 0 ] );
}
#region [ AVI/BGA ] #region [ AVI/BGA ]
else if( str3.Equals( "AVI" ) ) else if( str3.Equals( "AVI" ) )
{ {
this.bAVI有効 = CConversion.bONorOFF( str4[ 0 ] ); this.bEnableAVI = CConversion.bONorOFF( str4[ 0 ] );
} }
else if( str3.Equals( "BGA" ) ) else if( str3.Equals( "BGA" ) )
{ {
this.bBGA有効 = CConversion.bONorOFF( str4[ 0 ] ); this.bEnableBGA = CConversion.bONorOFF( str4[ 0 ] );
} }
else if( str3.Equals( "ClipDispType" ) ) else if( str3.Equals( "ClipDispType" ) )
{ {
@ -3534,27 +3404,19 @@ namespace TJAPlayer3
this.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 0x5f5e0ff, this.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms ); this.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 0x5f5e0ff, this.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms );
} }
#endregion #endregion
//else if( str3.Equals( "AdjustWaves" ) )
//{
// this.bWave再生位置自動調整機能有効 = C変換.bONorOFF( str4[ 0 ] );
//}
#region [ BGM/ ] #region [ BGM/ ]
else if( str3.Equals( "BGMSound" ) ) else if( str3.Equals( "BGMSound" ) )
{ {
this.bBGM音を発声する = CConversion.bONorOFF( str4[ 0 ] ); this.bBGM音を発声する = CConversion.bONorOFF( str4[ 0 ] );
} }
#endregion #endregion
else if( str3.Equals( "SaveScoreIni" ) )
{
this.bScoreIniを出力する = CConversion.bONorOFF( str4[ 0 ] );
}
else if (str3.Equals("DanTowerHide")) else if (str3.Equals("DanTowerHide"))
{ {
this.bDanTowerHide = CConversion.bONorOFF(str4[0]); this.bDanTowerHide = CConversion.bONorOFF(str4[0]);
} }
else if( str3.Equals( "RandomFromSubBox" ) ) else if( str3.Equals( "RandomFromSubBox" ) )
{ {
this.bランダムセレクトで子BOXを検索対象とする = CConversion.bONorOFF( str4[ 0 ] ); this.bIncludeSubfoldersOnRandomSelect = CConversion.bONorOFF( str4[ 0 ] );
} }
#region [ ] #region [ ]
else if( str3.Equals( "MinComboDrums" ) ) else if( str3.Equals( "MinComboDrums" ) )
@ -3564,7 +3426,7 @@ namespace TJAPlayer3
#endregion #endregion
else if( str3.Equals( "ShowDebugStatus" ) ) else if( str3.Equals( "ShowDebugStatus" ) )
{ {
this.b演奏情報を表示する = CConversion.bONorOFF( str4[ 0 ] ); this.bDisplayDebugInfo = CConversion.bONorOFF( str4[ 0 ] );
} }
else if( str3.Equals( nameof(ApplyLoudnessMetadata) ) ) else if( str3.Equals( nameof(ApplyLoudnessMetadata) ) )
{ {
@ -3606,10 +3468,6 @@ namespace TJAPlayer3
{ {
this.bストイックモード = CConversion.bONorOFF( str4[ 0 ] ); this.bストイックモード = CConversion.bONorOFF( str4[ 0 ] );
} }
else if ( str3.Equals( "JudgeDispPriority" ) )
{
this.e判定表示優先度 = (E判定表示優先度) CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 1, (int) this.e判定表示優先度 );
}
else if ( str3.Equals( "AutoResultCapture" ) ) // #25399 2011.6.9 yyagi else if ( str3.Equals( "AutoResultCapture" ) ) // #25399 2011.6.9 yyagi
{ {
this.bIsAutoResultCapture = CConversion.bONorOFF( str4[ 0 ] ); this.bIsAutoResultCapture = CConversion.bONorOFF( str4[ 0 ] );
@ -3623,36 +3481,10 @@ namespace TJAPlayer3
this.bTimeStretch = CConversion.bONorOFF( str4[ 0 ] ); this.bTimeStretch = CConversion.bONorOFF( str4[ 0 ] );
} }
#region [ AdjustTime ] #region [ AdjustTime ]
/*
else if( str3.Equals( "InputAdjustTime" ) )
{
this.nInputAdjustTimeMs = C変換.n値を文字列から取得して範囲内に丸めて返す( str4, -9999, 9999, this.nInputAdjustTimeMs );
}
*/
else if (str3.Equals("GlobalOffset")) else if (str3.Equals("GlobalOffset"))
{ {
this.nGlobalOffsetMs = CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, -9999, 9999, this.nGlobalOffsetMs); this.nGlobalOffsetMs = CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, -9999, 9999, this.nGlobalOffsetMs);
} }
else if ( str3.Equals( "JudgeLinePosOffsetDrums" ) ) // #31602 2013.6.23 yyagi
{
this.nJudgeLinePosOffset.Drums = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, -99, 99, this.nJudgeLinePosOffset.Drums );
}
else if ( str3.Equals( "JudgeLinePosOffsetGuitar" ) ) // #31602 2013.6.23 yyagi
{
this.nJudgeLinePosOffset.Guitar = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, -99, 99, this.nJudgeLinePosOffset.Guitar );
}
else if ( str3.Equals( "JudgeLinePosOffsetBass" ) ) // #31602 2013.6.23 yyagi
{
this.nJudgeLinePosOffset.Bass = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, -99, 99, this.nJudgeLinePosOffset.Bass );
}
else if ( str3.Equals( "JudgeLinePosModeGuitar" ) ) // #33891 2014.6.26 yyagi
{
this.e判定位置.Guitar = (E判定位置) CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 2, (int) this.e判定位置.Guitar );
}
else if ( str3.Equals( "JudgeLinePosModeBass" ) ) // #33891 2014.6.26 yyagi
{
this.e判定位置.Bass = (E判定位置) CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 2, (int) this.e判定位置.Bass );
}
#endregion #endregion
else if( str3.Equals( "BufferedInput" ) ) else if( str3.Equals( "BufferedInput" ) )
{ {
@ -3799,7 +3631,7 @@ namespace TJAPlayer3
{ {
if( str3.Equals( "OutputLog" ) ) if( str3.Equals( "OutputLog" ) )
{ {
this.bログ出力 = CConversion.bONorOFF( str4[ 0 ] ); this.bOutputLogs = CConversion.bONorOFF( str4[ 0 ] );
} }
else if( str3.Equals( "TraceCreatedDisposed" ) ) else if( str3.Equals( "TraceCreatedDisposed" ) )
{ {
@ -3846,45 +3678,17 @@ namespace TJAPlayer3
{ {
ShowPuchiChara = CConversion.bONorOFF(str4[0]); ShowPuchiChara = CConversion.bONorOFF(str4[0]);
} }
else if (str3.Equals("Dark"))
{
this.eDark = (Eダークモード)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 2, (int)this.eDark);
}
/*
else if (str3.Equals("ScrollMode"))
{
this.eScrollMode = (EScrollMode)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 2, 0);
}
*/
else if (str3.Equals("EnableCountDownTimer")) else if (str3.Equals("EnableCountDownTimer"))
{ {
this.bEnableCountdownTimer = CConversion.bONorOFF(str4[0]); this.bEnableCountdownTimer = CConversion.bONorOFF(str4[0]);
} }
#region [ Sudden ]
else if (str3.Equals("DrumsSudden"))
{
this.bSudden.Drums = CConversion.bONorOFF(str4[0]);
}
#endregion
#region [ Hidden ]
else if (str3.Equals("DrumsHidden"))
{
this.bHidden.Drums = CConversion.bONorOFF(str4[0]);
}
#endregion
#region [ Invisible ] #region [ Invisible ]
else if (str3.Equals("DrumsInvisible")) else if (str3.Equals("DrumsInvisible"))
{ {
this.eInvisible.Drums = (EInvisible)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 2, (int)this.eInvisible.Drums); this.eInvisible.Drums = (EInvisible)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 2, (int)this.eInvisible.Drums);
} }
//else if ( str3.Equals( "InvisibleDisplayTimeMs" ) )
//{
// this.nDisplayTimesMs = C変換.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 9999999, (int) this.nDisplayTimesMs );
//}
//else if ( str3.Equals( "InvisibleFadeoutTimeMs" ) )
//{
// this.nFadeoutTimeMs = C変換.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 9999999, (int) this.nFadeoutTimeMs );
//}
#endregion #endregion
else if (str3.Equals("DrumsReverse")) else if (str3.Equals("DrumsReverse"))
{ {
@ -4077,23 +3881,23 @@ namespace TJAPlayer3
else if (str3.Equals("TaikoRandom1P") || str3.Equals("TaikoRandom")) else if (str3.Equals("TaikoRandom1P") || str3.Equals("TaikoRandom"))
{ {
this.eRandom[0] = (Eランダムモード)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[0]); this.eRandom[0] = (ERandomMode)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[0]);
} }
else if (str3.Equals("TaikoRandom2P")) else if (str3.Equals("TaikoRandom2P"))
{ {
this.eRandom[1] = (Eランダムモード)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[1]); this.eRandom[1] = (ERandomMode)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[1]);
} }
else if (str3.Equals("TaikoRandom3P")) else if (str3.Equals("TaikoRandom3P"))
{ {
this.eRandom[2] = (Eランダムモード)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[2]); this.eRandom[2] = (ERandomMode)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[2]);
} }
else if (str3.Equals("TaikoRandom4P")) else if (str3.Equals("TaikoRandom4P"))
{ {
this.eRandom[3] = (Eランダムモード)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[3]); this.eRandom[3] = (ERandomMode)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[3]);
} }
else if (str3.Equals("TaikoRandom5P")) else if (str3.Equals("TaikoRandom5P"))
{ {
this.eRandom[4] = (Eランダムモード)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[4]); this.eRandom[4] = (ERandomMode)CConversion.n値を文字列から取得して範囲内に丸めて返す(str4, 0, 4, (int)this.eRandom[4]);
} }
#endregion #endregion
@ -4105,24 +3909,13 @@ namespace TJAPlayer3
else if ( str3.Equals( "PlaySpeed" ) ) else if ( str3.Equals( "PlaySpeed" ) )
{ {
this.n演奏速度 = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 5, 400, this.n演奏速度 ); this.nSongSpeed = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 5, 400, this.nSongSpeed );
} }
else if (str3.Equals("PlaySpeedNotEqualOneNoSound")) else if (str3.Equals("PlaySpeedNotEqualOneNoSound"))
{ {
this.b演奏速度が一倍速であるとき以外音声を再生しない = CConversion.bONorOFF(str4[0]); this.b演奏速度が一倍速であるとき以外音声を再生しない = CConversion.bONorOFF(str4[0]);
} }
//else if ( str3.Equals( "JudgeDispPriorityDrums" ) )
//{
// this.e判定表示優先度.Drums = (E判定表示優先度) C変換.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 1, (int) this.e判定表示優先度.Drums );
//}
//else if ( str3.Equals( "JudgeDispPriorityGuitar" ) )
//{
// this.e判定表示優先度.Guitar = (E判定表示優先度) C変換.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 1, (int) this.e判定表示優先度.Guitar );
//}
//else if ( str3.Equals( "JudgeDispPriorityBass" ) )
//{
// this.e判定表示優先度.Bass = (E判定表示優先度) C変換.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 1, (int) this.e判定表示優先度.Bass );
//}
else if ( str3.Equals( "Risky" ) ) // #23559 2011.6.23 yyagi else if ( str3.Equals( "Risky" ) ) // #23559 2011.6.23 yyagi
{ {
this.nRisky = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 10, this.nRisky ); this.nRisky = CConversion.n値を文字列から取得して範囲内に丸めて返す( str4, 0, 10, this.nRisky );
@ -4576,25 +4369,6 @@ namespace TJAPlayer3
} }
} }
/// <summary>
/// ギターとベースのキーアサイン入れ替え
/// </summary>
//public void SwapGuitarBassKeyAssign() // #24063 2011.1.16 yyagi
//{
// for ( int j = 0; j <= (int)EKeyConfigPad.Capture; j++ )
// {
// CKeyAssign.STKEYASSIGN t; //= new CConfigIni.CKeyAssign.STKEYASSIGN();
// for ( int k = 0; k < 16; k++ )
// {
// t = this.KeyAssign[ (int)EKeyConfigPart.GUITAR ][ j ][ k ];
// this.KeyAssign[ (int)EKeyConfigPart.GUITAR ][ j ][ k ] = this.KeyAssign[ (int)EKeyConfigPart.BASS ][ j ][ k ];
// this.KeyAssign[ (int)EKeyConfigPart.BASS ][ j ][ k ] = t;
// }
// }
// this.bIsSwappedGuitarBass = !bIsSwappedGuitarBass;
//}
// その他 // その他
#region [ private ] #region [ private ]

View File

@ -63,12 +63,7 @@ namespace TJAPlayer3
= 1, = 1,
= 2 = 2
} }
public enum Eダメージレベル
{
= 0,
= 1,
= 2
}
public enum EPad // 演奏用のenum。ここを修正するときは、次に出てくる EKeyConfigPad と EパッドFlag もセットで修正すること。 public enum EPad // 演奏用のenum。ここを修正するときは、次に出てくる EKeyConfigPad と EパッドFlag もセットで修正すること。
{ {
HH = 0, HH = 0,
@ -254,7 +249,7 @@ namespace TJAPlayer3
RBlue2P = 64, RBlue2P = 64,
UNKNOWN = 4096 UNKNOWN = 4096
} }
public enum Eランダムモード public enum ERandomMode
{ {
OFF, OFF,
RANDOM, RANDOM,

View File

@ -677,10 +677,10 @@ namespace TJAPlayer3
break; break;
} }
WindowPosition = new Silk.NET.Maths.Vector2D<int>(ConfigIni.n初期ウィンドウ開始位置X, ConfigIni.n初期ウィンドウ開始位置Y); WindowPosition = new Silk.NET.Maths.Vector2D<int>(ConfigIni.nWindowBaseXPosition, ConfigIni.nWindowBaseYPosition);
WindowSize = new Silk.NET.Maths.Vector2D<int>(ConfigIni.nウインドウwidth, ConfigIni.nウインドウheight); WindowSize = new Silk.NET.Maths.Vector2D<int>(ConfigIni.nWindowWidth, ConfigIni.nWindowHeight);
FullScreen = ConfigIni.b全画面モード; FullScreen = ConfigIni.bFullScreen;
VSync = ConfigIni.b垂直帰線待ちを行う; VSync = ConfigIni.bEnableVSync;
Framerate = 0; Framerate = 0;
base.Configuration(); base.Configuration();
@ -753,12 +753,12 @@ namespace TJAPlayer3
} }
protected override void OnExiting() protected override void OnExiting()
{ {
ConfigIni.n初期ウィンドウ開始位置X = WindowPosition.X; ConfigIni.nWindowBaseXPosition = WindowPosition.X;
ConfigIni.n初期ウィンドウ開始位置Y = WindowPosition.Y; ConfigIni.nWindowBaseYPosition = WindowPosition.Y;
ConfigIni.nウインドウwidth = WindowSize.X; ConfigIni.nWindowWidth = WindowSize.X;
ConfigIni.nウインドウheight = WindowSize.Y; ConfigIni.nWindowHeight = WindowSize.Y;
ConfigIni.b全画面モード = FullScreen; ConfigIni.bFullScreen = FullScreen;
ConfigIni.b垂直帰線待ちを行う = VSync; ConfigIni.bEnableVSync = VSync;
Framerate = 0; Framerate = 0;
this.t終了処理(); this.t終了処理();
@ -1784,9 +1784,9 @@ for (int i = 0; i < 3; i++) {
TJAPlayer3.ConfigIni.bTimeStretch = DTXVmode.TimeStretch; TJAPlayer3.ConfigIni.bTimeStretch = DTXVmode.TimeStretch;
SoundManager.bIsTimeStretch = DTXVmode.TimeStretch; SoundManager.bIsTimeStretch = DTXVmode.TimeStretch;
if ( TJAPlayer3.ConfigIni.b垂直帰線待ちを行う != DTXVmode.VSyncWait ) if ( TJAPlayer3.ConfigIni.bEnableVSync != DTXVmode.VSyncWait )
{ {
TJAPlayer3.ConfigIni.b垂直帰線待ちを行う = DTXVmode.VSyncWait; TJAPlayer3.ConfigIni.bEnableVSync = DTXVmode.VSyncWait;
TJAPlayer3.app.b次のタイミングで垂直帰線同期切り替えを行う = true; TJAPlayer3.app.b次のタイミングで垂直帰線同期切り替えを行う = true;
} }
} }
@ -2355,7 +2355,7 @@ for (int i = 0; i < 3; i++) {
#region [ _ウインドウ切り替え ] #region [ _ウインドウ切り替え ]
if ( this.b次のタイミングで全画面_ウィンドウ切り替えを行う ) if ( this.b次のタイミングで全画面_ウィンドウ切り替えを行う )
{ {
ConfigIni.b全画面モード = !ConfigIni.b全画面モード; ConfigIni.bFullScreen = !ConfigIni.bFullScreen;
app.ToggleWindowMode(); app.ToggleWindowMode();
this.b次のタイミングで全画面_ウィンドウ切り替えを行う = false; this.b次のタイミングで全画面_ウィンドウ切り替えを行う = false;
} }
@ -2363,7 +2363,7 @@ for (int i = 0; i < 3; i++) {
#region [ ] #region [ ]
if ( this.b次のタイミングで垂直帰線同期切り替えを行う ) if ( this.b次のタイミングで垂直帰線同期切り替えを行う )
{ {
VSync = ConfigIni.b垂直帰線待ちを行う; VSync = ConfigIni.bEnableVSync;
this.b次のタイミングで垂直帰線同期切り替えを行う = false; this.b次のタイミングで垂直帰線同期切り替えを行う = false;
} }
#endregion #endregion
@ -2627,7 +2627,7 @@ for (int i = 0; i < 3; i++) {
#region [ ] #region [ ]
//--------------------- //---------------------
Trace.AutoFlush = true; Trace.AutoFlush = true;
if( ConfigIni.bログ出力 ) if( ConfigIni.bOutputLogs )
{ {
try try
{ {

View File

@ -315,7 +315,7 @@ namespace TJAPlayer3
// Scroll speed value (as on ConfigIni, 9 is x1) // Scroll speed value (as on ConfigIni, 9 is x1)
ScrollSpeedValue = TJAPlayer3.ConfigIni.nScrollSpeed[actualPlayer]; ScrollSpeedValue = TJAPlayer3.ConfigIni.nScrollSpeed[actualPlayer];
// Song speed value (as on ConfigIni, 20 is x1) // Song speed value (as on ConfigIni, 20 is x1)
SongSpeedValue = TJAPlayer3.ConfigIni.n演奏速度; SongSpeedValue = TJAPlayer3.ConfigIni.nSongSpeed;
// Just strictess adjust mod value (as on ConfigIni, between -2 for lenient and 2 for rigorous) // Just strictess adjust mod value (as on ConfigIni, between -2 for lenient and 2 for rigorous)
JudgeStrictnessAdjust = TJAPlayer3.ConfigIni.nTimingZones[actualPlayer]; JudgeStrictnessAdjust = TJAPlayer3.ConfigIni.nTimingZones[actualPlayer];
@ -332,10 +332,10 @@ namespace TJAPlayer3
* - 8 (256) : Safe (Bad => Ok) * - 8 (256) : Safe (Bad => Ok)
*/ */
ModFlags = (int)EModFlag.None; ModFlags = (int)EModFlag.None;
if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == Eランダムモード.MIRROR) ModFlags |= (int)EModFlag.Mirror; if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == ERandomMode.MIRROR) ModFlags |= (int)EModFlag.Mirror;
if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == Eランダムモード.RANDOM) ModFlags |= (int)EModFlag.Random; if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == ERandomMode.RANDOM) ModFlags |= (int)EModFlag.Random;
if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == Eランダムモード.SUPERRANDOM) ModFlags |= (int)EModFlag.SuperRandom; if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == ERandomMode.SUPERRANDOM) ModFlags |= (int)EModFlag.SuperRandom;
if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == Eランダムモード.HYPERRANDOM) ModFlags |= ((int)EModFlag.Random | (int)EModFlag.Mirror); if (TJAPlayer3.ConfigIni.eRandom[actualPlayer] == ERandomMode.HYPERRANDOM) ModFlags |= ((int)EModFlag.Random | (int)EModFlag.Mirror);
if (TJAPlayer3.ConfigIni.eSTEALTH[actualPlayer] == EStealthMode.DORON) ModFlags |= (int)EModFlag.Invisible; if (TJAPlayer3.ConfigIni.eSTEALTH[actualPlayer] == EStealthMode.DORON) ModFlags |= (int)EModFlag.Invisible;
if (TJAPlayer3.ConfigIni.eSTEALTH[actualPlayer] == EStealthMode.STEALTH) ModFlags |= (int)EModFlag.PerfectMemory; if (TJAPlayer3.ConfigIni.eSTEALTH[actualPlayer] == EStealthMode.STEALTH) ModFlags |= (int)EModFlag.PerfectMemory;
if (TJAPlayer3.ConfigIni.nFunMods[actualPlayer] == EFunMods.AVALANCHE) ModFlags |= (int)EModFlag.Avalanche; if (TJAPlayer3.ConfigIni.nFunMods[actualPlayer] == EFunMods.AVALANCHE) ModFlags |= (int)EModFlag.Avalanche;

View File

@ -1725,7 +1725,7 @@ namespace TJAPlayer3
switch (eRandom) switch (eRandom)
{ {
case Eランダムモード.MIRROR: case ERandomMode.MIRROR:
foreach (var chip in this.listChip) foreach (var chip in this.listChip)
{ {
switch (chip.nチャンネル番号) switch (chip.nチャンネル番号)
@ -1747,7 +1747,7 @@ namespace TJAPlayer3
} }
} }
break; break;
case Eランダムモード.RANDOM: case ERandomMode.RANDOM:
foreach (var chip in this.listChip) foreach (var chip in this.listChip)
{ {
int n = rnd.Next(100); int n = rnd.Next(100);
@ -1774,7 +1774,7 @@ namespace TJAPlayer3
} }
} }
break; break;
case Eランダムモード.SUPERRANDOM: case ERandomMode.SUPERRANDOM:
foreach (var chip in this.listChip) foreach (var chip in this.listChip)
{ {
int n = rnd.Next(100); int n = rnd.Next(100);
@ -1801,7 +1801,7 @@ namespace TJAPlayer3
} }
} }
break; break;
case Eランダムモード.HYPERRANDOM: case ERandomMode.HYPERRANDOM:
foreach (var chip in this.listChip) foreach (var chip in this.listChip)
{ {
int n = rnd.Next(100); int n = rnd.Next(100);
@ -1828,7 +1828,7 @@ namespace TJAPlayer3
} }
} }
break; break;
case Eランダムモード.OFF: case ERandomMode.OFF:
default: default:
break; break;
} }
@ -1851,7 +1851,7 @@ namespace TJAPlayer3
} }
} }
if (eRandom != Eランダムモード.OFF) if (eRandom != ERandomMode.OFF)
{ {
#region[ list作成 ] #region[ list作成 ]
//ひとまずチップだけのリストを作成しておく。 //ひとまずチップだけのリストを作成しておく。
@ -1879,7 +1879,7 @@ namespace TJAPlayer3
#region [ ] #region [ ]
public void tチップの再生(CChip pChip, long n再生開始システム時刻ms) public void tチップの再生(CChip pChip, long n再生開始システム時刻ms)
{ {
if (TJAPlayer3.ConfigIni.b演奏速度が一倍速であるとき以外音声を再生しない && TJAPlayer3.ConfigIni.n演奏速度 != 20) if (TJAPlayer3.ConfigIni.b演奏速度が一倍速であるとき以外音声を再生しない && TJAPlayer3.ConfigIni.nSongSpeed != 20)
return; return;
if (pChip.n整数値_内部番号 >= 0) if (pChip.n整数値_内部番号 >= 0)

View File

@ -20,139 +20,14 @@ namespace TJAPlayer3
[Serializable] [Serializable]
public class C演奏記録 public class C演奏記録
{ {
public STAUTOPLAY bAutoPlay; public int nOkCount;
public bool bDrums有効; public int nBadCount;
public bool bGuitar有効; public int nGoodCount;
public STDGBVALUE<bool> bHidden;
public STDGBVALUE<bool> bLeft;
public STDGBVALUE<bool> bLight;
public STDGBVALUE<bool> bReverse;
public bool bSTAGEFAILED有効;
public STDGBVALUE<bool> bSudden;
public STDGBVALUE<EInvisible> eInvisible;
public bool bTight;
public bool b演奏にMIDI入力を使用した;
public bool b演奏にキーボードを使用した;
public bool b演奏にジョイパッドを使用した;
public bool b演奏にマウスを使用した;
public double dbゲーム型スキル値;
public double db演奏型スキル値;
public Eダークモード eDark;
public STDGBVALUE<Eランダムモード> eRandom;
public Eダメージレベル eダメージレベル;
public STDGBVALUE<float> f譜面スクロール速度;
public string Hash;
public int nGoodになる範囲ms;
public int nGood数;
public int nGreatになる範囲ms;
public int nGreat数;
public int nMiss数;
public int nPerfectになる範囲ms;
public int nPerfect数;
public int nPoorになる範囲ms;
public int nPoor数;
public int nPerfect数_Auto含まない;
public int nGreat数_Auto含まない;
public int nGood数_Auto含まない;
public int nPoor数_Auto含まない;
public int nMiss数_Auto含まない;
public long nスコア;
public int n連打数;
public int n演奏速度分子;
public int n演奏速度分母;
public int n最大コンボ数;
public int n全チップ数;
public string strDTXManiaのバージョン;
public bool 9;
public int nRisky; // #23559 2011.6.20 yyagi 0=OFF, 1-10=Risky
public string ;
public float fゲージ;
public int[] n良 = new int[(int)Difficulty.Total];
public int[] n可 = new int[(int)Difficulty.Total];
public int[] n不可 = new int[(int)Difficulty.Total];
public int[] n連打 = new int[(int)Difficulty.Total];
public int[] nハイスコア = new int[(int)Difficulty.Total];
public Dan_C[] Dan_C; public Dan_C[] Dan_C;
public int[] nクリア; //0:未クリア 1:クリア 2:フルコンボ 3:ドンダフルコンボ
public int[] nスコアランク; //0:未取得 1:白粋 2:銅粋 3:銀粋 4:金雅 5:桃雅 6:紫雅 7:虹極
public List<int[]> nExamResult; //
public C演奏記録() public C演奏記録()
{ {
this.bAutoPlay = new STAUTOPLAY();
this.bAutoPlay.LC = false;
this.bAutoPlay.HH = false;
this.bAutoPlay.SD = false;
this.bAutoPlay.BD = false;
this.bAutoPlay.HT = false;
this.bAutoPlay.LT = false;
this.bAutoPlay.FT = false;
this.bAutoPlay.CY = false;
this.bAutoPlay.Guitar = false;
this.bAutoPlay.Bass = false;
this.bAutoPlay.GtR = false;
this.bAutoPlay.GtG = false;
this.bAutoPlay.GtB = false;
this.bAutoPlay.GtPick = false;
this.bAutoPlay.GtW = false;
this.bAutoPlay.BsR = false;
this.bAutoPlay.BsG = false;
this.bAutoPlay.BsB = false;
this.bAutoPlay.BsPick = false;
this.bAutoPlay.BsW = false;
this.bSudden = new STDGBVALUE<bool>();
this.bSudden.Drums = false;
this.bSudden.Guitar = false;
this.bSudden.Bass = false;
this.bHidden = new STDGBVALUE<bool>();
this.bHidden.Drums = false;
this.bHidden.Guitar = false;
this.bHidden.Bass = false;
this.eInvisible = new STDGBVALUE<EInvisible>();
this.eInvisible.Drums = EInvisible.OFF;
this.eInvisible.Guitar = EInvisible.OFF;
this.eInvisible.Bass = EInvisible.OFF;
this.bReverse = new STDGBVALUE<bool>();
this.bReverse.Drums = false;
this.bReverse.Guitar = false;
this.bReverse.Bass = false;
this.eRandom = new STDGBVALUE<Eランダムモード>();
this.eRandom.Drums = Eランダムモード.OFF;
this.eRandom.Guitar = Eランダムモード.OFF;
this.eRandom.Bass = Eランダムモード.OFF;
this.bLight = new STDGBVALUE<bool>();
this.bLight.Drums = false;
this.bLight.Guitar = false;
this.bLight.Bass = false;
this.bLeft = new STDGBVALUE<bool>();
this.bLeft.Drums = false;
this.bLeft.Guitar = false;
this.bLeft.Bass = false;
this.f譜面スクロール速度 = new STDGBVALUE<float>();
this.f譜面スクロール速度.Drums = 1f;
this.f譜面スクロール速度.Guitar = 1f;
this.f譜面スクロール速度.Bass = 1f;
this.n演奏速度分子 = 20;
this.n演奏速度分母 = 20;
this.bGuitar有効 = true;
this.bDrums有効 = true;
this.bSTAGEFAILED有効 = true;
this.eダメージレベル = Eダメージレベル.;
this.nPerfectになる範囲ms = 34;
this.nGreatになる範囲ms = 67;
this.nGoodになる範囲ms = 84;
this.nPoorになる範囲ms = 117;
this.strDTXManiaのバージョン = "Unknown";
this. = "";
this.Hash = "00000000000000000000000000000000";
this.9 = true;
this.nRisky = 0; // #23559 2011.6.20 yyagi
this.fゲージ = 0.0f;
this.nクリア = new int[5];
this.nスコアランク = new int[5];
Dan_C = new Dan_C[CExamInfo.cMaxExam]; Dan_C = new Dan_C[CExamInfo.cMaxExam];
this.nExamResult = new List<int[]> { };
} }
} }

View File

@ -345,10 +345,10 @@ namespace TJAPlayer3
try try
{ {
if ( !string.IsNullOrEmpty( TJAPlayer3.ConfigIni.str曲データ検索パス ) ) if ( !string.IsNullOrEmpty( TJAPlayer3.ConfigIni.strSongsPath ) )
{ {
CSongDict.tClearSongNodes(); CSongDict.tClearSongNodes();
string[] strArray = TJAPlayer3.ConfigIni.str曲データ検索パス.Split( new char[] { ';' } ); string[] strArray = TJAPlayer3.ConfigIni.strSongsPath.Split( new char[] { ';' } );
if ( strArray.Length > 0 ) if ( strArray.Length > 0 )
{ {
// 全パスについて… // 全パスについて…

View File

@ -105,7 +105,7 @@ namespace TJAPlayer3
this.list項目リスト.Add( this.iSystemRisky ); this.list項目リスト.Add( this.iSystemRisky );
*/ */
this.iCommonPlaySpeed = new CItemInteger(CLangManager.LangInstance.GetString(10), 5, 400, TJAPlayer3.ConfigIni.n演奏速度, this.iCommonPlaySpeed = new CItemInteger(CLangManager.LangInstance.GetString(10), 5, 400, TJAPlayer3.ConfigIni.nSongSpeed,
CLangManager.LangInstance.GetString(11)); CLangManager.LangInstance.GetString(11));
this.list項目リスト.Add( this.iCommonPlaySpeed ); this.list項目リスト.Add( this.iCommonPlaySpeed );
@ -119,19 +119,19 @@ namespace TJAPlayer3
new string[] { "OpenGL", "DirectX11", "Vulkan", "Metal" }); new string[] { "OpenGL", "DirectX11", "Vulkan", "Metal" });
this.list項目リスト.Add(this.iSystemGraphicsType); this.list項目リスト.Add(this.iSystemGraphicsType);
this.iSystemFullscreen = new CItemToggle(CLangManager.LangInstance.GetString(10019), TJAPlayer3.ConfigIni.b全画面モード, this.iSystemFullscreen = new CItemToggle(CLangManager.LangInstance.GetString(10019), TJAPlayer3.ConfigIni.bFullScreen,
CLangManager.LangInstance.GetString(19)); CLangManager.LangInstance.GetString(19));
this.list項目リスト.Add( this.iSystemFullscreen ); this.list項目リスト.Add( this.iSystemFullscreen );
this.iSystemRandomFromSubBox = new CItemToggle(CLangManager.LangInstance.GetString(10021), TJAPlayer3.ConfigIni.bランダムセレクトで子BOXを検索対象とする, this.iSystemRandomFromSubBox = new CItemToggle(CLangManager.LangInstance.GetString(10021), TJAPlayer3.ConfigIni.bIncludeSubfoldersOnRandomSelect,
CLangManager.LangInstance.GetString(21)); CLangManager.LangInstance.GetString(21));
this.list項目リスト.Add( this.iSystemRandomFromSubBox ); this.list項目リスト.Add( this.iSystemRandomFromSubBox );
this.iSystemVSyncWait = new CItemToggle(CLangManager.LangInstance.GetString(10022), TJAPlayer3.ConfigIni.b垂直帰線待ちを行う, this.iSystemVSyncWait = new CItemToggle(CLangManager.LangInstance.GetString(10022), TJAPlayer3.ConfigIni.bEnableVSync,
CLangManager.LangInstance.GetString(22)); CLangManager.LangInstance.GetString(22));
this.list項目リスト.Add( this.iSystemVSyncWait ); this.list項目リスト.Add( this.iSystemVSyncWait );
this.iSystemAVI = new CItemToggle(CLangManager.LangInstance.GetString(10023), TJAPlayer3.ConfigIni.bAVI有効, this.iSystemAVI = new CItemToggle(CLangManager.LangInstance.GetString(10023), TJAPlayer3.ConfigIni.bEnableAVI,
CLangManager.LangInstance.GetString(23)); CLangManager.LangInstance.GetString(23));
this.list項目リスト.Add( this.iSystemAVI ); this.list項目リスト.Add( this.iSystemAVI );
@ -150,7 +150,7 @@ namespace TJAPlayer3
this.list項目リスト.Add( this.iSystemAVIDisplayMode ); this.list項目リスト.Add( this.iSystemAVIDisplayMode );
} }
this.iSystemBGA = new CItemToggle(CLangManager.LangInstance.GetString(10024), TJAPlayer3.ConfigIni.bBGA有効, this.iSystemBGA = new CItemToggle(CLangManager.LangInstance.GetString(10024), TJAPlayer3.ConfigIni.bEnableBGA,
CLangManager.LangInstance.GetString(24)); CLangManager.LangInstance.GetString(24));
this.list項目リスト.Add( this.iSystemBGA ); this.list項目リスト.Add( this.iSystemBGA );
@ -162,7 +162,7 @@ namespace TJAPlayer3
CLangManager.LangInstance.GetString(26)); CLangManager.LangInstance.GetString(26));
this.list項目リスト.Add( this.iSystemPreviewImageWait ); this.list項目リスト.Add( this.iSystemPreviewImageWait );
this.iSystemDebugInfo = new CItemToggle(CLangManager.LangInstance.GetString(10027), TJAPlayer3.ConfigIni.b演奏情報を表示する, this.iSystemDebugInfo = new CItemToggle(CLangManager.LangInstance.GetString(10027), TJAPlayer3.ConfigIni.bDisplayDebugInfo,
CLangManager.LangInstance.GetString(27)); CLangManager.LangInstance.GetString(27));
this.list項目リスト.Add( this.iSystemDebugInfo ); this.list項目リスト.Add( this.iSystemDebugInfo );
@ -174,11 +174,6 @@ namespace TJAPlayer3
CLangManager.LangInstance.GetString(29)); CLangManager.LangInstance.GetString(29));
this.list項目リスト.Add( this.iSystemBGMSound ); this.list項目リスト.Add( this.iSystemBGMSound );
this.iSystemSaveScore = new CItemToggle(CLangManager.LangInstance.GetString(10030), TJAPlayer3.ConfigIni.bScoreIniを出力する,
CLangManager.LangInstance.GetString(30));
this.list項目リスト.Add( this.iSystemSaveScore );
this.iSystemApplySongVol = new CItemToggle(CLangManager.LangInstance.GetString(10033), TJAPlayer3.ConfigIni.ApplySongVol, this.iSystemApplySongVol = new CItemToggle(CLangManager.LangInstance.GetString(10033), TJAPlayer3.ConfigIni.ApplySongVol,
CLangManager.LangInstance.GetString(33)); CLangManager.LangInstance.GetString(33));
this.list項目リスト.Add( this.iSystemApplySongVol ); this.list項目リスト.Add( this.iSystemApplySongVol );
@ -224,7 +219,7 @@ namespace TJAPlayer3
this.iSystemBufferedInput = new CItemToggle(CLangManager.LangInstance.GetString(10041), TJAPlayer3.ConfigIni.bBufferedInputs, this.iSystemBufferedInput = new CItemToggle(CLangManager.LangInstance.GetString(10041), TJAPlayer3.ConfigIni.bBufferedInputs,
CLangManager.LangInstance.GetString(41)); CLangManager.LangInstance.GetString(41));
this.list項目リスト.Add( this.iSystemBufferedInput ); this.list項目リスト.Add( this.iSystemBufferedInput );
this.iLogOutputLog = new CItemToggle(CLangManager.LangInstance.GetString(10042), TJAPlayer3.ConfigIni.bログ出力, this.iLogOutputLog = new CItemToggle(CLangManager.LangInstance.GetString(10042), TJAPlayer3.ConfigIni.bOutputLogs,
CLangManager.LangInstance.GetString(42)); CLangManager.LangInstance.GetString(42));
this.list項目リスト.Add( this.iLogOutputLog ); this.list項目リスト.Add( this.iLogOutputLog );
@ -447,38 +442,6 @@ namespace TJAPlayer3
#endregion #endregion
/// <summary>Sud+Hidの初期値を返す</summary>
/// <param name="eInst"></param>
/// <returns>
/// 0: None
/// 1: Sudden
/// 2: Hidden
/// 3: Sud+Hid
/// 4: Semi-Invisible
/// 5: Full-Invisible
/// </returns>
private int getDefaultSudHidValue( EInstrumentPad eInst )
{
int defvar;
int nInst = (int) eInst;
if ( TJAPlayer3.ConfigIni.eInvisible[ nInst ] != EInvisible.OFF )
{
defvar = (int) TJAPlayer3.ConfigIni.eInvisible[ nInst ] + 3;
}
else
{
defvar = ( TJAPlayer3.ConfigIni.bSudden[ nInst ] ? 1 : 0 ) +
( TJAPlayer3.ConfigIni.bHidden[ nInst ] ? 2 : 0 );
}
return defvar;
}
/// <summary> /// <summary>
/// ESC押下時の右メニュー描画 /// ESC押下時の右メニュー描画
/// </summary> /// </summary>
@ -796,7 +759,7 @@ namespace TJAPlayer3
} }
else if( this.list項目リスト[ this.n現在の選択項目 ] == this.iSystemVSyncWait ) else if( this.list項目リスト[ this.n現在の選択項目 ] == this.iSystemVSyncWait )
{ {
TJAPlayer3.ConfigIni.b垂直帰線待ちを行う = this.iSystemVSyncWait.bON; TJAPlayer3.ConfigIni.bEnableVSync = this.iSystemVSyncWait.bON;
TJAPlayer3.app.b次のタイミングで垂直帰線同期切り替えを行う = true; TJAPlayer3.app.b次のタイミングで垂直帰線同期切り替えを行う = true;
} }
#region [ ] #region [ ]
@ -1804,8 +1767,6 @@ namespace TJAPlayer3
private CItemInteger iSystemPreviewSoundWait; private CItemInteger iSystemPreviewSoundWait;
private CItemToggle iSystemRandomFromSubBox; private CItemToggle iSystemRandomFromSubBox;
private CItemBase iSystemReturnToMenu; private CItemBase iSystemReturnToMenu;
private CItemToggle iSystemSaveScore;
private CItemToggle iSystemStageFailed;
private CItemToggle iSystemVSyncWait; private CItemToggle iSystemVSyncWait;
private CItemToggle iSystemAutoResultCapture; // #25399 2011.6.9 yyagi private CItemToggle iSystemAutoResultCapture; // #25399 2011.6.9 yyagi
private CItemToggle SendDiscordPlayingInformation; private CItemToggle SendDiscordPlayingInformation;
@ -1950,29 +1911,23 @@ namespace TJAPlayer3
} }
private void tConfigIniへ記録する_System() private void tConfigIniへ記録する_System()
{ {
//CDTXMania.ConfigIni.eDark = (Eダークモード) this.iCommonDark.n現在選択されている項目番号; TJAPlayer3.ConfigIni.nSongSpeed = this.iCommonPlaySpeed.n現在の値;
TJAPlayer3.ConfigIni.n演奏速度 = this.iCommonPlaySpeed.n現在の値;
TJAPlayer3.ConfigIni.nGraphicsDeviceType = this.iSystemGraphicsType.n現在選択されている項目番号; TJAPlayer3.ConfigIni.nGraphicsDeviceType = this.iSystemGraphicsType.n現在選択されている項目番号;
TJAPlayer3.ConfigIni.b全画面モード = this.iSystemFullscreen.bON; TJAPlayer3.ConfigIni.bFullScreen = this.iSystemFullscreen.bON;
// TJAPlayer3.ConfigIni.bSTAGEFAILED有効 = this.iSystemStageFailed.bON; TJAPlayer3.ConfigIni.bIncludeSubfoldersOnRandomSelect = this.iSystemRandomFromSubBox.bON;
TJAPlayer3.ConfigIni.bランダムセレクトで子BOXを検索対象とする = this.iSystemRandomFromSubBox.bON;
//CDTXMania.ConfigIni.bWave再生位置自動調整機能有効 = this.iSystemAdjustWaves.bON; //CDTXMania.ConfigIni.bWave再生位置自動調整機能有効 = this.iSystemAdjustWaves.bON;
TJAPlayer3.ConfigIni.b垂直帰線待ちを行う = this.iSystemVSyncWait.bON; TJAPlayer3.ConfigIni.bEnableVSync = this.iSystemVSyncWait.bON;
TJAPlayer3.ConfigIni.bBufferedInputs = this.iSystemBufferedInput.bON; TJAPlayer3.ConfigIni.bBufferedInputs = this.iSystemBufferedInput.bON;
TJAPlayer3.ConfigIni.bAVI有効 = this.iSystemAVI.bON; TJAPlayer3.ConfigIni.bEnableAVI = this.iSystemAVI.bON;
TJAPlayer3.ConfigIni.eClipDispType = (EClipDispType)this.iSystemAVIDisplayMode.n現在選択されている項目番号; TJAPlayer3.ConfigIni.eClipDispType = (EClipDispType)this.iSystemAVIDisplayMode.n現在選択されている項目番号;
TJAPlayer3.ConfigIni.bBGA有効 = this.iSystemBGA.bON; TJAPlayer3.ConfigIni.bEnableBGA = this.iSystemBGA.bON;
// CDTXMania.ConfigIni.bGraph有効 = this.iSystemGraph.bON;#24074 2011.01.23 comment-out ikanick オプション(Drums)へ移行
TJAPlayer3.ConfigIni.n曲が選択されてからプレビュー音が鳴るまでのウェイトms = this.iSystemPreviewSoundWait.n現在の値; TJAPlayer3.ConfigIni.n曲が選択されてからプレビュー音が鳴るまでのウェイトms = this.iSystemPreviewSoundWait.n現在の値;
TJAPlayer3.ConfigIni.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms = this.iSystemPreviewImageWait.n現在の値; TJAPlayer3.ConfigIni.n曲が選択されてからプレビュー画像が表示開始されるまでのウェイトms = this.iSystemPreviewImageWait.n現在の値;
TJAPlayer3.ConfigIni.b演奏情報を表示する = this.iSystemDebugInfo.bON; TJAPlayer3.ConfigIni.bDisplayDebugInfo = this.iSystemDebugInfo.bON;
TJAPlayer3.ConfigIni.n背景の透過度 = this.iSystemBGAlpha.n現在の値; TJAPlayer3.ConfigIni.n背景の透過度 = this.iSystemBGAlpha.n現在の値;
TJAPlayer3.ConfigIni.bBGM音を発声する = this.iSystemBGMSound.bON; TJAPlayer3.ConfigIni.bBGM音を発声する = this.iSystemBGMSound.bON;
//CDTXMania.ConfigIni.b歓声を発声する = this.iSystemAudienceSound.bON;
//CDTXMania.ConfigIni.eダメージレベル = (Eダメージレベル) this.iSystemDamageLevel.n現在選択されている項目番号;
TJAPlayer3.ConfigIni.bScoreIniを出力する = this.iSystemSaveScore.bON;
TJAPlayer3.ConfigIni.bDanTowerHide = this.iDanTowerHide.bON; TJAPlayer3.ConfigIni.bDanTowerHide = this.iDanTowerHide.bON;
@ -1986,7 +1941,7 @@ namespace TJAPlayer3
TJAPlayer3.ConfigIni.KeyboardSoundLevelIncrement = this.iSystemKeyboardSoundLevelIncrement.n現在の値; TJAPlayer3.ConfigIni.KeyboardSoundLevelIncrement = this.iSystemKeyboardSoundLevelIncrement.n現在の値;
TJAPlayer3.ConfigIni.MusicPreTimeMs = this.MusicPreTimeMs.n現在の値; TJAPlayer3.ConfigIni.MusicPreTimeMs = this.MusicPreTimeMs.n現在の値;
TJAPlayer3.ConfigIni.bログ出力 = this.iLogOutputLog.bON; TJAPlayer3.ConfigIni.bOutputLogs = this.iLogOutputLog.bON;
//CDTXMania.ConfigIni.bストイックモード = this.iSystemStoicMode.bON; //CDTXMania.ConfigIni.bストイックモード = this.iSystemStoicMode.bON;
//CDTXMania.ConfigIni.nShowLagType = this.iSystemShowLag.n現在選択されている項目番号; // #25370 2011.6.3 yyagi //CDTXMania.ConfigIni.nShowLagType = this.iSystemShowLag.n現在選択されている項目番号; // #25370 2011.6.3 yyagi

View File

@ -490,27 +490,27 @@ namespace TJAPlayer3
var rand_ = TJAPlayer3.ConfigIni.eRandom[actual]; var rand_ = TJAPlayer3.ConfigIni.eRandom[actual];
if (rand_ == Eランダムモード.HYPERRANDOM) if (rand_ == ERandomMode.HYPERRANDOM)
{ {
nRandom = 2; nRandom = 2;
nAbekobe = 1; nAbekobe = 1;
} }
else if (rand_ == Eランダムモード.SUPERRANDOM) else if (rand_ == ERandomMode.SUPERRANDOM)
{ {
nRandom = 2; nRandom = 2;
nAbekobe = 0; nAbekobe = 0;
} }
else if (rand_ == Eランダムモード.RANDOM) else if (rand_ == ERandomMode.RANDOM)
{ {
nRandom = 1; nRandom = 1;
nAbekobe = 0; nAbekobe = 0;
} }
else if (rand_ == Eランダムモード.MIRROR) else if (rand_ == ERandomMode.MIRROR)
{ {
nRandom = 0; nRandom = 0;
nAbekobe = 1; nAbekobe = 1;
} }
else if (rand_ == Eランダムモード.OFF) else if (rand_ == ERandomMode.OFF)
{ {
nRandom = 0; nRandom = 0;
nAbekobe = 0; nAbekobe = 0;
@ -570,7 +570,7 @@ namespace TJAPlayer3
#region [ Song speed ] #region [ Song speed ]
nSongSpeed = Math.Max(0, Math.Min(txSongSpeed.Length - 1, (TJAPlayer3.ConfigIni.n演奏速度 / 2) - 5)); nSongSpeed = Math.Max(0, Math.Min(txSongSpeed.Length - 1, (TJAPlayer3.ConfigIni.nSongSpeed / 2) - 5));
#endregion #endregion
@ -621,27 +621,27 @@ namespace TJAPlayer3
if (nRandom == 2 && nAbekobe == 1) if (nRandom == 2 && nAbekobe == 1)
{ {
TJAPlayer3.ConfigIni.eRandom[actual] = Eランダムモード.HYPERRANDOM; TJAPlayer3.ConfigIni.eRandom[actual] = ERandomMode.HYPERRANDOM;
} }
else if (nRandom == 2 && nAbekobe == 0) else if (nRandom == 2 && nAbekobe == 0)
{ {
TJAPlayer3.ConfigIni.eRandom[actual] = Eランダムモード.SUPERRANDOM; TJAPlayer3.ConfigIni.eRandom[actual] = ERandomMode.SUPERRANDOM;
} }
else if (nRandom == 1 && nAbekobe == 1) else if (nRandom == 1 && nAbekobe == 1)
{ {
TJAPlayer3.ConfigIni.eRandom[actual] = Eランダムモード.RANDOM; TJAPlayer3.ConfigIni.eRandom[actual] = ERandomMode.RANDOM;
} }
else if (nRandom == 1 && nAbekobe == 0) else if (nRandom == 1 && nAbekobe == 0)
{ {
TJAPlayer3.ConfigIni.eRandom[actual] = Eランダムモード.RANDOM; TJAPlayer3.ConfigIni.eRandom[actual] = ERandomMode.RANDOM;
} }
else if (nRandom == 0 && nAbekobe == 1) else if (nRandom == 0 && nAbekobe == 1)
{ {
TJAPlayer3.ConfigIni.eRandom[actual] = Eランダムモード.MIRROR; TJAPlayer3.ConfigIni.eRandom[actual] = ERandomMode.MIRROR;
} }
else if (nRandom == 0 && nAbekobe == 0) else if (nRandom == 0 && nAbekobe == 0)
{ {
TJAPlayer3.ConfigIni.eRandom[actual] = Eランダムモード.OFF; TJAPlayer3.ConfigIni.eRandom[actual] = ERandomMode.OFF;
} }
#endregion #endregion
@ -705,7 +705,7 @@ namespace TJAPlayer3
#region [ Song speed ] #region [ Song speed ]
TJAPlayer3.ConfigIni.n演奏速度 = (nSongSpeed + 5) * 2; TJAPlayer3.ConfigIni.nSongSpeed = (nSongSpeed + 5) * 2;
#endregion #endregion
} }
@ -723,7 +723,7 @@ namespace TJAPlayer3
public float tGetSongSpeedFactor(EBalancingType ebt = EBalancingType.SCORE, bool isMenu = false, int actual = 0) public float tGetSongSpeedFactor(EBalancingType ebt = EBalancingType.SCORE, bool isMenu = false, int actual = 0)
{ {
var _compare = ((isMenu) ? (nSongSpeed + 5) * 2 : TJAPlayer3.ConfigIni.n演奏速度) / 20f; var _compare = ((isMenu) ? (nSongSpeed + 5) * 2 : TJAPlayer3.ConfigIni.nSongSpeed) / 20f;
if (ebt == EBalancingType.SCORE || _compare <= 1f) if (ebt == EBalancingType.SCORE || _compare <= 1f)
return Math.Min(1f, (float)Math.Pow(_compare, 1.3)); return Math.Min(1f, (float)Math.Pow(_compare, 1.3));

View File

@ -62,7 +62,7 @@ namespace TJAPlayer3
"(ScrollSpeed=x0.5 means half speed)" ) ); "(ScrollSpeed=x0.5 means half speed)" ) );
#endregion #endregion
#region [ Dark/Risky/PlaySpeed ] #region [ Dark/Risky/PlaySpeed ]
l.Add( new CItemInteger( "演奏速度", 5, 400, TJAPlayer3.ConfigIni.n演奏速度, l.Add( new CItemInteger( "演奏速度", 5, 400, TJAPlayer3.ConfigIni.nSongSpeed,
"曲の演奏速度を、速くしたり遅くした\n" + "曲の演奏速度を、速くしたり遅くした\n" +
"りすることができます。\n" + "りすることができます。\n" +
"(※一部のサウンドカードでは正しく\n" + "(※一部のサウンドカードでは正しく\n" +
@ -128,10 +128,10 @@ namespace TJAPlayer3
break; break;
case (int) EOrder.PlaySpeed: case (int) EOrder.PlaySpeed:
TJAPlayer3.ConfigIni.n演奏速度 = (int) GetObj現在値( (int) EOrder.PlaySpeed ); TJAPlayer3.ConfigIni.nSongSpeed = (int) GetObj現在値( (int) EOrder.PlaySpeed );
break; break;
case (int) EOrder.Random: case (int) EOrder.Random:
TJAPlayer3.ConfigIni.eRandom[TJAPlayer3.SaveFile] = (Eランダムモード)GetIndex( (int)EOrder.Random ); TJAPlayer3.ConfigIni.eRandom[TJAPlayer3.SaveFile] = (ERandomMode)GetIndex( (int)EOrder.Random );
break; break;
case (int) EOrder.Stealth: case (int) EOrder.Stealth:
TJAPlayer3.ConfigIni.eSTEALTH[TJAPlayer3.SaveFile] = (EStealthMode)GetIndex( (int)EOrder.Stealth ); TJAPlayer3.ConfigIni.eSTEALTH[TJAPlayer3.SaveFile] = (EStealthMode)GetIndex( (int)EOrder.Stealth );

View File

@ -2001,7 +2001,7 @@ namespace TJAPlayer3
} }
} }
if ((c曲リストード.list子リスト != null) && TJAPlayer3.ConfigIni.bランダムセレクトで子BOXを検索対象とする) if ((c曲リストード.list子リスト != null) && TJAPlayer3.ConfigIni.bIncludeSubfoldersOnRandomSelect)
{ {
this.t指定された曲の子リストの曲を列挙する_孫リスト含む(c曲リストード, ref list, ref mandatory); this.t指定された曲の子リストの曲を列挙する_孫リスト含む(c曲リストード, ref list, ref mandatory);
} }
@ -2044,7 +2044,7 @@ namespace TJAPlayer3
} }
} }
if ((c曲リストード.list子リスト != null) && TJAPlayer3.ConfigIni.bランダムセレクトで子BOXを検索対象とする) if ((c曲リストード.list子リスト != null) && TJAPlayer3.ConfigIni.bIncludeSubfoldersOnRandomSelect)
{ {
this.t指定された曲の子リストの曲を列挙する_孫リスト含む(c曲リストード, ref list, ref mandatory, dan, difficulty); this.t指定された曲の子リストの曲を列挙する_孫リスト含む(c曲リストード, ref list, ref mandatory, dan, difficulty);
} }

View File

@ -567,7 +567,7 @@ namespace TJAPlayer3
case CStage.EPhase.SongLoading_LoadWAVFile: case CStage.EPhase.SongLoading_LoadWAVFile:
{ {
int looptime = (TJAPlayer3.ConfigIni.b垂直帰線待ちを行う)? 3 : 1; // VSyncWait=ON時は1frame(1/60s)あたり3つ読むようにする int looptime = (TJAPlayer3.ConfigIni.bEnableVSync)? 3 : 1; // VSyncWait=ON時は1frame(1/60s)あたり3つ読むようにする
for ( int i = 0; i < looptime && nWAVcount <= TJAPlayer3.DTX.listWAV.Count; i++ ) for ( int i = 0; i < looptime && nWAVcount <= TJAPlayer3.DTX.listWAV.Count; i++ )
{ {
if ( TJAPlayer3.DTX.listWAV[ nWAVcount ].listこのWAVを使用するチャンネル番号の集合.Count > 0 ) // #28674 2012.5.8 yyagi if ( TJAPlayer3.DTX.listWAV[ nWAVcount ].listこのWAVを使用するチャンネル番号の集合.Count > 0 ) // #28674 2012.5.8 yyagi
@ -611,7 +611,7 @@ namespace TJAPlayer3
TimeSpan span; TimeSpan span;
DateTime timeBeginLoadBMPAVI = DateTime.Now; DateTime timeBeginLoadBMPAVI = DateTime.Now;
if ( TJAPlayer3.ConfigIni.bAVI有効 ) if ( TJAPlayer3.ConfigIni.bEnableAVI )
TJAPlayer3.DTX.tAVIの読み込み(); TJAPlayer3.DTX.tAVIの読み込み();
span = ( TimeSpan ) ( DateTime.Now - timeBeginLoadBMPAVI ); span = ( TimeSpan ) ( DateTime.Now - timeBeginLoadBMPAVI );

View File

@ -25,7 +25,7 @@ namespace TJAPlayer3
public void Start( int nチャンネル番号, CVideoDecoder rVD ) public void Start( int nチャンネル番号, CVideoDecoder rVD )
{ {
if ( nチャンネル番号 == 0x54 && TJAPlayer3.ConfigIni.bAVI有効 ) if ( nチャンネル番号 == 0x54 && TJAPlayer3.ConfigIni.bEnableAVI )
{ {
this.rVD = rVD; this.rVD = rVD;
if (this.rVD != null) if (this.rVD != null)

View File

@ -159,11 +159,6 @@ namespace TJAPlayer3
private int p4; private int p4;
private int p5; private int p5;
} }
public C演奏判定ライン座標共通
{
get;
set;
}
protected enum EEvent { , , , } protected enum EEvent { , , , }
protected enum EMode { , , } protected enum EMode { , , }
@ -321,19 +316,6 @@ namespace TJAPlayer3
} }
// コンストラクタ
public CAct演奏Combo共通()
{
this.IsDeActivated = true;
// 180度分のジャンプY座標差分を取得。(0度: 0 → 90度:-15 → 180度: 0)
for (int i = 0; i < 180; i++)
this.nジャンプ差分値[i] = (int)(-15.0 * Math.Sin((Math.PI * i) / 180.0));
= new C演奏判定ライン座標共通();
}
// メソッド // メソッド
protected virtual void tコンボ表示_ドラム(int nCombo値, int nジャンプインデックス) protected virtual void tコンボ表示_ドラム(int nCombo値, int nジャンプインデックス)

View File

@ -1,64 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using FDK;
namespace TJAPlayer3
{
internal abstract class CAct演奏チップファイアGB : CActivity
{
// コンストラクタ
public CAct演奏チップファイアGB()
{
base.IsDeActivated = true;
}
// メソッド
public virtual void Start( int nLane, int n中央X, int n中央Y, C演奏判定ライン座標共通 )
{
}
public abstract void Start( int nLane, C演奏判定ライン座標共通 );
// public abstract void Start( int nLane );
// CActivity 実装
public override void Activate()
{
base.Activate();
}
public override void DeActivate()
{
base.DeActivate();
}
public override void CreateManagedResource()
{
base.CreateManagedResource();
}
public override void ReleaseManagedResource()
{
base.ReleaseManagedResource();
}
public override int Draw()
{
if( !base.IsDeActivated )
{
}
return 0;
}
// その他
#region [ private ]
//-----------------
//private STDGBVALUE<int> nJudgeLinePosY_delta = new STDGBVALUE<int>();
C演奏判定ライン座標共通 _演奏判定ライン座標 = new C演奏判定ライン座標共通();
//-----------------
#endregion
}
}

View File

@ -25,63 +25,11 @@ namespace TJAPlayer3
{ {
Drums = new CScoreIni.C演奏記録(); Drums = new CScoreIni.C演奏記録();
//if ( )
{ {
Drums.nスコア = (long) this.actScore.Get( EInstrumentPad.DRUMS, 0 ); Drums.nGoodCount = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Perfect : this.nヒット数_Auto含まない.Drums.Perfect;
Drums.dbゲーム型スキル値 = 0; Drums.nOkCount = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Great : this.nヒット数_Auto含まない.Drums.Great;
Drums.db演奏型スキル値 = 0; Drums.nBadCount = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Miss : this.nヒット数_Auto含まない.Drums.Miss;
Drums.nPerfect数 = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Perfect : this.nヒット数_Auto含まない.Drums.Perfect;
Drums.nGreat数 = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Great : this.nヒット数_Auto含まない.Drums.Great;
Drums.nGood数 = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Good : this.nヒット数_Auto含まない.Drums.Good;
Drums.nPoor数 = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Poor : this.nヒット数_Auto含まない.Drums.Poor;
Drums.nMiss数 = TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0] ? this.nヒット数_Auto含む.Drums.Miss : this.nヒット数_Auto含まない.Drums.Miss;
Drums.nPerfect数_Auto含まない = this.nヒット数_Auto含まない.Drums.Perfect;
Drums.nGreat数_Auto含まない = this.nヒット数_Auto含まない.Drums.Great;
Drums.nGood数_Auto含まない = this.nヒット数_Auto含まない.Drums.Good;
Drums.nPoor数_Auto含まない = this.nヒット数_Auto含まない.Drums.Poor;
Drums.nMiss数_Auto含まない = this.nヒット数_Auto含まない.Drums.Miss;
Drums.n連打数 = this.n合計連打数[ 0 ];
Drums.n最大コンボ数 = this.actCombo.n現在のコンボ数.[0];
Drums.n全チップ数 = TJAPlayer3.DTX.n可視チップ数.Drums;
for ( int i = 0; i < (int) Eレーン.MAX; i++ )
{
Drums.bAutoPlay[ i ] = bIsAutoPlay[ i ];
}
Drums.bTight = TJAPlayer3.ConfigIni.bTight;
for ( int i = 0; i < 3; i++ )
{
Drums.bSudden[ i ] = TJAPlayer3.ConfigIni.bSudden[ i ];
Drums.bHidden[ i ] = TJAPlayer3.ConfigIni.bHidden[ i ];
Drums.eInvisible[ i ] = TJAPlayer3.ConfigIni.eInvisible[ i ];
Drums.bReverse[ i ] = TJAPlayer3.ConfigIni.bReverse[ i ];
Drums.eRandom[ i ] = TJAPlayer3.ConfigIni.eRandom[ i ];
Drums.bLight[ i ] = TJAPlayer3.ConfigIni.bLight[ i ];
Drums.bLeft[ i ] = TJAPlayer3.ConfigIni.bLeft[ i ];
Drums.f譜面スクロール速度[ i ] = ( (float) ( TJAPlayer3.ConfigIni.nScrollSpeed[ i ] + 1 ) ) * 0.5f;
}
Drums.eDark = TJAPlayer3.ConfigIni.eDark;
Drums.n演奏速度分子 = TJAPlayer3.ConfigIni.n演奏速度;
Drums.n演奏速度分母 = 20;
Drums.bSTAGEFAILED有効 = TJAPlayer3.ConfigIni.bSTAGEFAILED有効;
Drums.eダメージレベル = TJAPlayer3.ConfigIni.eダメージレベル;
Drums.b演奏にキーボードを使用した = this.b演奏にキーボードを使った;
Drums.b演奏にMIDI入力を使用した = this.b演奏にMIDI入力を使った;
Drums.b演奏にジョイパッドを使用した = this.b演奏にジョイパッドを使った;
Drums.b演奏にマウスを使用した = this.b演奏にマウスを使った;
Drums.nPerfectになる範囲ms = TJAPlayer3.nPerfect範囲ms;
Drums.nGreatになる範囲ms = TJAPlayer3.nGreat範囲ms;
Drums.nGoodになる範囲ms = TJAPlayer3.nGood範囲ms;
Drums.nPoorになる範囲ms = TJAPlayer3.nPoor範囲ms;
Drums.strDTXManiaのバージョン = TJAPlayer3.VERSION;
Drums. = DateTime.Now.ToString();
Drums.Hash = "00000000000000000000000000000000";
Drums.fゲージ = (float)this.actGauge.db現在のゲージ値[ 0 ];
if( !TJAPlayer3.ConfigIni.b太鼓パートAutoPlay[0])
{
Drums.nハイスコア = TJAPlayer3.stageSongSelect.r確定されたスコア..nハイスコア; //2015.06.16 kairera0467 他難易度の上書き防止。
if( TJAPlayer3.stageSongSelect.r確定されたスコア..nハイスコア[ TJAPlayer3.stageSongSelect.nChoosenSongDifficulty[0]] < (int)this.actScore.Get( EInstrumentPad.DRUMS, 0 ) )
Drums.nハイスコア[ TJAPlayer3.stageSongSelect.nChoosenSongDifficulty[0]] = (int)this.actScore.Get( EInstrumentPad.DRUMS, 0 );
}
var danC = TJAPlayer3.stage演奏ドラム画面.actDan.GetExam(); var danC = TJAPlayer3.stage演奏ドラム画面.actDan.GetExam();
for (int i = 0; i < danC.Length; i++) for (int i = 0; i < danC.Length; i++)
{ {
@ -388,7 +336,6 @@ namespace TJAPlayer3
} }
cInvisibleChip = new CInvisibleChip( TJAPlayer3.ConfigIni.nDisplayTimesMs, TJAPlayer3.ConfigIni.nFadeoutTimeMs ); cInvisibleChip = new CInvisibleChip( TJAPlayer3.ConfigIni.nDisplayTimesMs, TJAPlayer3.ConfigIni.nFadeoutTimeMs );
this. = new C演奏判定ライン座標共通();
for ( int k = 0; k < 4; k++ ) for ( int k = 0; k < 4; k++ )
{ {
//for ( int n = 0; n < 5; n++ ) //for ( int n = 0; n < 5; n++ )
@ -396,25 +343,13 @@ namespace TJAPlayer3
this.nヒット数_Auto含まない[ k ] = new CHITCOUNTOFRANK(); this.nヒット数_Auto含まない[ k ] = new CHITCOUNTOFRANK();
this.nヒット数_Auto含む[ k ] = new CHITCOUNTOFRANK(); this.nヒット数_Auto含む[ k ] = new CHITCOUNTOFRANK();
//} //}
this.queWailing[ k ] = new Queue<CDTX.CChip>();
this.r現在の歓声Chip[ k ] = null; this.r現在の歓声Chip[ k ] = null;
cInvisibleChip.eInvisibleMode[ k ] = TJAPlayer3.ConfigIni.eInvisible[ k ]; cInvisibleChip.eInvisibleMode[ k ] = TJAPlayer3.ConfigIni.eInvisible[ k ];
/*
if ( TJAPlayer3.DTXVmode.Enabled )
{
TJAPlayer3.ConfigIni.nScrollSpeed[ k ] = TJAPlayer3.ConfigIni.nViewerScrollSpeed[ k ];
}
*/
//this.nJudgeLinePosY_delta[ k ] = CDTXMania.ConfigIni.nJudgeLinePosOffset[ k ]; // #31602 2013.6.23 yyagi this.bReverse[ k ] = TJAPlayer3.ConfigIni.bReverse[ k ];
this..n判定位置[ k ] = TJAPlayer3.ConfigIni.e判定位置[ k ];
this..nJudgeLinePosY_delta[ k ] = TJAPlayer3.ConfigIni.nJudgeLinePosOffset[ k ];
this.bReverse[ k ] = TJAPlayer3.ConfigIni.bReverse[ k ]; //
} }
actCombo. = ;
this.b演奏にキーボードを使った = false; this.b演奏にキーボードを使った = false;
this.b演奏にジョイパッドを使った = false; this.b演奏にジョイパッドを使った = false;
@ -493,7 +428,6 @@ namespace TJAPlayer3
eFirstGameType[i] = TJAPlayer3.ConfigIni.nGameType[i]; eFirstGameType[i] = TJAPlayer3.ConfigIni.nGameType[i];
} }
this.nPolyphonicSounds = TJAPlayer3.ConfigIni.nPoliphonicSounds; this.nPolyphonicSounds = TJAPlayer3.ConfigIni.nPoliphonicSounds;
e判定表示優先度 = TJAPlayer3.ConfigIni.e判定表示優先度;
TJAPlayer3.Skin.tRemoveMixerAll(); // 効果音のストリームをミキサーから解除しておく TJAPlayer3.Skin.tRemoveMixerAll(); // 効果音のストリームをミキサーから解除しておく
@ -504,7 +438,7 @@ namespace TJAPlayer3
if ( TJAPlayer3.DTXVmode.Enabled ) if ( TJAPlayer3.DTXVmode.Enabled )
{ {
db再生速度 = TJAPlayer3.DTX.dbDTXVPlaySpeed; db再生速度 = TJAPlayer3.DTX.dbDTXVPlaySpeed;
TJAPlayer3.ConfigIni.n演奏速度 = (int) (TJAPlayer3.DTX.dbDTXVPlaySpeed * 20 + 0.5 ); TJAPlayer3.ConfigIni.nSongSpeed = (int) (TJAPlayer3.DTX.dbDTXVPlaySpeed * 20 + 0.5 );
} }
else else
{ {
@ -847,7 +781,6 @@ namespace TJAPlayer3
public CAct演奏AVI actAVI; public CAct演奏AVI actAVI;
public Rainbow Rainbow; public Rainbow Rainbow;
protected CAct演奏チップファイアGB actChipFireGB;
public CAct演奏Combo共通 actCombo; public CAct演奏Combo共通 actCombo;
protected CAct演奏Danger共通 actDANGER; protected CAct演奏Danger共通 actDANGER;
//protected CActFIFOBlack actFI; //protected CActFIFOBlack actFI;
@ -866,7 +799,6 @@ namespace TJAPlayer3
public CAct演奏ステージ失敗 actStageFailed; public CAct演奏ステージ失敗 actStageFailed;
protected CAct演奏ステータスパネル共通 actStatusPanels; protected CAct演奏ステータスパネル共通 actStatusPanels;
protected CAct演奏スクロール速度 act譜面スクロール速度; protected CAct演奏スクロール速度 act譜面スクロール速度;
public C演奏判定ライン座標共通 ;
protected CAct演奏Drums連打 actRoll; protected CAct演奏Drums連打 actRoll;
protected CAct演奏Drums風船 actBalloon; protected CAct演奏Drums風船 actBalloon;
public CAct演奏Drumsキャラクター actChara; public CAct演奏Drumsキャラクター actChara;
@ -930,7 +862,6 @@ namespace TJAPlayer3
// protected bool bDTXVmode; // protected bool bDTXVmode;
protected STDGBVALUE<bool> bReverse; protected STDGBVALUE<bool> bReverse;
protected STDGBVALUE<Queue<CDTX.CChip>> queWailing;
protected STDGBVALUE<CDTX.CChip> r現在の歓声Chip; protected STDGBVALUE<CDTX.CChip> r現在の歓声Chip;
protected CTexture txチップ; protected CTexture txチップ;
protected CTexture txヒットバー; protected CTexture txヒットバー;
@ -1481,67 +1412,42 @@ namespace TJAPlayer3
this.n合計連打数[ nPlayer ]++; this.n合計連打数[ nPlayer ]++;
if(TJAPlayer3.stageSongSelect.nChoosenSongDifficulty[0] != (int)Difficulty.Dan) this.actRollChara.Start(nPlayer); if(TJAPlayer3.stageSongSelect.nChoosenSongDifficulty[0] != (int)Difficulty.Dan) this.actRollChara.Start(nPlayer);
//2017.01.28 DD CDTXから直接呼び出す
if (!TJAPlayer3.ConfigIni.ShinuchiMode) //2018.03.11 kairera0467 チップに埋め込んだフラグから読み取る long nAddScore = 0;
{
if (pChip.bGOGOTIME) //non-Shin'uchi / GoGo-Time  真打OFF・ゴーゴータイム if (!TJAPlayer3.ConfigIni.ShinuchiMode)
{
// 旧配点・旧筐体配点
if (TJAPlayer3.DTX.nScoreModeTmp == 0 || TJAPlayer3.DTX.nScoreModeTmp == 1)
{
if (pChip.nチャンネル番号 == 0x15)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(300 * 1.2f), nPlayer);
else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(360 * 1.2f), nPlayer);
}
// 新配点
else
{
if (pChip.nチャンネル番号 == 0x15)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(100 * 1.2f), nPlayer);
else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(200 * 1.2f), nPlayer);
}
}
else //non-Shin'uchi / non-GoGo-Time  真打OFF・非ゴーゴータイム
{
// 旧配点・旧筐体配点
if (TJAPlayer3.DTX.nScoreModeTmp == 0 || TJAPlayer3.DTX.nScoreModeTmp == 1)
{
if (pChip.nチャンネル番号 == 0x15)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(300L), nPlayer);
else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(360L), nPlayer);
}
// 新配点
else
{
if (pChip.nチャンネル番号 == 0x15)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(100L), nPlayer);
else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(200L), nPlayer);
}
}
}
else //Shin'uchi  真打
{ {
// 旧配点・旧筐体配点 // 旧配点・旧筐体配点
if (TJAPlayer3.DTX.nScoreModeTmp == 0 || TJAPlayer3.DTX.nScoreModeTmp == 1) if (TJAPlayer3.DTX.nScoreModeTmp == 0 || TJAPlayer3.DTX.nScoreModeTmp == 1)
{ {
if (pChip.nチャンネル番号 == 0x15) if (pChip.nチャンネル番号 == 0x15)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 100L, nPlayer); nAddScore = 300L;
else else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 100L, nPlayer); nAddScore = 360L;
} }
// 新配点 // 新配点
else else
{ {
if (pChip.nチャンネル番号 == 0x15) if (pChip.nチャンネル番号 == 0x15)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 100L, nPlayer); nAddScore = 100L;
else else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 100L, nPlayer); nAddScore = 200L;
} }
} }
else
{
nAddScore = 100L;
}
if (!TJAPlayer3.ConfigIni.ShinuchiMode && pChip.bGOGOTIME) this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, (long)(nAddScore * 1.2f), nPlayer);
else this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, nAddScore, nPlayer);
// Refresh scores after roll hits as well
int __score = (int)(this.actScore.GetScore(nPlayer) + nAddScore);
this.CBranchScore[nPlayer].nScore = __score;
this.CChartScore[nPlayer].nScore = __score;
this.CSectionScore[nPlayer].nScore = __score;
EGameType _gt = TJAPlayer3.ConfigIni.nGameType[TJAPlayer3.GetActualPlayer(nPlayer)]; EGameType _gt = TJAPlayer3.ConfigIni.nGameType[TJAPlayer3.GetActualPlayer(nPlayer)];
@ -1689,28 +1595,38 @@ namespace TJAPlayer3
//赤か青かの分岐 //赤か青かの分岐
long nAddScore = 0;
if (!TJAPlayer3.ConfigIni.ShinuchiMode) if (!TJAPlayer3.ConfigIni.ShinuchiMode)
{ {
if (pChip.bGOGOTIME) //non-Shin'uchi / GoGo-Time  真打OFF・ゴーゴータイム if (pChip.bGOGOTIME)
{ {
if (balloon == rollCount) if (balloon == rollCount)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 6000L, player); nAddScore = 6000L;
else else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 360L, player); nAddScore = 360L;
} }
else //non-Shin'uchi / non-GoGo-Time  真打OFF・非ゴーゴータイム else
{ {
if (balloon == rollCount) if (balloon == rollCount)
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 5000L, player); nAddScore = 5000L;
else else
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 300L, player); nAddScore = 300L;
} }
} }
else //Shin'uchi  真打 else
{ {
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, 100L, player); nAddScore = 100L;
} }
//CDTXMania.Skin.soundRed.t再生する();
this.actScore.Add(EInstrumentPad.TAIKO, this.bIsAutoPlay, nAddScore, player);
// Refresh scores after roll hits as well
int __score = (int)(this.actScore.GetScore(player) + nAddScore);
this.CBranchScore[player].nScore = __score;
this.CChartScore[player].nScore = __score;
this.CSectionScore[player].nScore = __score;
this.soundRed[pChip.nPlayerSide]?.PlayStart(); this.soundRed[pChip.nPlayerSide]?.PlayStart();
@ -3234,7 +3150,7 @@ namespace TJAPlayer3
// Debug mode // Debug mode
else if (TJAPlayer3.ConfigIni.KeyAssign.KeyIsPressed(TJAPlayer3.ConfigIni.KeyAssign.System.DisplayDebug) ) else if (TJAPlayer3.ConfigIni.KeyAssign.KeyIsPressed(TJAPlayer3.ConfigIni.KeyAssign.System.DisplayDebug) )
{ // del (debug info) { // del (debug info)
TJAPlayer3.ConfigIni.b演奏情報を表示する = !TJAPlayer3.ConfigIni.b演奏情報を表示する; TJAPlayer3.ConfigIni.bDisplayDebugInfo = !TJAPlayer3.ConfigIni.bDisplayDebugInfo;
} }
@ -3398,7 +3314,7 @@ namespace TJAPlayer3
} }
else if ( TJAPlayer3.ConfigIni.KeyAssign.KeyIsPressed(TJAPlayer3.ConfigIni.KeyAssign.System.DisplayDebug) ) else if ( TJAPlayer3.ConfigIni.KeyAssign.KeyIsPressed(TJAPlayer3.ConfigIni.KeyAssign.System.DisplayDebug) )
{ // del (debug info) { // del (debug info)
TJAPlayer3.ConfigIni.b演奏情報を表示する = !TJAPlayer3.ConfigIni.b演奏情報を表示する; TJAPlayer3.ConfigIni.bDisplayDebugInfo = !TJAPlayer3.ConfigIni.bDisplayDebugInfo;
} }
else if ((keyboard.KeyPressed((int)SlimDXKeys.Key.Escape))) else if ((keyboard.KeyPressed((int)SlimDXKeys.Key.Escape)))
{ // escape (exit) { // escape (exit)
@ -3438,7 +3354,7 @@ namespace TJAPlayer3
protected abstract void t進行描画_AVI(); protected abstract void t進行描画_AVI();
protected void t進行描画_AVI(int x, int y) protected void t進行描画_AVI(int x, int y)
{ {
if ( ( ( base.ePhaseID != CStage.EPhase.Game_STAGE_FAILED ) && ( base.ePhaseID != CStage.EPhase.Game_STAGE_FAILED_FadeOut ) ) && ( !TJAPlayer3.ConfigIni.bストイックモード && TJAPlayer3.ConfigIni.bAVI有効 ) ) if ( ( ( base.ePhaseID != CStage.EPhase.Game_STAGE_FAILED ) && ( base.ePhaseID != CStage.EPhase.Game_STAGE_FAILED_FadeOut ) ) && ( !TJAPlayer3.ConfigIni.bストイックモード && TJAPlayer3.ConfigIni.bEnableAVI ) )
{ {
this.actAVI.t進行描画( x, y ); this.actAVI.t進行描画( x, y );
} }
@ -3957,12 +3873,12 @@ namespace TJAPlayer3
if ( !pChip.bHit && time < 0) if ( !pChip.bHit && time < 0)
{ {
pChip.bHit = true; pChip.bHit = true;
if ( configIni.bAVI有効 ) if ( configIni.bEnableAVI )
{ {
if ((dTX.listVD.TryGetValue(pChip.n整数値_内部番号, out CVideoDecoder vd))) if ((dTX.listVD.TryGetValue(pChip.n整数値_内部番号, out CVideoDecoder vd)))
{ {
ShowVideo = true; ShowVideo = true;
if (TJAPlayer3.ConfigIni.bAVI有効 && vd != null) if (TJAPlayer3.ConfigIni.bEnableAVI && vd != null)
{ {
this.actAVI.Start(pChip.nチャンネル番号, vd); this.actAVI.Start(pChip.nチャンネル番号, vd);
this.actAVI.Seek(pChip.VideoStartTimeMs); this.actAVI.Seek(pChip.VideoStartTimeMs);
@ -3975,12 +3891,12 @@ namespace TJAPlayer3
if ( !pChip.bHit && time < 0) if ( !pChip.bHit && time < 0)
{ {
pChip.bHit = true; pChip.bHit = true;
if ( configIni.bAVI有効 ) if ( configIni.bEnableAVI )
{ {
if ((dTX.listVD.TryGetValue(pChip.n整数値_内部番号, out CVideoDecoder vd))) if ((dTX.listVD.TryGetValue(pChip.n整数値_内部番号, out CVideoDecoder vd)))
{ {
ShowVideo = false; ShowVideo = false;
if (TJAPlayer3.ConfigIni.bAVI有効 && vd != null) if (TJAPlayer3.ConfigIni.bEnableAVI && vd != null)
{ {
this.actAVI.Stop(); this.actAVI.Stop();
} }
@ -3989,7 +3905,7 @@ namespace TJAPlayer3
if ((dTX.listVD.TryGetValue(1, out CVideoDecoder vd2))) if ((dTX.listVD.TryGetValue(1, out CVideoDecoder vd2)))
{ {
ShowVideo = true; ShowVideo = true;
if (TJAPlayer3.ConfigIni.bAVI有効 && vd != null) if (TJAPlayer3.ConfigIni.bEnableAVI && vd != null)
{ {
this.actAVI.Start(pChip.nチャンネル番号, vd); this.actAVI.Start(pChip.nチャンネル番号, vd);
} }
@ -5578,7 +5494,7 @@ namespace TJAPlayer3
#endregion #endregion
#region [ PAUSEしていたサウンドを一斉に再生再開する() ] #region [ PAUSEしていたサウンドを一斉に再生再開する() ]
if (!(TJAPlayer3.ConfigIni.b演奏速度が一倍速であるとき以外音声を再生しない && TJAPlayer3.ConfigIni.n演奏速度 != 20)) if (!(TJAPlayer3.ConfigIni.b演奏速度が一倍速であるとき以外音声を再生しない && TJAPlayer3.ConfigIni.nSongSpeed != 20))
foreach (CSound cs in pausedCSound) foreach (CSound cs in pausedCSound)
{ {
cs.tPlaySound(); cs.tPlaySound();
@ -5634,29 +5550,19 @@ namespace TJAPlayer3
this.bIsAutoPlay = TJAPlayer3.ConfigIni.bAutoPlay; this.bIsAutoPlay = TJAPlayer3.ConfigIni.bAutoPlay;
TJAPlayer3.ConfigIni.bAVI有効 = true; TJAPlayer3.ConfigIni.bEnableAVI = true;
TJAPlayer3.ConfigIni.bBGA有効 = true; TJAPlayer3.ConfigIni.bEnableBGA = true;
for ( int i = 0; i < 3; i++ ) for ( int i = 0; i < 3; i++ )
{ {
TJAPlayer3.ConfigIni.bGraph[ i ] = false;
TJAPlayer3.ConfigIni.bHidden[ i ] = false;
TJAPlayer3.ConfigIni.bLeft[ i ] = false;
TJAPlayer3.ConfigIni.bLight[ i ] = false;
TJAPlayer3.ConfigIni.bReverse[ i ] = false; TJAPlayer3.ConfigIni.bReverse[ i ] = false;
TJAPlayer3.ConfigIni.bSudden[ i ] = false;
TJAPlayer3.ConfigIni.eInvisible[ i ] = EInvisible.OFF; TJAPlayer3.ConfigIni.eInvisible[ i ] = EInvisible.OFF;
TJAPlayer3.ConfigIni.eRandom[ i ] = Eランダムモード.OFF; TJAPlayer3.ConfigIni.eRandom[ i ] = ERandomMode.OFF;
TJAPlayer3.ConfigIni.n表示可能な最小コンボ数[ i ] = 65535; TJAPlayer3.ConfigIni.n表示可能な最小コンボ数[ i ] = 65535;
TJAPlayer3.ConfigIni.[ i ] = E判定文字表示位置.OFF; TJAPlayer3.ConfigIni.[ i ] = E判定文字表示位置.OFF;
// CDTXMania.ConfigIni.n譜面スクロール速度[ i ] = CDTXMania.ConfigIni.nViewerScrollSpeed[ i ]; // これだけはOn活性化()で行うこと。 // CDTXMania.ConfigIni.n譜面スクロール速度[ i ] = CDTXMania.ConfigIni.nViewerScrollSpeed[ i ]; // これだけはOn活性化()で行うこと。
// そうしないと、演奏開始直後にスクロール速度が変化して見苦しい。 // そうしないと、演奏開始直後にスクロール速度が変化して見苦しい。
} }
TJAPlayer3.ConfigIni.bDisplayDebugInfo = TJAPlayer3.ConfigIni.bViewerShowDebugStatus;
TJAPlayer3.ConfigIni.eDark = Eダークモード.OFF;
TJAPlayer3.ConfigIni.b演奏情報を表示する = TJAPlayer3.ConfigIni.bViewerShowDebugStatus;
TJAPlayer3.ConfigIni.bScoreIniを出力する = false;
TJAPlayer3.ConfigIni.bSTAGEFAILED有効 = false;
TJAPlayer3.ConfigIni.bTight = false; TJAPlayer3.ConfigIni.bTight = false;
TJAPlayer3.ConfigIni.bストイックモード = false; TJAPlayer3.ConfigIni.bストイックモード = false;

View File

@ -1,202 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace TJAPlayer3
{
/// <summary>
/// 判定ライン関係の座標処理をまとめたクラス
/// </summary>
internal class C演奏判定ライン座標共通
{
/// <summary>
/// 判定ラインのy座標
/// </summary>
private STDGBVALUE<int>[,,] n判定ラインY座標元データ = null; // 補正無しの時の座標データ
private STDGBVALUE<int>[,,] n演奏RGBボタンY座標元データ = null;
/// <summary>
/// 表示位置の補正データ
/// 初期化は外部から行うこと。
/// </summary>
public STDGBVALUE<int> nJudgeLinePosY_delta;
/// <summary>
/// 判定ライン表示位置を、Vシリーズ互換にするかどうか。
/// 設定は外部から行うこと。
/// </summary>
public STDGBVALUE<E判定位置> n判定位置;
/// <summary>
/// コンストラクタ(座標値の初期化)
/// </summary>
public C演奏判定ライン座標共通()
{
n判定ラインY座標元データ = new STDGBVALUE<int>[ 2, 2, 2 ];
#region [ ]
// Normal, Drums画面, 判定ライン
n判定ラインY座標元データ[ 0, 0, 0 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 0, 0, 0 ].Guitar = 95;
n判定ラインY座標元データ[ 0, 0, 0 ].Bass = 95;
// Reverse, Drums画面, 判定ライン
n判定ラインY座標元データ[ 1, 0, 0 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 1, 0, 0 ].Guitar = 374;
n判定ラインY座標元データ[ 1, 0, 0 ].Bass = 374;
// Normal, Drums画面, Wailing枠
n判定ラインY座標元データ[ 0, 0, 1 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 0, 0, 1 ].Guitar = 69;
n判定ラインY座標元データ[ 0, 0, 1 ].Bass = 69;
// Reverse, Drums画面, Wailing枠
n判定ラインY座標元データ[ 1, 0, 1 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 1, 0, 1 ].Guitar = 350;
n判定ラインY座標元データ[ 1, 0, 1 ].Bass = 350;
// Normal, GR画面, 判定ライン
n判定ラインY座標元データ[ 0, 1, 0 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 0, 1, 0 ].Guitar = 40;
n判定ラインY座標元データ[ 0, 1, 0 ].Bass = 40;
// Reverse, GR画面, 判定ライン
n判定ラインY座標元データ[ 1, 1, 0 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 1, 1, 0 ].Guitar = 369;
n判定ラインY座標元データ[ 1, 1, 0 ].Bass = 369;
// Normal, GR画面, Wailing枠
n判定ラインY座標元データ[ 0, 1, 1 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 0, 1, 1 ].Guitar = 11;
n判定ラインY座標元データ[ 0, 1, 1 ].Bass = 11;
// Reverse, GR画面, Wailing枠
n判定ラインY座標元データ[ 1, 1, 1 ].Drums = 0; //未使用
n判定ラインY座標元データ[ 1, 1, 1 ].Guitar = 340;
n判定ラインY座標元データ[ 1, 1, 1 ].Bass = 340;
#endregion
n演奏RGBボタンY座標元データ = new STDGBVALUE<int>[ 2, 2, 2 ];
#region [ RGBボタン座標の初期化]
// Normal, Drums画面, RGBボタン
n演奏RGBボタンY座標元データ[ 0, 0, 0 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 0, 0, 0 ].Guitar = 57;
n演奏RGBボタンY座標元データ[ 0, 0, 0 ].Bass = 57;
// Reverse, Drums画面, RGBボタン
n演奏RGBボタンY座標元データ[ 1, 0, 0 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 1, 0, 0 ].Guitar = 57;
n演奏RGBボタンY座標元データ[ 1, 0, 0 ].Bass = 57;
// Normal, Drums画面, RGBボタン(Vシリーズ)
n演奏RGBボタンY座標元データ[ 0, 0, 1 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 0, 0, 1 ].Guitar = 107;
n演奏RGBボタンY座標元データ[ 0, 0, 1 ].Bass = 107;
// Reverse, Drums画面, RGBボタン(Vシリーズ)
n演奏RGBボタンY座標元データ[ 1, 0, 1 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 1, 0, 1 ].Guitar = 107;
n演奏RGBボタンY座標元データ[ 1, 0, 1 ].Bass = 107;
// Normal, GR画面, RGBボタン
n演奏RGBボタンY座標元データ[ 0, 1, 0 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 0, 1, 0 ].Guitar = 3;
n演奏RGBボタンY座標元データ[ 0, 1, 0 ].Bass = 3;
// Reverse, GR画面, RGBボタン
n演奏RGBボタンY座標元データ[ 1, 1, 0 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 1, 1, 0 ].Guitar = 3;
n演奏RGBボタンY座標元データ[ 1, 1, 0 ].Bass = 3;
// Normal, GR画面, RGBボタン(Vシリーズ)
n演奏RGBボタンY座標元データ[ 0, 1, 1 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 0, 1, 1 ].Guitar = 44;
n演奏RGBボタンY座標元データ[ 0, 1, 1 ].Bass = 44;
// Reverse, GR画面, RGBボタン(Vシリーズ)
n演奏RGBボタンY座標元データ[ 1, 1, 1 ].Drums = 0; // 未使用
n演奏RGBボタンY座標元データ[ 1, 1, 1 ].Guitar = 44;
n演奏RGBボタンY座標元データ[ 1, 1, 1 ].Bass = 44;
#endregion
n判定位置 = new STDGBVALUE<E判定位置>();
n判定位置.Drums = E判定位置.;
n判定位置.Guitar = E判定位置.;
n判定位置.Bass = E判定位置.;
// 補正値は、Normal/Reverse, Drums/GR画面共通
nJudgeLinePosY_delta.Drums = 0;
nJudgeLinePosY_delta.Guitar = 0;
nJudgeLinePosY_delta.Bass = 0;
}
/// <summary>
/// 判定ラインのY座標を返す。とりあえずGuitar/Bassのみ対応。
/// </summary>
/// <param name="eInst">E楽器パート</param>
/// <param name="bGRmode">GRmodeか否か</param>
/// <param name="bReverse">Reverseか否か</param>
/// <returns></returns>
public int n判定ラインY座標( EInstrumentPad eInst, bool bGRmode, bool bReverse )
{
return n判定ラインY座標( eInst, bGRmode, bReverse, false );
}
public int n判定ラインY座標( EInstrumentPad eInst, bool bGRmode, bool bReverse, bool bWailingFrame )
{
return n判定ラインY座標( eInst, bGRmode, bReverse, bWailingFrame, false );
}
/// <summary>
/// 判定ラインのY座標を返す。とりあえずGuitar/Bassのみ対応。
/// </summary>
/// <param name="eInst">E楽器パート</param>
/// <param name="bGRmode">GRmodeか否か</param>
/// <param name="bReverse">Reverseか否か</param>
/// <param name="bWailingFrame">Wailing枠の座標か、判定ラインの座標か</param>
/// <param name="b補正あり">プレーヤーのライン表示位置補正情報を加えるかどうか</param>
/// <returns></returns>
public int n判定ラインY座標( EInstrumentPad eInst, bool bGRmode, bool bReverse, bool bWailingFrame, bool b補正あり )
{
if ( eInst == EInstrumentPad.DRUMS )
{
throw new NotImplementedException();
}
else if ( eInst == EInstrumentPad.UNKNOWN )
{
throw new ArgumentOutOfRangeException();
}
else
{
int nReverse = bReverse ? 1 : 0;
int nGRmode = bGRmode ? 1 : 0;
int nWailing = bWailingFrame ? 1 : 0;
int nInst = (int) eInst;
int ret = this.n判定ラインY座標元データ[ nReverse, nGRmode, nWailing ][ nInst ]; // 補正無しの値
if ( bReverse )
{
if ( n判定位置[ nInst ] == E判定位置.Lower ) ret += 13;
if ( b補正あり ) ret += nJudgeLinePosY_delta[ nInst ];
}
else
{
if ( n判定位置[ nInst ] == E判定位置.Lower ) ret += 52;
if ( b補正あり ) ret -= nJudgeLinePosY_delta[ nInst ];
}
return ret;
}
}
public int n演奏RGBボタンY座標( EInstrumentPad eInst, bool bGRmode, bool bReverse )
{
if ( eInst == EInstrumentPad.DRUMS )
{
throw new NotImplementedException();
}
else if ( eInst == EInstrumentPad.UNKNOWN )
{
throw new ArgumentOutOfRangeException();
}
else
{
int nInst = (int) eInst;
int nGRmode = bGRmode ? 1 : 0;
int nReverse = bReverse ? 1 : 0;
int nVseries = (int) n判定位置[ nInst ];
int ret = n演奏RGBボタンY座標元データ[ nReverse, nGRmode, nVseries ][ nInst ]; // 補正無しの値
return ret;
}
}
}
}

View File

@ -215,9 +215,9 @@ namespace TJAPlayer3
{ {
if (this.bTrainingPAUSE) if (this.bTrainingPAUSE)
{ {
if (TJAPlayer3.ConfigIni.n演奏速度 > 6) if (TJAPlayer3.ConfigIni.nSongSpeed > 6)
{ {
TJAPlayer3.ConfigIni.n演奏速度 = TJAPlayer3.ConfigIni.n演奏速度 - 2; TJAPlayer3.ConfigIni.nSongSpeed = TJAPlayer3.ConfigIni.nSongSpeed - 2;
this.tMatchWithTheChartDisplayPosition(false); this.tMatchWithTheChartDisplayPosition(false);
} }
} }
@ -226,9 +226,9 @@ namespace TJAPlayer3
{ {
if (this.bTrainingPAUSE) if (this.bTrainingPAUSE)
{ {
if (TJAPlayer3.ConfigIni.n演奏速度 < 399) if (TJAPlayer3.ConfigIni.nSongSpeed < 399)
{ {
TJAPlayer3.ConfigIni.n演奏速度 = TJAPlayer3.ConfigIni.n演奏速度 + 2; TJAPlayer3.ConfigIni.nSongSpeed = TJAPlayer3.ConfigIni.nSongSpeed + 2;
this.tMatchWithTheChartDisplayPosition(false); this.tMatchWithTheChartDisplayPosition(false);
} }
} }

View File

@ -761,7 +761,7 @@ namespace TJAPlayer3
if (TJAPlayer3.ConfigIni.bAVI有効 && TJAPlayer3.DTX.listVD.Count > 0 && TJAPlayer3.stage演奏ドラム画面.ShowVideo) if (TJAPlayer3.ConfigIni.bEnableAVI && TJAPlayer3.DTX.listVD.Count > 0 && TJAPlayer3.stage演奏ドラム画面.ShowVideo)
{ {
if (TJAPlayer3.Tx.Lane_Background_Main != null) TJAPlayer3.Tx.Lane_Background_Main.Opacity = TJAPlayer3.ConfigIni.nBGAlpha; if (TJAPlayer3.Tx.Lane_Background_Main != null) TJAPlayer3.Tx.Lane_Background_Main.Opacity = TJAPlayer3.ConfigIni.nBGAlpha;
if (TJAPlayer3.Tx.Lane_Background_AI != null) TJAPlayer3.Tx.Lane_Background_AI.Opacity = TJAPlayer3.ConfigIni.nBGAlpha; if (TJAPlayer3.Tx.Lane_Background_AI != null) TJAPlayer3.Tx.Lane_Background_AI.Opacity = TJAPlayer3.ConfigIni.nBGAlpha;

View File

@ -454,19 +454,19 @@ namespace TJAPlayer3
base.ePhaseID = CStage.EPhase.Game_STAGE_FAILED; base.ePhaseID = CStage.EPhase.Game_STAGE_FAILED;
} }
bool BGA_Hidden = TJAPlayer3.ConfigIni.bAVI有効 && TJAPlayer3.DTX.listVD.Count > 0 && ShowVideo; bool BGA_Hidden = TJAPlayer3.ConfigIni.bEnableAVI && TJAPlayer3.DTX.listVD.Count > 0 && ShowVideo;
// (????) // (????)
if ( !String.IsNullOrEmpty( TJAPlayer3.DTX.strBGIMAGE_PATH ) || ( TJAPlayer3.DTX.listVD.Count == 0 ) || !ShowVideo || !TJAPlayer3.ConfigIni.bAVI有効 ) //背景動画があったら背景画像を描画しない。 if ( !String.IsNullOrEmpty( TJAPlayer3.DTX.strBGIMAGE_PATH ) || ( TJAPlayer3.DTX.listVD.Count == 0 ) || !ShowVideo || !TJAPlayer3.ConfigIni.bEnableAVI ) //背景動画があったら背景画像を描画しない。
{ {
this.t進行描画_背景(); this.t進行描画_背景();
} }
if (TJAPlayer3.ConfigIni.bAVI有効 && TJAPlayer3.DTX.listVD.Count > 0 && ShowVideo && !TJAPlayer3.ConfigIni.bTokkunMode) if (TJAPlayer3.ConfigIni.bEnableAVI && TJAPlayer3.DTX.listVD.Count > 0 && ShowVideo && !TJAPlayer3.ConfigIni.bTokkunMode)
{ {
this.t進行描画_AVI(); this.t進行描画_AVI();
} }
else if (TJAPlayer3.ConfigIni.bBGA有効) else if (TJAPlayer3.ConfigIni.bEnableBGA)
{ {
if (TJAPlayer3.ConfigIni.bTokkunMode) actTokkun.On進行描画_背景(); if (TJAPlayer3.ConfigIni.bTokkunMode) actTokkun.On進行描画_背景();
else actBackground.Draw(); else actBackground.Draw();
@ -916,27 +916,11 @@ namespace TJAPlayer3
this.actDANGER.t進行描画( this.actGauge.IsDanger(EInstrumentPad.DRUMS), false, false ); this.actDANGER.t進行描画( this.actGauge.IsDanger(EInstrumentPad.DRUMS), false, false );
} }
private void t進行描画_グラフ()
{
if( TJAPlayer3.ConfigIni.bGraph.Drums )
{
this.actGraph.Draw();
}
}
private void t進行描画_チップファイアD() private void t進行描画_チップファイアD()
{ {
this.actChipFireD.Draw(); this.actChipFireD.Draw();
} }
private void t進行描画_ドラムパッド()
{
if( TJAPlayer3.ConfigIni.eDark != Eダークモード.FULL )
{
this.actPad.Draw();
}
}
protected override void t進行描画_パネル文字列() protected override void t進行描画_パネル文字列()
{ {
base.t進行描画_パネル文字列( 336, 427 ); base.t進行描画_パネル文字列( 336, 427 );
@ -1830,37 +1814,6 @@ namespace TJAPlayer3
} }
} }
// t入力処理_ドラム()からメソッドを抽出したもの。
/// <summary>
/// chipArrayの中を, n発生位置の小さい順に並べる + nullを大きい方に退かす。セットでe判定Arrayも並べ直す。
/// </summary>
/// <param name="chipArray">ソート対象chip群</param>
/// <param name="e判定Array">ソート対象e判定群</param>
/// <param name="NumOfChips">チップ数</param>
private static void SortChipsByNTime( CDTX.CChip[] chipArray, ENoteJudge[] e判定Array, int NumOfChips )
{
for ( int i = 0; i < NumOfChips - 1; i++ )
{
//num9 = 2;
//while( num9 > num8 )
for ( int j = NumOfChips - 1; j > i; j-- )
{
if ( ( chipArray[ j - 1 ] == null ) || ( ( chipArray[ j ] != null ) && ( chipArray[ j - 1 ].n発声位置 > chipArray[ j ].n発声位置 ) ) )
{
// swap
CDTX.CChip chipTemp = chipArray[ j - 1 ];
chipArray[ j - 1 ] = chipArray[ j ];
chipArray[ j ] = chipTemp;
ENoteJudge e判定Temp = e判定Array[ j - 1 ];
e判定Array[ j - 1 ] = e判定Array[ j ];
e判定Array[ j ] = e判定Temp;
}
//num9--;
}
//num8++;
}
}
protected override void t背景テクスチャの生成() protected override void t背景テクスチャの生成()
{ {
Rectangle bgrect = new Rectangle( 0, 0, 1280, 720 ); Rectangle bgrect = new Rectangle( 0, 0, 1280, 720 );
@ -2545,26 +2498,6 @@ namespace TJAPlayer3
//y += (int)(((pChip.n発声時刻ms - (CSound管理.rc演奏用タイマ.n現在時刻 * (((double)TJAPlayer3.ConfigIni.n演奏速度) / 20.0))) * pChip.dbBPM * pChip.dbSCROLL_Y * (this.act譜面スクロール速度.db現在の譜面スクロール速度[nPlayer] + 1.5)) / 628.7); //y += (int)(((pChip.n発声時刻ms - (CSound管理.rc演奏用タイマ.n現在時刻 * (((double)TJAPlayer3.ConfigIni.n演奏速度) / 20.0))) * pChip.dbBPM * pChip.dbSCROLL_Y * (this.act譜面スクロール速度.db現在の譜面スクロール速度[nPlayer] + 1.5)) / 628.7);
} }
if ( !pChip.bHit && pChip.n発声時刻ms > SoundManager.PlayTimer.NowTime )
{
//pChip.bHit = true;
//this.actPlayInfo.n小節番号 = n小節番号plus1 - 1;
//this.actPlayInfo.n小節番号++;
if ( configIni.bWave再生位置自動調整機能有効 && ( bIsDirectSound || bUseOSTimer ) )
{
dTX.tWave再生位置自動補正();
}
}
/*
if (configIni.b演奏情報を表示する || TJAPlayer3.ConfigIni.bTokkunMode)
{
var nowMeasure = pChip.n整数値_内部番号;
if ( x >= 310 )
{
TJAPlayer3.act文字コンソール.tPrint(x + 8, y - 26, C文字コンソール.Eフォント種別., nowMeasure.ToString());
}
}
*/
if ( (pChip.b可視 && !pChip.bHideBarLine) && (TJAPlayer3.Tx.Bar != null ) ) if ( (pChip.b可視 && !pChip.bHideBarLine) && (TJAPlayer3.Tx.Bar != null ) )
{ {
if( x >= 0 && x <= SampleFramework.GameWindowSize.Width ) if( x >= 0 && x <= SampleFramework.GameWindowSize.Width )
@ -2583,11 +2516,6 @@ namespace TJAPlayer3
} }
} }
protected void t進行描画_レーン()
{
this.actLane.Draw();
}
/// <summary> /// <summary>
/// 全体にわたる制御をする。 /// 全体にわたる制御をする。
/// </summary> /// </summary>

View File

@ -111,13 +111,13 @@ namespace TJAPlayer3
{ {
var rand_ = TJAPlayer3.ConfigIni.eRandom[player]; var rand_ = TJAPlayer3.ConfigIni.eRandom[player];
if (rand_ == Eランダムモード.MIRROR) if (rand_ == ERandomMode.MIRROR)
TJAPlayer3.Tx.Mod_Mirror?.t2D描画(x, y); TJAPlayer3.Tx.Mod_Mirror?.t2D描画(x, y);
else if (rand_ == Eランダムモード.RANDOM) else if (rand_ == ERandomMode.RANDOM)
TJAPlayer3.Tx.Mod_Random?.t2D描画(x, y); TJAPlayer3.Tx.Mod_Random?.t2D描画(x, y);
else if (rand_ == Eランダムモード.SUPERRANDOM) else if (rand_ == ERandomMode.SUPERRANDOM)
TJAPlayer3.Tx.Mod_Super?.t2D描画(x, y); TJAPlayer3.Tx.Mod_Super?.t2D描画(x, y);
else if (rand_ == Eランダムモード.HYPERRANDOM) else if (rand_ == ERandomMode.HYPERRANDOM)
TJAPlayer3.Tx.Mod_Hyper?.t2D描画(x, y); TJAPlayer3.Tx.Mod_Hyper?.t2D描画(x, y);
else else
TJAPlayer3.Tx.Mod_None?.t2D描画(x, y); TJAPlayer3.Tx.Mod_None?.t2D描画(x, y);
@ -125,9 +125,9 @@ namespace TJAPlayer3
static private void tDisplaySongSpeedIcon(int x, int y, int player) static private void tDisplaySongSpeedIcon(int x, int y, int player)
{ {
if (TJAPlayer3.ConfigIni.n演奏速度 > 20) if (TJAPlayer3.ConfigIni.nSongSpeed > 20)
TJAPlayer3.Tx.Mod_SongSpeed[1]?.t2D描画(x, y); TJAPlayer3.Tx.Mod_SongSpeed[1]?.t2D描画(x, y);
else if (TJAPlayer3.ConfigIni.n演奏速度 < 20) else if (TJAPlayer3.ConfigIni.nSongSpeed < 20)
TJAPlayer3.Tx.Mod_SongSpeed[0]?.t2D描画(x, y); TJAPlayer3.Tx.Mod_SongSpeed[0]?.t2D描画(x, y);
else else
TJAPlayer3.Tx.Mod_None?.t2D描画(x, y); TJAPlayer3.Tx.Mod_None?.t2D描画(x, y);
@ -169,8 +169,8 @@ namespace TJAPlayer3
if (TJAPlayer3.ConfigIni.nFunMods[actual] != EFunMods.NONE) return false; if (TJAPlayer3.ConfigIni.nFunMods[actual] != EFunMods.NONE) return false;
if (TJAPlayer3.ConfigIni.bJust[actual] != 0) return false; if (TJAPlayer3.ConfigIni.bJust[actual] != 0) return false;
if (TJAPlayer3.ConfigIni.nTimingZones[actual] != 2) return false; if (TJAPlayer3.ConfigIni.nTimingZones[actual] != 2) return false;
if (TJAPlayer3.ConfigIni.n演奏速度 != 20) return false; if (TJAPlayer3.ConfigIni.nSongSpeed != 20) return false;
if (TJAPlayer3.ConfigIni.eRandom[actual] != Eランダムモード.OFF) return false; if (TJAPlayer3.ConfigIni.eRandom[actual] != ERandomMode.OFF) return false;
if (TJAPlayer3.ConfigIni.eSTEALTH[actual] != EStealthMode.OFF) return false; if (TJAPlayer3.ConfigIni.eSTEALTH[actual] != EStealthMode.OFF) return false;
if (TJAPlayer3.ConfigIni.nScrollSpeed[actual] != 9) return false; if (TJAPlayer3.ConfigIni.nScrollSpeed[actual] != 9) return false;
@ -184,7 +184,7 @@ namespace TJAPlayer3
_flags[0] = (byte)Math.Min(255, TJAPlayer3.ConfigIni.nScrollSpeed[actual]); _flags[0] = (byte)Math.Min(255, TJAPlayer3.ConfigIni.nScrollSpeed[actual]);
_flags[1] = (byte)TJAPlayer3.ConfigIni.eSTEALTH[actual]; _flags[1] = (byte)TJAPlayer3.ConfigIni.eSTEALTH[actual];
_flags[2] = (byte)TJAPlayer3.ConfigIni.eRandom[actual]; _flags[2] = (byte)TJAPlayer3.ConfigIni.eRandom[actual];
_flags[3] = (byte)Math.Min(255, TJAPlayer3.ConfigIni.n演奏速度); _flags[3] = (byte)Math.Min(255, TJAPlayer3.ConfigIni.nSongSpeed);
_flags[4] = (byte)TJAPlayer3.ConfigIni.nTimingZones[actual]; _flags[4] = (byte)TJAPlayer3.ConfigIni.nTimingZones[actual];
_flags[5] = (byte)TJAPlayer3.ConfigIni.bJust[actual]; _flags[5] = (byte)TJAPlayer3.ConfigIni.bJust[actual];
_flags[7] = (byte)TJAPlayer3.ConfigIni.nFunMods[actual]; _flags[7] = (byte)TJAPlayer3.ConfigIni.nFunMods[actual];

View File

@ -1002,15 +1002,15 @@ namespace TJAPlayer3
else if (gaugeValues[p] >= 40.0f) else if (gaugeValues[p] >= 40.0f)
Mood = 1; Mood = 1;
if (TJAPlayer3.stage結果.nクリア[p] == 3) if (TJAPlayer3.stage結果.nクリア[p] == 4)
{ {
MoodV2 = 5; MoodV2 = 5;
} }
else if (TJAPlayer3.stage結果.nクリア[p] == 2) else if (TJAPlayer3.stage結果.nクリア[p] == 3)
{ {
MoodV2 = 4; MoodV2 = 4;
} }
else if (TJAPlayer3.stage結果.nクリア[p] == 1) else if (TJAPlayer3.stage結果.nクリア[p] >= 1)
{ {
if (gaugeValues[p] >= 100.0f) if (gaugeValues[p] >= 100.0f)
{ {
@ -1192,7 +1192,7 @@ namespace TJAPlayer3
{ {
#region [Crown apparition] #region [Crown apparition]
int crownEffect_width = TJAPlayer3.Tx.Result_CrownEffect.szTextureSize.Width / 3; int crownEffect_width = TJAPlayer3.Tx.Result_CrownEffect.szTextureSize.Width / 4;
int crownEffect_height = TJAPlayer3.Tx.Result_CrownEffect.szTextureSize.Height / 4; int crownEffect_height = TJAPlayer3.Tx.Result_CrownEffect.szTextureSize.Height / 4;
if (ctMainCounter.CurrentValue <= ScoreApparitionTimeStamp + 2680) if (ctMainCounter.CurrentValue <= ScoreApparitionTimeStamp + 2680)

View File

@ -178,15 +178,16 @@ namespace TJAPlayer3
this.nクリア[p] = 0; this.nクリア[p] = 0;
if (HGaugeMethods.UNSAFE_FastNormaCheck(p)) if (HGaugeMethods.UNSAFE_FastNormaCheck(p))
{ {
this.nクリア[p] = 1; this.nクリア[p] = 2;
if (ccf.nMiss == 0 && ccf.nMine == 0) if (ccf.nMiss == 0 && ccf.nMine == 0)
{ {
this.nクリア[p] = 2; this.nクリア[p] = 3;
if (ccf.nGood == 0) this.nクリア[p] = 3; if (ccf.nGood == 0) this.nクリア[p] = 4;
} }
if (assistedClear[p]) clearStatuses[p] = 0; if (assistedClear[p]) this.nクリア[p] = 1;
else clearStatuses[p] = this.nクリア[p];
clearStatuses[p] = this.nクリア[p] - 1;
} }
@ -269,12 +270,12 @@ namespace TJAPlayer3
clearValue += 1; clearValue += 1;
// Gold Iki // Gold Iki
if (this.st演奏記録.Drums.nMiss数 == 0) if (this.st演奏記録.Drums.nBadCount == 0)
{ {
clearValue += 2; clearValue += 2;
// Rainbow Iki // Rainbow Iki
if (this.st演奏記録.Drums.nGreat数 == 0) if (this.st演奏記録.Drums.nOkCount == 0)
clearValue += 2; clearValue += 2;
} }
@ -396,9 +397,9 @@ namespace TJAPlayer3
// Medals // Medals
int nTotalHits = this.st演奏記録.Drums.nGreat数 + this.st演奏記録.Drums.nMiss数 + this.st演奏記録.Drums.nPerfect数; int nTotalHits = this.st演奏記録.Drums.nOkCount + this.st演奏記録.Drums.nBadCount + this.st演奏記録.Drums.nGoodCount;
double dAccuracyRate = Math.Pow((50 * this.st演奏記録.Drums.nGreat数 + 100 * this.st演奏記録.Drums.nPerfect数) / (double)(100 * nTotalHits), 3); double dAccuracyRate = Math.Pow((50 * this.st演奏記録.Drums.nOkCount + 100 * this.st演奏記録.Drums.nGoodCount) / (double)(100 * nTotalHits), 3);
int diffModifier; int diffModifier;
float starRate; float starRate;
@ -441,10 +442,10 @@ namespace TJAPlayer3
int clearModifier = 0; int clearModifier = 0;
if (this.st演奏記録.Drums.nMiss数 == 0) if (this.st演奏記録.Drums.nBadCount == 0)
{ {
clearModifier = (int)(5 * lengthBonus); clearModifier = (int)(5 * lengthBonus);
if (this.st演奏記録.Drums.nGreat数 == 0) if (this.st演奏記録.Drums.nOkCount == 0)
{ {
clearModifier = (int)(12 * lengthBonus); clearModifier = (int)(12 * lengthBonus);
} }
@ -470,10 +471,10 @@ namespace TJAPlayer3
if (examStatus != Exam.Status.Failure) if (examStatus != Exam.Status.Failure)
{ {
clearModifier = 0; clearModifier = 0;
if (this.st演奏記録.Drums.nMiss数 == 0) if (this.st演奏記録.Drums.nBadCount == 0)
{ {
clearModifier = 4; clearModifier = 4;
if (this.st演奏記録.Drums.nGreat数 == 0) if (this.st演奏記録.Drums.nOkCount == 0)
clearModifier = 6; clearModifier = 6;
} }
@ -697,7 +698,7 @@ namespace TJAPlayer3
this.ttkReachedFloor = new TitleTextureKey(CFloorManagement.LastRegisteredFloor.ToString(), pfTowerText72, Color.Orange, Color.Black, 700); this.ttkReachedFloor = new TitleTextureKey(CFloorManagement.LastRegisteredFloor.ToString(), pfTowerText72, Color.Orange, Color.Black, 700);
this.ttkScore = new TitleTextureKey(CLangManager.LangInstance.GetString(1003), pfTowerText, Color.Black, Color.Transparent, 700); this.ttkScore = new TitleTextureKey(CLangManager.LangInstance.GetString(1003), pfTowerText, Color.Black, Color.Transparent, 700);
this.ttkRemaningLifes = new TitleTextureKey(CFloorManagement.CurrentNumberOfLives.ToString() + " / " + CFloorManagement.MaxNumberOfLives.ToString(), pfTowerText, Color.Black, Color.Transparent, 700); 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); this.ttkScoreCount = new TitleTextureKey(TJAPlayer3.stage演奏ドラム画面.actScore.GetScore(0).ToString(), pfTowerText, Color.Black, Color.Transparent, 700);
} }
else if (TJAPlayer3.stageSongSelect.nChoosenSongDifficulty[0] == (int)Difficulty.Dan) else if (TJAPlayer3.stageSongSelect.nChoosenSongDifficulty[0] == (int)Difficulty.Dan)
{ {
@ -1253,11 +1254,11 @@ namespace TJAPlayer3
successType += 1; successType += 1;
int comboType = 0; int comboType = 0;
if (this.st演奏記録.Drums.nMiss数 == 0) if (this.st演奏記録.Drums.nBadCount == 0)
{ {
comboType += 1; comboType += 1;
if (this.st演奏記録.Drums.nGreat数 == 0) if (this.st演奏記録.Drums.nOkCount == 0)
comboType += 1; comboType += 1;
} }
@ -1494,10 +1495,13 @@ namespace TJAPlayer3
#region [ #24609 2011.3.14 yyagi or演奏型スキル更新時pngで保存する ] #region [ #24609 2011.3.14 yyagi or演奏型スキル更新時pngで保存する ]
if (this.bアニメが完了 == true && this.bIsCheckedWhetherResultScreenShouldSaveOrNot == false // #24609 2011.3.14 yyagi; to save result screen in case BestRank or HiSkill. if (this.bアニメが完了 == true && this.bIsCheckedWhetherResultScreenShouldSaveOrNot == false // #24609 2011.3.14 yyagi; to save result screen in case BestRank or HiSkill.
&& TJAPlayer3.ConfigIni.bScoreIniを出力する
&& TJAPlayer3.ConfigIni.bIsAutoResultCapture) // #25399 2011.6.9 yyagi && TJAPlayer3.ConfigIni.bIsAutoResultCapture) // #25399 2011.6.9 yyagi
{ {
CheckAndSaveResultScreen(true); string strFullPath =
Path.Combine(TJAPlayer3.strEXEのあるフォルダ, "Capture_img");
strFullPath = Path.Combine(strFullPath, DateTime.Now.ToString("yyyyMMddHHmmss") + ".png");
TJAPlayer3.app.SaveResultScreen(strFullPath);
this.bIsCheckedWhetherResultScreenShouldSaveOrNot = true; this.bIsCheckedWhetherResultScreenShouldSaveOrNot = true;
} }
#endregion #endregion
@ -2077,34 +2081,7 @@ namespace TJAPlayer3
// Coins information // Coins information
private int[] nEarnedMedalsCount = { 0, 0, 0, 0, 0 }; private int[] nEarnedMedalsCount = { 0, 0, 0, 0, 0 };
#region [ #24609 pngで保存する ] // #24609 2011.3.14 yyagi; to save result screen in case BestRank or HiSkill.
/// <summary>
/// リザルト画像のキャプチャと保存。
/// 自動保存モード時は、ランク更新or演奏型スキル更新時に自動保存。
/// 手動保存モード時は、ランクに依らず保存。
/// </summary>
/// <param name="bIsAutoSave">true=自動保存モード, false=手動保存モード</param>
private void CheckAndSaveResultScreen(bool bIsAutoSave)
{
string path = Path.GetDirectoryName(TJAPlayer3.DTX.strファイル名の絶対パス);
string datetime = DateTime.Now.ToString("yyyyMMddHHmmss");
if (bIsAutoSave)
{
// リザルト画像を自動保存するときは、dtxファイル名.yyMMddHHmmss_DRUMS_SS.png という形式で保存。
for (int i = 0; i < 3; i++)
{
if (this.b新記録ランク[i] == true || this.b新記録スキル[i] == true)
{
string strPart = ((EInstrumentPad)(i)).ToString();
string strRank = "99";
string strFullPath = TJAPlayer3.DTX.strファイル名の絶対パス + "." + datetime + "_" + strPart + "_" + strRank + ".png";
//Surface.ToFile( pSurface, strFullPath, ImageFileFormat.Png );
TJAPlayer3.app.SaveResultScreen(strFullPath);
}
}
}
}
#endregion
//----------------- //-----------------
#endregion #endregion
} }

View File

@ -394,8 +394,8 @@ Trace.TraceInformation( "Command: " + s[ (int) this.Command ] );
} }
//cc.nViewerScrollSpeed[0] = TJAPlayer3.ConfigIni.nScrollSpeed[TJAPlayer3.SaveFile]; //cc.nViewerScrollSpeed[0] = TJAPlayer3.ConfigIni.nScrollSpeed[TJAPlayer3.SaveFile];
cc.bViewerShowDebugStatus = TJAPlayer3.ConfigIni.b演奏情報を表示する; cc.bViewerShowDebugStatus = TJAPlayer3.ConfigIni.bDisplayDebugInfo;
cc.bViewerVSyncWait = TJAPlayer3.ConfigIni.b垂直帰線待ちを行う; cc.bViewerVSyncWait = TJAPlayer3.ConfigIni.bEnableVSync;
cc.bViewerTimeStretch = TJAPlayer3.ConfigIni.bTimeStretch; cc.bViewerTimeStretch = TJAPlayer3.ConfigIni.bTimeStretch;
cc.bViewerDrums有効 = true; cc.bViewerDrums有効 = true;