Open some windows non-centered to avoid covering the player (#24767)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user