예제 #1
0
 public void Initialize()
 {
     Settings   = UIAssistantAPI.Instance.UIAssistantSettings;
     Language   = DefaultLocalizer.FindLanguage(Settings.Culture);
     RunAtLogin = Settings.RunAtLogin;
     UseMigemo  = Settings.UseMigemo;
     LocalizeKeybindsText();
 }
예제 #2
0
 public void Initialize(Control defaultHUDPanel, Control defaultContextPanel)
 {
     if (ViewAPI != null)
     {
         return;
     }
     ViewAPI = new ViewAPI(defaultHUDPanel, defaultContextPanel);
     DefaultLocalizer.SwitchLanguage(DefaultLocalizer.FindLanguage(UIAssistantSettings.Culture));
     PluginManager = Plugin.PluginManager.Instance;
     Plugin.PluginManager.Instance.Initialize();
     PluginManager.Localize();
 }