Beispiel #1
0
 public void Dispose()
 {
     _createFileHook.Dispose();
     _warningTex?.Dispose();
     _pi.CommandManager.RemoveHandler("/pcharsync");
     _pi.Dispose();
 }
Beispiel #2
0
        public void Dispose()
        {
            _discordPresenceManager?.Dispose();

            _pi.CommandManager.RemoveHandler("/prp");
            _pi.Dispose();
        }
        public void Dispose()
        {
            moAction.Dispose();

            pluginInterface.CommandManager.RemoveHandler("/pmoaction");

            pluginInterface.Dispose();
        }
Beispiel #4
0
        public void Dispose()
        {
            titleEdit.Dispose();

            pluginInterface.CommandManager.RemoveHandler("/ptitle");

            pluginInterface.Dispose();
        }
Beispiel #5
0
        public void Dispose()
        {
            _pi.Framework.OnUpdateEvent      -= Framework_OnUpdateEvent;
            _pi.ClientState.TerritoryChanged -= TerritoryChanged;
            _discordPresenceManager?.Dispose();

            _pi.CommandManager.RemoveHandler("/prp");
            _pi.Dispose();
        }
        public void Dispose()
        {
            ui.Dispose();

            pi.CommandManager.RemoveHandler(CommandName);
            pi.Framework.Gui.Chat.OnChatMessage -= HandleChatMessage;
            synthesizer.Dispose();
            pi.Dispose();
        }
Beispiel #7
0
        public void Dispose()
        {
            PluginInterface.Framework.OnUpdateEvent -= Manager.Update;
            Manager.Dispose();

            PluginInterface.CommandManager.RemoveHandler(CommandName);
            PluginInterface.Dispose();
            ResourceLoader.Dispose();
        }
 public void Dispose()
 {
     _pluginInterface.CommandManager.RemoveHandler("/profanity");
     _pluginInterface.CommandManager.RemoveHandler("/profanityconfig");
     _pluginInterface.UiBuilder.OnBuildUi              -= DrawWindow;
     _pluginInterface.UiBuilder.OnOpenConfigUi         -= ToggleConfig;
     _pluginInterface.Framework.Gui.Chat.OnChatMessage -= ChatOnOnChatMessage;
     _pluginInterface.Dispose();
 }
        public void Dispose()
        {
            _ui?.Dispose();

            Pi.CommandManager.RemoveHandler(commandName);

            Pi.Framework.OnUpdateEvent -= OnUpdate;

            Pi?.Dispose();
        }
        public void Dispose()
        {
            this.printIconHook.Dispose();
            this.handleTerriChangeHook.Dispose();
            this._pi.Framework.OnUpdateEvent -= FrameworkOnOnUpdateEvent;

            #if DEBUG
            this._pi.UiBuilder.OnBuildUi -= UiBuilderOnOnBuildUi;
            #endif

            _pi.Dispose();
        }
Beispiel #11
0
 public new void Dispose()
 {
     DisposeListeners();
     LootLogger.Dispose();
     RollMonitor.Dispose();
     base.Dispose();
     RemoveCommands();
     ClearData();
     _pluginInterface.UiBuilder.OnOpenConfigUi -= (sender, args) => DrawConfigUI();
     _pluginInterface.UiBuilder.OnBuildUi      -= DrawUI;
     _pluginInterface.Dispose();
 }
Beispiel #12
0
        public void Dispose()
        {
            foreach (var inlay in inlays.Values)
            {
                inlay.Dispose();
            }
            inlays.Clear();

            renderProcess?.Dispose();

            settings?.Dispose();

            WndProcHandler.Shutdown();
            DxHandler.Shutdown();

            pluginInterface.Dispose();

            dependencyManager.Dispose();
        }
Beispiel #13
0
 public void Dispose()
 {
     configuration.Save();
     _pi.Framework.OnUpdateEvent      -= HandleFrameworkUpdate;
     _pi.UiBuilder.OnBuildUi          -= ConfigGui.Draw;
     _pi.ClientState.TerritoryChanged -= HandleZoneChange;
     _pi.CommandManager.RemoveHandler("/weatherman");
     _pi.Framework.Gui.Chat.OnChatMessage += HandleChatMessage;
     EnableNaturalTimeFlow();
     if (WeatherWasChanged)
     {
         RestoreOriginalWeather();
     }
     if (BGMModified)
     {
         StopSong();
     }
     _pi.Dispose();
 }
        public void Dispose()
        {
            ClearFlyTextQueue();
            ResetMainTargetCastBar();
            ResetFocusTargetCastBar();
            createFlyTextHook.Disable();
            createFlyTextHook.Dispose();
            receiveActionEffectHook.Disable();
            receiveActionEffectHook.Dispose();
            setCastBarHook?.Disable();
            setCastBarHook?.Dispose();
            setFocusTargetCastBarHook?.Disable();
            setFocusTargetCastBarHook?.Dispose();

            futureFlyText          = null;
            actionToDamageTypeDict = null;

            ui.Dispose();
            pi.CommandManager.RemoveHandler(commandName);
            pi.Dispose();
        }
Beispiel #15
0
        public void Dispose()
        {
            if (logStream != null)
            {
                CloseLogStream();
            }
            WritePaths.Clear();
            Paths.Clear();
            WritePaths = null;
            Paths      = null;

            getResourceAsyncHook.Disable();
            getResourceAsyncHook.Dispose();

            // getResourceSyncHook.Disable();
            // getResourceSyncHook.Dispose();

            ui.Dispose();
            pi.CommandManager.RemoveHandler(CommandName);
            pi.Dispose();
        }
Beispiel #16
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            commandManager.Dispose();
            pluginInterface.SavePluginConfig(config);

            pluginInterface.UiBuilder.OnOpenConfigUi -= ToggleConfig;
            pluginInterface.UiBuilder.OnBuildUi      -= ui.Draw;
            pluginInterface.ClientState.OnLogin      -= InitCommands;

            pluginInterface.Dispose();

            ui.Dispose();

            foreach (var t in textureDictionary)
            {
                t.Value?.Dispose();
            }
        }
 public void Dispose()
 {
     _player.Dispose();
     _pi.ClientState.TerritoryChanged -= OnTerritoryChanged;
     _pi.Dispose();
 }
Beispiel #18
0
 public void Dispose()
 {
     _pluginInterface.Framework.Gui.Chat.OnChatMessage -= ChatOnOnChatMessage;
     _pluginInterface.Dispose();
 }
Beispiel #19
0
 public void Dispose()
 {
     _pi.Framework.Gui.Chat.OnChatMessage -= Chat_OnChatMessage;
     _pi.Dispose();
 }