OSDN Git Service

レーンフレームを追加。
authorくまかみ工房 <kumakamikoubou@gmail.com>
Mon, 10 Apr 2017 06:37:57 +0000 (15:37 +0900)
committerくまかみ工房 <kumakamikoubou@gmail.com>
Mon, 10 Apr 2017 06:37:57 +0000 (15:37 +0900)
StrokeStyleT/StrokeStyleT.csproj
StrokeStyleT/ステージ/演奏/レーンフレーム.cs [new file with mode: 0644]
StrokeStyleT/ステージ/演奏/演奏ステージ.cs

index 3b452d1..4aadb7f 100644 (file)
@@ -98,6 +98,7 @@
     <Compile Include="ステージ\ユーザ\ユーザステージ.cs" />
     <Compile Include="ステージ\曲読込\曲読込ステージ.cs" />
     <Compile Include="ステージ\演奏\ヒットランク種別.cs" />
+    <Compile Include="ステージ\演奏\レーンフレーム.cs" />
     <Compile Include="ステージ\演奏\動画表示パターン種別.cs" />
     <Compile Include="ステージ\演奏\演奏ステージ.cs" />
     <Compile Include="ステージ\演奏\表示レーン種別.cs" />
diff --git a/StrokeStyleT/ステージ/演奏/レーンフレーム.cs b/StrokeStyleT/ステージ/演奏/レーンフレーム.cs
new file mode 100644 (file)
index 0000000..a18cc4a
--- /dev/null
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using FDK;
+using FDK.メディア;
+
+namespace SST.ステージ.演奏
+{
+       /// <summary>
+       ///             チップの背景であり、レーンを示すフレーム画像。
+       /// </summary>
+       class レーンフレーム : Activity
+       {
+               public float 左端位置dpx
+               {
+                       get
+                       {
+                               lock( this._スレッド間同期 )
+                               {
+                                       return this._左端位置dpx;
+                               }
+                       }
+                       set
+                       {
+                               lock( this._スレッド間同期 )
+                               {
+                                       this._左端位置dpx = value;
+                               }
+                       }
+               }
+
+               public float 高さdpx
+               {
+                       get
+                       {
+                               lock( this._スレッド間同期 )
+                               {
+                                       return this._高さdpx;
+                               }
+                       }
+                       set
+                       {
+                               lock( this._スレッド間同期 )
+                               {
+                                       this._高さdpx = value;
+                               }
+                       }
+               }
+
+
+               public レーンフレーム()
+               {
+                       this.子リスト.Add( this._レーンフレーム画像 = new 画像( @"$(System)\images\レーン.png" ) );
+               }
+
+               public void 進行描画する( デバイスリソース dr )
+               {
+                       lock( this._スレッド間同期 )
+                       {
+                               this._レーンフレーム画像.描画する( dr, this._左端位置dpx, 0f );
+                       }
+               }
+
+
+               private 画像 _レーンフレーム画像 = null;
+
+               private float _左端位置dpx = 619f;
+
+               private float _高さdpx = 1080f;
+
+               private readonly object _スレッド間同期 = new object();
+       }
+}
index e2a6f8b..5e3f7a9 100644 (file)
@@ -34,6 +34,7 @@ namespace SST.ステージ.演奏
                public 演奏ステージ()
                {
                        this.子リスト.Add( this._ステージ台 = new 画像( @"$(System)\images\ステージ台.png" ) );
+                       this.子リスト.Add( this._レーンフレーム = new レーンフレーム() );
                }
 
                protected override void On活性化( デバイスリソース dr )
@@ -182,6 +183,7 @@ namespace SST.ステージ.演奏
                                                //----------------
                                                #endregion
                                                this._ステージ台.描画する( dr, 0f, 0f );
+                                               this._レーンフレーム.進行描画する( dr );
                                                break;
 
                                        case フェーズ.Failed:
@@ -276,6 +278,8 @@ namespace SST.ステージ.演奏
 
                private 画像 _ステージ台 = null;
 
+               private レーンフレーム _レーンフレーム = null;
+
                private readonly object _スレッド間同期 = new object();