</ItemGroup>\r
<ItemGroup>\r
<Compile Include="Properties\AssemblyInfo.cs" />\r
- <EmbeddedResource Include="Properties\Resources.ja-JP.resx" />\r
+ <EmbeddedResource Include="Properties\Resources.ja-JP.resx">\r
+ <SubType>Designer</SubType>\r
+ </EmbeddedResource>\r
<None Include="コード\ステージ\04.コンフィグ\DeletedCode.cs" />\r
<Compile Include="コード\ステージ\04.コンフィグ\CConfigXml.cs" />\r
<Compile Include="コード\ステージ\04.コンフィグ\COption.cs" />\r
[assembly: AssemblyConfiguration("")]\r
[assembly: AssemblyCompany("")]\r
[assembly: AssemblyProduct("DTXManiaGR")]\r
-[assembly: AssemblyCopyright( "Copyright (C) 2000-2015 DTXMania Group" )]\r
+[assembly: AssemblyCopyright( "Copyright (C) 2000-2016 DTXMania Group" )]\r
[assembly: AssemblyTrademark("")]\r
[assembly: AssemblyCulture("")]\r
\r
return ResourceManager.GetString("strCfgSysWASAPIEventDriven", resourceCulture);\r
}\r
}\r
+ \r
+ /// <summary>\r
+ /// START に類似しているローカライズされた文字列を検索します。\r
+ /// </summary>\r
+ internal static string strTitleStart {\r
+ get {\r
+ return ResourceManager.GetString("strTitleStart", resourceCulture);\r
+ }\r
+ }\r
}\r
}\r
<data name="strCfgSysWASAPIEventDriven" xml:space="preserve">\r
<value>test_eventdriven</value>\r
</data>\r
+ <data name="strTitleStart" xml:space="preserve">\r
+ <value>スタート</value>\r
+ </data>\r
</root>
\ No newline at end of file
<data name="strCfgSysWASAPIEventDriven" xml:space="preserve">\r
<value>test WASAPIEventDriven</value>\r
</data>\r
+ <data name="strTitleStart" xml:space="preserve">\r
+ <value>START</value>\r
+ </data>\r
</root>
\ No newline at end of file
using System.Drawing;\r
using SlimDX.DirectInput;\r
using FDK;\r
+using System.Globalization;\r
+using System.Resources;\r
+using System.Threading;\r
\r
namespace DTXMania\r
{\r
\r
prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), 36);\r
//prvFont = new CPrivateFont( new FontFamily("MS UI Gothic"), 36, FontStyle.Bold );\r
- string[] menuStr = { "START", "CONFIGURATION", "EXIT" };\r
+\r
+\r
+ System.Threading.Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture( "ja-JP" );\r
+ //System.Threading.Thread.CurrentThread.CurrentCulture; \r
+ // ResourceManagerを取得する\r
+ System.Reflection.Assembly asm;\r
+ asm = System.Reflection.Assembly.GetExecutingAssembly();\r
+ //asm = System.Reflection.Assembly.Load( "DTXManiaGR" );\r
+\r
+ //または次のようにもできる\r
+ //asm = this.GetType().Assembly;\r
+\r
+ System.Resources.ResourceManager resource =\r
+ //new ResourceManager( "DTXManiaGR", this.GetType().Assembly );\r
+ DTXMania.Properties.Resources.ResourceManager;\r
+ //new ResourceManager( typeof(CStageタイトル));\r
+ CultureInfo culture = CultureInfo.CreateSpecificCulture( "ja-JP" );\r
+\r
+ //ResourceManager resource = new ResourceManager( "DTXMania.DTXManiaGR", asm );\r
+ //ResourceManager resource = new ResourceManager( "DTXManiaGR", asm );\r
+\r
+ //ResourceSet rs = resource.GetResourceSet( CultureInfo.CreateSpecificCulture( "ja-JP" ),\r
+ // true, false );\r
+ //if (rs == null)\r
+ //{\r
+ // Debug.WriteLine( "No ja-JP resource set" );\r
+ //}\r
+\r
+\r
+//Debug.WriteLine( resource.GetString( "strTitleStart", new System.Globalization.CultureInfo( "ja-JP" ) ) );\r
+ //string strTitleStart = rs.GetString( "strTitleStart" );\r
+ string strTitleStart = resource.GetString( "strTitleStart", culture );\r
+ Debug.WriteLine( "{0}: {1}", culture.Name, strTitleStart );\r
+ \r
+ string[] menuStr = { strTitleStart, "CONFIGURATION", "EXIT" };\r
this.txMenuItem = new CTexture[menuStr.Length];\r
this.stMenuItem = new STMenuItem[menuStr.Length];\r
\r
rcWindow = new Coordinates.CRect(100, 100, 1280, 720);\r
nSleepPerFrameMs = new COptionInteger(-1);\r
nSleepUnfocusMs = new COptionInteger(1);\r
- nBGAlpha = new COptionInteger(200);\r
+ nBGAlpha = new COptionInteger(100);\r
nPreSoundWeightMs = new COptionInteger(1000);\r
nPreImageWeightMs = new COptionInteger(100);\r
nFontSizeDotSongSelect = new COptionInteger(20);\r
bUseBoxDefSkin.Initialize("UseBoxSkin", Properties.Resources.strCfgSysUseBoxDefSkin);\r
bUseOSTimer.Initialize("UseOSTimer", Properties.Resources.strCfgSysUseOSTimer);\r
bTimeStretch.Initialize("TimeStretch", Properties.Resources.strCfgSysTimeStretch);\r
- bForceHighPowerPlan.Initialize( "Highpower", Properties.Resources.strCfgSysForceHighPowerPlan );\r
+ bForceHighPowerPlan.Initialize( "Highpeformance", Properties.Resources.strCfgSysForceHighPowerPlan );\r
bEventDrivenWASAPI.Initialize( "WASAPI Event Driven", Properties.Resources.strCfgSysWASAPIEventDriven );\r
\r
bCymbalFree.Initialize("CymbalFree", Properties.Resources.strCfgDrCymbalFree);\r
<Compile Include="コード\06.Tempo\CBeatDetect.cs" />\r
</ItemGroup>\r
<ItemGroup>\r
- <EmbeddedResource Include="コード\01.フレームワーク\Core\GameWindow.resx">\r
- <DependentUpon>GameWindow.cs</DependentUpon>\r
- </EmbeddedResource>\r
<EmbeddedResource Include="コード\01.フレームワーク\Properties\Resources.resx">\r
<SubType>Designer</SubType>\r
</EmbeddedResource>\r
InsertMenuItem(hSysMenu, 6, true, ref item5);\r
}\r
#endregion\r
+\r
+ private void InitializeComponent()\r
+ {\r
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GameWindow));\r
+ this.SuspendLayout();\r
+ // \r
+ // GameWindow\r
+ // \r
+ resources.ApplyResources(this, "$this");\r
+ this.Name = "GameWindow";\r
+ this.ResumeLayout(false);\r
+\r
+ }\r
}\r
}\r