1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Add border to playfield, add shadow to toolbox buttons

This commit is contained in:
smoogipoo 2017-11-30 17:38:55 +09:00
parent 456bbe25f3
commit e5353bb53e
2 changed files with 22 additions and 1 deletions

View File

@ -4,10 +4,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Logging;
using osu.Framework.Timing;
using osu.Game.Rulesets.Edit.Tools;
@ -65,7 +67,18 @@ namespace osu.Game.Rulesets.Edit
{
RelativeSizeAxes = Axes.Both,
Masking = true,
Child = rulesetContainer
BorderColour = Color4.White,
BorderThickness = 2,
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0,
AlwaysPresent = true,
},
rulesetContainer
}
}
},
},

View File

@ -45,6 +45,14 @@ namespace osu.Game.Screens.Edit.Screens.Compose.RadioButtons
Triangles.Alpha = 0;
BackgroundColour = DefaultBackgroundColour;
Content.EdgeEffect = new EdgeEffectParameters
{
Type = EdgeEffectType.Shadow,
Radius = 2,
Offset = new Vector2(0, 1),
Colour = Color4.Black.Opacity(0.5f)
};
Add(bubble = new CircularContainer
{
Anchor = Anchor.CentreLeft,