#xxxxx GITADORA風、曲決定画面でギターとベース譜面がある場合には両方に難易度画像を表示するようにした。
#xxxxx GITADORA風、曲決定画面でパート画像表示に対応。(7_Part.pngの画像は作成していない)
#xxxxx サブPCからのコミット実験。
@@ -250,6 +250,7 @@ | ||
250 | 250 | this.tx背景 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_background.jpg" ) ); |
251 | 251 | this.txLevel = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_LevelNumber.png" ) ); |
252 | 252 | this.tx難易度パネル = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_Difficulty.png" ) ); |
253 | + this.txパートパネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\6_Part.png")); | |
253 | 254 | |
254 | 255 | #region[ 曲名、アーティスト名テクスチャの生成 ] |
255 | 256 | try |
@@ -302,6 +303,7 @@ | ||
302 | 303 | CDTXMania.tテクスチャの解放( ref this.txタイトル ); |
303 | 304 | CDTXMania.tテクスチャの解放( ref this.txアーティスト ); |
304 | 305 | CDTXMania.tテクスチャの解放( ref this.tx難易度パネル ); |
306 | + CDTXMania.tテクスチャの解放( ref this.txパートパネル ); | |
305 | 307 | base.OnManagedリソースの解放(); |
306 | 308 | } |
307 | 309 | } |
@@ -409,85 +411,67 @@ | ||
409 | 411 | this.txアーティスト.t2D描画(CDTXMania.app.Device, 190, 360); |
410 | 412 | } |
411 | 413 | |
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 }; | |
415 | 415 | |
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; | |
419 | 420 | |
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++) | |
447 | 422 | { |
448 | - int i = 0; | |
449 | - int j = 0; | |
423 | + j = iPart[i]; | |
450 | 424 | |
451 | - if (CDTXMania.ConfigIni.bIsSwappedGuitarBass) | |
452 | - i = 1; | |
425 | + DTXLevel = cdtx.LEVEL[j]; | |
426 | + DTXLevelDeci = cdtx.LEVELDEC[j]; | |
453 | 427 | |
454 | - for (int k = 1; k < 3; k++) | |
428 | + if ((CDTXMania.ConfigIni.bDrums有効 && i == 0) || (CDTXMania.ConfigIni.bGuitar有効 && i != 0)) | |
455 | 429 | { |
456 | - i++; | |
457 | 430 | |
458 | - if (i == 3) | |
459 | - i = 1; | |
460 | - | |
461 | - int DTXLevel = cdtx.LEVEL[i]; | |
462 | - double DTXLevelDeci = cdtx.LEVELDEC[i]; | |
463 | - | |
464 | 431 | if (DTXLevel != 0 || DTXLevelDeci != 0) |
465 | 432 | { |
466 | - if (CDTXMania.stage選曲.r確定されたスコア.譜面情報.b完全にCLASSIC譜面である[i] && !cdtx.b強制的にXG譜面にする) | |
433 | + if (CDTXMania.stage選曲.r確定されたスコア.譜面情報.b完全にCLASSIC譜面である[j] && !cdtx.b強制的にXG譜面にする) | |
467 | 434 | { |
468 | - this.t大文字表示(187 + j, 152, string.Format("{0:00}", DTXLevel)); | |
435 | + this.t大文字表示(187 + k, 152, string.Format("{0:00}", DTXLevel)); | |
469 | 436 | } |
470 | 437 | else |
471 | 438 | { |
472 | - if (cdtx.LEVEL[i] > 99) | |
439 | + if (cdtx.LEVEL[j] > 99) | |
473 | 440 | { |
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); | |
476 | 443 | } |
477 | 444 | else |
478 | 445 | { |
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]; | |
481 | 448 | } |
482 | 449 | |
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 | + | |
486 | 461 | } |
487 | 462 | |
488 | - j = 700; | |
463 | + k = 700; | |
489 | 464 | } |
490 | 465 | } |
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 | + } | |
491 | 475 | } |
492 | 476 | //----------------------------- |
493 | 477 | #endregion |
@@ -698,6 +682,7 @@ | ||
698 | 682 | private CTexture txジャケット; |
699 | 683 | private CTexture tx背景; |
700 | 684 | private CTexture tx難易度パネル; |
685 | + private CTexture txパートパネル; | |
701 | 686 | |
702 | 687 | private CPrivateFastFont pfタイトル; |
703 | 688 | private CPrivateFastFont pfアーティスト; |