Skip to content

Commit

Permalink
Adjust appearance once more
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Nov 7, 2024
1 parent e058f98 commit dba0653
Showing 1 changed file with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mania.Skinning.Default;
using osu.Game.Rulesets.Mania.UI;
using osu.Game.Rulesets.UI.Scrolling;
using osuTK;
using osuTK.Graphics;

namespace osu.Game.Rulesets.Mania.Edit.Blueprints.Components
{
Expand All @@ -23,15 +24,31 @@ public EditNotePiece()
{
Masking = true;
CornerRadius = 5;
BorderThickness = 6;
BorderColour = ColourInfo.GradientVertical(Colour4.White.Opacity(0.5f), Colour4.White);
Height = DefaultNotePiece.NOTE_HEIGHT;

InternalChild = new Box
InternalChildren = new Drawable[]
{
RelativeSizeAxes = Axes.Both,
Alpha = 0,
AlwaysPresent = true,
new Container
{
RelativeSizeAxes = Axes.Both,
Masking = true,
CornerRadius = 5,
BorderThickness = 5,
BorderColour = Color4.White.Opacity(0.7f),
Child = new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0,
AlwaysPresent = true,
},
},
new Box
{
RelativeSizeAxes = Axes.X,
Height = 10,
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
},
};
}

Expand Down

0 comments on commit dba0653

Please sign in to comment.