mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Merge pull request #1479 from peppy/fix-toolbar-display
Fix toolbar not appearing at main menu
This commit is contained in:
commit
8a8e6269ad
@ -263,17 +263,15 @@ namespace osu.Game.Screens.Menu
|
|||||||
logo.ScaleTo(0.5f, 200, Easing.In);
|
logo.ScaleTo(0.5f, 200, Easing.In);
|
||||||
|
|
||||||
trackingPosition = false;
|
trackingPosition = false;
|
||||||
|
|
||||||
logo
|
logo
|
||||||
.MoveTo(iconTrackingPosition, lastState == MenuState.EnteringMode ? 0 : 200, Easing.In)
|
.MoveTo(iconTrackingPosition, lastState == MenuState.EnteringMode ? 0 : 200, Easing.In)
|
||||||
.OnComplete(o =>
|
.OnComplete(o =>
|
||||||
{
|
{
|
||||||
trackingPosition = true;
|
trackingPosition = true;
|
||||||
|
|
||||||
if (logo.Scale.X > 0.5f)
|
o.Impact();
|
||||||
{
|
toolbar?.Show();
|
||||||
o.Impact();
|
|
||||||
toolbar?.Show();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user