Tweak solution editing window (#6587)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<DefaultWindow
|
||||
SetSize="300 300"
|
||||
SetSize="300 400"
|
||||
Margin="4 0"
|
||||
xmlns="https://spacestation14.io">
|
||||
<BoxContainer Orientation="Vertical">
|
||||
@@ -12,12 +12,18 @@
|
||||
<BoxContainer Name="VolumeBox" Orientation="Vertical" HorizontalExpand="True" Margin="0 4"/>
|
||||
|
||||
<!-- The temperature / heat capacity / thermal energy of the solution -->
|
||||
<Collapsible Orientation="Vertical">
|
||||
<CollapsibleHeading Name="ThermalHeading" Title="{Loc 'admin-solutions-window-thermals'}" />
|
||||
<CollapsibleBody>
|
||||
<BoxContainer Name="ThermalBox" Orientation="Vertical" HorizontalExpand="True" Margin="0 4"/>
|
||||
</CollapsibleBody>
|
||||
</Collapsible>
|
||||
|
||||
<!-- The reagents in the solution -->
|
||||
<ScrollContainer HorizontalExpand="True" VerticalExpand="True" Margin="0 4">
|
||||
<BoxContainer Name="ReagentList" Orientation="Vertical"/>
|
||||
</ScrollContainer>
|
||||
|
||||
<Button Name="AddButton" Text="{Loc 'admin-solutions-window-add-new-button'}" HorizontalExpand="True" Margin="0 4"/>
|
||||
</BoxContainer>
|
||||
</DefaultWindow>
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.Console;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.Administration.UI.ManageSolutions
|
||||
{
|
||||
@@ -126,12 +120,12 @@ namespace Content.Client.Administration.UI.ManageSolutions
|
||||
var specificHeatLabel = new Label();
|
||||
specificHeatLabel.HorizontalExpand = true;
|
||||
specificHeatLabel.Margin = new Thickness(0, 1);
|
||||
specificHeatLabel.Text = Loc.GetString("admin-solutions-window-specific-heat-label", ("specificHeat", solution.SpecificHeat));
|
||||
specificHeatLabel.Text = Loc.GetString("admin-solutions-window-specific-heat-label", ("specificHeat", solution.SpecificHeat.ToString("G3")));
|
||||
|
||||
var heatCapacityLabel = new Label();
|
||||
heatCapacityLabel.HorizontalExpand = true;
|
||||
heatCapacityLabel.Margin = new Thickness(0, 1);
|
||||
heatCapacityLabel.Text = Loc.GetString("admin-solutions-window-heat-capacity-label", ("heatCapacity", solution.HeatCapacity));
|
||||
heatCapacityLabel.Text = Loc.GetString("admin-solutions-window-heat-capacity-label", ("heatCapacity", solution.HeatCapacity.ToString("G3")));
|
||||
|
||||
// Temperature entry:
|
||||
var temperatureBox = new BoxContainer();
|
||||
|
||||
@@ -7,3 +7,4 @@ admin-solutions-window-specific-heat-label = Specific Heat: {$specificHeat} J/(K
|
||||
admin-solutions-window-heat-capacity-label = Heat Capacity: {$heatCapacity} J/K
|
||||
admin-solutions-window-temperature-label = Temperature (K):
|
||||
admin-solutions-window-thermal-energy-label = Thermal Energy (J):
|
||||
admin-solutions-window-thermals = Thermals
|
||||
Reference in New Issue
Block a user