Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/DTXManiaプロジェクト/コード/ステージ/08.結果/CActResultRank.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Sat Feb 16 12:17:56 2013 UTC (11 years, 1 month ago) by kairera0467
Original Path: trunk/trunk/DTXManiaプロジェクト/コード/ステージ/08.結果/CActResultRank.cs
File size: 3989 byte(s)


1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Drawing;
5 using SlimDX;
6 using FDK;
7
8 namespace DTXMania
9 {
10 internal class CActResultRank : CActivity
11 {
12 // コンストラクタ
13
14 public CActResultRank()
15 {
16 base.b活性化してない = true;
17 }
18
19
20 // メソッド
21
22 public void tアニメを完了させる()
23 {
24 this.ctランク表示.n現在の値 = this.ctランク表示.n終了値;
25 }
26
27
28 // CActivity 実装
29
30 public override void On活性化()
31 {
32 this.n本体X = 138;
33 this.n本体Y = 8;
34 base.On活性化();
35 }
36 public override void On非活性化()
37 {
38 if( this.ctランク表示 != null )
39 {
40 this.ctランク表示 = null;
41 }
42 base.On非活性化();
43 }
44 public override void OnManagedリソスの作成()
45 {
46 if( !base.b活性化してない )
47 {
48 switch ( CDTXMania.stage結果.n総合ランク値 )
49 {
50 case 0:
51 this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankSS.png" ) );
52 break;
53
54 case 1:
55 this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankS.png" ) );
56 break;
57
58 case 2:
59 this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankA.png" ) );
60 break;
61
62 case 3:
63 this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankB.png" ) );
64 break;
65
66 case 4:
67 this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankC.png" ) );
68 break;
69
70 case 5:
71 this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankD.png" ) );
72 break;
73
74 case 6:
75 case 99: // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす
76 this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankE.png"));
77 break;
78
79 default:
80 this.txランク文字 = null;
81 break;
82 }
83 base.OnManagedリソスの作成();
84 }
85 }
86 public override void OnManagedリソスの解放()
87 {
88 if( !base.b活性化してない )
89 {
90 CDTXMania.tテクスチャの解放( ref this.txランク文字 );
91 base.OnManagedリソスの解放();
92 }
93 }
94 public override int On進行描画()
95 {
96 if( base.b活性化してない )
97 {
98 return 0;
99 }
100 if( base.b初めての進行描画 )
101 {
102 this.ctランク表示 = new CCounter(0, 0x3e8, 2, CDTXMania.Timer);
103 base.b初めての進行描画 = false;
104 }
105 this.ctランク表示.t進行();
106 if( this.ctランク表示.n現在の値 >= 500 )
107 {
108 double num2 = ( (double) ( this.ctランク表示.n現在の値 - 500 ) ) / 500.0;
109 if (this.txランク文字 != null)
110 {
111 if (CDTXMania.ConfigIni.eNamePlate.Drums == Eタイプ.D)
112 {
113 this.txランク文字.t2D描画(CDTXMania.app.Device, 560, this.n本体Y, new Rectangle(0, 0, (int)((double)txランク文字.sz画像サイズ.Width * num2), this.txランク文字.sz画像サイズ.Height));
114 }
115 else
116 {
117 this.txランク文字.t2D描画(CDTXMania.app.Device, this.n本体X, this.n本体Y, new Rectangle(0, 0, (int)((double)txランク文字.sz画像サイズ.Width * num2), this.txランク文字.sz画像サイズ.Height));
118 }
119 }
120 }
121 if( !this.ctランク表示.b終了値に達した )
122 {
123 return 0;
124 }
125 return 1;
126 }
127
128
129 // その他
130
131 #region [ private ]
132 //-----------------
133 private CCounter ctランク表示;
134 private int n本体X;
135 private int n本体Y;
136 private CTexture txランク文字;
137 //-----------------
138 #endregion
139 }
140 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26