mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
25 lines
801 B
C#
25 lines
801 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Collections.Generic;
|
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
|
|
|
namespace osu.Framework.Graphics.Containers
|
|
{
|
|
public class TextNewLine : TextPart
|
|
{
|
|
private readonly bool indicatesNewParagraph;
|
|
|
|
public TextNewLine(bool indicatesNewParagraph)
|
|
{
|
|
this.indicatesNewParagraph = indicatesNewParagraph;
|
|
}
|
|
|
|
protected override IEnumerable<Drawable> CreateDrawablesFor(TextFlowContainer textFlowContainer)
|
|
{
|
|
var newLineContainer = new TextFlowContainer.NewLineContainer(indicatesNewParagraph);
|
|
return newLineContainer.Yield();
|
|
}
|
|
}
|
|
}
|