Display current load and maximum capacity (#20181)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<DefaultWindow xmlns="https://spacestation14.io"
|
||||
<DefaultWindow xmlns="https://spacestation14.io"
|
||||
Title="{Loc 'ame-window-title'}"
|
||||
MinSize="250 250">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<GridContainer Columns="2">
|
||||
<BoxContainer Orientation="Horizontal">
|
||||
<Label Text="{Loc 'ame-window-engine-status-label'}" />
|
||||
<Label Text=" " />
|
||||
@@ -42,5 +42,19 @@
|
||||
<Label Text=" " />
|
||||
<Label Name="CoreCount" Text="0" />
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
<BoxContainer></BoxContainer>
|
||||
<BoxContainer Orientation="Horizontal">
|
||||
<Label Text="{Loc 'ame-window-power-currentsupply-label'}" />
|
||||
<Label Text=" " />
|
||||
<Label Name="CurrentPowerSupply" Text="0" />
|
||||
<Label Text=" kW" />
|
||||
</BoxContainer>
|
||||
<BoxContainer></BoxContainer>
|
||||
<BoxContainer Orientation="Horizontal">
|
||||
<Label Text="{Loc 'ame-window-power-targetsupply-label'}" />
|
||||
<Label Text=" " />
|
||||
<Label Name="TargetedPowerSupply" Text="0" />
|
||||
<Label Text=" kW" />
|
||||
</BoxContainer>
|
||||
</GridContainer>
|
||||
</DefaultWindow>
|
||||
|
||||
@@ -64,6 +64,9 @@ namespace Content.Client.Ame.UI
|
||||
|
||||
CoreCount.Text = $"{castState.CoreCount}";
|
||||
InjectionAmount.Text = $"{castState.InjectionAmount}";
|
||||
// format power statistics to pretty numbers
|
||||
CurrentPowerSupply.Text = $"{castState.CurrentPowerSupply.ToString("N1")}";
|
||||
TargetedPowerSupply.Text = $"{castState.TargetedPowerSupply.ToString("N1")}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user