| 5 |
using System.Drawing; |
using System.Drawing; |
| 6 |
using System.Diagnostics; |
using System.Diagnostics; |
| 7 |
using System.IO; |
using System.IO; |
| 8 |
|
using DirectShowLib; |
| 9 |
using FDK; |
using FDK; |
| 10 |
|
|
| 11 |
namespace DTXMania |
namespace DTXMania |
| 223 |
if( !base.b活性化してない ) |
if( !base.b活性化してない ) |
| 224 |
{ |
{ |
| 225 |
this.tx背景 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_background.jpg" ), false ); |
this.tx背景 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_background.jpg" ), false ); |
| 226 |
|
if( File.Exists (CSkin.Path(@"Graphics\5_background.mp4"))) |
| 227 |
|
{ |
| 228 |
|
this.ds背景動画 = CDTXMania.t失敗してもスキップ可能なDirectShowを生成する( CSkin.Path(@"Graphics\5_background.mp4"), CDTXMania.app.WindowHandle, true ); |
| 229 |
|
} |
| 230 |
this.tx上部パネル = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_header panel.png" ), false ); |
this.tx上部パネル = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_header panel.png" ), false ); |
| 231 |
this.tx下部パネル = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_footer panel.png" ), false ); |
this.tx下部パネル = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_footer panel.png" ), false ); |
| 232 |
this.txコメントバー = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_comment bar.png" ), true ); |
this.txコメントバー = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_comment bar.png" ), true ); |
| 238 |
{ |
{ |
| 239 |
if( !base.b活性化してない ) |
if( !base.b活性化してない ) |
| 240 |
{ |
{ |
| 241 |
CDTXMania.t安全にDisposeする( ref this.r現在演奏中のスコアの背景動画 ); |
CDTXMania.t安全にDisposeする( ref this.ds背景動画 ); |
| 242 |
CDTXMania.tテクスチャの解放( ref this.tx背景 ); |
CDTXMania.tテクスチャの解放( ref this.tx背景 ); |
| 243 |
CDTXMania.tテクスチャの解放( ref this.tx上部パネル ); |
CDTXMania.tテクスチャの解放( ref this.tx上部パネル ); |
| 244 |
CDTXMania.tテクスチャの解放( ref this.tx下部パネル ); |
CDTXMania.tテクスチャの解放( ref this.tx下部パネル ); |
| 274 |
|
|
| 275 |
this.ct登場時アニメ用共通.t進行(); |
this.ct登場時アニメ用共通.t進行(); |
| 276 |
|
|
| 277 |
|
if( this.ds背景動画 != null ) |
| 278 |
|
{ |
| 279 |
|
this.ds背景動画.t現時点における最新のスナップイメージをTextureに転写する( this.tx背景 ); |
| 280 |
|
this.ds背景動画.t再生開始(); |
| 281 |
|
this.ds背景動画.MediaSeeking.GetPositions(out this.lDshowPosition, out this.lStopPosition); |
| 282 |
|
if (this.lDshowPosition == this.lStopPosition) |
| 283 |
|
{ |
| 284 |
|
this.ds背景動画.MediaSeeking.SetPositions( |
| 285 |
|
DsLong.FromInt64((long)(0)), |
| 286 |
|
AMSeekingSeekingFlags.AbsolutePositioning, |
| 287 |
|
0, |
| 288 |
|
AMSeekingSeekingFlags.NoPositioning); |
| 289 |
|
} |
| 290 |
|
} |
| 291 |
|
|
| 292 |
if( this.tx背景 != null ) |
if( this.tx背景 != null ) |
| 293 |
this.tx背景.t2D描画( CDTXMania.app.Device, 0, 0 ); |
this.tx背景.t2D描画( CDTXMania.app.Device, 0, 0 ); |
| 294 |
|
|
| 306 |
if( this.tx上部パネル != null ) |
if( this.tx上部パネル != null ) |
| 307 |
this.tx上部パネル.t2D描画( CDTXMania.app.Device, 0, y ); |
this.tx上部パネル.t2D描画( CDTXMania.app.Device, 0, y ); |
| 308 |
|
|
| 309 |
this.actInformation.On進行描画(); |
//this.actInformation.On進行描画(); |
| 310 |
if( this.tx下部パネル != null ) |
if( this.tx下部パネル != null ) |
| 311 |
this.tx下部パネル.t2D描画( CDTXMania.app.Device, 0, 720 - this.tx下部パネル.sz画像サイズ.Height ); |
this.tx下部パネル.t2D描画( CDTXMania.app.Device, 0, 720 - this.tx下部パネル.sz画像サイズ.Height ); |
| 312 |
|
|
| 318 |
this.txコメントバー.t2D描画(CDTXMania.app.Device, 484, 342); |
this.txコメントバー.t2D描画(CDTXMania.app.Device, 484, 342); |
| 319 |
} |
} |
| 320 |
this.actArtistComment.On進行描画(); |
this.actArtistComment.On進行描画(); |
| 321 |
this.actオプションパネル.On進行描画(); |
//this.actオプションパネル.On進行描画(); |
| 322 |
if ( this.txFLIP != null && CDTXMania.ConfigIni.bIsSwappedGuitarBass ) // #24063 2011.1.16 yyagi |
if ( this.txFLIP != null && CDTXMania.ConfigIni.bIsSwappedGuitarBass ) // #24063 2011.1.16 yyagi |
| 323 |
{ |
{ |
| 324 |
Rectangle rect = new Rectangle(0x1f, 0x31, 20, 11); |
Rectangle rect = new Rectangle(0x1f, 0x31, 20, 11); |
| 723 |
private CTexture tx上部パネル; |
private CTexture tx上部パネル; |
| 724 |
private CTexture tx背景; |
private CTexture tx背景; |
| 725 |
private CTexture txFLIP; |
private CTexture txFLIP; |
| 726 |
|
private CDirectShow ds背景動画; |
| 727 |
|
private long lDshowPosition; |
| 728 |
|
private long lStopPosition; |
| 729 |
|
|
| 730 |
private struct STCommandTime // #24063 2011.1.16 yyagi コマンド入力時刻の記録用 |
private struct STCommandTime // #24063 2011.1.16 yyagi コマンド入力時刻の記録用 |
| 731 |
{ |
{ |