osu/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs

19 lines
712 B
C#
Raw Normal View History

2017-06-12 16:51:06 +00:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Generic;
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
{
public class OsuTextFlowContainer: TextFlowContainer
{
protected override SpriteText CreateSpriteText() => new OsuSpriteText();
public IEnumerable<SpriteText> AddTextAwesome(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);
2017-06-12 16:51:06 +00:00
}
}