1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

add pinned mark in drawable comment

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-08-08 17:21:29 +07:00
parent ff860b90a9
commit 1859e651b6
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -21,6 +21,7 @@ using osu.Framework.Extensions.IEnumerableExtensions;
using System.Collections.Specialized;
using osu.Framework.Localisation;
using osu.Game.Overlays.Comments.Buttons;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Overlays.Comments
{
@ -143,6 +144,26 @@ namespace osu.Game.Overlays.Comments
{
AutoSizeAxes = Axes.Both
},
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(3, 0),
Alpha = Comment.Pinned ? 1 : 0,
Children = new Drawable[]
{
new SpriteIcon
{
Icon = FontAwesome.Solid.Thumbtack,
Size = new Vector2(14),
},
new OsuSpriteText
{
Font = OsuFont.GetFont(size: 14, weight: FontWeight.Bold),
Text = CommentsStrings.Pinned,
}
},
},
new ParentUsername(Comment),
new OsuSpriteText
{