mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Merge branch 'master' into editor-waveform
This commit is contained in:
commit
18c67dd936
@ -159,7 +159,7 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.Both,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@ namespace osu.Game.Overlays.MedalSplash
|
|||||||
},
|
},
|
||||||
description = new TextFlowContainer
|
description = new TextFlowContainer
|
||||||
{
|
{
|
||||||
|
TextAnchor = Anchor.TopCentre,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -115,15 +116,16 @@ namespace osu.Game.Overlays.MedalSplash
|
|||||||
medalSprite.Texture = textures.Get(medal.ImageUrl);
|
medalSprite.Texture = textures.Get(medal.ImageUrl);
|
||||||
medalGlow.Texture = textures.Get(@"MedalSplash/medal-glow");
|
medalGlow.Texture = textures.Get(@"MedalSplash/medal-glow");
|
||||||
description.Colour = colours.BlueLight;
|
description.Colour = colours.BlueLight;
|
||||||
|
|
||||||
unlocked.Position = new Vector2(0f, medalContainer.Size.Y / 2 + 10);
|
|
||||||
infoFlow.Position = new Vector2(0f, unlocked.Position.Y + 90);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
updateState();
|
updateState();
|
||||||
|
|
||||||
|
unlocked.Position = new Vector2(0f, medalContainer.DrawSize.Y / 2 + 10);
|
||||||
|
infoFlow.Position = new Vector2(0f, unlocked.Position.Y + 90);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DisplayState State
|
public DisplayState State
|
||||||
@ -172,6 +174,7 @@ namespace osu.Game.Overlays.MedalSplash
|
|||||||
|
|
||||||
this.ScaleTo(scale_when_full, duration, Easing.OutExpo);
|
this.ScaleTo(scale_when_full, duration, Easing.OutExpo);
|
||||||
this.MoveToY(MedalOverlay.DISC_SIZE / 2 - 60, duration, Easing.OutExpo);
|
this.MoveToY(MedalOverlay.DISC_SIZE / 2 - 60, duration, Easing.OutExpo);
|
||||||
|
unlocked.Show();
|
||||||
name.FadeInFromZero(duration + 100);
|
name.FadeInFromZero(duration + 100);
|
||||||
description.FadeInFromZero(duration * 2);
|
description.FadeInFromZero(duration * 2);
|
||||||
break;
|
break;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
|
using osu.Game.Overlays.MedalSplash;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual
|
namespace osu.Game.Tests.Visual
|
||||||
@ -10,6 +13,12 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
public override string Description => @"medal get!";
|
public override string Description => @"medal get!";
|
||||||
|
|
||||||
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
|
{
|
||||||
|
typeof(MedalOverlay),
|
||||||
|
typeof(DrawableMedal),
|
||||||
|
};
|
||||||
|
|
||||||
public TestCaseMedalOverlay()
|
public TestCaseMedalOverlay()
|
||||||
{
|
{
|
||||||
AddStep(@"display", () =>
|
AddStep(@"display", () =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user