OSDN Git Service

動画クラスと動画デコーダクラスをマージしてリファクタ。
[strokestylet/CsWin10Desktop3.git] / StrokeStyleT / ステージ / 結果 / 結果ステージ.cs
index 6ad199a..4f411cc 100644 (file)
@@ -39,8 +39,8 @@ namespace SST.ステージ.結果
                {
                        FDK.Log.Info( "結果ステージを開始します。" );
 
-                       this.背景動画.ループ再生する = true;
                        this.現在のフェーズ = フェーズ.表示中;
+                       this.活性化した直後である = true;
                }
                protected override void On非活性化( デバイスリソース dr )
                {
@@ -50,6 +50,12 @@ namespace SST.ステージ.結果
                }
                public override void 進行描画する( デバイスリソース dr )
                {
+                       if( this.活性化した直後である )
+                       {
+                               this.背景動画.再生を開始する( 開始位置sec: 0.0, ループ再生する: true );
+                               this.活性化した直後である = false;
+                       }
+
                        // 進行描画。
 
                        this.背景動画.進行描画する( dr, new SharpDX.RectangleF( 0f, 0f, dr.設計画面サイズdpx.Width, dr.設計画面サイズdpx.Height ) );
@@ -90,6 +96,7 @@ namespace SST.ステージ.結果
                        }
                }
 
+               protected bool 活性化した直後である = false;
                protected readonly FDK.メディア.動画 背景動画;
                protected readonly FDK.メディア.画像 背景画像;
                protected readonly FDK.メディア.画像 結果表示パラメータパネル;