• R/O
  • SSH
  • HTTPS

dtxmaniaxg-verk: Commit


Commit MetaInfo

Revision462 (tree)
Time2015-08-30 10:39:38
Authorron1120

Log Message

#xxxxx GITADORA風、曲決定画面でギターとベース譜面がある場合には両方に難易度画像を表示するようにした。
#xxxxx GITADORA風、曲決定画面でパート画像表示に対応。(7_Part.pngの画像は作成していない)
#xxxxx サブPCからのコミット実験。

Change Summary

Incremental Difference

--- branches/GITADORA風/DTXManiaプロジェクト/コード/ステージ/06.曲読み込み/CStage曲読み込み.cs (revision 461)
+++ branches/GITADORA風/DTXManiaプロジェクト/コード/ステージ/06.曲読み込み/CStage曲読み込み.cs (revision 462)
@@ -250,6 +250,7 @@
250250 this.tx背景 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_background.jpg" ) );
251251 this.txLevel = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_LevelNumber.png" ) );
252252 this.tx難易度パネル = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_Difficulty.png" ) );
253+ this.txパートパネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\6_Part.png"));
253254
254255 #region[ 曲名、アーティスト名テクスチャの生成 ]
255256 try
@@ -302,6 +303,7 @@
302303 CDTXMania.tテクスチャの解放( ref this.txタイトル );
303304 CDTXMania.tテクスチャの解放( ref this.txアーティスト );
304305 CDTXMania.tテクスチャの解放( ref this.tx難易度パネル );
306+ CDTXMania.tテクスチャの解放( ref this.txパートパネル );
305307 base.OnManagedリソースの解放();
306308 }
307309 }
@@ -409,85 +411,67 @@
409411 this.txアーティスト.t2D描画(CDTXMania.app.Device, 190, 360);
410412 }
411413
412- //this.txジャケット.Dispose();
413- if( this.tx難易度パネル != null )
414- this.tx難易度パネル.t2D描画( CDTXMania.app.Device, 191, 102, new Rectangle( 0, this.nIndex * 50, 262, 50 ) );
414+ int[] iPart = { 0, CDTXMania.ConfigIni.bIsSwappedGuitarBass ? 2 : 1, CDTXMania.ConfigIni.bIsSwappedGuitarBass ? 1 : 2 };
415415
416- if( CDTXMania.ConfigIni.bDrums有効 )
417- {
418- int i = 0;
416+ int j = 0;
417+ int k = 0;
418+ int DTXLevel = 0;
419+ double DTXLevelDeci = 0;
419420
420- int DTXLevel = cdtx.LEVEL[i];
421- double DTXLevelDeci = cdtx.LEVELDEC[i];
422-
423- if( CDTXMania.stage選曲.r確定されたスコア.譜面情報.b完全にCLASSIC譜面である[i] && !cdtx.b強制的にXG譜面にする )
424- {
425- this.t大文字表示(187, 152, string.Format("{0:00}", DTXLevel));
426- }
427- else
428- {
429- if (cdtx.LEVEL[i] > 99)
430- {
431- DTXLevel = cdtx.LEVEL[i] / 100;
432- DTXLevelDeci = cdtx.LEVEL[i] - (DTXLevel * 100);
433- }
434- else
435- {
436- DTXLevel = cdtx.LEVEL[i] / 10;
437- DTXLevelDeci = ((cdtx.LEVEL[i] - DTXLevel * 10) * 10) + cdtx.LEVELDEC[i];
438- }
439-
440- this.txLevel.t2D描画(CDTXMania.app.Device, 307, 243, new Rectangle(1000, 92, 30, 38));
441- this.t大文字表示(187, 152, string.Format("{0:0}", DTXLevel));
442- this.t大文字表示(357, 152, string.Format("{0:00}", DTXLevelDeci));
443- }
444- }
445-
446- if( CDTXMania.ConfigIni.bGuitar有効 )
421+ for (int i = 0; i < 3; i++)
447422 {
448- int i = 0;
449- int j = 0;
423+ j = iPart[i];
450424
451- if (CDTXMania.ConfigIni.bIsSwappedGuitarBass)
452- i = 1;
425+ DTXLevel = cdtx.LEVEL[j];
426+ DTXLevelDeci = cdtx.LEVELDEC[j];
453427
454- for (int k = 1; k < 3; k++)
428+ if ((CDTXMania.ConfigIni.bDrums有効 && i == 0) || (CDTXMania.ConfigIni.bGuitar有効 && i != 0))
455429 {
456- i++;
457430
458- if (i == 3)
459- i = 1;
460-
461- int DTXLevel = cdtx.LEVEL[i];
462- double DTXLevelDeci = cdtx.LEVELDEC[i];
463-
464431 if (DTXLevel != 0 || DTXLevelDeci != 0)
465432 {
466- if (CDTXMania.stage選曲.r確定されたスコア.譜面情報.b完全にCLASSIC譜面である[i] && !cdtx.b強制的にXG譜面にする)
433+ if (CDTXMania.stage選曲.r確定されたスコア.譜面情報.b完全にCLASSIC譜面である[j] && !cdtx.b強制的にXG譜面にする)
467434 {
468- this.t大文字表示(187 + j, 152, string.Format("{0:00}", DTXLevel));
435+ this.t大文字表示(187 + k, 152, string.Format("{0:00}", DTXLevel));
469436 }
470437 else
471438 {
472- if (cdtx.LEVEL[i] > 99)
439+ if (cdtx.LEVEL[j] > 99)
473440 {
474- DTXLevel = cdtx.LEVEL[i] / 100;
475- DTXLevelDeci = cdtx.LEVEL[i] - (DTXLevel * 100);
441+ DTXLevel = cdtx.LEVEL[j] / 100;
442+ DTXLevelDeci = cdtx.LEVEL[j] - (DTXLevel * 100);
476443 }
477444 else
478445 {
479- DTXLevel = cdtx.LEVEL[i] / 10;
480- DTXLevelDeci = ((cdtx.LEVEL[i] - DTXLevel * 10) * 10) + cdtx.LEVELDEC[i];
446+ DTXLevel = cdtx.LEVEL[j] / 10;
447+ DTXLevelDeci = ((cdtx.LEVEL[j] - DTXLevel * 10) * 10) + cdtx.LEVELDEC[j];
481448 }
482449
483- this.txLevel.t2D描画(CDTXMania.app.Device, 307 + j, 243, new Rectangle(1000, 92, 30, 38));
484- this.t大文字表示(187 + j, 152, string.Format("{0:0}", DTXLevel));
485- this.t大文字表示(357 + j, 152, string.Format("{0:00}", DTXLevelDeci));
450+ if (this.txパートパネル != null)
451+ this.txパートパネル.t2D描画(CDTXMania.app.Device, 191 + k, 52, new Rectangle(0, j * 50, 262, 50));
452+
453+ //this.txジャケット.Dispose();
454+ if (this.tx難易度パネル != null)
455+ this.tx難易度パネル.t2D描画(CDTXMania.app.Device, 191 + k, 102, new Rectangle(0, this.nIndex * 50, 262, 50));
456+
457+ this.txLevel.t2D描画(CDTXMania.app.Device, 307 + k, 243, new Rectangle(1000, 92, 30, 38));
458+ this.t大文字表示(187 + k, 152, string.Format("{0:0}", DTXLevel));
459+ this.t大文字表示(357 + k, 152, string.Format("{0:00}", DTXLevelDeci));
460+
486461 }
487462
488- j = 700;
463+ k = 700;
489464 }
490465 }
466+
467+ if (i == 2 && k == 0)
468+ {
469+ if (this.txパートパネル != null && CDTXMania.ConfigIni.bDrums有効)
470+ this.txパートパネル.t2D描画(CDTXMania.app.Device, 191, 52, new Rectangle(0, 0, 262, 50));
471+
472+ if (this.tx難易度パネル != null)
473+ this.tx難易度パネル.t2D描画(CDTXMania.app.Device, 191, 102, new Rectangle(0, this.nIndex * 50, 262, 50));
474+ }
491475 }
492476 //-----------------------------
493477 #endregion
@@ -698,6 +682,7 @@
698682 private CTexture txジャケット;
699683 private CTexture tx背景;
700684 private CTexture tx難易度パネル;
685+ private CTexture txパートパネル;
701686
702687 private CPrivateFastFont pfタイトル;
703688 private CPrivateFastFont pfアーティスト;
Show on old repository browser