Fix UI layout bugs with the PA.

This commit is contained in:
Pieter-Jan Briers
2021-02-06 17:39:53 +01:00
parent 4272716289
commit 5cbb3f1222

View File

@@ -188,11 +188,11 @@ namespace Content.Client.ParticleAccelerator
new MarginContainer new MarginContainer
{ {
MarginLeftOverride = 4, MarginLeftOverride = 4,
SizeFlagsHorizontal = SizeFlags.FillExpand,
Children = Children =
{ {
new VBoxContainer new VBoxContainer
{ {
SizeFlagsHorizontal = SizeFlags.FillExpand,
Children = Children =
{ {
new HBoxContainer new HBoxContainer
@@ -246,9 +246,13 @@ namespace Content.Client.ParticleAccelerator
} }
} }
}, },
new MarginContainer
{
CustomMinimumSize = (186, 0),
Children =
{
new VBoxContainer new VBoxContainer
{ {
SizeFlagsHorizontal = SizeFlags.FillExpand,
Children = Children =
{ {
(_statusLabel = new Label (_statusLabel = new Label
@@ -297,6 +301,8 @@ namespace Content.Client.ParticleAccelerator
} }
} }
}, },
}
},
new StripeBack new StripeBack
{ {
Children = Children =
@@ -507,7 +513,7 @@ namespace Content.Client.ParticleAccelerator
public void SetPowerState(ParticleAcceleratorUIState state, bool exists) public void SetPowerState(ParticleAcceleratorUIState state, bool exists)
{ {
_base.ShaderOverride = exists ? null : _menu._greyScaleShader; _base.ShaderOverride = exists ? null : _menu._greyScaleShader;
_base.ModulateSelfOverride = exists ? (Color?)null : new Color(127, 127, 127); _base.ModulateSelfOverride = exists ? (Color?) null : new Color(127, 127, 127);
if (!state.Enabled || !exists) if (!state.Enabled || !exists)
{ {