Add settings button to macro list

This commit is contained in:
Asriel Camora
2023-11-18 01:06:24 -08:00
parent c798e34132
commit 6a3065e0c0
+11
View File
@@ -37,6 +37,17 @@ public sealed class MacroList : Window, IDisposable
SizeConstraints = new() { MinimumSize = new(500, 520), 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);
}