mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Refactor and general tidying up
This commit is contained in:
@ -83,7 +83,10 @@ namespace osu.Game.Overlays.Chat
|
||||
|
||||
private Message message;
|
||||
private OsuSpriteText username;
|
||||
private OsuLinkTextFlowContainer<ChatLink> contentFlow;
|
||||
private OsuLinkFlowContainer<ChatLink> contentFlow;
|
||||
|
||||
// this is only used for testing
|
||||
public OsuTextFlowContainer ContentFlow => contentFlow;
|
||||
|
||||
public Message Message
|
||||
{
|
||||
@ -101,9 +104,6 @@ namespace osu.Game.Overlays.Chat
|
||||
}
|
||||
}
|
||||
|
||||
// this is only used for testing
|
||||
public OsuTextFlowContainer ContentFlow => contentFlow;
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(OsuColour colours, ChatOverlay chat)
|
||||
{
|
||||
@ -193,7 +193,7 @@ namespace osu.Game.Overlays.Chat
|
||||
Padding = new MarginPadding { Left = message_padding + padding },
|
||||
Children = new Drawable[]
|
||||
{
|
||||
contentFlow = new OsuLinkTextFlowContainer<ChatLink>(t =>
|
||||
contentFlow = new OsuLinkFlowContainer<ChatLink>(t =>
|
||||
{
|
||||
if (Message.IsAction)
|
||||
t.Font = "Exo2.0-MediumItalic";
|
||||
|
Reference in New Issue
Block a user