private void ForceInitialize() { gitClient = new GitHubClient(new ProductHeaderValue("PoeHUDPluginsUpdater")); UGraphics = Graphics; AllAvailablePlugins = AvailablePluginsConfigParser.Parse(PluginDirectory); MenuPlugin.KeyboardMouseEvents.MouseDownExt += KeyboardMouseEvents_MouseDownExt; MenuPlugin.KeyboardMouseEvents.MouseUpExt += KeyboardMouseEvents_MouseUpExt; MenuPlugin.KeyboardMouseEvents.MouseMoveExt += KeyboardMouseEvents_MouseMove; AllPlugins = new List <PluginToUpdate>(); foreach (var plugin in PluginExtensionPlugin.Plugins) { AddPlugin(plugin.PluginName, plugin.PluginDirectory); } CheckAddPluginsByConfig(); AllPlugins = AllPlugins.OrderByDescending(x => x.UpdateVariant).ToList(); AddPoeHudPlugin(); CheckUpdates(); }
public override void Initialise() { gitClient = new GitHubClient(new ProductHeaderValue("PoeHUDPluginsUpdater")); UGraphics = Graphics; Settings.Enable.Value = false; //OpenOrClose(); AllAvailablePlugins = AvailablePluginsConfigParser.Parse(PluginDirectory); Settings.Enable.OnValueChanged += OpenOrClose; MenuPlugin.ExternalMouseClick = OnMouseEvent; }