Update AnomGen UI (#14872)
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
<controls:FancyWindow xmlns="https://spacestation14.io"
|
<controls:FancyWindow xmlns="https://spacestation14.io"
|
||||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||||
Title="{Loc 'anomaly-generator-ui-title'}"
|
Title="{Loc 'anomaly-generator-ui-title'}"
|
||||||
MinSize="270 180"
|
|
||||||
SetSize="360 180">
|
Resizable="False">
|
||||||
<BoxContainer Margin="10 0 10 0"
|
<BoxContainer Margin="0 0"
|
||||||
Orientation="Vertical"
|
Orientation="Vertical"
|
||||||
HorizontalExpand="True"
|
HorizontalExpand="True"
|
||||||
VerticalExpand="True">
|
VerticalExpand="True">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Margin="10 0 10 0" Orientation="Horizontal">
|
||||||
<BoxContainer Orientation="Vertical" HorizontalExpand="True">
|
<BoxContainer Orientation="Vertical" HorizontalExpand="True">
|
||||||
<BoxContainer Orientation="Horizontal"
|
<BoxContainer Orientation="Horizontal"
|
||||||
HorizontalExpand="True"
|
HorizontalExpand="True"
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
<RichTextLabel Name="CooldownLabel" StyleClasses="StatusFieldTitle" />
|
<RichTextLabel Name="CooldownLabel" StyleClasses="StatusFieldTitle" />
|
||||||
<RichTextLabel Name="ReadyLabel" StyleClasses="StatusFieldTitle" />
|
<RichTextLabel Name="ReadyLabel" StyleClasses="StatusFieldTitle" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
|
<!--Sprite View-->
|
||||||
<PanelContainer Margin="12 0 0 0"
|
<PanelContainer Margin="12 0 0 0"
|
||||||
StyleClasses="Inset"
|
StyleClasses="Inset"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
@@ -40,9 +41,22 @@
|
|||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer VerticalExpand="True"
|
<BoxContainer VerticalExpand="True"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center"
|
||||||
|
Margin="0 10">
|
||||||
<Button Name="GenerateButton"
|
<Button Name="GenerateButton"
|
||||||
Text="{Loc 'anomaly-generator-generate'}"></Button>
|
Text="{Loc 'anomaly-generator-generate'}"></Button>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<BoxContainer Orientation="Vertical">
|
||||||
|
<PanelContainer StyleClasses="LowDivider" />
|
||||||
|
<BoxContainer Orientation="Horizontal" Margin="10 2 5 0" VerticalAlignment="Bottom">
|
||||||
|
<Label Text="{Loc 'anomaly-generator-flavor-left'}" StyleClasses="WindowFooterText" />
|
||||||
|
<Label Text="{Loc 'anomaly-generator-flavor-right'}" StyleClasses="WindowFooterText"
|
||||||
|
HorizontalAlignment="Right" HorizontalExpand="True" Margin="0 0 5 0" />
|
||||||
|
<TextureRect StyleClasses="NTLogoDark" Stretch="KeepAspectCentered"
|
||||||
|
VerticalAlignment="Center" HorizontalAlignment="Right" SetSize="19 19"/>
|
||||||
|
</BoxContainer>
|
||||||
|
</BoxContainer>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</controls:FancyWindow>
|
</controls:FancyWindow>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ public sealed partial class AnomalyGeneratorWindow : FancyWindow
|
|||||||
IoCManager.InjectDependencies(this);
|
IoCManager.InjectDependencies(this);
|
||||||
|
|
||||||
EntityView.Sprite = _entityManager.GetComponent<SpriteComponent>(gen);
|
EntityView.Sprite = _entityManager.GetComponent<SpriteComponent>(gen);
|
||||||
|
EntityView.SpriteOffset = false;
|
||||||
|
|
||||||
GenerateButton.OnPressed += _ => OnGenerateButtonPressed?.Invoke();
|
GenerateButton.OnPressed += _ => OnGenerateButtonPressed?.Invoke();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ anomaly-scanner-particle-unstable = - [color=plum]Unstable type:[/color] {$type}
|
|||||||
anomaly-scanner-particle-containment = - [color=goldenrod]Containment type:[/color] {$type}
|
anomaly-scanner-particle-containment = - [color=goldenrod]Containment type:[/color] {$type}
|
||||||
anomaly-scanner-pulse-timer = Time until next pulse: [color=gray]{$time}[/color]
|
anomaly-scanner-pulse-timer = Time until next pulse: [color=gray]{$time}[/color]
|
||||||
|
|
||||||
anomaly-generator-ui-title = anomaly generator
|
anomaly-generator-ui-title = Anomaly Generator
|
||||||
anomaly-generator-fuel-display = Fuel:
|
anomaly-generator-fuel-display = Fuel:
|
||||||
anomaly-generator-cooldown = Cooldown: [color=gray]{$time}[/color]
|
anomaly-generator-cooldown = Cooldown: [color=gray]{$time}[/color]
|
||||||
anomaly-generator-no-cooldown = Cooldown: [color=gray]Complete[/color]
|
anomaly-generator-no-cooldown = Cooldown: [color=gray]Complete[/color]
|
||||||
@@ -36,3 +36,7 @@ anomaly-generator-charges = {$charges ->
|
|||||||
*[other] {$charges} charges
|
*[other] {$charges} charges
|
||||||
}
|
}
|
||||||
anomaly-generator-announcement = An anomaly has been generated!
|
anomaly-generator-announcement = An anomaly has been generated!
|
||||||
|
|
||||||
|
# Flavor text on the footer
|
||||||
|
anomaly-generator-flavor-left = Anomaly may spawn inside the operator.
|
||||||
|
anomaly-generator-flavor-right = v1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user