Add craft Condition update network handler
No need to rely on ui anymore :) ty to infi in discord for helping
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
using Craftimizer.Plugin.Windows;
|
||||
using Craftimizer.Simulator;
|
||||
using Craftimizer.Utils;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using ClassJob = Craftimizer.Simulator.ClassJob;
|
||||
|
||||
@@ -18,6 +22,8 @@ public sealed class Plugin : IDalamudPlugin
|
||||
public Craft SynthesisWindow { get; }
|
||||
public Windows.Simulator? SimulatorWindow { get; set; }
|
||||
|
||||
public Hooks Hook { get; }
|
||||
|
||||
public Plugin([RequiredVersion("1.0")] DalamudPluginInterface pluginInterface)
|
||||
{
|
||||
Service.Plugin = this;
|
||||
@@ -32,6 +38,8 @@ public sealed class Plugin : IDalamudPlugin
|
||||
|
||||
Service.PluginInterface.UiBuilder.Draw += WindowSystem.Draw;
|
||||
Service.PluginInterface.UiBuilder.OpenConfigUi += OpenSettingsWindow;
|
||||
|
||||
Hook = new();
|
||||
}
|
||||
|
||||
public void OpenSimulatorWindow(Item item, bool isExpert, SimulationInput input, ClassJob classJob, Macro? macro)
|
||||
@@ -53,5 +61,6 @@ public sealed class Plugin : IDalamudPlugin
|
||||
public void Dispose()
|
||||
{
|
||||
SimulatorWindow?.Dispose();
|
||||
Hook.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user