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

This commit is contained in:
Kara
2024-02-01 23:49:48 +11:00
committed by GitHub
parent 1fc237a84e
commit e212b10ca2
5 changed files with 5 additions and 5 deletions
@@ -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)
@@ -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)
@@ -31,7 +31,7 @@ namespace Content.Client.Lathe.UI
SendMessage(new LatheQueueRecipeMessage(recipe, amount));
};
_menu.OpenCentered();
_menu.OpenCenteredRight();
}
protected override void UpdateState(BoundUserInterfaceState state)
@@ -37,7 +37,7 @@ namespace Content.Client.RoundEnd
Contents.AddChild(roundEndTabs);
OpenCentered();
OpenCenteredRight();
MoveToFront();
}
@@ -36,7 +36,7 @@ namespace Content.Client.VendingMachines
_menu.Populate(_cachedInventory, out _cachedFilteredIndex);
_menu.OpenCentered();
_menu.OpenCenteredLeft();
}
protected override void UpdateState(BoundUserInterfaceState state)