Improves ghost roles window layout (#6804)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user