• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision71e198d60a8d853f6eef084a3123cc97d412f796 (tree)
Zeit2019-12-29 03:22:58
Autoryyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#39873 Fixed: Number of lanes is not shown in the select-music screen, even if CONFIGURATION/System/LoadDTXDetail is ON.

Ändern Zusammenfassung

  • delete: "DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTX.cs"
  • delete: "DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTXInput.cs"
  • delete: "DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTXNestedTypes.cs"
  • delete: "DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelect\346\233\262\343\203\252\343\202\271\343\203\210.cs"

Diff

--- "a/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTX.cs"
+++ "b/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTX.cs"
@@ -132,6 +132,7 @@ namespace DTXMania
132132 this.bチップがある.Movie = false;
133133 this.bチップがある.LeftPedal = false;
134134 this.bチップがある.LeftBassDrum = false;
135+ this.bチップがある.FloorTom = false;
135136 this.bMovieをFullscreen再生する = false;
136137 this.strファイル名 = "";
137138 this.strフォルダ名 = "";
@@ -606,7 +607,6 @@ namespace DTXMania
606607 // Debug.WriteLine(strCount);
607608 // CDTXMania.Instance.app.act文字コンソール.tPrint(0, 0, C文字コンソール.Eフォント種別.白, strCount);
608609 // count++;
609-
610610 string str = string.IsNullOrEmpty(this.PATH_WAV) ? this.strフォルダ名 : this.PATH_WAV;
611611 str = str + cwav.strファイル名;
612612 bool bIsDirectSound = (CDTXMania.Instance.Sound管理.CurrentSoundDeviceType == ESoundDeviceType.DirectSound);
--- "a/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTXInput.cs"
+++ "b/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTXInput.cs"
@@ -85,7 +85,7 @@ namespace DTXMania
8585 {
8686 this.t入力_全入力文字列から(str全入力文字列, 1.0, 0);
8787 }
88- public unsafe void t入力_全入力文字列から(string str全入力文字列, double db再生速度, int nBGMAdjust)
88+ public void t入力_全入力文字列から(string str全入力文字列, double db再生速度, int nBGMAdjust)
8989 {
9090 //DateTime timeBeginLoad = DateTime.Now;
9191 //TimeSpan span;
@@ -166,7 +166,7 @@ namespace DTXMania
166166 this.n無限管理VOL = null;
167167 this.n無限管理PAN = null;
168168 this.n無限管理SIZE = null;
169- if (!this.bヘッダのみ && this.bレーン情報を確認する)
169+ if (!this.bヘッダのみ || this.bレーン情報を確認する)
170170 {
171171 #region [ BPM/BMP初期化 ]
172172 CBPM cbpm = null;
@@ -532,50 +532,54 @@ namespace DTXMania
532532
533533 // #36177 使用レーン数の表示 add ikanick 16.03.20
534534 #region [ 使用レーン数カウント ]
535-
536- for (EPart inst = EPart.Drums; inst <= EPart.Bass; ++inst)
535+ #region [Drums]
536+ if (this.bチップがある.LeftPedal || this.bチップがある.LeftBassDrum)
537537 {
538- this.n使用レーン数[inst] = EUseLanes.Other;
538+ this.n使用レーン数.Drums = EUseLanes.Dr_12;
539539 }
540- foreach (CChip chip in this.listChip)
540+ else if (this.bチップがある.FloorTom || this.bチップがある.HHOpen || this.bチップがある.Ride || this.bチップがある.LeftCymbal)
541541 {
542- int ch = (int)chip.eチャンネル番号;
543- if (chip.bDrums可視チップ)
544- {
545- if (this.n使用レーン数.Drums == EUseLanes.Other) this.n使用レーン数.Drums = EUseLanes.Dr_6;
546- if ( ( this.n使用レーン数.Drums != EUseLanes.Dr_10 ) && ( this.n使用レーン数.Drums != EUseLanes.Dr_12 ) )
547- {
548- if ((chip.eチャンネル番号 == EChannel.FloorTom)
549- || (chip.eチャンネル番号 == EChannel.HiHatOpen)
550- || (chip.eチャンネル番号 == EChannel.RideCymbal)
551- || (chip.eチャンネル番号 == EChannel.LeftCymbal))
552- {
553- this.n使用レーン数.Drums = EUseLanes.Dr_10;
554- }
555- }
556- if (this.n使用レーン数.Drums != EUseLanes.Dr_12)
557- {
558- if ((chip.eチャンネル番号 == EChannel.LeftPedal)
559- || (chip.eチャンネル番号 == EChannel.LeftBassDrum))
560- {
561- this.n使用レーン数.Drums = EUseLanes.Dr_12;
562- }
563- }
564- }
565- if (chip.bGuitar可視チップ)
566- {
567- // 5レーン未対応
568- if ( this.n使用レーン数.Guitar == EUseLanes.Other ) this.n使用レーン数.Guitar = EUseLanes.GB_3;
569- }
570- if (chip.bBass可視チップ)
571- {
572- // 5レーン未対応
573- if ( this.n使用レーン数.Bass == EUseLanes.Other ) this.n使用レーン数.Bass = EUseLanes.GB_3;
574- }
542+ this.n使用レーン数.Drums = EUseLanes.Dr_10;
543+ }
544+ else if (this.bチップがある.Drums)
545+ {
546+ this.n使用レーン数.Drums = EUseLanes.Dr_6;
547+ }
548+ else
549+ {
550+ this.n使用レーン数.Drums = EUseLanes.Other;
575551 }
576- //Trace.TraceInformation( "LeftPedal使用=" + this.bチップがある.LeftPedal );
577- //Trace.TraceInformation( "LeftBass使用 =" + this.bチップがある.LeftBassDrum );
578- //Trace.TraceInformation( "Lane Type =" + this.n使用レーン数.Drums );
552+ #endregion
553+ #region [Guitar]
554+ if ( this.bチップがある.Guitar)
555+ {
556+ // 5レーン未対応
557+ this.n使用レーン数.Guitar = EUseLanes.GB_3;
558+ }
559+ else
560+ {
561+ this.n使用レーン数.Guitar = EUseLanes.Other;
562+ }
563+ #endregion
564+ #region [Bass]
565+ if (this.bチップがある.Bass)
566+ {
567+ // 5レーン未対応
568+ this.n使用レーン数.Bass = EUseLanes.GB_3;
569+ }
570+ else
571+ {
572+ this.n使用レーン数.Bass = EUseLanes.Other;
573+ }
574+ #endregion
575+ //Trace.TraceInformation("FloorTom使用 =" + this.bチップがある.FloorTom);
576+ //Trace.TraceInformation("HiHatOpen使用=" + this.bチップがある.HHOpen);
577+ //Trace.TraceInformation("RideCymbal使用=" + this.bチップがある.Ride);
578+ //Trace.TraceInformation("LeftCymbal使用=" + this.bチップがある.LeftCymbal);
579+ //Trace.TraceInformation("LeftPedal使用=" + this.bチップがある.LeftPedal);
580+ //Trace.TraceInformation("LeftBass使用 =" + this.bチップがある.LeftBassDrum);
581+ //Trace.TraceInformation("Drumsチップあり =" + this.bチップがある.Drums);
582+ //Trace.TraceInformation("Lane Type =" + this.n使用レーン数.Drums);
579583 #endregion
580584
581585 //span = (TimeSpan) ( DateTime.Now - timeBeginLoad );
@@ -1160,7 +1164,15 @@ namespace DTXMania
11601164 }
11611165 //-----------------
11621166 #endregion
1163- else if (!this.bヘッダのみ) // ヘッダのみの解析の場合、以下は無視。
1167+ else if (this.bヘッダのみ && this.bレーン情報を確認する) // ヘッダのみ、かつbLoadDetailDTX==trueの場合は、チップの配置のみ実行。
1168+ {
1169+ this.t入力_行解析_チップ配置(strコマンド, strパラメータ, strコメント);
1170+ }
1171+ //else if (!this.bヘッダのみ && this.bレーン情報を確認する) // ヘッダのみ、かつbLoadDetailDTX==trueの場合は、チップの配置のみ実行。
1172+ //{
1173+ // this.t入力_行解析_チップ配置(strコマンド, strパラメータ, strコメント);
1174+ //}
1175+ else if (!this.bヘッダのみ) // ヘッダのみの解析の場合、以下は無視。
11641176 {
11651177 #region [ PANEL ]
11661178 //-----------------
@@ -2820,6 +2832,9 @@ namespace DTXMania
28202832 this.bチップがある.OpenBass |= chip[EChannel.Bass_Open];
28212833 this.bチップがある.BGA |= chip.bBGALayer;
28222834 this.bチップがある.Movie |= chip.bMovie;
2835+
2836+ this.bチップがある.FloorTom |= chip[EChannel.FloorTom];
2837+
28232838 if (chip.bMovie)
28242839 {
28252840 if (chip[EChannel.MovieFull] || CDTXMania.Instance.ConfigIni.bForceScalingAVI)
--- "a/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTXNestedTypes.cs"
+++ "b/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\202\263\343\202\242\343\200\201\346\233\262/CDTXNestedTypes.cs"
@@ -570,6 +570,13 @@ namespace DTXMania
570570 public bool LeftPedal;
571571 public bool LeftBassDrum;
572572
573+ public bool FloorTom;
574+
575+ public bool GuitarY;
576+ public bool GuitarP;
577+ public bool BassY;
578+ public bool BassP;
579+
573580 public bool this[EPart inst]
574581 {
575582 get
@@ -626,6 +633,21 @@ namespace DTXMania
626633
627634 case 9:
628635 return this.LeftBassDrum;
636+
637+ case 10:
638+ return this.FloorTom;
639+
640+ case 11:
641+ return this.GuitarY;
642+
643+ case 12:
644+ return this.GuitarP;
645+
646+ case 13:
647+ return this.BassY;
648+
649+ case 14:
650+ return this.BassP;
629651 }
630652 throw new IndexOutOfRangeException();
631653 }
@@ -672,6 +694,26 @@ namespace DTXMania
672694 case 9:
673695 this.LeftBassDrum = value;
674696 return;
697+
698+ case 10:
699+ this.FloorTom = value;
700+ return;
701+
702+ case 11:
703+ this.GuitarY = value;
704+ return;
705+
706+ case 12:
707+ this.GuitarP = value;
708+ return;
709+
710+ case 13:
711+ this.BassY= value;
712+ return;
713+
714+ case 14:
715+ this.BassP = value;
716+ return;
675717 }
676718 throw new IndexOutOfRangeException();
677719 }
--- "a/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelect\346\233\262\343\203\252\343\202\271\343\203\210.cs"
+++ "b/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelect\346\233\262\343\203\252\343\202\271\343\203\210.cs"
@@ -1492,6 +1492,8 @@ namespace DTXMania
14921492 int n使用レーン数 = 0;
14931493 switch (e使用レーン数)
14941494 {
1495+ //case EUseLanes.None: n使用レーン数 = 90; break;
1496+ //case EUseLanes.Other: n使用レーン数 = 99; break;
14951497 case EUseLanes.Dr_6 : n使用レーン数 = 6; break;
14961498 case EUseLanes.Dr_10 : n使用レーン数 = 10; break;
14971499 case EUseLanes.Dr_12 : n使用レーン数 = 12; break;