mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 13:33:03 +08:00
add pinned mark in drawable comment
This commit is contained in:
parent
ff860b90a9
commit
1859e651b6
@ -21,6 +21,7 @@ using osu.Framework.Extensions.IEnumerableExtensions;
|
|||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Overlays.Comments.Buttons;
|
using osu.Game.Overlays.Comments.Buttons;
|
||||||
|
using osu.Game.Resources.Localisation.Web;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Comments
|
namespace osu.Game.Overlays.Comments
|
||||||
{
|
{
|
||||||
@ -143,6 +144,26 @@ namespace osu.Game.Overlays.Comments
|
|||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both
|
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 ParentUsername(Comment),
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user