From e2381eb4b56d1bfc7d723ebf1ba6220b9156d960 Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Thu, 16 Nov 2023 13:56:16 -0800 Subject: [PATCH] Add settings button to macro editor --- Craftimizer/Windows/MacroEditor.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Craftimizer/Windows/MacroEditor.cs b/Craftimizer/Windows/MacroEditor.cs index ab6d09e..7383ca1 100644 --- a/Craftimizer/Windows/MacroEditor.cs +++ b/Craftimizer/Windows/MacroEditor.cs @@ -144,6 +144,17 @@ public sealed class MacroEditor : Window, IDisposable 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); }