We don't respect the close key in any window
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user