2017-02-17 19:07:11 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2017-11-01 19:54:58 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-02-17 19:07:11 +08:00
|
|
|
|
using osu.Game.Screens.Menu;
|
2017-11-01 19:54:58 +08:00
|
|
|
|
using OpenTK;
|
2017-02-17 19:07:11 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens
|
|
|
|
|
{
|
2017-03-07 09:59:19 +08:00
|
|
|
|
internal class Loader : OsuScreen
|
2017-02-17 19:07:11 +08:00
|
|
|
|
{
|
2017-11-01 15:57:59 +08:00
|
|
|
|
public override bool ShowOverlays => false;
|
2017-02-17 19:07:11 +08:00
|
|
|
|
|
|
|
|
|
public Loader()
|
|
|
|
|
{
|
|
|
|
|
ValidForResume = false;
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-01 19:54:58 +08:00
|
|
|
|
protected override void LogoSetup(OsuLogo logo, bool resuming)
|
|
|
|
|
{
|
|
|
|
|
base.LogoSetup(logo, resuming);
|
|
|
|
|
|
|
|
|
|
logo.RelativePositionAxes = Axes.Both;
|
|
|
|
|
logo.Triangles = false;
|
|
|
|
|
logo.Position = new Vector2(0.9f);
|
|
|
|
|
logo.Scale = new Vector2(0.2f);
|
|
|
|
|
|
|
|
|
|
logo.FadeInFromZero(5000, Easing.OutQuint);
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-17 19:07:11 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuGame game)
|
|
|
|
|
{
|
|
|
|
|
if (game.IsDeployedBuild)
|
2017-06-26 18:06:08 +08:00
|
|
|
|
LoadComponentAsync(new Disclaimer(), d => Push(d));
|
2017-02-17 19:07:11 +08:00
|
|
|
|
else
|
2017-06-26 18:06:08 +08:00
|
|
|
|
LoadComponentAsync(new Intro(), d => Push(d));
|
2017-02-17 19:07:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|