Add settings button to macro editor

This commit is contained in:
Asriel Camora
2023-11-16 13:56:16 -08:00
parent 74367e0566
commit e2381eb4b5
+11
View File
@@ -144,6 +144,17 @@ public sealed class MacroEditor : Window, IDisposable
SizeConstraints = new() { MinimumSize = new(821, 750), MaximumSize = new(float.PositiveInfinity) }; SizeConstraints = new() { MinimumSize = new(821, 750), MaximumSize = new(float.PositiveInfinity) };
TitleBarButtons = new()
{
new()
{
Icon = FontAwesomeIcon.Cog,
IconOffset = new(2.5f, 1),
Click = _ => Service.Plugin.OpenSettingsWindow(),
ShowTooltip = () => ImGui.SetTooltip("Open Craftimizer Settings")
}
};
Service.WindowSystem.AddWindow(this); Service.WindowSystem.AddWindow(this);
} }