OSDN Git Service

#36546 グラフで落ちる:グラフの初期値を入れておくことで暫定処置 画像もうまく表示されなかったため差し替え
authorikanick <ikanick@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 14 Aug 2016 11:25:41 +0000 (11:25 +0000)
committerikanick <ikanick@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 14 Aug 2016 11:25:41 +0000 (11:25 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@1030 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CAct演奏Drumsグラフ.cs
DTXManiaプロジェクト/コード/全体/Coordinates.cs
実行時フォルダ/System/Default/Graphics/ScreenPlay graph.png

index 78a131c..40f93f9 100644 (file)
@@ -99,117 +99,97 @@ namespace DTXMania
                                                        + CDTXMania.Instance.Coordinates.Instrument[inst].W;\r
                                                int gy = 0;\r
 \r
-                                               // 背景暗幕\r
                                                if (this.txグラフ != null)\r
                                                {\r
+                                                       // 背景暗幕\r
+                                                       this.txグラフ.n透明度 = 128;\r
                                                        this.txグラフ.vc拡大縮小倍率.X = CDTXMania.Instance.Coordinates.Graph[inst].W;\r
                                                        this.txグラフ.vc拡大縮小倍率.Y = CDTXMania.Instance.Coordinates.Graph[inst].H;\r
-\r
-                                                       this.txグラフ.n透明度 = 128;\r
                                                        this.txグラフ.t2D描画(CDTXMania.Instance.Device, gx, gy, new Rectangle(62, 0, 1, 1));\r
 \r
                                                        // 基準線\r
-\r
-                                                       this.txグラフ.n透明度 = 128;\r
                                                        this.txグラフ.vc拡大縮小倍率.X = CDTXMania.Instance.Coordinates.Graph[inst].W;\r
                                                        this.txグラフ.vc拡大縮小倍率.Y = 1f;\r
 \r
                                                        for (int i = 0; i < slices; i++)\r
                                                        {\r
-                                                               this.txグラフ.t2D描画(CDTXMania.Instance.Device,\r
-                                                                       gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H * i / slices, new Rectangle(60, 0, 1, 1));\r
-                                                       }\r
-\r
-                                                       for (int i = 0; i < 5; i++)\r
-                                                       {\r
-                                                               Rectangle rectangle;\r
-                                                               // 基準線を越えたら線が黄色くなる\r
-                                                               if (this.dbCurrent[inst] >= (100 - i * slices))\r
+                                                               if (this.dbCurrent[inst] < (100 - i * slices))\r
                                                                {\r
-                                                                       rectangle = new Rectangle(61, 0, 1, 1); //黄色\r
-                                                                       if (this.txグラフ != null)\r
-                                                                       {\r
-                                                                               this.txグラフ.n透明度 = 224;\r
-                                                                       }\r
+                                                                       // 通常の基準線(白)\r
+                                                                       this.txグラフ.n透明度 = 128;\r
+                                                                       this.txグラフ.t2D描画(CDTXMania.Instance.Device,\r
+                                                                               gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H * i / slices, new Rectangle(60, 0, 1, 1));\r
                                                                }\r
                                                                else\r
                                                                {\r
-                                                                       rectangle = new Rectangle(60, 0, 1, 1);\r
-                                                                       if (this.txグラフ != null)\r
-                                                                       {\r
-                                                                               this.txグラフ.n透明度 = 160;\r
-                                                                       }\r
-                                                               }\r
-\r
-                                                               if (this.txグラフ != null)\r
-                                                               {\r
-                                                                       this.txグラフ.t2D描画(\r
-                                                                               CDTXMania.Instance.Device,\r
-                                                                               gx, gy + i * CDTXMania.Instance.Coordinates.Graph[inst].H / slices,\r
-                                                                               rectangle\r
-                                                                               );\r
+                                                                       // 基準線を越えたら線が黄色くなる\r
+                                                                       this.txグラフ.n透明度 = 224;\r
+                                                                       this.txグラフ.t2D描画(CDTXMania.Instance.Device,\r
+                                                                               gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H * i / slices, new Rectangle(61, 0, 1, 1));\r
                                                                }\r
                                                        }\r
 \r
-                                                       // グラフ\r
+                                                       // グラフのゲージ部分\r
+\r
                                                        // --現在値\r
+                                                       this.txグラフ.vc拡大縮小倍率 = new Vector3(1f, 1f, 1f);\r
+\r
                                                        if (this.dbCurrentDisp[inst] < this.dbCurrent[inst])\r
                                                        {\r
                                                                this.dbCurrentDisp[inst] += (this.dbCurrent[inst] - this.dbCurrentDisp[inst]) / 5 + 0.01;\r
                                                        }\r
-                                                       if (this.dbCurrentDisp[inst] >= this.dbCurrent[inst])\r
+                                                       else\r
                                                        {\r
                                                                this.dbCurrentDisp[inst] = this.dbCurrent[inst];\r
                                                        }\r
                                                        int ar = (int)(CDTXMania.Instance.Coordinates.Graph[inst].H * this.dbCurrentDisp[inst] / 100.0);\r
 \r
-                                                       this.txグラフ.vc拡大縮小倍率 = new Vector3(1f, 1f, 1f);\r
-                                                       this.txグラフ.n透明度 = 255;\r
+                                                       this.txグラフ.n透明度 = 224;\r
                                                        this.txグラフ.t2D描画(\r
                                                                CDTXMania.Instance.Device,\r
                                                                gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,\r
                                                                new Rectangle(0, 5 + stYposInImg, 30, ar)\r
-                                                               );\r
+                                                       );\r
                                                        this.txグラフ.t2D描画( // 上部白いバー\r
                                                                CDTXMania.Instance.Device,\r
                                                                gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,\r
-                                                               new Rectangle(0, 0, 30, 5)\r
+                                                               new Rectangle(63 + 0, 0, 30, 5)\r
                                                        );\r
 \r
-                                                       // --現在値_目標越\r
+                                                       // 目標を超えた時に発光?させる\r
                                                        if ((dbCurrent[inst] >= dbTarget[inst]))\r
                                                        {\r
-                                                               // this.txグラフ.vc拡大縮小倍率 = new Vector3(1.4f, 1f, 1f);\r
                                                                this.txグラフ.n透明度 = 128;\r
                                                                this.txグラフ.b加算合成 = true;\r
                                                                this.txグラフ.t2D描画(\r
                                                                        CDTXMania.Instance.Device,\r
                                                                        gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,\r
                                                                        new Rectangle(0, 5 + stYposInImg, 30, ar)\r
-                                                                       );\r
+                                                               );\r
                                                                this.txグラフ.b加算合成 = false;\r
                                                        }\r
