1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 06:52:55 +08:00
osu-lazer/osu.Game/Graphics/Containers/OsuTextFlowContainer.cs

23 lines
851 B
C#
Raw Normal View History

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