DTXManiaXG(Ver.K)4.00Series
修訂 | 199dcc2a7510ee3d89d3d729453f64cac26d78be (tree) |
---|---|
時間 | 2016-09-11 17:36:14 |
作者 | ![]() |
Commiter | kairera0467 |
#36635 ドラム画面のRISKY数字の座標を調整。
#xxxxx (作業部屋50636)オート時にハイスコアによってScoreIniを更新しないよう修正。
#xxxxx ステータスパネルの曲名文字のPrivateFont移行前のコード削除。
#xxxxx CAct演奏Drumsスコア.csのインデント
@@ -43,7 +43,7 @@ | ||
43 | 43 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
44 | 44 | <DebugSymbols>true</DebugSymbols> |
45 | 45 | <OutputPath>bin\x86\Debug\</OutputPath> |
46 | - <DefineConstants>TRACE;_TEST_ENGLISH TEST_Direct3D9Ex_ WindowedFullscreen animetest</DefineConstants> | |
46 | + <DefineConstants>DEBUG;TRACE;_TEST_ENGLISH TEST_Direct3D9Ex_ WindowedFullscreen animetest</DefineConstants> | |
47 | 47 | <DebugType>full</DebugType> |
48 | 48 | <PlatformTarget>x86</PlatformTarget> |
49 | 49 | <ErrorReport>prompt</ErrorReport> |
@@ -21,7 +21,6 @@ namespace DTXMania | ||
21 | 21 | this.pfSongTitleFont = new CPrivateFastFont( new FontFamily( CDTXMania.ConfigIni.str選曲リストフォント ), 20, FontStyle.Regular ); |
22 | 22 | this.pfNameFont = new CPrivateFastFont( new FontFamily( "Arial" ), 24, FontStyle.Bold ); |
23 | 23 | this.ftGroupFont = new Font( "DFG平成ゴシック体W5", 16f, FontStyle.Regular, GraphicsUnit.Pixel ); |
24 | - this.ftDisplayFont = new Font( "DFG平成ゴシック体W5", 20f, FontStyle.Regular, GraphicsUnit.Pixel ); | |
25 | 24 | this.ftLevelFont = new Font( "Impact", 26f, FontStyle.Regular ); |
26 | 25 | this.ftDifficultyL = new Font( "Arial", 30f, FontStyle.Bold ); |
27 | 26 | this.ftDifficultyS = new Font( "Arial", 20f, FontStyle.Bold ); |
@@ -485,7 +484,6 @@ namespace DTXMania | ||
485 | 484 | private CPrivateFastFont pfNameFont; |
486 | 485 | private Font ftDifficultyL; |
487 | 486 | private Font ftDifficultyS; |
488 | - private Font ftDisplayFont; | |
489 | 487 | private Font ftGroupFont; |
490 | 488 | private Font ftLevelFont; |
491 | 489 | private string[] strGroupName; |
@@ -399,7 +399,6 @@ namespace DTXMania | ||
399 | 399 | { |
400 | 400 | Rectangle bgrect = new Rectangle( 640 - ( 278 / 2 ), 0, 278, 355 ); |
401 | 401 | string DefaultBgFilename = @"Graphics\7_background Guitar.png"; |
402 | - string DefaultLaneFilename = ""; | |
403 | 402 | string BgFilename = ""; |
404 | 403 | string BACKGROUND = null; |
405 | 404 | if ( ( CDTXMania.DTX.BACKGROUND_GR != null ) && ( CDTXMania.DTX.BACKGROUND_GR.Length > 0 ) ) |
@@ -100,7 +100,7 @@ namespace DTXMania | ||
100 | 100 | { |
101 | 101 | CActLVLNFont.EFontColor efc = this.IsDanger( E楽器パート.DRUMS ) ? |
102 | 102 | CActLVLNFont.EFontColor.Red : CActLVLNFont.EFontColor.Yellow; |
103 | - actLVLNFont.t文字列描画( (int) ( 12 * Scale.X ), (int) ( 408 * Scale.Y ), nRiskyTimes.ToString(), efc, CActLVLNFont.EFontAlign.Right ); | |
103 | + actLVLNFont.t文字列描画( 262, 668, nRiskyTimes.ToString(), efc, CActLVLNFont.EFontAlign.Right ); | |
104 | 104 | } |
105 | 105 | #endregion |
106 | 106 | } |
@@ -10,32 +10,32 @@ namespace DTXMania | ||
10 | 10 | // CActivity 実装(共通クラスからの差分のみ) |
11 | 11 | |
12 | 12 | public override unsafe int On進行描画() |
13 | - { | |
14 | - if (!base.b活性化してない) | |
15 | 13 | { |
16 | - if (base.b初めての進行描画) | |
14 | + if (!base.b活性化してない) | |
17 | 15 | { |
18 | - base.n進行用タイマ = FDK.CSound管理.rc演奏用タイマ.n現在時刻; | |
19 | - base.b初めての進行描画 = false; | |
20 | - } | |
21 | - long num = FDK.CSound管理.rc演奏用タイマ.n現在時刻; | |
22 | - if (num < base.n進行用タイマ) | |
23 | - { | |
24 | - base.n進行用タイマ = num; | |
25 | - } | |
26 | - while ((num - base.n進行用タイマ) >= 10) | |
27 | - { | |
28 | - for (int j = 0; j < 3; j++) | |
16 | + if (base.b初めての進行描画) | |
17 | + { | |
18 | + base.n進行用タイマ = FDK.CSound管理.rc演奏用タイマ.n現在時刻; | |
19 | + base.b初めての進行描画 = false; | |
20 | + } | |
21 | + long num = FDK.CSound管理.rc演奏用タイマ.n現在時刻; | |
22 | + if (num < base.n進行用タイマ) | |
23 | + { | |
24 | + base.n進行用タイマ = num; | |
25 | + } | |
26 | + while ((num - base.n進行用タイマ) >= 10) | |
29 | 27 | { |
30 | - this.n現在表示中のスコア[j] += this.nスコアの増分[j]; | |
28 | + for (int j = 0; j < 3; j++) | |
29 | + { | |
30 | + this.n現在表示中のスコア[j] += this.nスコアの増分[j]; | |
31 | 31 | |
32 | - if (this.n現在表示中のスコア[j] > (long) this.n現在の本当のスコア[j]) | |
33 | - this.n現在表示中のスコア[j] = (long) this.n現在の本当のスコア[j]; | |
32 | + if (this.n現在表示中のスコア[j] > (long) this.n現在の本当のスコア[j]) | |
33 | + this.n現在表示中のスコア[j] = (long) this.n現在の本当のスコア[j]; | |
34 | + } | |
35 | + base.n進行用タイマ += 10; | |
34 | 36 | } |
35 | - base.n進行用タイマ += 10; | |
36 | 37 | } |
38 | + return 0; | |
37 | 39 | } |
38 | - return 0; | |
39 | - } | |
40 | 40 | } |
41 | 41 | } |
@@ -20,8 +20,7 @@ namespace DTXMania | ||
20 | 20 | //if( true ) |
21 | 21 | // return; |
22 | 22 | |
23 | - this.ftDisplayFont = new Font( "DFG平成ゴシック体W5" , 22f, FontStyle.Regular, GraphicsUnit.Pixel ); | |
24 | - this.ftGroupFont = new Font( "DFG平成ゴシック体W5" , 16f, FontStyle.Regular, GraphicsUnit.Pixel ); | |
23 | + this.ftGroupFont = new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16f, FontStyle.Regular, GraphicsUnit.Pixel ); | |
25 | 24 | this.ftLevelFont = new Font( "Impact", 26f, FontStyle.Regular ); |
26 | 25 | this.ftDifficultyL = new Font( "Arial", 30f, FontStyle.Bold ); |
27 | 26 | this.ftDifficultyS = new Font( "Arial", 20f, FontStyle.Bold ); |
@@ -94,7 +93,6 @@ namespace DTXMania | ||
94 | 93 | |
95 | 94 | this.strPlayerName = string.IsNullOrEmpty( CDTXMania.ConfigIni.strCardName[0] ) ? "GUEST" : CDTXMania.ConfigIni.strCardName[0]; |
96 | 95 | this.strGroupName = string.IsNullOrEmpty( CDTXMania.ConfigIni.strGroupName[0] ) ? "" : CDTXMania.ConfigIni.strGroupName[0]; |
97 | - this.nStrlengthbydot = (int)gNamePlate.MeasureString(this.strPanelString, this.ftDisplayFont).Width; | |
98 | 96 | gNamePlate.Dispose(); |
99 | 97 | |
100 | 98 | this.bNamePlate = new Bitmap( 0x170, 0x103 ); |
@@ -329,10 +327,10 @@ namespace DTXMania | ||
329 | 327 | CDTXMania.t安全にDisposeする( ref this.iPart ); |
330 | 328 | |
331 | 329 | //ここで使用したフォント3つはここで開放。 |
332 | - this.ftLevelFont.Dispose(); | |
333 | - this.ftDisplayFont.Dispose(); | |
334 | - this.pfNameFont.Dispose(); | |
335 | - this.pfSongTitleFont.Dispose(); | |
330 | + CDTXMania.t安全にDisposeする( ref this.ftLevelFont ); | |
331 | + CDTXMania.t安全にDisposeする( ref this.pfNameFont ); | |
332 | + CDTXMania.t安全にDisposeする( ref this.pfSongTitleFont ); | |
333 | + | |
336 | 334 | base.OnManagedリソースの作成(); |
337 | 335 | } |
338 | 336 | } |
@@ -348,12 +346,12 @@ namespace DTXMania | ||
348 | 346 | CDTXMania.t安全にDisposeする( ref this.iRisky ); |
349 | 347 | CDTXMania.t安全にDisposeする( ref this.iDrumspeed ); |
350 | 348 | |
351 | - this.ftDifficultyS.Dispose(); | |
352 | - this.ftDifficultyL.Dispose(); | |
353 | - this.ftDisplayFont.Dispose(); | |
354 | - this.ftLevelFont.Dispose(); | |
355 | - this.pfNameFont.Dispose(); | |
356 | - pfSongTitleFont.Dispose(); | |
349 | + CDTXMania.t安全にDisposeする( ref this.ftDifficultyS ); | |
350 | + CDTXMania.t安全にDisposeする( ref this.ftDifficultyL ); | |
351 | + CDTXMania.t安全にDisposeする( ref this.ftLevelFont ); | |
352 | + CDTXMania.t安全にDisposeする( ref this.pfNameFont ); | |
353 | + CDTXMania.t安全にDisposeする( ref this.pfSongTitleFont ); | |
354 | + | |
357 | 355 | base.OnManagedリソースの解放(); |
358 | 356 | } |
359 | 357 | } |
@@ -523,7 +521,6 @@ namespace DTXMania | ||
523 | 521 | private Bitmap bNamePlate; |
524 | 522 | private Font ftDifficultyL; |
525 | 523 | private Font ftDifficultyS; |
526 | - private Font ftDisplayFont; | |
527 | 524 | private Font ftGroupFont; |
528 | 525 | private Font ftLevelFont; |
529 | 526 | private Image iAlbum; |
@@ -532,9 +529,7 @@ namespace DTXMania | ||
532 | 529 | private Image iNamePlate; |
533 | 530 | private Image iDifficulty; |
534 | 531 | private Image iPart; |
535 | - private int nDifficulty; | |
536 | 532 | private int nCurrentDrumspeed; |
537 | - private int nStrlengthbydot; | |
538 | 533 | private string strGroupName; |
539 | 534 | private string strPanelString; |
540 | 535 | private string strPlayerName; |
@@ -150,7 +150,7 @@ namespace DTXMania | ||
150 | 150 | } |
151 | 151 | |
152 | 152 | // 新記録スコアチェック |
153 | - if( this.st演奏記録[ i ].nスコア > ini.stセクション[ i * 2 ].nスコア ) | |
153 | + if( ( this.st演奏記録[ i ].nスコア > ini.stセクション[ i * 2 ].nスコア ) && this.bオート[ i ] == false ) | |
154 | 154 | { |
155 | 155 | this.b新記録スコア[ i ] = true; |
156 | 156 | ini.stセクション[ i * 2 ] = this.st演奏記録[ i ]; |