]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Open some windows non-centered to avoid covering the player (#24767)
authorKara <lunarautomaton6@gmail.com>
Thu, 1 Feb 2024 12:49:48 +0000 (05:49 -0700)
committerGitHub <noreply@github.com>
Thu, 1 Feb 2024 12:49:48 +0000 (23:49 +1100)
Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs
Content.Client/Crayon/UI/CrayonBoundUserInterface.cs
Content.Client/Lathe/UI/LatheBoundUserInterface.cs
Content.Client/RoundEnd/RoundEndSummaryWindow.cs
Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs

index 142fedc48fdbf0f1551a9393d7a1e41d9dc3a887..ad496caa8ec4f8e340fd82c7274cc5ef7855529b 100644 (file)
@@ -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)
index 3bb3b5eeafb017824c10c593b2a5a48582531ebb..e2c4d51ecd18f888d46b7efcdc7329d80f319da8 100644 (file)
@@ -24,7 +24,7 @@ namespace Content.Client.Crayon.UI
             var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
             var crayonDecals = prototypeManager.EnumeratePrototypes<DecalPrototype>().Where(x => x.Tags.Contains("crayon"));
             _menu.Populate(crayonDecals);
-            _menu.OpenCentered();
+            _menu.OpenCenteredLeft();
         }
 
         protected override void UpdateState(BoundUserInterfaceState state)
index 456471598a48ef43ddeee4e6f7288fb407b145e7..6e6d1b9176154da25ee71fbb1218434956da96af 100644 (file)
@@ -31,7 +31,7 @@ namespace Content.Client.Lathe.UI
                 SendMessage(new LatheQueueRecipeMessage(recipe, amount));
             };
 
-            _menu.OpenCentered();
+            _menu.OpenCenteredRight();
         }
 
         protected override void UpdateState(BoundUserInterfaceState state)
index bb75d75d75e73dd52b7a607d57c4d63eac42b9da..5b73c77934a3e5a1bcdd930faba693b150e0337f 100644 (file)
@@ -37,7 +37,7 @@ namespace Content.Client.RoundEnd
 
             Contents.AddChild(roundEndTabs);
 
-            OpenCentered();
+            OpenCenteredRight();
             MoveToFront();
         }
 
index 6f28ddb31f030cea0d0080766f7126a6bec27658..17ddba77ffc1c413de40ba18db80d06fa148800a 100644 (file)
@@ -36,7 +36,7 @@ namespace Content.Client.VendingMachines
 
             _menu.Populate(_cachedInventory, out _cachedFilteredIndex);
 
-            _menu.OpenCentered();
+            _menu.OpenCenteredLeft();
         }
 
         protected override void UpdateState(BoundUserInterfaceState state)