mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 21:13:01 +08:00
Improve OsuTextFlowContainer with framework.
This commit is contained in:
parent
c75e2909ee
commit
755d2737d0
@ -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<SpriteText> defaultCreationParameters = null) : base(defaultCreationParameters)
|
||||
{
|
||||
}
|
||||
|
||||
protected override SpriteText CreateSpriteText() => new OsuSpriteText();
|
||||
|
||||
public IEnumerable<SpriteText> AddTextAwesome(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);
|
||||
|
Loading…
Reference in New Issue
Block a user