OSDN Git Service

#34173 コンボ表示の画像テクスチャを最適化し、512x512のサイズに収まるようにした。その関係で、ほんの少しコンボ表示が小さくなっているが、違和感はないと思う。
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Tue, 12 Aug 2014 07:37:05 +0000 (07:37 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Tue, 12 Aug 2014 07:37:05 +0000 (07:37 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@765 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏Combo共通.cs
DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums.psd
DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums2.psd [new file with mode: 0644]
DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar.psd
DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar2.psd [new file with mode: 0644]
実行時フォルダ/DTXManiaGR.exe
実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-drums2.png [new file with mode: 0644]
実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-guitar2.png [new file with mode: 0644]

index e2ab79a..1372048 100644 (file)
@@ -121,14 +121,14 @@ namespace DTXMania
                protected enum EEvent { 非表示, 数値更新, 同一数値, ミス通知 }\r
                protected enum EMode { 非表示中, 進行表示中, 残像表示中 }\r
                protected const int nギターコンボのCOMBO文字の高さ = (int) ( 16 * Scale.Y );\r
-               protected const int nギターコンボのCOMBO文字の幅 = (int) ( 45 * Scale.X );\r
-               protected const int nギターコンボの高さ = (int) ( 35 * Scale.Y );\r
-               protected const int nギターコンボの幅 = (int) ( 23 * Scale.X );\r
+               protected const int nギターコンボのCOMBO文字の幅 = (int) ( 124 );\r
+               protected const int nギターコンボの高さ = (int) ( 78 );\r
+               protected const int nギターコンボの幅 = (int) ( 64 );\r
                protected const int nギターコンボの文字間隔 = (int) ( 1 * Scale.X );\r
                protected const int nドラムコンボのCOMBO文字の高さ = (int) ( 32 * Scale.Y );\r
-               protected const int nドラムコンボのCOMBO文字の幅 = (int) ( 90 * Scale.X );\r
-               protected const int nドラムコンボの高さ = (int) ( 70 * Scale.Y );\r
-               protected const int nドラムコンボの幅 = (int) ( 45 * Scale.X );\r
+               protected const int nドラムコンボのCOMBO文字の幅 = (int) 256;        //( 90 * Scale.X );\r
+               protected const int nドラムコンボの高さ = (int) ( 158 );\r
+               protected const int nドラムコンボの幅 = (int) ( 128 );\r
                protected const int nドラムコンボの文字間隔 = (int) ( 2 * Scale.X );\r
                protected int[] nジャンプ差分値 = new int[ 180 ];\r
                protected CSTATUS status;\r
@@ -285,9 +285,16 @@ namespace DTXMania
                                y += this.nジャンプ差分値[ nJump ];\r
 \r
                        if( this.txCOMBOドラム != null )\r
-                               this.txCOMBOドラム.t2D描画( CDTXMania.app.Device,\r
+                               this.txCOMBOドラム.t2D描画(\r
+                                       CDTXMania.app.Device,\r
                                        x, y,\r
-                                       new Rectangle( 0, (int) ( 140 * Scale.Y ), (int) ( 90 * Scale.X ), (int) ( 32 * Scale.Y ) ) );  // "COMBO" を表示。\r
+                                       new Rectangle(\r
+                                               256,\r
+                                               (int) 315,      //( 140 * Scale.Y ),\r
+                                               (int) 256,      //( 90 * Scale.X ),\r
+                                               (int) ( 32 * Scale.Y )\r
+                                       )\r
+                       );      // "COMBO" を表示。\r
 \r
                        // COMBO値を1の位から順に表示。\r
 \r
@@ -304,7 +311,12 @@ namespace DTXMania
                                {\r
                                        this.txCOMBOドラム.t2D描画( CDTXMania.app.Device,\r
                                                x, y,\r
-                                               new Rectangle( ( n位の数[ i ] % 5 ) * nドラムコンボの幅, ( n位の数[ i ] / 5 ) * nドラムコンボの高さ, nドラムコンボの幅, nドラムコンボの高さ ) );\r
+                                               new Rectangle(\r
+                                                       ( n位の数[ i ] % 4 ) * nドラムコンボの幅,\r
+                                                       ( n位の数[ i ] / 4 ) * nドラムコンボの高さ,\r
+                                                       nドラムコンボの幅,\r
+                                                       nドラムコンボの高さ )\r
+                                               );\r
                                }\r
                        }\r
                        //-----------------\r
