WPF layout (#3346)

This commit is contained in:
Pieter-Jan Briers
2021-02-21 12:38:56 +01:00
committed by GitHub
parent 33d6975c25
commit b898443f28
121 changed files with 1420 additions and 2069 deletions

View File

@@ -30,13 +30,14 @@ namespace Content.Client.UserInterface
{
RobustXamlLoader.Load(this);
ServerName.SizeFlagsHorizontal = SizeFlags.Expand | SizeFlags.ShrinkCenter;
ServerName.HorizontalExpand = true;
ServerName.HorizontalAlignment = HAlignment.Center;
CharacterPreview = new LobbyCharacterPreviewPanel(
entityManager,
preferencesManager)
{
SizeFlagsHorizontal = SizeFlags.None
HorizontalAlignment = HAlignment.Left
};
CLeftPanelContainer.AddChild(CharacterPreview);
@@ -67,7 +68,7 @@ namespace Content.Client.UserInterface
{
var hbox = new HBoxContainer
{
SizeFlagsHorizontal = SizeFlags.FillExpand,
HorizontalExpand = true,
};
// Player Name
@@ -88,7 +89,7 @@ namespace Content.Client.UserInterface
Text = name
}
},
SizeFlagsHorizontal = SizeFlags.FillExpand
HorizontalExpand = true
});
// Status
hbox.AddChild(new PanelContainer()
@@ -108,7 +109,7 @@ namespace Content.Client.UserInterface
Text = status
}
},
SizeFlagsHorizontal = SizeFlags.FillExpand,
HorizontalExpand = true,
SizeFlagsStretchRatio = 0.2f,
});