mirror of
https://github.com/osukey/osukey.git
synced 2025-05-15 18:47:33 +09: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;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Sprites;
|
|
||||||
using osu.Game.Rulesets.Objects.Drawables;
|
using osu.Game.Rulesets.Objects.Drawables;
|
||||||
using osu.Game.Rulesets.UI.Scrolling;
|
using osu.Game.Rulesets.UI.Scrolling;
|
||||||
using osuTK;
|
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
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<ScrollingDirection> direction = new Bindable<ScrollingDirection>();
|
||||||
private readonly IBindable<Color4> accentColour = new Bindable<Color4>();
|
private readonly IBindable<Color4> accentColour = new Bindable<Color4>();
|
||||||
|
|
||||||
private readonly Container spriteContainer;
|
|
||||||
private readonly Container shadeContainer;
|
private readonly Container shadeContainer;
|
||||||
private readonly Circle hitLine;
|
private readonly Circle hitLine;
|
||||||
|
|
||||||
@ -28,7 +25,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
|
|
||||||
// multiply by two so that the hold body extends up to the height of the note head accent
|
// 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;
|
CornerRadius = ArgonNotePiece.CORNER_RADIUS;
|
||||||
Masking = true;
|
Masking = true;
|
||||||
@ -45,25 +42,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4.Black,
|
Colour = Color4.Black,
|
||||||
Alpha = 0.2f,
|
Alpha = 0.4f,
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
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,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -90,7 +69,6 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||||
{
|
{
|
||||||
hitLine.Anchor = hitLine.Origin =
|
hitLine.Anchor = hitLine.Origin =
|
||||||
spriteContainer.Anchor = spriteContainer.Origin =
|
|
||||||
shadeContainer.Anchor = shadeContainer.Origin =
|
shadeContainer.Anchor = shadeContainer.Origin =
|
||||||
direction.NewValue == ScrollingDirection.Up
|
direction.NewValue == ScrollingDirection.Up
|
||||||
? Anchor.TopCentre
|
? Anchor.TopCentre
|
||||||
|
Loading…
x
Reference in New Issue
Block a user