<Compile Include="ステージ\ユーザ\ユーザステージ.cs" />
<Compile Include="ステージ\曲読込\曲読込ステージ.cs" />
<Compile Include="ステージ\演奏\ヒットランク種別.cs" />
+ <Compile Include="ステージ\演奏\レーンフレーム.cs" />
<Compile Include="ステージ\演奏\動画表示パターン種別.cs" />
<Compile Include="ステージ\演奏\演奏ステージ.cs" />
<Compile Include="ステージ\演奏\表示レーン種別.cs" />
--- /dev/null
+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();
+ }
+}
public 演奏ステージ()
{
this.子リスト.Add( this._ステージ台 = new 画像( @"$(System)\images\ステージ台.png" ) );
+ this.子リスト.Add( this._レーンフレーム = new レーンフレーム() );
}
protected override void On活性化( デバイスリソース dr )
//----------------
#endregion
this._ステージ台.描画する( dr, 0f, 0f );
+ this._レーンフレーム.進行描画する( dr );
break;
case フェーズ.Failed:
private 画像 _ステージ台 = null;
+ private レーンフレーム _レーンフレーム = null;
+
private readonly object _スレッド間同期 = new object();