mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Fix CI inspections
This commit is contained in:
parent
b6cae57694
commit
332ac0b82b
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user