Add settings window
This commit is contained in:
@@ -37,7 +37,7 @@ public sealed class Plugin : IDalamudPlugin
|
||||
});
|
||||
|
||||
Service.PluginInterface.UiBuilder.Draw += WindowSystem.Draw;
|
||||
Service.PluginInterface.UiBuilder.OpenConfigUi += () => SettingsWindow.IsOpen = true;
|
||||
Service.PluginInterface.UiBuilder.OpenConfigUi += OpenSettingsWindow;
|
||||
}
|
||||
|
||||
public void OpenSimulatorWindow(Item item, bool isExpert, SimulationInput input, ClassJob classJob, Macro? macro)
|
||||
@@ -50,6 +50,12 @@ public sealed class Plugin : IDalamudPlugin
|
||||
SimulatorWindow = new(item, isExpert, input, classJob, macro);
|
||||
}
|
||||
|
||||
public void OpenSettingsWindow()
|
||||
{
|
||||
SettingsWindow.IsOpen = true;
|
||||
SettingsWindow.BringToFront();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Service.CommandManager.RemoveHandler("/craft");
|
||||
@@ -61,6 +67,6 @@ public sealed class Plugin : IDalamudPlugin
|
||||
if (command != "/craft")
|
||||
return;
|
||||
|
||||
SettingsWindow.IsOpen = true;
|
||||
OpenSettingsWindow();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user