1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Fix CI inspections

This commit is contained in:
Lucas A 2019-06-22 18:23:20 +02:00
parent b6cae57694
commit 332ac0b82b
3 changed files with 8 additions and 7 deletions

View File

@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Catch.Tests
typeof(CatcherSprite),
};
private Container container;
private readonly Container container;
public TestSceneCatcherSkinning()
{
@ -79,7 +79,11 @@ namespace osu.Game.Rulesets.Catch.Tests
private class CatchCustomSkinSourceContainer : Container, ISkinSource
{
public event Action SourceChanged;
public event Action SourceChanged
{
add { }
remove { }
}
public Drawable GetDrawableComponent(string componentName) => new CatcherCustomSkin();

View File

@ -6,7 +6,6 @@ using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input.Bindings;
using osu.Framework.MathUtils;
using osu.Game.Beatmaps;

View File

@ -13,8 +13,6 @@ namespace osu.Game.Rulesets.Catch.UI
{
public class CatcherSprite : SkinReloadableDrawable
{
private Drawable catcher;
public CatcherSprite()
{
Size = new Vector2(CatcherArea.CATCHER_SIZE);
@ -26,10 +24,10 @@ namespace osu.Game.Rulesets.Catch.UI
[BackgroundDependencyLoader]
private void load(TextureStore textures)
{
InternalChild = new Container()
InternalChild = new Container
{
RelativeSizeAxes = Axes.Both,
Child = catcher = new SkinnableDrawable("fruit-catcher-idle", _ => new Sprite()
Child = new SkinnableDrawable("fruit-catcher-idle", _ => new Sprite
{
Texture = textures.Get(@"Play/Catch/fruit-catcher-idle"),
RelativeSizeAxes = Axes.Both,