From e212b10ca205b5a76c20a3daca4a13af435611c5 Mon Sep 17 00:00:00 2001 From: Kara Date: Thu, 1 Feb 2024 05:49:48 -0700 Subject: [PATCH] Open some windows non-centered to avoid covering the player (#24767) --- Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs | 2 +- Content.Client/Crayon/UI/CrayonBoundUserInterface.cs | 2 +- Content.Client/Lathe/UI/LatheBoundUserInterface.cs | 2 +- Content.Client/RoundEnd/RoundEndSummaryWindow.cs | 2 +- .../VendingMachines/VendingMachineBoundUserInterface.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs b/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs index 142fedc48f..ad496caa8e 100644 --- a/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs @@ -18,7 +18,7 @@ namespace Content.Client.Atmos.UI _window = new GasAnalyzerWindow(); _window.OnClose += OnClose; - _window.OpenCentered(); + _window.OpenCenteredLeft(); } protected override void ReceiveMessage(BoundUserInterfaceMessage message) diff --git a/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs b/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs index 3bb3b5eeaf..e2c4d51ecd 100644 --- a/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs +++ b/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs @@ -24,7 +24,7 @@ namespace Content.Client.Crayon.UI var prototypeManager = IoCManager.Resolve(); var crayonDecals = prototypeManager.EnumeratePrototypes().Where(x => x.Tags.Contains("crayon")); _menu.Populate(crayonDecals); - _menu.OpenCentered(); + _menu.OpenCenteredLeft(); } protected override void UpdateState(BoundUserInterfaceState state) diff --git a/Content.Client/Lathe/UI/LatheBoundUserInterface.cs b/Content.Client/Lathe/UI/LatheBoundUserInterface.cs index 456471598a..6e6d1b9176 100644 --- a/Content.Client/Lathe/UI/LatheBoundUserInterface.cs +++ b/Content.Client/Lathe/UI/LatheBoundUserInterface.cs @@ -31,7 +31,7 @@ namespace Content.Client.Lathe.UI SendMessage(new LatheQueueRecipeMessage(recipe, amount)); }; - _menu.OpenCentered(); + _menu.OpenCenteredRight(); } protected override void UpdateState(BoundUserInterfaceState state) diff --git a/Content.Client/RoundEnd/RoundEndSummaryWindow.cs b/Content.Client/RoundEnd/RoundEndSummaryWindow.cs index bb75d75d75..5b73c77934 100644 --- a/Content.Client/RoundEnd/RoundEndSummaryWindow.cs +++ b/Content.Client/RoundEnd/RoundEndSummaryWindow.cs @@ -37,7 +37,7 @@ namespace Content.Client.RoundEnd Contents.AddChild(roundEndTabs); - OpenCentered(); + OpenCenteredRight(); MoveToFront(); } diff --git a/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs b/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs index 6f28ddb31f..17ddba77ff 100644 --- a/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs +++ b/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs @@ -36,7 +36,7 @@ namespace Content.Client.VendingMachines _menu.Populate(_cachedInventory, out _cachedFilteredIndex); - _menu.OpenCentered(); + _menu.OpenCenteredLeft(); } protected override void UpdateState(BoundUserInterfaceState state)