public void Initialize() { Settings = UIAssistantAPI.Instance.UIAssistantSettings; Language = DefaultLocalizer.FindLanguage(Settings.Culture); RunAtLogin = Settings.RunAtLogin; UseMigemo = Settings.UseMigemo; LocalizeKeybindsText(); }
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(); }