WPF layout (#3346)
This commit is contained in:
committed by
GitHub
parent
33d6975c25
commit
b898443f28
@@ -139,18 +139,14 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
rows.AddChild(new Label {Text = "Press Enter to confirm."});
|
||||
rows.AddChild(new Label {Text = ""});
|
||||
|
||||
PanelRotation.SizeFlagsHorizontal = SizeFlags.FillExpand;
|
||||
PanelVelocity.SizeFlagsHorizontal = SizeFlags.FillExpand;
|
||||
rows.SizeFlagsHorizontal = SizeFlags.Fill;
|
||||
rows.SizeFlagsVertical = SizeFlags.Fill;
|
||||
PanelRotation.HorizontalExpand = true;
|
||||
PanelVelocity.HorizontalExpand = true;
|
||||
|
||||
NotARadar = new SolarControlNotARadar(igt);
|
||||
|
||||
var outerColumns = new HBoxContainer();
|
||||
outerColumns.AddChild(rows);
|
||||
outerColumns.AddChild(NotARadar);
|
||||
outerColumns.SizeFlagsHorizontal = SizeFlags.Fill;
|
||||
outerColumns.SizeFlagsVertical = SizeFlags.Fill;
|
||||
Contents.AddChild(outerColumns);
|
||||
Resizable = false;
|
||||
}
|
||||
@@ -173,6 +169,7 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
public SolarControlNotARadar(IGameTiming igt)
|
||||
{
|
||||
_gameTiming = igt;
|
||||
MinSize = (SizeFull, SizeFull);
|
||||
}
|
||||
|
||||
public void UpdateState(SolarControlConsoleBoundInterfaceState ls)
|
||||
@@ -181,11 +178,6 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
_lastStateTime = _gameTiming.CurTime;
|
||||
}
|
||||
|
||||
protected override Vector2 CalculateMinimumSize()
|
||||
{
|
||||
return (SizeFull, SizeFull);
|
||||
}
|
||||
|
||||
protected override void Draw(DrawingHandleScreen handle)
|
||||
{
|
||||
int point = SizeFull / 2;
|
||||
|
||||
Reference in New Issue
Block a user