Fix UI layout bugs with the PA.
This commit is contained in:
@@ -188,11 +188,11 @@ namespace Content.Client.ParticleAccelerator
|
||||
new MarginContainer
|
||||
{
|
||||
MarginLeftOverride = 4,
|
||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||
Children =
|
||||
{
|
||||
new VBoxContainer
|
||||
{
|
||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||
Children =
|
||||
{
|
||||
new HBoxContainer
|
||||
@@ -246,9 +246,13 @@ namespace Content.Client.ParticleAccelerator
|
||||
}
|
||||
}
|
||||
},
|
||||
new MarginContainer
|
||||
{
|
||||
CustomMinimumSize = (186, 0),
|
||||
Children =
|
||||
{
|
||||
new VBoxContainer
|
||||
{
|
||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||
Children =
|
||||
{
|
||||
(_statusLabel = new Label
|
||||
@@ -297,6 +301,8 @@ namespace Content.Client.ParticleAccelerator
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
new StripeBack
|
||||
{
|
||||
Children =
|
||||
@@ -507,7 +513,7 @@ namespace Content.Client.ParticleAccelerator
|
||||
public void SetPowerState(ParticleAcceleratorUIState state, bool exists)
|
||||
{
|
||||
_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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user