@@ -382,9 +394,9 @@ namespace DTXMania
                                        x,\r
                                        y,\r
                                        new Rectangle(\r
-                                               0,\r
-                                               (int) ( 70 * Scale.Y ),\r
-                                               (int) ( 45 * Scale.X ),\r
+                                               128,\r
+                                               (int) ( 158 ),\r
+                                               (int) ( 124 ),\r
                                                (int) ( 16 * Scale.Y )\r
                                        )\r
                                ); \r
@@ -417,7 +429,13 @@ namespace DTXMania
                                                CDTXMania.app.Device,\r
                                                x - ( (int) ( ( ( f拡大率 - 1.0f ) * nギターコンボの幅 ) / 2.0f ) ),\r
                                                y - ( (int) ( ( ( f拡大率 - 1.0f ) * nギターコンボの高さ ) / 2.0f ) ),\r
-                                               new Rectangle( ( n位の数[ i ] % 5 ) * nギターコンボの幅, ( n位の数[ i ] / 5 ) * nギターコンボの高さ, nギターコンボの幅, nギターコンボの高さ ) );\r
+                                               new Rectangle(\r
+                                                       ( n位の数[ i ] % 4 ) * nギターコンボの幅,\r
+                                                       ( n位の数[ i ] / 4 ) * nギターコンボの高さ,\r
+                                                       nギターコンボの幅,\r
+                                                       nギターコンボの高さ\r
+                                               )\r
+                                       );\r
                                }\r
                                //-----------------\r
                                #endregion\r
@@ -456,8 +474,8 @@ namespace DTXMania
                        if( this.b活性化してない )\r
                                return;\r
 \r
-                       this.txCOMBOドラム = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\ScreenPlayDrums combo drums.png" ) );\r
-                       this.txCOMBOギター = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\ScreenPlayDrums combo guitar.png" ) );\r
+                       this.txCOMBOドラム = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\ScreenPlayDrums-combo-drums2.png" ) );\r
+                       this.txCOMBOギター = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\ScreenPlayDrums-combo-guitar2.png" ) );\r
 \r
                        base.OnManagedリソースの作成();\r
                }\r
index 7c2a5cd..7525df5 100644 (file)
Binary files a/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums.psd and b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums.psd differ
diff --git a/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums2.psd b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums2.psd
new file mode 100644 (file)
index 0000000..10668b7
Binary files /dev/null and b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo drums2.psd differ
index 792226a..c8c2db3 100644 (file)
Binary files a/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar.psd and b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar.psd differ
diff --git a/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar2.psd b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar2.psd
new file mode 100644 (file)
index 0000000..e6aaddc
Binary files /dev/null and b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums combo guitar2.psd differ
index 4109f15..404dc4d 100644 (file)
Binary files a/実行時フォルダ/DTXManiaGR.exe and b/実行時フォルダ/DTXManiaGR.exe differ
diff --git a/実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-drums2.png b/実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-drums2.png
new file mode 100644 (file)
index 0000000..8fd04ef
Binary files /dev/null and b/実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-drums2.png differ
diff --git a/実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-guitar2.png b/実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-guitar2.png
new file mode 100644 (file)
index 0000000..6ca2d7f
Binary files /dev/null and b/実行時フォルダ/System/Default/Graphics/ScreenPlayDrums-combo-guitar2.png differ