Fix various compiler warnings.

This commit is contained in:
Pieter-Jan Briers
2019-02-21 22:01:13 +01:00
parent fd9db21ad7
commit 20846ef446
6 changed files with 14 additions and 10 deletions

View File

@@ -43,13 +43,13 @@ namespace Content.Client.UserInterface
{
base.Initialize();
var _resMgr = IoCManager.Resolve<IResourceCache>();
var handsBoxTexture = _resMgr.GetResource<TextureResource>("/Textures/UserInterface/handsbox.png");
var resMgr = IoCManager.Resolve<IResourceCache>();
var handsBoxTexture = resMgr.GetResource<TextureResource>("/Textures/UserInterface/handsbox.png");
handBox = new StyleBoxTexture()
{
Texture = handsBoxTexture,
};
handBox.SetMargin(StyleBox.Margin.All, 6);
handBox.SetPatchMargin(StyleBox.Margin.All, 6);
inactiveHandBox = new StyleBoxTexture(handBox)
{
Modulate = _inactiveColor,