OSDN Git Service

#36635 ドラム画面のRISKY数字の座標を調整。
authorkairera0467 <gennsou76573@gmail.com>
Sun, 11 Sep 2016 08:36:14 +0000 (17:36 +0900)
committerkairera0467 <gennsou76573@gmail.com>
Sun, 11 Sep 2016 08:36:14 +0000 (17:36 +0900)
#xxxxx (作業部屋50636)オート時にハイスコアによってScoreIniを更新しないよう修正。
#xxxxx ステータスパネルの曲名文字のPrivateFont移行前のコード削除。
#xxxxx CAct演奏Drumsスコア.csのインデント

DTXManiaプロジェクト/DTXManiaプロジェクト.csproj
DTXManiaプロジェクト/コード/ステージ/07.演奏/ギター画面/CAct演奏Guitarステータスパネル.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/ギター画面/CStage演奏ギター画面.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CAct演奏Drumsゲージ.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CAct演奏Drumsスコア.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CAct演奏Drumsステータスパネル.cs
DTXManiaプロジェクト/コード/ステージ/08.結果/CStage結果.cs
実行時フォルダ/DTXManiaGR.exe

index b28f7ca..c4715b0 100644 (file)
@@ -43,7 +43,7 @@
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     <DebugSymbols>true</DebugSymbols>
     <OutputPath>bin\x86\Debug\</OutputPath>
-    <DefineConstants>TRACE;_TEST_ENGLISH TEST_Direct3D9Ex_ WindowedFullscreen animetest</DefineConstants>
+    <DefineConstants>DEBUG;TRACE;_TEST_ENGLISH TEST_Direct3D9Ex_ WindowedFullscreen animetest</DefineConstants>
     <DebugType>full</DebugType>
     <PlatformTarget>x86</PlatformTarget>
     <ErrorReport>prompt</ErrorReport>
index ead1cb6..10c5ceb 100644 (file)
@@ -21,7 +21,6 @@ namespace DTXMania
                 this.pfSongTitleFont = new CPrivateFastFont( new FontFamily( CDTXMania.ConfigIni.str選曲リストフォント ), 20, FontStyle.Regular );
                 this.pfNameFont = new CPrivateFastFont( new FontFamily( "Arial" ), 24, FontStyle.Bold );
                 this.ftGroupFont = new Font( "DFG平成ゴシック体W5", 16f, FontStyle.Regular, GraphicsUnit.Pixel );
-                this.ftDisplayFont = new Font( "DFG平成ゴシック体W5", 20f, FontStyle.Regular, GraphicsUnit.Pixel );
                 this.ftLevelFont = new Font( "Impact", 26f, FontStyle.Regular );
                 this.ftDifficultyL = new Font( "Arial", 30f, FontStyle.Bold );
                 this.ftDifficultyS = new Font( "Arial", 20f, FontStyle.Bold );
@@ -485,7 +484,6 @@ namespace DTXMania
         private CPrivateFastFont pfNameFont;
         private Font ftDifficultyL;
         private Font ftDifficultyS;
-        private Font ftDisplayFont;
         private Font ftGroupFont;
         private Font ftLevelFont;
         private string[] strGroupName;
index eed52dd..598f058 100644 (file)
@@ -399,7 +399,6 @@ namespace DTXMania
                {
                        Rectangle bgrect = new Rectangle( 640 - ( 278 / 2 ), 0, 278, 355 );
                        string DefaultBgFilename = @"Graphics\7_background Guitar.png";
-                       string DefaultLaneFilename = "";
                        string BgFilename = "";
                        string BACKGROUND = null;
                        if ( ( CDTXMania.DTX.BACKGROUND_GR != null ) && ( CDTXMania.DTX.BACKGROUND_GR.Length > 0 ) )
index f4e1a83..333b0d7 100644 (file)
@@ -100,7 +100,7 @@ namespace DTXMania
                                {
                                        CActLVLNFont.EFontColor efc = this.IsDanger( E楽器パート.DRUMS ) ?
                                                CActLVLNFont.EFontColor.Red : CActLVLNFont.EFontColor.Yellow;
-                                       actLVLNFont.t文字列描画( (int) ( 12 * Scale.X ), (int) ( 408 * Scale.Y ), nRiskyTimes.ToString(), efc, CActLVLNFont.EFontAlign.Right );
+                                       actLVLNFont.t文字列描画( 262, 668, nRiskyTimes.ToString(), efc, CActLVLNFont.EFontAlign.Right );
                                }
                                #endregion
                        }
index 61041c0..076ab56 100644 (file)
@@ -10,32 +10,32 @@ namespace DTXMania
                // CActivity 実装(共通クラスからの差分のみ)
 
                public override unsafe int On進行描画()
