mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Merge remote-tracking branch 'refs/remotes/upstream/master' into async-workflow
This commit is contained in:
@ -23,7 +23,6 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
Masking = true;
|
Masking = true;
|
||||||
CornerRadius = 10;
|
CornerRadius = 10;
|
||||||
BorderColour = new Color4(221, 255, 255, 0);
|
BorderColour = new Color4(221, 255, 255, 0);
|
||||||
GlowColour = new Color4(102, 204, 255, 100);
|
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
}
|
}
|
||||||
@ -53,16 +52,24 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
|
|
||||||
protected virtual void Selected()
|
protected virtual void Selected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 255);
|
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 1f);
|
||||||
GlowRadius = 10;
|
|
||||||
BorderThickness = 2.5f;
|
BorderThickness = 2.5f;
|
||||||
|
|
||||||
|
EdgeEffect = new EdgeEffect
|
||||||
|
{
|
||||||
|
Type = EdgeEffectType.Glow,
|
||||||
|
Colour = new Color4(130, 204, 255, 150),
|
||||||
|
Radius = 20,
|
||||||
|
Roundness = 10,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void Deselected()
|
protected virtual void Deselected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
|
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 0);
|
||||||
GlowRadius = 0;
|
|
||||||
BorderThickness = 0;
|
BorderThickness = 0;
|
||||||
|
|
||||||
|
EdgeEffect = new EdgeEffect { Type = EdgeEffectType.None };
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnClick(InputState state)
|
protected override bool OnClick(InputState state)
|
||||||
|
@ -35,6 +35,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
private ScrollContainer scrollContainer;
|
private ScrollContainer scrollContainer;
|
||||||
private FlowContainer beatmapSetFlow;
|
private FlowContainer beatmapSetFlow;
|
||||||
private TrackManager trackManager;
|
private TrackManager trackManager;
|
||||||
|
private Container wedgeContainer;
|
||||||
|
|
||||||
/// <param name="database">Optionally provide a database to use instead of the OsuGame one.</param>
|
/// <param name="database">Optionally provide a database to use instead of the OsuGame one.</param>
|
||||||
public PlaySongSelect(BeatmapDatabase database = null)
|
public PlaySongSelect(BeatmapDatabase database = null)
|
||||||
@ -45,7 +46,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
const float bottomToolHeight = 50;
|
const float bottomToolHeight = 50;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Container
|
wedgeContainer = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Size = Vector2.One,
|
Size = Vector2.One,
|
||||||
@ -147,6 +148,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
{
|
{
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
ensurePlayingSelected();
|
ensurePlayingSelected();
|
||||||
|
wedgeContainer.FadeInFromZero(250);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnResuming(GameMode last)
|
protected override void OnResuming(GameMode last)
|
||||||
|
Reference in New Issue
Block a user