mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
remove sprite
This commit is contained in:
parent
338a14ff69
commit
9a053f114e
@ -6,10 +6,8 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
using osu.Game.Rulesets.UI.Scrolling;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
||||
@ -19,7 +17,6 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
||||
private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>();
|
||||
private readonly IBindable<Color4> accentColour = new Bindable<Color4>();
|
||||
|
||||
private readonly Container spriteContainer;
|
||||
private readonly Container shadeContainer;
|
||||
private readonly Circle hitLine;
|
||||
|
||||
@ -28,7 +25,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
||||
RelativeSizeAxes = Axes.X;
|
||||
|
||||
// multiply by two so that the hold body extends up to the height of the note head accent
|
||||
Height = ArgonNotePiece.NOTE_HEIGHT * ArgonNotePiece.NOTE_ACCENT_RATIO * 2;
|
||||
Height = ArgonNotePiece.NOTE_HEIGHT * 2;
|
||||
|
||||
CornerRadius = ArgonNotePiece.CORNER_RADIUS;
|
||||
Masking = true;
|
||||
@ -45,25 +42,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = Color4.Black,
|
||||
Alpha = 0.2f,
|
||||
},
|
||||
},
|
||||
},
|
||||
spriteContainer = new Container {
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = ArgonNotePiece.NOTE_HEIGHT,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new SpriteIcon
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Y = 4,
|
||||
Icon = FontAwesome.Solid.AngleDown,
|
||||
Size = new Vector2(20),
|
||||
Scale = new Vector2(1, 0.7f),
|
||||
Colour = Color4.White,
|
||||
Alpha = 0.2f,
|
||||
Alpha = 0.4f,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -90,7 +69,6 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||
{
|
||||
hitLine.Anchor = hitLine.Origin =
|
||||
spriteContainer.Anchor = spriteContainer.Origin =
|
||||
shadeContainer.Anchor = shadeContainer.Origin =
|
||||
direction.NewValue == ScrollingDirection.Up
|
||||
? Anchor.TopCentre
|
||||
|
Loading…
Reference in New Issue
Block a user