public 編集モード(メインフォーム form) { this.Form = form; this.現在のチップカーソル領域 = new Rectangle(0, 0, 0, 0); // 現在のチップ種別番号の初期化。 this.dicレーン別現在のチップ種別番号 = new Dictionary <編集レーン種別, int>(); this.dicレーン別チップ種別バックアップ = new Dictionary <編集レーン種別, int>(); foreach (編集レーン種別 editLaneType in Enum.GetValues(typeof(編集レーン種別))) { this.dicレーン別現在のチップ種別番号[editLaneType] = 0; this.dicレーン別チップ種別バックアップ[editLaneType] = 0; } // レーン別チップ種別対応表の初期化。 // C譜面.dicチップ編集レーン対応表 を元にするので、譜面を先に生成してから編集モードを生成すること。 this.dicレーン別チップ種別対応表 = new Dictionary <編集レーン種別, List <チップ種別> >(); foreach (編集レーン種別 editLaneType in Enum.GetValues(typeof(編集レーン種別))) { this.dicレーン別チップ種別対応表[editLaneType] = new List <チップ種別>(); } foreach (var kvp in this.Form.譜面.dicチップ編集レーン対応表) { this.dicレーン別チップ種別対応表[kvp.Value].Add(kvp.Key); } }
public 譜面(メインフォーム form) { this.Form = form; // 初期化 this.SSTFormatScore = new スコア(); this.譜面表示下辺の譜面内絶対位置grid = 0; foreach (var kvp in this.dicレーン番号) { this.dicレーン番号逆引き.Add(kvp.Value, kvp.Key); } #region " 最初は10小節ほど用意しておく → 10小節目の先頭に Unknown チップを置くことで実現。" //----------------- this.SSTFormatScore.チップリスト.Add( new 描画用チップ() { チップ種別 = チップ種別.Unknown, 小節番号 = 9, // 0から数えて10番目の小節 = 009 小節解像度 = 1, 小節内位置 = 0, 譜面内絶対位置grid = 9 * this.Form.GRID_PER_PART, // 小節009の先頭位置 }); //----------------- #endregion }
public 編集モード(メインフォーム form) { this.Form = form; this.現在のチップカーソル領域 = new Rectangle(0, 0, 0, 0); // 現在のチップ種別番号の初期化。 this.dicレーン別現在のチップ種別番号 = new Dictionary <編集レーン種別, int>(); this.dicレーン別チップ種別バックアップ = new Dictionary <編集レーン種別, int>(); foreach (編集レーン種別 editLaneType in Enum.GetValues(typeof(編集レーン種別))) { this.dicレーン別現在のチップ種別番号[editLaneType] = 0; this.dicレーン別チップ種別バックアップ[editLaneType] = 0; } this.レーン別チップ種別対応表を初期化する(); }
public クリップボード(メインフォーム form) { this.Form = form; }
public 選択モード(メインフォーム form) { this.Form = form; }