mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 13:22:57 +08:00
Apply proposed changes
This commit is contained in:
parent
2c5ca9c1c8
commit
85e5d74a16
@ -5,7 +5,6 @@ using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Effects;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Graphics;
|
||||
@ -19,7 +18,6 @@ using osu.Game.Overlays.BeatmapSet;
|
||||
using osu.Game.Resources.Localisation.Web;
|
||||
using osu.Game.Screens.Select.Details;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
@ -70,21 +68,12 @@ namespace osu.Game.Screens.Select
|
||||
CornerRadius = 10;
|
||||
Masking = true;
|
||||
|
||||
EdgeEffect = new EdgeEffectParameters
|
||||
{
|
||||
Type = EdgeEffectType.Glow,
|
||||
Hollow = true,
|
||||
Colour = new Color4(130, 204, 255, 15),
|
||||
Radius = 10,
|
||||
};
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = new Color4(130, 204, 255, 40),
|
||||
Blending = BlendingParameters.Additive,
|
||||
Colour = Colour4.Black.Opacity(0.3f),
|
||||
},
|
||||
new Container
|
||||
{
|
||||
|
@ -92,11 +92,35 @@ namespace osu.Game.Screens.Select.Details
|
||||
Direction = FillDirection.Full,
|
||||
Children = new[]
|
||||
{
|
||||
FirstValue = new StatisticRow { Width = 0.5f }, // circle size/key amount
|
||||
HpDrain = new StatisticRow { Title = BeatmapsetsStrings.ShowStatsDrain, Width = 0.5f },
|
||||
Accuracy = new StatisticRow { Title = BeatmapsetsStrings.ShowStatsAccuracy, Width = 0.5f },
|
||||
ApproachRate = new StatisticRow { Title = BeatmapsetsStrings.ShowStatsAr, Width = 0.5f },
|
||||
starDifficulty = new StatisticRow(10, true) { Title = BeatmapsetsStrings.ShowStatsStars, Width = 0.5f },
|
||||
FirstValue = new StatisticRow
|
||||
{
|
||||
Width = 0.5f,
|
||||
Padding = new MarginPadding { Right = 5, Vertical = 2.5f },
|
||||
}, // circle size/key amount
|
||||
HpDrain = new StatisticRow
|
||||
{
|
||||
Title = BeatmapsetsStrings.ShowStatsDrain,
|
||||
Width = 0.5f,
|
||||
Padding = new MarginPadding { Left = 5, Vertical = 2.5f },
|
||||
},
|
||||
Accuracy = new StatisticRow
|
||||
{
|
||||
Title = BeatmapsetsStrings.ShowStatsAccuracy,
|
||||
Width = 0.5f,
|
||||
Padding = new MarginPadding { Right = 5, Vertical = 2.5f },
|
||||
},
|
||||
ApproachRate = new StatisticRow
|
||||
{
|
||||
Title = BeatmapsetsStrings.ShowStatsAr,
|
||||
Width = 0.5f,
|
||||
Padding = new MarginPadding { Left = 5, Vertical = 2.5f },
|
||||
},
|
||||
starDifficulty = new StatisticRow(10, true)
|
||||
{
|
||||
Title = BeatmapsetsStrings.ShowStatsStars,
|
||||
Width = 0.5f,
|
||||
Padding = new MarginPadding { Right = 5, Vertical = 2.5f },
|
||||
},
|
||||
},
|
||||
};
|
||||
break;
|
||||
|
@ -13,7 +13,6 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.ObjectExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Effects;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
@ -274,28 +273,20 @@ namespace osu.Game.Screens.Select
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Masking = true,
|
||||
CornerRadius = 10,
|
||||
EdgeEffect = new EdgeEffectParameters
|
||||
{
|
||||
Type = EdgeEffectType.Glow,
|
||||
Hollow = true,
|
||||
Colour = new Color4(130, 204, 255, 15),
|
||||
Radius = 10,
|
||||
},
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
{
|
||||
Colour = new Color4(130, 204, 255, 40),
|
||||
Blending = BlendingParameters.Additive,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = Colour4.Black.Opacity(0.3f),
|
||||
},
|
||||
advancedStats = new AdvancedStats(2)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Width = 0.8f,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Padding = new MarginPadding(10)
|
||||
},
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user