mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:52:55 +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),
|
typeof(CatcherSprite),
|
||||||
};
|
};
|
||||||
|
|
||||||
private Container container;
|
private readonly Container container;
|
||||||
|
|
||||||
public TestSceneCatcherSkinning()
|
public TestSceneCatcherSkinning()
|
||||||
{
|
{
|
||||||
@ -79,7 +79,11 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
|
|
||||||
private class CatchCustomSkinSourceContainer : Container, ISkinSource
|
private class CatchCustomSkinSourceContainer : Container, ISkinSource
|
||||||
{
|
{
|
||||||
public event Action SourceChanged;
|
public event Action SourceChanged
|
||||||
|
{
|
||||||
|
add { }
|
||||||
|
remove { }
|
||||||
|
}
|
||||||
|
|
||||||
public Drawable GetDrawableComponent(string componentName) => new CatcherCustomSkin();
|
public Drawable GetDrawableComponent(string componentName) => new CatcherCustomSkin();
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ using System.Linq;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Sprites;
|
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
using osu.Framework.MathUtils;
|
using osu.Framework.MathUtils;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
@ -13,8 +13,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
{
|
{
|
||||||
public class CatcherSprite : SkinReloadableDrawable
|
public class CatcherSprite : SkinReloadableDrawable
|
||||||
{
|
{
|
||||||
private Drawable catcher;
|
|
||||||
|
|
||||||
public CatcherSprite()
|
public CatcherSprite()
|
||||||
{
|
{
|
||||||
Size = new Vector2(CatcherArea.CATCHER_SIZE);
|
Size = new Vector2(CatcherArea.CATCHER_SIZE);
|
||||||
@ -26,10 +24,10 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures)
|
private void load(TextureStore textures)
|
||||||
{
|
{
|
||||||
InternalChild = new Container()
|
InternalChild = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
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"),
|
Texture = textures.Get(@"Play/Catch/fruit-catcher-idle"),
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Loading…
Reference in New Issue
Block a user