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