mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Fix ChatLine not being correctly loaded asynchronously
This commit is contained in:
parent
35ce032be1
commit
4ef165fdac
@ -74,17 +74,12 @@ namespace osu.Game.Overlays.Chat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool senderHasBackground => !string.IsNullOrEmpty(message.Sender.Colour);
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
customUsernameColour = colours.ChatBlue;
|
customUsernameColour = colours.ChatBlue;
|
||||||
}
|
|
||||||
|
|
||||||
private bool senderHasBackground => !string.IsNullOrEmpty(message.Sender.Colour);
|
|
||||||
|
|
||||||
protected override void LoadComplete()
|
|
||||||
{
|
|
||||||
base.LoadComplete();
|
|
||||||
|
|
||||||
bool hasBackground = senderHasBackground;
|
bool hasBackground = senderHasBackground;
|
||||||
|
|
||||||
@ -179,6 +174,11 @@ namespace osu.Game.Overlays.Chat
|
|||||||
};
|
};
|
||||||
|
|
||||||
updateMessageContent();
|
updateMessageContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
FinishTransforms(true);
|
FinishTransforms(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user