-    {
-        if (!base.b活性化してない)
         {
-            if (base.b初めての進行描画)
+            if (!base.b活性化してない)
             {
-                base.n進行用タイマ = FDK.CSound管理.rc演奏用タイマ.n現在時刻;
-                base.b初めての進行描画 = false;
-            }
-            long num = FDK.CSound管理.rc演奏用タイマ.n現在時刻;
-            if (num < base.n進行用タイマ)
-            {
-                base.n進行用タイマ = num;
-            }
-            while ((num - base.n進行用タイマ) >= 10)
-            {
-                for (int j = 0; j < 3; j++)
+                if (base.b初めての進行描画)
+                {
+                    base.n進行用タイマ = FDK.CSound管理.rc演奏用タイマ.n現在時刻;
+                    base.b初めての進行描画 = false;
+                }
+                long num = FDK.CSound管理.rc演奏用タイマ.n現在時刻;
+                if (num < base.n進行用タイマ)
+                {
+                    base.n進行用タイマ = num;
+                }
+                while ((num - base.n進行用タイマ) >= 10)
                 {
-                                       this.n現在表示中のスコア[j] += this.nスコアの増分[j];
+                    for (int j = 0; j < 3; j++)
+                    {
+                                           this.n現在表示中のスコア[j] += this.nスコアの増分[j];
 
-                                       if (this.n現在表示中のスコア[j] > (long) this.n現在の本当のスコア[j])
-                        this.n現在表示中のスコア[j] = (long) this.n現在の本当のスコア[j];
+                                       if (this.n現在表示中のスコア[j] > (long) this.n現在の本当のスコア[j])
+                            this.n現在表示中のスコア[j] = (long) this.n現在の本当のスコア[j];
+                    }
+                    base.n進行用タイマ += 10;
                 }
-                base.n進行用タイマ += 10;
             }
+            return 0;
         }
-        return 0;
-    }
        }
 }
index d26fb49..5b862ee 100644 (file)
@@ -20,8 +20,7 @@ namespace DTXMania
             //if( true )
             //    return;
 
-            this.ftDisplayFont = new Font( "DFG平成ゴシック体W5" , 22f, FontStyle.Regular, GraphicsUnit.Pixel );
-            this.ftGroupFont = new Font( "DFG平成ゴシック体W5" , 16f, FontStyle.Regular, GraphicsUnit.Pixel );
+            this.ftGroupFont = new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16f, FontStyle.Regular, GraphicsUnit.Pixel );
             this.ftLevelFont = new Font( "Impact", 26f, FontStyle.Regular );
             this.ftDifficultyL = new Font( "Arial", 30f, FontStyle.Bold );
             this.ftDifficultyS = new Font( "Arial", 20f, FontStyle.Bold );
@@ -94,7 +93,6 @@ namespace DTXMania
 
                 this.strPlayerName = string.IsNullOrEmpty( CDTXMania.ConfigIni.strCardName[0] ) ? "GUEST" : CDTXMania.ConfigIni.strCardName[0];
                 this.strGroupName = string.IsNullOrEmpty( CDTXMania.ConfigIni.strGroupName[0] ) ? "" : CDTXMania.ConfigIni.strGroupName[0];
-                this.nStrlengthbydot = (int)gNamePlate.MeasureString(this.strPanelString, this.ftDisplayFont).Width;
                 gNamePlate.Dispose();
 
                 this.bNamePlate = new Bitmap( 0x170, 0x103 );
@@ -329,10 +327,10 @@ namespace DTXMania
                 CDTXMania.t安全にDisposeする( ref this.iPart );
 
                 //ここで使用したフォント3つはここで開放。
-                this.ftLevelFont.Dispose();
-                this.ftDisplayFont.Dispose();
-                this.pfNameFont.Dispose();
-                this.pfSongTitleFont.Dispose();
+                CDTXMania.t安全にDisposeする( ref this.ftLevelFont );
+                CDTXMania.t安全にDisposeする( ref this.pfNameFont );
+                CDTXMania.t安全にDisposeする( ref this.pfSongTitleFont );
+
                 base.OnManagedリソースの作成();
             }
         }
@@ -348,12 +346,12 @@ namespace DTXMania
                 CDTXMania.t安全にDisposeする( ref this.iRisky );
                 CDTXMania.t安全にDisposeする( ref this.iDrumspeed );
 
-                this.ftDifficultyS.Dispose();
-                this.ftDifficultyL.Dispose();
-                this.ftDisplayFont.Dispose();
-                this.ftLevelFont.Dispose();
-                this.pfNameFont.Dispose();
-                pfSongTitleFont.Dispose();
+                CDTXMania.t安全にDisposeする( ref this.ftDifficultyS );
+                CDTXMania.t安全にDisposeする( ref this.ftDifficultyL );
+                CDTXMania.t安全にDisposeする( ref this.ftLevelFont );
+                CDTXMania.t安全にDisposeする( ref this.pfNameFont );
+                CDTXMania.t安全にDisposeする( ref this.pfSongTitleFont );
+
                 base.OnManagedリソースの解放();
             }
         }
@@ -523,7 +521,6 @@ namespace DTXMania
         private Bitmap bNamePlate;
         private Font ftDifficultyL;
         private Font ftDifficultyS;
-        private Font ftDisplayFont;
         private Font ftGroupFont;
         private Font ftLevelFont;
         private Image iAlbum;
@@ -532,9 +529,7 @@ namespace DTXMania
         private Image iNamePlate;
         private Image iDifficulty;
         private Image iPart;
-        private int nDifficulty;
         private int nCurrentDrumspeed;
-        private int nStrlengthbydot;
         private string strGroupName;
         private string strPanelString;
         private string strPlayerName;
index 99ad3f7..fafcef2 100644 (file)
@@ -150,7 +150,7 @@ namespace DTXMania
                                        }
 
                                        // 新記録スコアチェック
-                                       if( this.st演奏記録[ i ].nスコア > ini.stセクション[ i * 2 ].nスコア )
+                                       if( ( this.st演奏記録[ i ].nスコア > ini.stセクション[ i * 2 ].nスコア ) && this.bオート[ i ] == false )
                                        {
                                                this.b新記録スコア[ i ] = true;
                                                ini.stセクション[ i * 2 ] = this.st演奏記録[ i ];
index 8e249f1..46b04e8 100644 (file)
Binary files a/実行時フォルダ/DTXManiaGR.exe and b/実行時フォルダ/DTXManiaGR.exe differ