2 using System.Collections.Generic;
\r
4 using System.Runtime.InteropServices;
\r
5 using System.Drawing;
\r
11 internal class CAct演奏Drumsグラフ : CActivity
\r
15 public double dbグラフ値
\r
19 return this.dbグラフ値現在;
\r
23 this.dbグラフ値現在 = value;
\r
26 public double dbグラフ値2
\r
30 return this.dbグラフ値目標;
\r
34 this.dbグラフ値目標 = value;
\r
40 public CAct演奏Drumsグラフ()
\r
42 base.b活性化してない = true;
\r
48 public override void On活性化()
\r
50 this.dbグラフ値目標 = 80f;
\r
54 public override void On非活性化()
\r
58 public override void OnManagedリソースの作成()
\r
60 if( !base.b活性化してない )
\r
62 this.txグラフ = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Z_GraphTest.png"));
\r
63 base.OnManagedリソースの作成();
\r
66 public override void OnManagedリソースの解放()
\r
68 if( !base.b活性化してない )
\r
70 CDTXMania.tテクスチャの解放( ref this.txグラフ );
\r
71 base.OnManagedリソースの解放();
\r
74 public override int On進行描画()
\r
76 if( !base.b活性化してない )
\r
78 if( base.b初めての進行描画 )
\r
80 base.b初めての進行描画 = false;
\r
83 if (this.txグラフ != null)
\r
85 this.txグラフ.n透明度 = 128;
\r
86 this.txグラフ.vc拡大縮小倍率 = new Vector3(38f, 230f, 1f);
\r
88 Rectangle rectangle = new Rectangle(22, 0, 1, 1);
\r
89 this.txグラフ.t2D描画(CDTXMania.app.Device, 345, 88, rectangle);
\r
92 if (this.txグラフ != null)
\r
94 this.txグラフ.n透明度 = 192;
\r
95 this.txグラフ.vc拡大縮小倍率 = new Vector3(38f, 1f, 1f);
\r
97 for (int i = 0; i < 4; i++)
\r
100 if (this.dbグラフ値現在 >= (100 - i * 10))
\r
102 rectangle = new Rectangle(21, 0, 1, 1);
\r
106 rectangle = new Rectangle(20, 0, 1, 1);
\r
108 this.txグラフ.t2D描画(CDTXMania.app.Device, 345, 88+i*23, rectangle);
\r
113 if (this.txグラフ != null)
\r
115 this.txグラフ.n透明度 = 192;
\r
116 this.txグラフ.vc拡大縮小倍率 = new Vector3(1f, 1f, 1f);
\r
118 rectangle = new Rectangle(0, 0, 10, (int)(230f * this.dbグラフ値現在 / 100));
\r
119 this.txグラフ.t2D描画(CDTXMania.app.Device, 350, 318 - (int)(230f * this.dbグラフ値現在 / 100), rectangle);
\r
120 if (dbグラフ値現在 >= dbグラフ値目標)
\r
122 this.txグラフ.vc拡大縮小倍率 = new Vector3(1.2f, 1f, 1f);
\r
123 this.txグラフ.n透明度 = 64;
\r
124 this.txグラフ.b加算合成 = true;
\r
125 this.txグラフ.t2D描画(CDTXMania.app.Device, 349, 318 - (int)(230f * this.dbグラフ値現在 / 100), rectangle);
\r
128 if (this.txグラフ != null)
\r
130 this.txグラフ.n透明度 = 192;
\r
131 this.txグラフ.vc拡大縮小倍率 = new Vector3(1f, 1f, 1f);
\r
132 this.txグラフ.b加算合成 = false;
\r
134 rectangle = new Rectangle(10, 0, 10, (int)(230f * this.dbグラフ値目標 / 100));
\r
135 this.txグラフ.t2D描画(CDTXMania.app.Device, 368, 318 - (int)(230f * this.dbグラフ値目標 / 100), rectangle);
\r
144 #region [ private ]
\r
146 private double dbグラフ値目標;
\r
147 private double dbグラフ値現在;
\r
148 private CTexture txグラフ;
\r
149 //-----------------
\r