• R/O
  • SSH
  • HTTPS

dtxmaniaxg-verk: Commit


Commit MetaInfo

Revision466 (tree)
Zeit2015-09-06 00:27:47
Autorron1120

Log Message

#xxxxx 仮で組んだプログラムをコミットしていた分の差し替え。(外見的な違いはない)

Ändern Zusammenfassung

Diff

--- branches/GITADORA風/DTXManiaプロジェクト/コード/ステージ/05.選曲/CActSelectInformation.cs (revision 465)
+++ branches/GITADORA風/DTXManiaプロジェクト/コード/ステージ/05.選曲/CActSelectInformation.cs (revision 466)
@@ -36,13 +36,12 @@
3636 {
3737 if( !base.b活性化してない )
3838 {
39- string[,] infofiles = { // #25381 2011.6.4 yyagi
40- { @"Graphics\5_information.png", @"Graphics\5_information.png" },
41- { @"Graphics\5_informatione.png", @"Graphics\5_informatione.png" }
39+ string[] infofiles = { // #25381 2011.6.4 yyagi
40+ @"Graphics\5_information.png" ,
41+ @"Graphics\5_informatione.png"
4242 };
4343 int c = ( CultureInfo.CurrentCulture.TwoLetterISOLanguageName == "ja" ) ? 0 : 1;
44- this.txInfo[ 0 ] = CDTXMania.tテクスチャの生成( CSkin.Path( infofiles[ c, 0 ] ), false );
45- this.txInfo[ 1 ] = CDTXMania.tテクスチャの生成( CSkin.Path( infofiles[ c, 1 ] ), false );
44+ this.txInfo = CDTXMania.tテクスチャの生成( CSkin.Path( infofiles[ c ] ), false );
4645 base.OnManagedリソースの作成();
4746 }
4847 }
@@ -50,8 +49,7 @@
5049 {
5150 if( !base.b活性化してない )
5251 {
53- CDTXMania.tテクスチャの解放( ref this.txInfo[ 0 ] );
54- CDTXMania.tテクスチャの解放( ref this.txInfo[ 1 ] );
52+ CDTXMania.tテクスチャの解放( ref this.txInfo );
5553 base.OnManagedリソースの解放();
5654 }
5755 }
@@ -79,9 +77,9 @@
7977 {
8078 STINFO stinfo = this.stInfo[ this.n画像Index上 ];
8179 Rectangle rectangle = new Rectangle( stinfo.pt左上座標.X, stinfo.pt左上座標.Y + ( (int) ( 42.0 * n現在の割合 ) ), 240, Convert.ToInt32(42.0 * (1.0 - n現在の割合)) );
82- if( this.txInfo[ stinfo.nTexture番号 ] != null )
80+ if( this.txInfo != null )
8381 {
84- this.txInfo[ stinfo.nTexture番号 ].t2D描画( CDTXMania.app.Device, 4, 0, rectangle );
82+ this.txInfo.t2D描画( CDTXMania.app.Device, 4, 0, rectangle );
8583 }
8684 }
8785 if( this.n画像Index下 >= 0 )
@@ -88,9 +86,9 @@
8886 {
8987 STINFO stinfo = this.stInfo[ this.n画像Index下 ];
9088 Rectangle rectangle = new Rectangle( stinfo.pt左上座標.X, stinfo.pt左上座標.Y, 240, (int) ( 42.0 * n現在の割合 ) );
91- if( this.txInfo[ stinfo.nTexture番号 ] != null )
89+ if( this.txInfo != null )
9290 {
93- this.txInfo[ stinfo.nTexture番号 ].t2D描画( CDTXMania.app.Device, 4, 0 + ( (int) ( 42.0 * ( 1.0 - n現在の割合 ) ) ), rectangle );
91+ this.txInfo.t2D描画( CDTXMania.app.Device, 4, 0 + ( (int) ( 42.0 * ( 1.0 - n現在の割合 ) ) ), rectangle );
9492 }
9593 }
9694 }
@@ -98,9 +96,9 @@
9896 {
9997 STINFO stinfo = this.stInfo[ this.n画像Index下 ];
10098 Rectangle rectangle = new Rectangle( stinfo.pt左上座標.X, stinfo.pt左上座標.Y, 240, 42 );
101- if( this.txInfo[ stinfo.nTexture番号 ] != null )
99+ if( this.txInfo != null )
102100 {
103- this.txInfo[ stinfo.nTexture番号 ].t2D描画( CDTXMania.app.Device, 4, 0, rectangle );
101+ this.txInfo.t2D描画( CDTXMania.app.Device, 4, 0, rectangle );
104102 }
105103 }
106104 }
@@ -115,11 +113,9 @@
115113 [StructLayout( LayoutKind.Sequential )]
116114 private struct STINFO
117115 {
118- public int nTexture番号;
119116 public Point pt左上座標;
120- public STINFO( int nTexture番号, int x, int y )
117+ public STINFO( int x, int y )
121118 {
122- this.nTexture番号 = nTexture番号;
123119 this.pt左上座標 = new Point( x, y );
124120 }
125121 }
@@ -127,9 +123,17 @@
127123 private CCounter ctスクロール用;
128124 private int n画像Index下;
129125 private int n画像Index上;
130- private readonly STINFO[] stInfo = new STINFO[] { new STINFO(0, 0, 0 * 42), new STINFO(0, 0, 1 * 42), new STINFO(0, 0, 2 * 42), new STINFO(0, 0, 3 * 42), new STINFO(0, 0, 4 * 42), new STINFO(0, 0, 5 * 42), new STINFO(0, 0, 6 * 42), new STINFO(0, 0, 7 * 42) };
131-
132- private CTexture[] txInfo = new CTexture[ 2 ];
126+ private readonly STINFO[] stInfo = new STINFO[] {
127+ new STINFO(0, 0 * 42),
128+ new STINFO(0, 1 * 42),
129+ new STINFO(0, 2 * 42),
130+ new STINFO(0, 3 * 42),
131+ new STINFO(0, 4 * 42),
132+ new STINFO(0, 5 * 42),
133+ new STINFO(0, 6 * 42),
134+ new STINFO(0, 7 * 42)
135+ };
136+ private CTexture txInfo;
133137 //-----------------
134138 #endregion
135139 }
Show on old repository browser