1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:12:54 +08:00

Improve OsuTextFlowContainer with framework.

This commit is contained in:
Huo Yaoyuan 2017-06-13 02:58:10 +08:00
parent c75e2909ee
commit 755d2737d0

View File

@ -11,6 +11,10 @@ namespace osu.Game.Graphics.Containers
{ {
public class OsuTextFlowContainer : TextFlowContainer public class OsuTextFlowContainer : TextFlowContainer
{ {
public OsuTextFlowContainer(Action<SpriteText> defaultCreationParameters = null) : base(defaultCreationParameters)
{
}
protected override SpriteText CreateSpriteText() => new OsuSpriteText(); protected override SpriteText CreateSpriteText() => new OsuSpriteText();
public IEnumerable<SpriteText> AddTextAwesome(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters); public IEnumerable<SpriteText> AddTextAwesome(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);