fix appveyor warnings

This commit is contained in:
LeNitrous
2019-04-14 07:55:15 +08:00
parent 91c327a90f
commit 2d227d25cc
2 changed files with 9 additions and 11 deletions

View File

@ -21,11 +21,11 @@ namespace osu.Game.Screens.Select
public string Text public string Text
{ {
get => spriteText?.Text; get => SpriteText?.Text;
set set
{ {
if (spriteText != null) if (SpriteText != null)
spriteText.Text = value; SpriteText.Text = value;
} }
} }
@ -54,8 +54,8 @@ namespace osu.Game.Screens.Select
} }
} }
protected readonly Container textContainer; protected readonly Container TextContainer;
protected readonly SpriteText spriteText; protected readonly SpriteText SpriteText;
private readonly Box box; private readonly Box box;
private readonly Box light; private readonly Box light;
@ -66,10 +66,10 @@ namespace osu.Game.Screens.Select
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
Children = new Drawable[] Children = new Drawable[]
{ {
textContainer = new Container TextContainer = new Container
{ {
Size = new Vector2(100, 50), Size = new Vector2(100, 50),
Child = spriteText = new OsuSpriteText Child = SpriteText = new OsuSpriteText
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,

View File

@ -6,19 +6,17 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Screens.Play.HUD; using osu.Game.Screens.Play.HUD;
using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.UI;
using System.Collections.Generic; using System.Collections.Generic;
using osuTK; using osuTK;
using osu.Framework.Input.Events;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
public class FooterButtonMods : FooterButton public class FooterButtonMods : FooterButton
{ {
private readonly FooterModDisplay modDisplay;
public FooterButtonMods(Bindable<IEnumerable<Mod>> mods) public FooterButtonMods(Bindable<IEnumerable<Mod>> mods)
{ {
FooterModDisplay modDisplay;
Add(new Container Add(new Container
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,