Open some windows non-centered to avoid covering the player (#24767)

This commit is contained in:
Kara
2024-02-01 05:49:48 -07:00
committed by GitHub
parent 1fc237a84e
commit e212b10ca2
5 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ namespace Content.Client.Atmos.UI
_window = new GasAnalyzerWindow(); _window = new GasAnalyzerWindow();
_window.OnClose += OnClose; _window.OnClose += OnClose;
_window.OpenCentered(); _window.OpenCenteredLeft();
} }
protected override void ReceiveMessage(BoundUserInterfaceMessage message) protected override void ReceiveMessage(BoundUserInterfaceMessage message)

View File

@@ -24,7 +24,7 @@ namespace Content.Client.Crayon.UI
var prototypeManager = IoCManager.Resolve<IPrototypeManager>(); var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
var crayonDecals = prototypeManager.EnumeratePrototypes<DecalPrototype>().Where(x => x.Tags.Contains("crayon")); var crayonDecals = prototypeManager.EnumeratePrototypes<DecalPrototype>().Where(x => x.Tags.Contains("crayon"));
_menu.Populate(crayonDecals); _menu.Populate(crayonDecals);
_menu.OpenCentered(); _menu.OpenCenteredLeft();
} }
protected override void UpdateState(BoundUserInterfaceState state) protected override void UpdateState(BoundUserInterfaceState state)

View File

@@ -31,7 +31,7 @@ namespace Content.Client.Lathe.UI
SendMessage(new LatheQueueRecipeMessage(recipe, amount)); SendMessage(new LatheQueueRecipeMessage(recipe, amount));
}; };
_menu.OpenCentered(); _menu.OpenCenteredRight();
} }
protected override void UpdateState(BoundUserInterfaceState state) protected override void UpdateState(BoundUserInterfaceState state)

View File

@@ -37,7 +37,7 @@ namespace Content.Client.RoundEnd
Contents.AddChild(roundEndTabs); Contents.AddChild(roundEndTabs);
OpenCentered(); OpenCenteredRight();
MoveToFront(); MoveToFront();
} }

View File

@@ -36,7 +36,7 @@ namespace Content.Client.VendingMachines
_menu.Populate(_cachedInventory, out _cachedFilteredIndex); _menu.Populate(_cachedInventory, out _cachedFilteredIndex);
_menu.OpenCentered(); _menu.OpenCenteredLeft();
} }
protected override void UpdateState(BoundUserInterfaceState state) protected override void UpdateState(BoundUserInterfaceState state)