예제 #1
0
파일: Core.cs 프로젝트: ooame0825/Effekseer
        static Core()
        {
            Command.CommandManager.Changed += new EventHandler(CommandManager_Changed);
            FullPath = string.Empty;

            option = LoadOption();

            // Switch the language according to the loaded settings
            Language = Option.GuiLanguage;

            // Switch the culture according to the set language
            switch (Language)
            {
            case Effekseer.Language.English:
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
                break;

            case Effekseer.Language.Japanese:
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("ja-JP");
                break;
            }

            New();

            CommandScripts  = new Script.ScriptCollection <Script.CommandScript>();
            SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>();
            ExportScripts   = new Script.ScriptCollection <Script.ExportScript>();
            ImportScripts   = new Script.ScriptCollection <Script.ImportScript>();
        }
예제 #2
0
 static Core()
 {
     CommandScripts  = new Script.ScriptCollection <Script.CommandScript>();
     SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>();
     ExportScripts   = new Script.ScriptCollection <Script.ExportScript>();
     ImportScripts   = new Script.ScriptCollection <Script.ImportScript>();
 }
예제 #3
0
파일: Core.cs 프로젝트: dmitsuki/Effekseer
        static Core()
        {
            Command.CommandManager.Changed += new EventHandler(CommandManager_Changed);
            FullPath = string.Empty;

            option   = LoadOption();
            Language = Option.GuiLanguage; // 読み込んだ設定により Core の言語を設定する

            // 設定された言語によりカルチャーを切り替えます
            switch (Language)
            {
            case Effekseer.Language.English:
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
                break;

            case Effekseer.Language.Japanese:
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("ja-JP");
                break;
            }

            New();

            CommandScripts  = new Script.ScriptCollection <Script.CommandScript>();
            SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>();
            ExportScripts   = new Script.ScriptCollection <Script.ExportScript>();
            ImportScripts   = new Script.ScriptCollection <Script.ImportScript>();
        }
예제 #4
0
파일: Core.cs 프로젝트: yczxf/Effekseer
        static Core()
        {
#if SCRIPT_ENABLED
            CommandScripts  = new Script.ScriptCollection <Script.CommandScript>();
            SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>();
            ExportScripts   = new Script.ScriptCollection <Script.ExportScript>();
            ImportScripts   = new Script.ScriptCollection <Script.ImportScript>();
#endif
            // change a separator
            System.Globalization.CultureInfo customCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
            customCulture.NumberFormat.NumberDecimalSeparator    = ".";
            System.Threading.Thread.CurrentThread.CurrentCulture = customCulture;
            Language = Language.English;
        }
예제 #5
0
        static Core()
        {
            Command.CommandManager.Changed += new EventHandler(CommandManager_Changed);
            FullPath = string.Empty;

            var culture = System.Globalization.CultureInfo.CurrentCulture;

            if (culture.Name == "ja-JP")
            {
                Language = Language.Japanese;
            }
            else
            {
                Language = Language.English;
            }

            New();

            CommandScripts  = new Script.ScriptCollection <Script.CommandScript>();
            SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>();
            ExportScripts   = new Script.ScriptCollection <Script.ExportScript>();
            ImportScripts   = new Script.ScriptCollection <Script.ImportScript>();
        }