From 755d2737d0bc1836f3c4acae35bb88962a4edc11 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Tue, 13 Jun 2017 02:58:10 +0800 Subject: [PATCH] Improve OsuTextFlowContainer with framework. --- osu.Game/Graphics/Containers/OsuTextFlowContainer.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs b/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs index 7b5da8587f..38c1edbc4e 100644 --- a/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs +++ b/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs @@ -9,8 +9,12 @@ using osu.Game.Graphics.Sprites; namespace osu.Game.Graphics.Containers { - public class OsuTextFlowContainer: TextFlowContainer + public class OsuTextFlowContainer : TextFlowContainer { + public OsuTextFlowContainer(Action defaultCreationParameters = null) : base(defaultCreationParameters) + { + } + protected override SpriteText CreateSpriteText() => new OsuSpriteText(); public IEnumerable AddTextAwesome(FontAwesome icon, Action creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);