diff --git a/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs b/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs index 06972967be..7b5da8587f 100644 --- a/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs +++ b/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs @@ -1,6 +1,8 @@ // Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE +using System; +using System.Collections.Generic; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics.Sprites; @@ -10,5 +12,7 @@ namespace osu.Game.Graphics.Containers public class OsuTextFlowContainer: TextFlowContainer { protected override SpriteText CreateSpriteText() => new OsuSpriteText(); + + public IEnumerable AddTextAwesome(FontAwesome icon, Action creationParameters = null) => AddText(((char)icon).ToString(), creationParameters); } }