2016-08-26 11:28:23 +08:00
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
2016-08-26 16:27:49 +08:00
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-08-26 11:28:23 +08:00
|
|
|
|
2016-08-29 15:23:00 +08:00
|
|
|
using OpenTK;
|
2016-08-26 11:28:23 +08:00
|
|
|
using osu.Framework.Audio.Sample;
|
|
|
|
using osu.Framework.Audio.Track;
|
|
|
|
using osu.Framework.GameModes;
|
2016-09-18 04:33:46 +08:00
|
|
|
using osu.Framework.Graphics;
|
2016-08-29 15:23:00 +08:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2016-08-26 11:28:23 +08:00
|
|
|
|
|
|
|
namespace osu.Game.GameModes.Menu
|
|
|
|
{
|
|
|
|
internal class MainMenu : GameMode
|
|
|
|
{
|
|
|
|
public override string Name => @"Main Menu";
|
|
|
|
|
|
|
|
private AudioTrackBass bgm;
|
|
|
|
|
2016-09-18 04:33:46 +08:00
|
|
|
public override void Load()
|
|
|
|
{
|
|
|
|
base.Load();
|
|
|
|
|
|
|
|
AudioSample welcome = Game.Audio.Sample.Get(@"welcome");
|
|
|
|
|
|
|
|
Add(new Drawable[]
|
|
|
|
{
|
|
|
|
new ButtonSystem(),
|
|
|
|
new TextBox()
|
|
|
|
{
|
|
|
|
Text = @"The quick brown fox jumped over the lazy dog.",
|
|
|
|
Position = new Vector2(50, 50),
|
|
|
|
Size = new Vector2(300, 20)
|
|
|
|
},
|
|
|
|
new SpriteText()
|
|
|
|
{
|
|
|
|
Text = @"The quick brown fox jumped over the lazy dog.",
|
|
|
|
Position = new Vector2(50, 80),
|
|
|
|
Size = new Vector2(300, 20)
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2016-08-26 11:28:23 +08:00
|
|
|
}
|
|
|
|
}
|