diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index 3b8b903c8..fc7777d42 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -104,6 +104,11 @@ namespace Dalamud.Interface.Windowing /// public float? BgAlpha { get; set; } + /// + /// Gets or sets a value indicating whether or not this ImGui window should display a close button in the title bar. + /// + public bool ShowCloseButton { get; set; } = true; + /// /// Gets or sets a value indicating whether or not this window will stay open. /// @@ -236,7 +241,7 @@ namespace Dalamud.Interface.Windowing ImGui.PushStyleColor(ImGuiCol.TitleBgCollapsed, focusedHeaderColor); } - if (ImGui.Begin(this.WindowName, ref this.internalIsOpen, this.Flags)) + if (this.ShowCloseButton ? ImGui.Begin(this.WindowName, ref this.internalIsOpen, this.Flags) : ImGui.Begin(this.WindowName, this.Flags)) { // Draw the actual window contents this.Draw();