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