Fix compiler warnings and remove dead code.
This commit is contained in:
@@ -82,7 +82,7 @@ namespace Content.Client.GameObjects.Components.Actor
|
||||
{
|
||||
private readonly VBoxContainer _contentsVBox;
|
||||
|
||||
public CharacterWindow(IEnumerable<ICharacterUI> windowComponents) : base(IoCManager.Resolve<IDisplayManager>())
|
||||
public CharacterWindow(IEnumerable<ICharacterUI> windowComponents)
|
||||
{
|
||||
Title = "Character";
|
||||
HideOnClose = true;
|
||||
|
||||
@@ -40,8 +40,7 @@ namespace Content.Client.GameObjects.Components.Construction
|
||||
case PlayerAttachedMsg _:
|
||||
if (Button == null)
|
||||
{
|
||||
Button = new ConstructionButton(IoCManager.Resolve<IDisplayManager>());
|
||||
Button.Owner = this;
|
||||
Button = new ConstructionButton {Owner = this};
|
||||
}
|
||||
Button.AddToScreen();
|
||||
break;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
{
|
||||
base.Open();
|
||||
|
||||
_window = new ApcWindow(IoCManager.Resolve<IDisplayManager>())
|
||||
_window = new ApcWindow()
|
||||
{
|
||||
MarginRight = 426.0f, MarginBottom = 270.0f
|
||||
};
|
||||
@@ -124,7 +124,7 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
public Label ExternalPowerStateLabel { get; set; }
|
||||
public ProgressBar ChargeBar { get; set; }
|
||||
|
||||
public ApcWindow(IDisplayManager displayMan) : base(displayMan)
|
||||
public ApcWindow()
|
||||
{
|
||||
Title = "APC";
|
||||
var rows = new VBoxContainer("Rows");
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
{
|
||||
LastWindow.Dispose();
|
||||
}
|
||||
LastWindow = new SS14Window(IoCManager.Resolve<IDisplayManager>())
|
||||
LastWindow = new SS14Window()
|
||||
{
|
||||
Title = "Power Debug Tool",
|
||||
};
|
||||
|
||||
@@ -3,7 +3,6 @@ using Content.Client.Research;
|
||||
using Content.Shared.GameObjects.Components.Research;
|
||||
using Content.Shared.Research;
|
||||
using Robust.Client.GameObjects.Components.UserInterface;
|
||||
using Robust.Client.Interfaces.Graphics;
|
||||
using Robust.Shared.GameObjects.Components.UserInterface;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Prototypes;
|
||||
@@ -14,8 +13,6 @@ namespace Content.Client.GameObjects.Components.Research
|
||||
public class LatheBoundUserInterface : BoundUserInterface
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
[Dependency]
|
||||
private IDisplayManager _displayManager;
|
||||
[Dependency]
|
||||
private IPrototypeManager _prototypeManager;
|
||||
#pragma warning restore
|
||||
@@ -50,8 +47,8 @@ namespace Content.Client.GameObjects.Components.Research
|
||||
Lathe = lathe;
|
||||
Database = database;
|
||||
|
||||
menu = new LatheMenu(_displayManager) {Owner = this};
|
||||
queueMenu = new LatheQueueMenu(_displayManager) { Owner = this };
|
||||
menu = new LatheMenu {Owner = this};
|
||||
queueMenu = new LatheQueueMenu { Owner = this };
|
||||
|
||||
menu.OnClose += Close;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Content.Client.GameObjects.Components.Storage
|
||||
{
|
||||
base.OnAdd();
|
||||
|
||||
Window = new StorageWindow(IoCManager.Resolve<IDisplayManager>())
|
||||
Window = new StorageWindow()
|
||||
{ StorageEntity = this};
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace Content.Client.GameObjects.Components.Storage
|
||||
private Label Information;
|
||||
public ClientStorageComponent StorageEntity;
|
||||
|
||||
public StorageWindow(IDisplayManager displayMan) : base(displayMan)
|
||||
public StorageWindow()
|
||||
{
|
||||
Size = new Vector2(180.0f, 320.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user