+\r
                                                        // --目標値\r
                                                        if (this.dbTargetDisp[inst] < this.dbTarget[inst])\r
                                                        {\r
                                                                this.dbTargetDisp[inst] += (this.dbTarget[inst] - this.dbTargetDisp[inst]) / 5 + 0.01;\r
                                                        }\r
-                                                       if (this.dbTargetDisp[inst] >= this.dbTarget[inst])\r
+                                                       else\r
                                                        {\r
                                                                this.dbTargetDisp[inst] = this.dbTarget[inst];\r
                                                        }\r
                                                        ar = (int)(CDTXMania.Instance.Coordinates.Graph[inst].H * this.dbTargetDisp[inst] / 100.0);\r
-\r
+                                                       \r
+                                                       this.txグラフ.n透明度 = 224;\r
                                                        this.txグラフ.t2D描画(\r
                                                                CDTXMania.Instance.Device,\r
                                                                gx + 30,\r
                                                                gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,\r
                                                                new Rectangle(30, 5 + stYposInImg, 30, ar)\r
-                                                               );\r
-                                                       this.txグラフ.n透明度 = 255;\r
+                                                       );\r
                                                        this.txグラフ.t2D描画( // 上部白いバー\r
                                                                CDTXMania.Instance.Device, gx + 30, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,\r
-                                                               new Rectangle(30, 0, 30, 5)\r
+                                                               new Rectangle(63 + 30, 0, 30, 5)\r
                                                        );\r
                                                }\r
                                        }\r
index eaf657f..00408dc 100644 (file)
@@ -342,6 +342,10 @@ namespace DTXMania.Coordinates
                        OptionPanelSelect.Drums = new CXY(1107, 23);\r
                        OptionPanelSelect.Guitar = new CXY(1107, 50);\r
                        OptionPanelSelect.Bass = new CXY(1107, 77);\r
+                       \r
+                       Graph.Drums = new CWH(62, 1080);\r
+                       Graph.Guitar = new CWH(62, 1080);\r
+                       Graph.Bass = new CWH(62, 1080);\r
 \r
                }\r
        }\r
index 530a470..54ef2c3 100644 (file)
Binary files a/実行時フォルダ/System/Default/Graphics/ScreenPlay graph.png and b/実行時フォルダ/System/Default/Graphics/ScreenPlay graph.png differ