We don't respect the close key in any window

This commit is contained in:
Infi
2024-04-11 16:12:57 +02:00
parent db73c59d40
commit 795c8a6bb5
5 changed files with 10 additions and 0 deletions
+2
View File
@@ -79,6 +79,8 @@ public sealed class ChatLogWindow : Window, IUiComponent {
Size = new Vector2(500, 250); Size = new Vector2(500, 250);
SizeCondition = ImGuiCond.FirstUseEver; SizeCondition = ImGuiCond.FirstUseEver;
RespectCloseHotkey = false;
PayloadHandler = new PayloadHandler(this); PayloadHandler = new PayloadHandler(this);
HandlerLender = new Lender<PayloadHandler>(() => new PayloadHandler(this)); HandlerLender = new Lender<PayloadHandler>(() => new PayloadHandler(this));
+2
View File
@@ -18,6 +18,8 @@ public class CommandHelpWindow : Window {
Flags = ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove | Flags = ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove |
ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.AlwaysAutoResize; ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.AlwaysAutoResize;
RespectCloseHotkey = false;
} }
// Sets IsOpen to true if it should be drawn // Sets IsOpen to true if it should be drawn
+2
View File
@@ -19,6 +19,8 @@ internal class Popout : Window
Size = new Vector2(350, 350); Size = new Vector2(350, 350);
SizeCondition = ImGuiCond.FirstUseEver; SizeCondition = ImGuiCond.FirstUseEver;
RespectCloseHotkey = false;
} }
public override void PreDraw() public override void PreDraw()
+2
View File
@@ -22,6 +22,8 @@ public class SeStringDebugger : Window
MaximumSize = new Vector2(float.MaxValue, float.MaxValue) MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
}; };
RespectCloseHotkey = false;
#if DEBUG #if DEBUG
Plugin.Commands.Register("/chat2Debugger").Execute += Toggle; Plugin.Commands.Register("/chat2Debugger").Execute += Toggle;
#endif #endif
+2
View File
@@ -40,6 +40,8 @@ public sealed class SettingsWindow : Window, IUiComponent
new About(), new About(),
}; };
RespectCloseHotkey = false;
Initialise(); Initialise();
Plugin.Commands.Register("/chat2", "Perform various actions with Chat 2.").Execute += Command; Plugin.Commands.Register("/chat2", "Perform various actions with Chat 2.").Execute += Command;