Use new placeholder logic.

This commit is contained in:
Dean Herbert
2017-02-08 14:01:17 +09:00
parent 84096b146e
commit a6f02106a4
4 changed files with 23 additions and 37 deletions

View File

@ -3,6 +3,8 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input;
using osu.Game.Graphics.Sprites;
@ -19,6 +21,13 @@ namespace osu.Game.Graphics.UserInterface
protected override float LeftRightPadding => 10;
protected override SpriteText CreatePlaceholder() => new OsuSpriteText
{
Font = @"Exo2.0-MediumItalic",
Colour = new Color4(180, 180, 180, 255),
Margin = new MarginPadding { Left = 2 },
};
public OsuTextBox()
{
Height = 40;