Fix a couple warnings.

This commit is contained in:
Pieter-Jan Briers
2019-04-29 13:12:50 +02:00
parent 77d92675e2
commit f249c19eaf
4 changed files with 9 additions and 7 deletions

View File

@@ -44,7 +44,9 @@ namespace Content.Client
{
public class EntryPoint : GameClient
{
#pragma warning disable 649
[Dependency] private readonly IPlayerManager _playerManager;
#pragma warning restore 649
public override void Init()
{

View File

@@ -21,8 +21,6 @@ namespace Content.Client.Research
#pragma warning disable CS0649
[Dependency]
private IPrototypeManager PrototypeManager;
[Dependency]
private IResourceCache ResourceCache;
#pragma warning restore
private ItemList Items;

View File

@@ -21,7 +21,7 @@ namespace Content.Client.Research
[ViewVariables]
private ItemList QueueList;
private Label Name;
private Label NameLabel;
private Label Description;
private TextureRect Icon;
@@ -79,7 +79,7 @@ namespace Content.Client.Research
SizeFlagsStretchRatio = 3,
};
Name = new Label()
NameLabel = new Label()
{
RectClipContent = true,
SizeFlagsHorizontal = SizeFlags.Fill,
@@ -101,7 +101,7 @@ namespace Content.Client.Research
SelectMode = ItemList.ItemListSelectMode.None
};
vboxInfo.AddChild(Name);
vboxInfo.AddChild(NameLabel);
vboxInfo.AddChild(Description);
hbox.AddChild(Icon);
@@ -123,7 +123,7 @@ namespace Content.Client.Research
{
Icon.Texture = recipe.Icon.Frame0();
if (recipe.Name != null)
Name.Text = recipe.Name;
NameLabel.Text = recipe.Name;
if (recipe.Description != null)
Description.Text = recipe.Description;
}
@@ -131,7 +131,7 @@ namespace Content.Client.Research
public void ClearInfo()
{
Icon.Texture = Texture.Transparent;
Name.Text = "-------";
NameLabel.Text = "-------";
Description.Text = "Not producing anything.";
}

View File

@@ -25,7 +25,9 @@ namespace Content.Server.GameObjects
{
public class HandsComponent : SharedHandsComponent, IHandsComponent
{
#pragma warning disable 649
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
#pragma warning restore 649
private string activeIndex;