From 9746ef258846ad9a9d8ff4f1d111c238c0936354 Mon Sep 17 00:00:00 2001 From: yyagi Date: Sat, 13 Aug 2011 18:08:40 +0000 Subject: [PATCH] =?utf8?q?#26005=20DTXC:=20=E5=8A=B9=E6=9E=9C=E9=9F=B3?= =?utf8?q?=E3=83=AC=E3=83=BC=E3=83=B3=E8=BF=BD=E5=8A=A0=E5=89=8D=E3=81=AE?= =?utf8?q?=E6=BA=96=E5=82=99=E3=80=82=E3=83=AC=E3=83=BC=E3=83=B3=E3=81=AE?= =?utf8?q?=E5=88=9D=E6=9C=9F=E5=8C=96=E9=83=A8=E5=88=86=E3=82=92=E3=83=AA?= =?utf8?q?=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF=E3=81=97=E3=80=81=E3=83=A1?= =?utf8?q?=E3=83=B3=E3=83=90=E5=A4=89=E6=95=B0=E3=82=92=E5=B0=91=E3=81=97?= =?utf8?q?=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@240 16f42ceb-6dc6-49c8-ba94-f2d53467949d --- .../コード/00.全体/CDTX入出力.cs | 16 ++++-- .../コード/05.譜面/Cレーン.cs | 61 +++++++++++++++++++++- 2 files changed, 70 insertions(+), 7 deletions(-) diff --git a/DTXCreatorプロジェクト/コード/00.全体/CDTX入出力.cs b/DTXCreatorプロジェクト/コード/00.全体/CDTX入出力.cs index 44099521..6cef2301 100644 --- a/DTXCreatorプロジェクト/コード/00.全体/CDTX入出力.cs +++ b/DTXCreatorプロジェクト/コード/00.全体/CDTX入出力.cs @@ -136,6 +136,7 @@ namespace DTXCreator 0xe3, 0xe5, 0xe9, 0xef, 0xf1, 0xfb, 0x101, 0x107, 0x10d, 0x10f, 0x115, 0x119, 0x11b, 0x125, 0x133, 0x137, 0x139, 0x13d, 0x14b, 0x151, 0x15b, 0x15d, 0x161, 0x167, 0x16f, 0x175, 0x17b, 0x17f }; +#region [ #25990; for BMS/BME to DTX conversion ] // #25990 2011.8.12 yyagi: DTXのBGM用ch群(正確には効果音用ch群) private readonly int[] DTXbgmChs = new int[] { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, @@ -174,12 +175,13 @@ namespace DTXCreator 0x1A, 0x11, 0x12, 0x13, 0x14, 0x16, 0x53, 0x15, 0x17 // LC, HC, SD, BD, HT, CY, FI, LT, FT }; + private int nLastBarConverted = -1; // #25990 2011.8.12 yyagi BMS/BME→DTX変換用 + private IEnumerator eDTXbgmChs; // #25990 2011.8.12 yyagi BMS/BME→DTX変換用 +#endregion private Dictionary dic小節長倍率; private E種別 e種別; private List listチップパレット; private int nBGMWAV番号 = -1; - private int nLastBarConverted = -1; // #25990 2011.8.12 yyagi BMS/BME→DTX変換用 - private IEnumerator eDTXbgmChs; // #25990 2011.8.12 yyagi BMS/BME→DTX変換用 private void tDTX入力・BPMチップにBPx数値をバインドする() { @@ -739,9 +741,13 @@ namespace DTXCreator } if( strコマンド.Equals( "PANEL", StringComparison.OrdinalIgnoreCase ) ) { - CUndoRedo管理.bUndoRedoした直後 = true; - this._Form.textBoxパネル.Text = strパラメータ.Trim(); - return true; + int dummyResult; // #23885, #26007 2011.8.13 yyagi: not to confuse "#PANEL strings (panel)" and "#PANEL int (panpot of EL)" + if ( !int.TryParse( strパラメータ, out dummyResult ) ) // 数値じゃないならPANELとみなす + { + CUndoRedo管理.bUndoRedoした直後 = true; + this._Form.textBoxパネル.Text = strパラメータ.Trim(); + return true; + } // 数値なら、ここでは何もせず、後で#PANに拾ってもらう (PAN ELとみなす) } if( strコマンド.Equals( "PREVIEW", StringComparison.OrdinalIgnoreCase ) ) { diff --git a/DTXCreatorプロジェクト/コード/05.譜面/Cレーン.cs b/DTXCreatorプロジェクト/コード/05.譜面/Cレーン.cs index 89094859..1b5fced5 100644 --- a/DTXCreatorプロジェクト/コード/05.譜面/Cレーン.cs +++ b/DTXCreatorプロジェクト/コード/05.譜面/Cレーン.cs @@ -26,7 +26,7 @@ namespace DTXCreator.譜面 BsW } - public bool b右側の線が太線; + public bool b左側の線が太線; public Color col背景色 = Color.Black; public E種別 eレーン種別 = E種別.WAV; public int nチャンネル番号・表00toFF; @@ -36,10 +36,67 @@ namespace DTXCreator.譜面 public int n位置Xdot; public int n幅dot = 30; public string strレーン名 = ""; + public int nGroupNo; + public bool bIsVisible; + + + /// + /// コンストラクタ + /// + public Cレーン() + { + this.eレーン種別 = E種別.WAV; + this.strレーン名 = ""; + this.nチャンネル番号・表00toFF = 0; + this.nチャンネル番号・裏00toFF = 0; + this.b左側の線が太線 = false; + this.col背景色 = Color.FromArgb(0, 0, 0, 0); + this.n位置Xdot = 0; + this.n幅dot = 30; + this.nGroupNo = 0; + this.bIsVisible = true; + } + + /// + /// コンストラクタ(初期化用) + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + public Cレーン( + E種別 eレーン種別_, string strレーン名_, + int nチャンネル番号・表00toFF_, int nチャンネル番号・裏00toFF_, +// int nレーン割付チップ・表0or1to1295_, int nレーン割付チップ・裏0or1to1295_, + bool b左側の線が太線_, + Color col背景色_, + int n位置Xdot_, int n幅dot_, + int nGroupNo_, + bool bIsVisible_ ) + { + this.eレーン種別 = eレーン種別_; + this.strレーン名 = strレーン名_; + this.nチャンネル番号・表00toFF = nチャンネル番号・表00toFF_; + this.nチャンネル番号・裏00toFF = nチャンネル番号・裏00toFF_; +// this.nレーン割付チップ・表0or1to1295 = nレーン割付チップ・表0or1to1295_; +// this.nレーン割付チップ・裏0or1to1295 = nレーン割付チップ・裏0or1to1295_; + this.b左側の線が太線 = b左側の線が太線_; + this.col背景色 = col背景色_; + this.n位置Xdot = n位置Xdot_; + this.n幅dot = n幅dot_; + this.nGroupNo = nGroupNo_; + this.bIsVisible = bIsVisible_; + } public bool bパターンレーンである() { - if( ( ( ( this.eレーン種別 != E種別.GtR ) && ( this.eレーン種別 != E種別.GtG ) ) && ( ( this.eレーン種別 != E種別.GtB ) && ( this.eレーン種別 != E種別.BsR ) ) ) && ( ( this.eレーン種別 != E種別.BsG ) && ( this.eレーン種別 != E種別.BsB ) ) ) + if( ( this.eレーン種別 != E種別.GtR ) && ( this.eレーン種別 != E種別.GtG ) && ( this.eレーン種別 != E種別.GtB ) && ( this.eレーン種別 != E種別.BsR ) && ( this.eレーン種別 != E種別.BsG ) && ( this.eレーン種別 != E種別.BsB ) ) { return false; } -- 2.11.0