From 3836fbef1017e3bbb5c2120a37909646df147485 Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Tue, 24 Oct 2023 00:21:14 -0700 Subject: [PATCH] Disable esc key on RecipeNote window --- Craftimizer/Windows/RecipeNote.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Craftimizer/Windows/RecipeNote.cs b/Craftimizer/Windows/RecipeNote.cs index cbc2855..b33e598 100644 --- a/Craftimizer/Windows/RecipeNote.cs +++ b/Craftimizer/Windows/RecipeNote.cs @@ -80,9 +80,12 @@ public sealed unsafe class RecipeNote : Window, IDisposable NoManipulationBadge = Service.IconManager.GetAssemblyTexture("Graphics.no_manip.png"); AxisFont = Service.PluginInterface.UiBuilder.GetGameFontHandle(new(GameFontFamilyAndSize.Axis14)); - Service.WindowSystem.AddWindow(this); - + RespectCloseHotkey = false; + DisableWindowSounds = true; + ShowCloseButton = false; IsOpen = true; + + Service.WindowSystem.AddWindow(this); } private bool wasOpen;