Gas analyzer compref removal (#17992)
* Gas analyzer compref removal * don't question it
This commit is contained in:
@@ -7,23 +7,17 @@ using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using static Content.Shared.Atmos.Components.SharedGasAnalyzerComponent;
|
||||
using static Content.Shared.Atmos.Components.GasAnalyzerComponent;
|
||||
|
||||
namespace Content.Client.Atmos.UI
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class GasAnalyzerWindow : DefaultWindow
|
||||
{
|
||||
private GasAnalyzerBoundUserInterface _owner;
|
||||
private IEntityManager _entityManager;
|
||||
|
||||
public GasAnalyzerWindow(GasAnalyzerBoundUserInterface owner)
|
||||
public GasAnalyzerWindow()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
_entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
_owner = owner;
|
||||
}
|
||||
|
||||
public void Populate(GasAnalyzerUserMessage msg)
|
||||
@@ -74,7 +68,7 @@ namespace Content.Client.Atmos.UI
|
||||
_ => GridIcon.OverrideDirection
|
||||
};
|
||||
|
||||
GridIcon.Sprite = _entityManager.GetComponent<SpriteComponent>(msg.DeviceUid);
|
||||
GridIcon.SetEntity(msg.DeviceUid);
|
||||
LeftPanel.RemoveAllChildren();
|
||||
MiddlePanel.RemoveAllChildren();
|
||||
RightPanel.RemoveAllChildren();
|
||||
@@ -262,10 +256,9 @@ namespace Content.Client.Atmos.UI
|
||||
});
|
||||
// This is the gas bar thingy
|
||||
var height = 30;
|
||||
var minSize = 24; // This basically allows gases which are too small, to be shown properly
|
||||
var gasBar = new SplitBar()
|
||||
var gasBar = new SplitBar
|
||||
{
|
||||
MinHeight = height
|
||||
MinHeight = height,
|
||||
};
|
||||
// Separator
|
||||
dataContainer.AddChild(new Control
|
||||
|
||||
Reference in New Issue
Block a user