2 using System.Collections.Generic;
\r
4 using System.Drawing;
\r
5 using System.Diagnostics;
\r
10 internal class CActFIFOBlack : CActivity
\r
14 public void tフェードアウト開始()
\r
16 this.mode = EFIFOモード.フェードアウト;
\r
17 this.counter = new CCounter(0, 100, 5, CDTXMania.Instance.Timer);
\r
19 public void tフェードイン開始()
\r
21 this.mode = EFIFOモード.フェードイン;
\r
22 this.counter = new CCounter(0, 100, 5, CDTXMania.Instance.Timer);
\r
28 public override void On非活性化()
\r
32 TextureFactory.tテクスチャの解放(ref this.tx黒タイル64x64);
\r
36 public override void OnManagedリソースの作成()
\r
40 this.tx黒タイル64x64 = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\Tile black 64x64.png"), false);
\r
41 base.OnManagedリソースの作成();
\r
44 public override int On進行描画()
\r
46 if (base.b活性化してない || (this.counter == null))
\r
51 // Size clientSize = CDTXMania.Instance.app.Window.ClientSize; // #23510 2010.10.31 yyagi: delete as of no one use this any longer.
\r
52 if (this.tx黒タイル64x64 != null)
\r
54 this.tx黒タイル64x64.n透明度 = (this.mode == EFIFOモード.フェードイン) ? (((100 - this.counter.n現在の値) * 0xff) / 100) : ((this.counter.n現在の値 * 0xff) / 100);
\r
55 for (int i = 0; i <= (SampleFramework.GameWindowSize.Width / 64); i++) // #23510 2010.10.31 yyagi: change "clientSize.Width" to "640" to fix FIFO drawing size
\r
57 for (int j = 0; j <= (SampleFramework.GameWindowSize.Height / 64); j++) // #23510 2010.10.31 yyagi: change "clientSize.Height" to "480" to fix FIFO drawing size
\r
59 this.tx黒タイル64x64.t2D描画(CDTXMania.Instance.Device, i * 64, j * 64);
\r
63 if (this.counter.n現在の値 != 100)
\r
75 private CCounter counter;
\r
76 private EFIFOモード mode;
\r
77 private CTexture tx黒タイル64x64;
\r