Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by kairera0467, Sat Mar 23 12:44:17 2013 UTC revision 110 by kairera0467, Mon Jun 3 10:39:43 2013 UTC
# Line 50  namespace DTXMania Line 50  namespace DTXMania
50                  {                  {
51                          if( !base.b活性化してない )                          if( !base.b活性化してない )
52                          {                          {
53                                  switch ( CDTXMania.stage結果.n総合ランク値 )                  if (CDTXMania.ConfigIni.bDrums有効)
54                                  {                  {
55                                          case 0:                      switch (CDTXMania.stage結果.n総合ランク値)
56                                                  this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankSS.png" ) );                      {
57                                                  break;                          case 0:
58                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankSS.png"));
59                                          case 1:                              break;
60                                                  this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankS.png" ) );  
61                                                  break;                          case 1:
62                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankS.png"));
63                                          case 2:                              break;
64                                                  this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankA.png" ) );  
65                                                  break;                          case 2:
66                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankA.png"));
67                                          case 3:                              break;
68                                                  this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankB.png" ) );  
69                                                  break;                          case 3:
70                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankB.png"));
71                                          case 4:                              break;
72                                                  this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankC.png" ) );  
73                                                  break;                          case 4:
74                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankC.png"));
75                                          case 5:                              break;
76                                                  this.txランク文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\8_rankD.png" ) );  
77                                                  break;                          case 5:
78                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankD.png"));
79                                          case 6:                              break;
80                                          case 99:        // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす  
81                                                  this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankE.png"));                          case 6:
82                                                  break;                          case 99:        // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす
83                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankE.png"));
84                                          default:                              break;
85                                                  this.txランク文字 = null;  
86                                                  break;                          default:
87                                  }                              this.txランク文字 = null;
88                                break;
89                        }
90                    }
91                    else if (CDTXMania.ConfigIni.bDrums有効 == false && CDTXMania.ConfigIni.bGuitar有効 == true)
92                    {
93                        switch (CDTXMania.stage結果.nランク値.Guitar)
94                        {
95                            case 0:
96                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankSS.png"));
97                                break;
98    
99                            case 1:
100                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankS.png"));
101                                break;
102    
103                            case 2:
104                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankA.png"));
105                                break;
106    
107                            case 3:
108                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankB.png"));
109                                break;
110    
111                            case 4:
112                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankC.png"));
113                                break;
114    
115                            case 5:
116                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankD.png"));
117                                break;
118    
119                            case 6:
120                            case 99:        // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす
121                                this.txランク文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankE.png"));
122                                break;
123    
124                            default:
125                                this.txランク文字 = null;
126                                break;
127                        }
128                        switch (CDTXMania.stage結果.nランク値.Bass)
129                        {
130                            case 0:
131                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankSS.png"));
132                                break;
133    
134                            case 1:
135                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankS.png"));
136                                break;
137    
138                            case 2:
139                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankA.png"));
140                                break;
141    
142                            case 3:
143                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankB.png"));
144                                break;
145    
146                            case 4:
147                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankC.png"));
148                                break;
149    
150                            case 5:
151                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankD.png"));
152                                break;
153    
154                            case 6:
155                            case 99:        // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす
156                                this.txランク文字2P = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_rankE.png"));
157                                break;
158    
159                            default:
160                                this.txランク文字2P = null;
161                                break;
162                        }
163                    }
164                                  base.OnManagedリソースの作成();                                  base.OnManagedリソースの作成();
165                          }                          }
166                  }                  }
# Line 93  namespace DTXMania Line 169  namespace DTXMania
169                          if( !base.b活性化してない )                          if( !base.b活性化してない )
170                          {                          {
171                                  CDTXMania.tテクスチャの解放( ref this.txランク文字 );                                  CDTXMania.tテクスチャの解放( ref this.txランク文字 );
172                    CDTXMania.tテクスチャの解放( ref this.txランク文字2P );
173                                  base.OnManagedリソースの解放();                                  base.OnManagedリソースの解放();
174                          }                          }
175                  }                  }
# Line 113  namespace DTXMania Line 190  namespace DTXMania
190                                  double num2 = ( (double) ( this.ctランク表示.n現在の値 - 500 ) ) / 500.0;                                  double num2 = ( (double) ( this.ctランク表示.n現在の値 - 500 ) ) / 500.0;
191                  if (this.txランク文字 != null)                  if (this.txランク文字 != null)
192                  {                  {
193                      if (CDTXMania.ConfigIni.eNamePlate.Drums == Eタイプ.D)                      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));
194                      {                  }
195                          this.txランク文字.t2D描画(CDTXMania.app.Device, 560, this.n本体Y, new Rectangle(0, 0, (int)((double)txランク文字.sz画像サイズ.Width * num2), this.txランク文字.sz画像サイズ.Height));                  if ( this.txランク文字2P != null )
196                      }                  {
197                      else                      this.txランク文字2P.t2D描画(CDTXMania.app.Device, this.n本体X, this.n本体Y, new Rectangle(0, 0, (int)((double)txランク文字.sz画像サイズ.Width * num2), this.txランク文字.sz画像サイズ.Height));
                     {  
                         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));  
                     }  
198                  }                  }
199                          }                          }
200                          if( !this.ctランク表示.b終了値に達した )                          if( !this.ctランク表示.b終了値に達した )
# Line 139  namespace DTXMania Line 213  namespace DTXMania
213                  private int n本体X;                  private int n本体X;
214                  private int n本体Y;                  private int n本体Y;
215                  private CTexture txランク文字;                  private CTexture txランク文字;
216            private CTexture txランク文字2P;
217                  //-----------------                  //-----------------
218                  #endregion                  #endregion
219          }          }

Legend:
Removed from v.50  
changed lines
  Added in v.110

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