예제 #1
0
 public void OnLanguageChanged()
 {
     Settings.Culture = Language.Id;
     DefaultLocalizer.SwitchLanguage(Language);
     LocalizeKeybindsText();
     UIAssistantAPI.Instance.PluginManager.Localize();
     TasktrayIcon.HideNotifyIcon();
     TasktrayIcon.ShowNotifyIcon();
 }
예제 #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();
 }