2017-06-12 16:51:06 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
2017-06-14 23:29:32 +00:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2017-06-12 16:51:06 +00:00
|
|
|
|
|
2017-06-12 16:58:32 +00:00
|
|
|
|
using System;
|
2017-06-12 16:51:06 +00:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
|
using osu.Game.Graphics.Sprites;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Graphics.Containers
|
|
|
|
|
{
|
2017-06-12 18:58:10 +00:00
|
|
|
|
public class OsuTextFlowContainer : TextFlowContainer
|
2017-06-12 16:51:06 +00:00
|
|
|
|
{
|
2017-06-12 18:58:10 +00:00
|
|
|
|
public OsuTextFlowContainer(Action<SpriteText> defaultCreationParameters = null) : base(defaultCreationParameters)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-12 16:51:06 +00:00
|
|
|
|
protected override SpriteText CreateSpriteText() => new OsuSpriteText();
|
2017-06-12 16:58:32 +00:00
|
|
|
|
|
2017-07-13 04:52:40 +00:00
|
|
|
|
public void AddIcon(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);
|
2017-06-12 16:51:06 +00:00
|
|
|
|
}
|
|
|
|
|
}
|