• R/O
  • SSH
  • HTTPS

dtxmania: コミット


コミットメタ情報

リビジョン1030 (tree)
日時2016-08-14 20:25:41
作者ikanick

ログメッセージ

#36546 グラフで落ちる:グラフの初期値を入れておくことで暫定処置 画像もうまく表示されなかったため差し替え

変更サマリ

差分

--- trunk/DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CAct演奏Drumsグラフ.cs (revision 1029)
+++ trunk/DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CAct演奏Drumsグラフ.cs (revision 1030)
@@ -99,87 +99,66 @@
9999 + CDTXMania.Instance.Coordinates.Instrument[inst].W;
100100 int gy = 0;
101101
102- // 背景暗幕
103102 if (this.txグラフ != null)
104103 {
104+ // 背景暗幕
105+ this.txグラフ.n透明度 = 128;
105106 this.txグラフ.vc拡大縮小倍率.X = CDTXMania.Instance.Coordinates.Graph[inst].W;
106107 this.txグラフ.vc拡大縮小倍率.Y = CDTXMania.Instance.Coordinates.Graph[inst].H;
107-
108- this.txグラフ.n透明度 = 128;
109108 this.txグラフ.t2D描画(CDTXMania.Instance.Device, gx, gy, new Rectangle(62, 0, 1, 1));
110109
111110 // 基準線
112-
113- this.txグラフ.n透明度 = 128;
114111 this.txグラフ.vc拡大縮小倍率.X = CDTXMania.Instance.Coordinates.Graph[inst].W;
115112 this.txグラフ.vc拡大縮小倍率.Y = 1f;
116113
117114 for (int i = 0; i < slices; i++)
118115 {
119- this.txグラフ.t2D描画(CDTXMania.Instance.Device,
120- gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H * i / slices, new Rectangle(60, 0, 1, 1));
121- }
122-
123- for (int i = 0; i < 5; i++)
124- {
125- Rectangle rectangle;
126- // 基準線を越えたら線が黄色くなる
127- if (this.dbCurrent[inst] >= (100 - i * slices))
116+ if (this.dbCurrent[inst] < (100 - i * slices))
128117 {
129- rectangle = new Rectangle(61, 0, 1, 1); //黄色
130- if (this.txグラフ != null)
131- {
132- this.txグラフ.n透明度 = 224;
133- }
118+ // 通常の基準線(白)
119+ this.txグラフ.n透明度 = 128;
120+ this.txグラフ.t2D描画(CDTXMania.Instance.Device,
121+ gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H * i / slices, new Rectangle(60, 0, 1, 1));
134122 }
135123 else
136124 {
137- rectangle = new Rectangle(60, 0, 1, 1);
138- if (this.txグラフ != null)
139- {
140- this.txグラフ.n透明度 = 160;
141- }
125+ // 基準線を越えたら線が黄色くなる
126+ this.txグラフ.n透明度 = 224;
127+ this.txグラフ.t2D描画(CDTXMania.Instance.Device,
128+ gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H * i / slices, new Rectangle(61, 0, 1, 1));
142129 }
143-
144- if (this.txグラフ != null)
145- {
146- this.txグラフ.t2D描画(
147- CDTXMania.Instance.Device,
148- gx, gy + i * CDTXMania.Instance.Coordinates.Graph[inst].H / slices,
149- rectangle
150- );
151- }
152130 }
153131
154- // グラフ
132+ // グラフのゲージ部分
133+
155134 // --現在値
135+ this.txグラフ.vc拡大縮小倍率 = new Vector3(1f, 1f, 1f);
136+
156137 if (this.dbCurrentDisp[inst] < this.dbCurrent[inst])
157138 {
158139 this.dbCurrentDisp[inst] += (this.dbCurrent[inst] - this.dbCurrentDisp[inst]) / 5 + 0.01;
159140 }
160- if (this.dbCurrentDisp[inst] >= this.dbCurrent[inst])
141+ else
161142 {
162143 this.dbCurrentDisp[inst] = this.dbCurrent[inst];
163144 }
164145 int ar = (int)(CDTXMania.Instance.Coordinates.Graph[inst].H * this.dbCurrentDisp[inst] / 100.0);
165146
166- this.txグラフ.vc拡大縮小倍率 = new Vector3(1f, 1f, 1f);
167- this.txグラフ.n透明度 = 255;
147+ this.txグラフ.n透明度 = 224;
168148 this.txグラフ.t2D描画(
169149 CDTXMania.Instance.Device,
170150 gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,
171151 new Rectangle(0, 5 + stYposInImg, 30, ar)
172- );
152+ );
173153 this.txグラフ.t2D描画( // 上部白いバー
174154 CDTXMania.Instance.Device,
175155 gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,
176- new Rectangle(0, 0, 30, 5)
156+ new Rectangle(63 + 0, 0, 30, 5)
177157 );
178158
179- // --現在値_目標越
159+ // 目標を超えた時に発光?させる
180160 if ((dbCurrent[inst] >= dbTarget[inst]))
181161 {
182- // this.txグラフ.vc拡大縮小倍率 = new Vector3(1.4f, 1f, 1f);
183162 this.txグラフ.n透明度 = 128;
184163 this.txグラフ.b加算合成 = true;
185164 this.txグラフ.t2D描画(
@@ -186,30 +165,31 @@
186165 CDTXMania.Instance.Device,
187166 gx, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,
188167 new Rectangle(0, 5 + stYposInImg, 30, ar)
189- );
168+ );
190169 this.txグラフ.b加算合成 = false;
191170 }
171+
192172 // --目標値
193173 if (this.dbTargetDisp[inst] < this.dbTarget[inst])
194174 {
195175 this.dbTargetDisp[inst] += (this.dbTarget[inst] - this.dbTargetDisp[inst]) / 5 + 0.01;
196176 }
197- if (this.dbTargetDisp[inst] >= this.dbTarget[inst])
177+ else
198178 {
199179 this.dbTargetDisp[inst] = this.dbTarget[inst];
200180 }
201181 ar = (int)(CDTXMania.Instance.Coordinates.Graph[inst].H * this.dbTargetDisp[inst] / 100.0);
202-
182+
183+ this.txグラフ.n透明度 = 224;
203184 this.txグラフ.t2D描画(
204185 CDTXMania.Instance.Device,
205186 gx + 30,
206187 gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,
207188 new Rectangle(30, 5 + stYposInImg, 30, ar)
208- );
209- this.txグラフ.n透明度 = 255;
189+ );
210190 this.txグラフ.t2D描画( // 上部白いバー
211191 CDTXMania.Instance.Device, gx + 30, gy + CDTXMania.Instance.Coordinates.Graph[inst].H - ar,
212- new Rectangle(30, 0, 30, 5)
192+ new Rectangle(63 + 30, 0, 30, 5)
213193 );
214194 }
215195 }
--- trunk/DTXManiaプロジェクト/コード/全体/Coordinates.cs (revision 1029)
+++ trunk/DTXManiaプロジェクト/コード/全体/Coordinates.cs (revision 1030)
@@ -342,6 +342,10 @@
342342 OptionPanelSelect.Drums = new CXY(1107, 23);
343343 OptionPanelSelect.Guitar = new CXY(1107, 50);
344344 OptionPanelSelect.Bass = new CXY(1107, 77);
345+
346+ Graph.Drums = new CWH(62, 1080);
347+ Graph.Guitar = new CWH(62, 1080);
348+ Graph.Bass = new CWH(62, 1080);
345349
346350 }
347351 }
旧リポジトリブラウザで表示