Revision | 71e198d60a8d853f6eef084a3123cc97d412f796 (tree) |
---|---|
Zeit | 2019-12-29 03:22:58 |
Autor | yyagi <yyagi.dtxmania@gmai...> |
Commiter | yyagi |
#39873 Fixed: Number of lanes is not shown in the select-music screen, even if CONFIGURATION/System/LoadDTXDetail is ON.
@@ -132,6 +132,7 @@ namespace DTXMania | ||
132 | 132 | this.bチップがある.Movie = false; |
133 | 133 | this.bチップがある.LeftPedal = false; |
134 | 134 | this.bチップがある.LeftBassDrum = false; |
135 | + this.bチップがある.FloorTom = false; | |
135 | 136 | this.bMovieをFullscreen再生する = false; |
136 | 137 | this.strファイル名 = ""; |
137 | 138 | this.strフォルダ名 = ""; |
@@ -606,7 +607,6 @@ namespace DTXMania | ||
606 | 607 | // Debug.WriteLine(strCount); |
607 | 608 | // CDTXMania.Instance.app.act文字コンソール.tPrint(0, 0, C文字コンソール.Eフォント種別.白, strCount); |
608 | 609 | // count++; |
609 | - | |
610 | 610 | string str = string.IsNullOrEmpty(this.PATH_WAV) ? this.strフォルダ名 : this.PATH_WAV; |
611 | 611 | str = str + cwav.strファイル名; |
612 | 612 | bool bIsDirectSound = (CDTXMania.Instance.Sound管理.CurrentSoundDeviceType == ESoundDeviceType.DirectSound); |
@@ -85,7 +85,7 @@ namespace DTXMania | ||
85 | 85 | { |
86 | 86 | this.t入力_全入力文字列から(str全入力文字列, 1.0, 0); |
87 | 87 | } |
88 | - public unsafe void t入力_全入力文字列から(string str全入力文字列, double db再生速度, int nBGMAdjust) | |
88 | + public void t入力_全入力文字列から(string str全入力文字列, double db再生速度, int nBGMAdjust) | |
89 | 89 | { |
90 | 90 | //DateTime timeBeginLoad = DateTime.Now; |
91 | 91 | //TimeSpan span; |
@@ -166,7 +166,7 @@ namespace DTXMania | ||
166 | 166 | this.n無限管理VOL = null; |
167 | 167 | this.n無限管理PAN = null; |
168 | 168 | this.n無限管理SIZE = null; |
169 | - if (!this.bヘッダのみ && this.bレーン情報を確認する) | |
169 | + if (!this.bヘッダのみ || this.bレーン情報を確認する) | |
170 | 170 | { |
171 | 171 | #region [ BPM/BMP初期化 ] |
172 | 172 | CBPM cbpm = null; |
@@ -532,50 +532,54 @@ namespace DTXMania | ||
532 | 532 | |
533 | 533 | // #36177 使用レーン数の表示 add ikanick 16.03.20 |
534 | 534 | #region [ 使用レーン数カウント ] |
535 | - | |
536 | - for (EPart inst = EPart.Drums; inst <= EPart.Bass; ++inst) | |
535 | + #region [Drums] | |
536 | + if (this.bチップがある.LeftPedal || this.bチップがある.LeftBassDrum) | |
537 | 537 | { |
538 | - this.n使用レーン数[inst] = EUseLanes.Other; | |
538 | + this.n使用レーン数.Drums = EUseLanes.Dr_12; | |
539 | 539 | } |
540 | - foreach (CChip chip in this.listChip) | |
540 | + else if (this.bチップがある.FloorTom || this.bチップがある.HHOpen || this.bチップがある.Ride || this.bチップがある.LeftCymbal) | |
541 | 541 | { |
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; | |
575 | 551 | } |
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); | |
579 | 583 | #endregion |
580 | 584 | |
581 | 585 | //span = (TimeSpan) ( DateTime.Now - timeBeginLoad ); |
@@ -1160,7 +1164,15 @@ namespace DTXMania | ||
1160 | 1164 | } |
1161 | 1165 | //----------------- |
1162 | 1166 | #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ヘッダのみ) // ヘッダのみの解析の場合、以下は無視。 | |
1164 | 1176 | { |
1165 | 1177 | #region [ PANEL ] |
1166 | 1178 | //----------------- |
@@ -2820,6 +2832,9 @@ namespace DTXMania | ||
2820 | 2832 | this.bチップがある.OpenBass |= chip[EChannel.Bass_Open]; |
2821 | 2833 | this.bチップがある.BGA |= chip.bBGALayer; |
2822 | 2834 | this.bチップがある.Movie |= chip.bMovie; |
2835 | + | |
2836 | + this.bチップがある.FloorTom |= chip[EChannel.FloorTom]; | |
2837 | + | |
2823 | 2838 | if (chip.bMovie) |
2824 | 2839 | { |
2825 | 2840 | if (chip[EChannel.MovieFull] || CDTXMania.Instance.ConfigIni.bForceScalingAVI) |
@@ -570,6 +570,13 @@ namespace DTXMania | ||
570 | 570 | public bool LeftPedal; |
571 | 571 | public bool LeftBassDrum; |
572 | 572 | |
573 | + public bool FloorTom; | |
574 | + | |
575 | + public bool GuitarY; | |
576 | + public bool GuitarP; | |
577 | + public bool BassY; | |
578 | + public bool BassP; | |
579 | + | |
573 | 580 | public bool this[EPart inst] |
574 | 581 | { |
575 | 582 | get |
@@ -626,6 +633,21 @@ namespace DTXMania | ||
626 | 633 | |
627 | 634 | case 9: |
628 | 635 | 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; | |
629 | 651 | } |
630 | 652 | throw new IndexOutOfRangeException(); |
631 | 653 | } |
@@ -672,6 +694,26 @@ namespace DTXMania | ||
672 | 694 | case 9: |
673 | 695 | this.LeftBassDrum = value; |
674 | 696 | 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; | |
675 | 717 | } |
676 | 718 | throw new IndexOutOfRangeException(); |
677 | 719 | } |
@@ -1492,6 +1492,8 @@ namespace DTXMania | ||
1492 | 1492 | int n使用レーン数 = 0; |
1493 | 1493 | switch (e使用レーン数) |
1494 | 1494 | { |
1495 | + //case EUseLanes.None: n使用レーン数 = 90; break; | |
1496 | + //case EUseLanes.Other: n使用レーン数 = 99; break; | |
1495 | 1497 | case EUseLanes.Dr_6 : n使用レーン数 = 6; break; |
1496 | 1498 | case EUseLanes.Dr_10 : n使用レーン数 = 10; break; |
1497 | 1499 | case EUseLanes.Dr_12 : n使用レーン数 = 12; break; |