OSDN Git Service

#35906 DTXMania: タイトル,設定画面とポップアップで使用するフォントを、ある程度resrouces.csvファイルで設定できるようにした。
authoryyagi <yyagi.dtxmania@gmail.com>
Sun, 25 Feb 2018 10:28:19 +0000 (19:28 +0900)
committeryyagi <yyagi.dtxmania@gmail.com>
Sun, 25 Feb 2018 10:28:19 +0000 (19:28 +0900)
#xxxxx リリース番号を更新。

DTXMania/コード/ステージ/02.タイトル/CStageタイトル.cs
DTXMania/コード/ステージ/04.コンフィグ/CActConfigKeyAssign.cs
DTXMania/コード/ステージ/04.コンフィグ/CActConfigList.cs
DTXMania/コード/ステージ/04.コンフィグ/CStageコンフィグ.cs
DTXMania/コード/ステージ/05.選曲/CActSelectPopupMenu.cs
DTXMania/コード/全体/CDTXMania.cs
RuntimeResources/DTXManiaGR.exe
RuntimeResources/bass.dll [new file with mode: 0644]
RuntimeResources/dll/FDK.dll
RuntimeResources/ja-JP/DTXManiaGR.resources.dll

index 51aa317..46b5eb2 100644 (file)
@@ -4,6 +4,7 @@ using System.Text;
 using System.Runtime.InteropServices;
 using System.Diagnostics;
 using System.Drawing;
+using System.IO;
 using FDK;
 
 using SlimDXKey = SlimDX.DirectInput.Key;
@@ -75,7 +76,10 @@ namespace DTXMania
                                this.tx背景 = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenTitle background.jpg"), false);
                                this.txメニュー = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenTitle menu.png"), false);
 
-                               prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), 36);
+                               string fontname = CDTXMania.Instance.Resources.Explanation("strCfgConfigurationTopItemsFontFileName");
+                               string path = Path.Combine(@"Graphics\fonts", fontname);
+                               this.prvFont = new CPrivateFastFont(CSkin.Path(path), (int)(16 * Scale.Y));
+                               //prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), 36);
                                //prvFont = new CPrivateFont( new FontFamily("MS UI Gothic"), 36, FontStyle.Bold );
 
                                string strTitleStart  = CDTXMania.Instance.Resources.Label( "strTitleStart" );
index 91e6a78..e08b1ba 100644 (file)
@@ -111,7 +111,10 @@ namespace DTXMania
                {
                        if (base.b活性化してる)
                        {
-                               this.prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), (int)(18 * Scale.Y)); // t項目リストの設定 の前に必要
+                               string fontname = CDTXMania.Instance.Resources.Explanation("strCfgConfigurationKeyAssignFontFileName");
+                               string path = Path.Combine(@"Graphics\fonts", fontname);
+                               this.prvFont = new CPrivateFastFont(CSkin.Path(path), (int)(18 * Scale.Y));
+                               //this.prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), (int)(18 * Scale.Y)); // t項目リストの設定 の前に必要
                                this.txカーソル = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenConfig menu cursor.png"), false);
 
                                #region [ Hit key to assign ダイアログイメージ作成 ]
index 64ef6dc..1b72f22 100644 (file)
@@ -625,7 +625,7 @@ namespace DTXMania
                                this.eメニュー種別 = Eメニュー種別.Unknown;
 
                                CResources cr = CDTXMania.Instance.Resources;
-                               string fontname = cr.Explanation("strCfgConfigurationFontFileName");
+                               string fontname = cr.Explanation("strCfgConfigurationItemsFontFileName");
                                string path = Path.Combine(@"Graphics\fonts", fontname);
                                this.prvFont = new CPrivateFastFont(CSkin.Path(path), (int)(18 * Scale.Y));
                                this.b要素値にフォーカス中 = false;
index 5cd1021..44371c7 100644 (file)
@@ -5,6 +5,7 @@ using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Drawing;
 using System.Diagnostics;
+using System.IO;
 using FDK;
 
 using SlimDXKey = SlimDX.DirectInput.Key;
@@ -202,7 +203,10 @@ namespace DTXMania
                                this.tx下部パネル = TextureFactory.tテクスチャの生成Af(CSkin.Path(@"Graphics\ScreenConfig footer panel.png"), true);
                                this.txMenuカーソル = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenConfig menu cursor.png"), false);
 
-                               prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), (int)(18 * Scale.Y));
+                               CResources cr = CDTXMania.Instance.Resources;
+                               string fontname = cr.Explanation("strCfgConfigurationTopItemsFontFileName");
+                               string path = Path.Combine(@"Graphics\fonts", fontname);
+                               prvFont = new CPrivateFastFont(CSkin.Path(path), (int)(18 * Scale.Y));
                                string[] strMenuItem = { 
                                        "strCfgSysMenuDesc",
                                        "strCfgDrMenuDesc",
index 3bbe548..e0c3f2e 100644 (file)
@@ -56,8 +56,10 @@ namespace DTXMania
 
                public void Initialize(List<COptionBase> menulist, bool showAllItems, string title, int defaultPos = 0)
                {
-
-                       prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), (int)(18 * Scale.Y));
+                       string fontname = CDTXMania.Instance.Resources.Explanation("strCfgPopupFontFileName");
+                       string path = Path.Combine(@"Graphics\fonts", fontname);
+                       this.prvFont = new CPrivateFastFont(CSkin.Path(path), (int)(18 * Scale.Y));
+                       //prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), (int)(18 * Scale.Y));
 
                        stqMenuTitle = new stQuickMenuItem();
                        stqMenuTitle.cItem = new COptionString(title);
index da4d047..45c5669 100644 (file)
@@ -24,7 +24,7 @@ namespace DTXMania
        {
                // プロパティ
                #region [ properties ]
-               public static readonly string VERSION = "112(180201)";
+               public static readonly string VERSION = "112(180301)";
                public static readonly string SLIMDXDLL = "c_net20x86_Jun2010";
                public static readonly string D3DXDLL = "d3dx9_43.dll";     // June 2010
                                                                                                                                                                                                                                                                //public static readonly string D3DXDLL = "d3dx9_42.dll";       // February 2010
index 1dd2654..bfb2017 100644 (file)
Binary files a/RuntimeResources/DTXManiaGR.exe and b/RuntimeResources/DTXManiaGR.exe differ
diff --git a/RuntimeResources/bass.dll b/RuntimeResources/bass.dll
new file mode 100644 (file)
index 0000000..ecd3bd6
Binary files /dev/null and b/RuntimeResources/bass.dll differ
index 2f79b3b..385022f 100644 (file)
Binary files a/RuntimeResources/dll/FDK.dll and b/RuntimeResources/dll/FDK.dll differ
index c9bde35..ae92422 100644 (file)
Binary files a/RuntimeResources/ja-JP/DTXManiaGR.resources.dll and b/RuntimeResources/ja-JP/DTXManiaGR.resources.dll differ