1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 04:23:21 +08:00

Add sample TextBox and SpriteText to MainMenu for comparison.

This commit is contained in:
Dean Herbert 2016-08-29 16:23:00 +09:00
parent 41c03ab255
commit 586aaad2b0

View File

@ -1,9 +1,12 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
using osu.Framework.Audio.Sample;
using osu.Framework.Audio.Track;
using osu.Framework.GameModes;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.GameModes.Menu
{
@ -21,6 +24,20 @@ namespace osu.Game.GameModes.Menu
welcome.Play();
Add(new ButtonSystem());
Add(new TextBox()
{
Text = @"The quick brown fox jumped over the lazy dog.",
Position = new Vector2(50,50),
Size = new Vector2(300,20)
});
Add(new SpriteText()
{
Text = @"The quick brown fox jumped over the lazy dog.",
Position = new Vector2(50, 80),
Size = new Vector2(300, 20)
});
}
}
}