From 9b866d2248e197f8d5279a70fb6727eb302b3bfc Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 4 Dec 2017 13:46:07 +0100 Subject: [PATCH] Made it so the link ID is always added before loading the SpriteTexts (fixed weird bug where some sprites would be white instead of blue). Also improved XML doc on TextColour --- osu.Game/Graphics/Containers/OsuLinkTextFlowContainer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/Containers/OsuLinkTextFlowContainer.cs b/osu.Game/Graphics/Containers/OsuLinkTextFlowContainer.cs index 559b3eef17..ebb4cca0e0 100644 --- a/osu.Game/Graphics/Containers/OsuLinkTextFlowContainer.cs +++ b/osu.Game/Graphics/Containers/OsuLinkTextFlowContainer.cs @@ -35,7 +35,7 @@ namespace osu.Game.Graphics.Containers protected override SpriteText CreateSpriteText() => new T(); /// - /// The colour for normal text (links ignore this). This should be set before text is added. + /// The colour for normal text (links ignore this). Will only be used for new text elements. /// Default is white. /// public ColourInfo? TextColour; @@ -44,8 +44,8 @@ namespace osu.Game.Graphics.Containers { AddText(text, link => { - LoadComponentAsync(link, d => ((T)d).Url = url); creationParameters?.Invoke(link); + LoadComponentAsync(link, d => ((T)d).Url = url); }); }