Improves ghost roles window layout (#6804)

This commit is contained in:
Alex Evgrashin
2022-02-20 02:56:22 +03:00
committed by GitHub
parent 0d8e9795f6
commit f2dd758bbd
3 changed files with 12 additions and 15 deletions

View File

@@ -1,15 +1,13 @@
<BoxContainer xmlns="https://spacestation14.io"
Orientation="Horizontal"
SeparationOverride="10"
HorizontalExpand="True">
<BoxContainer Orientation="Vertical"
HorizontalExpand="True">
<RichTextLabel Name="Title" />
<RichTextLabel Name="Description" />
</BoxContainer>
Orientation="Vertical"
HorizontalExpand="True"
Margin="0 0 8 8">
<Label Name="Title"
StyleClasses="LabelKeyText"/>
<PanelContainer StyleClasses="HighDivider" />
<RichTextLabel Name="Description"
Margin="0 4"/>
<Button Name="RequestButton"
Text="{Loc 'ghost-roles-window-request-role-button'}"
TextAlign="Center"
HorizontalAlignment="Right"
VerticalAlignment="Center" />
HorizontalAlignment="Left"/>
</BoxContainer>

View File

@@ -13,7 +13,7 @@ namespace Content.Client.Ghost.Roles.UI
{
RobustXamlLoader.Load(this);
Title.SetMessage(info.Name);
Title.Text = info.Name;
Description.SetMessage(info.Description);
RequestButton.OnPressed += requestAction;
}

View File

@@ -4,11 +4,10 @@
<Label Name="NoRolesMessage"
Text="{Loc 'ghost-roles-window-no-roles-available-label'}"
VerticalAlignment="Top" />
<ScrollContainer HorizontalExpand="True"
VerticalExpand="True">
<ScrollContainer VerticalExpand="True"
HScrollEnabled="False">
<BoxContainer Orientation="Vertical"
Name="EntryContainer"
HorizontalExpand="True"
VerticalExpand="True">
<!-- Ghost role entries are added here by code -->
</BoxContainer>