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

View File

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

View File

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