Beispiel #1
0
 public void Dispose()
 {
     this.InGameIMEFuncHook.Disable();
     this.IsDirectChatFuncHook.Disable();
     CommandManager.RemoveHandler("/imeplugin");
     Gui?.Dispose();
     PluginInterface?.Dispose();
 }
Beispiel #2
0
 public void Dispose()
 {
     GameNetwork.NetworkMessage             -= OnNetworkEvent;
     PluginInterface.UiBuilder.Draw         -= DrawWindow;
     PluginInterface.UiBuilder.OpenConfigUi -= OpenConfigUi;
     CommandManager.RemoveHandler(commandName);
     PluginInterface.Dispose();
 }
        public void Dispose()
        {
            this.iconReplacer.Dispose();

            CommandManager.RemoveHandler("/pcombo");

            PluginInterface.Dispose();
        }
 public void Dispose()
 {
     PluginInterface.UiBuilder.OnBuildUi -= this.BuildUI;
     FittingRoomUI?.Dispose();
     itemSearchWindow?.Dispose();
     RemoveCommands();
     PluginInterface.Dispose();
 }
Beispiel #5
0
        public void Dispose()
        {
            PluginInterface.UiBuilder.OnBuildUi -= SettingsInterface.Draw;

            PluginInterface.CommandManager.RemoveHandler(CommandName);
            PluginInterface.Dispose();

            ResourceLoader.Dispose();
        }
Beispiel #6
0
 public void Dispose()
 {
     PluginInterface.UiBuilder.OnBuildUi      -= this.BuildUI;
     PluginInterface.UiBuilder.OnBuildFonts   -= this.BuildFont;
     PluginInterface.UiBuilder.OnOpenConfigUi -= this.OnConfigCommandHandler;
     PluginInterface.Framework.OnUpdateEvent  -= this.OnFrameworkUpdate;
     PluginInterface.UiBuilder.RebuildFonts();
     fpsHistoryInterval?.Stop();
     RemoveCommands();
     PluginInterface.Dispose();
 }
Beispiel #7
0
 public void Dispose()
 {
     PluginInterface.UiBuilder.OnOpenConfigUi -= OnOpenConfigUi;
     PluginInterface.UiBuilder.OnBuildUi      -= this.BuildUI;
     PluginInterface.Framework.OnUpdateEvent  -= FrameworkUpdate;
     ActionManager?.Dispose();
     IconManager?.Dispose();
     generalStopwatch.Stop();
     OutOfCombatTimer.Stop();
     cacheTimer.Stop();
     RemoveCommands();
     PluginInterface.Dispose();
 }
Beispiel #8
0
        public void Dispose()
        {
            // ModManager?.Dispose();

            PluginInterface !.UiBuilder.OnBuildUi -= SettingsInterface !.Draw;

            PluginInterface.CommandManager.RemoveHandler(CommandName);
            PluginInterface.Dispose();

            ResourceLoader?.Dispose();

            ShutdownWebServer();
        }
Beispiel #9
0
        public void Dispose()
        {
            PluginInterface.UiBuilder.OnBuildUi -= this.BuildUI;
            FittingRoomUI?.Dispose();
            itemSearchWindow?.Dispose();
            RemoveCommands();
            PluginInterface.Dispose();

            foreach (var t in textureDictionary)
            {
                t.Value?.Dispose();
            }

            textureDictionary.Clear();
        }
Beispiel #10
0
        /// <summary>
        /// Dispose plugin.
        /// </summary>
        public void Dispose()
        {
            try
            {
                ClientState.Login -= this.Login;
                this.XivCommon.Dispose();
                this.WindowManager.Dispose();
                PluginCommandManager.Dispose();
                this.ContextMenuManager.Dispose();
                this.HoveredItemManager.Dispose();
                this.ItemCancellationTokenSource?.Dispose();
                this.UniversalisClient.Dispose();
                this.localization.Dispose();
            }
            catch (Exception ex)
            {
                Logger.LogError(ex, "Failed to dispose plugin properly.");
            }

            PluginInterface.Dispose();
            GC.SuppressFinalize(this);
        }