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