mirror of
https://github.com/ppy/osu
synced 2025-01-30 18:02:07 +00:00
Fix DrawableUsername being affected
This commit is contained in:
parent
890dd9cd06
commit
15bd82add8
@ -30,7 +30,7 @@ namespace osu.Game.Overlays.Chat
|
|||||||
public Color4 AccentColour { get; }
|
public Color4 AccentColour { get; }
|
||||||
|
|
||||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) =>
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) =>
|
||||||
Child.ReceivePositionalInputAt(screenSpacePos);
|
colouredDrawable.ReceivePositionalInputAt(screenSpacePos);
|
||||||
|
|
||||||
public float FontSize
|
public float FontSize
|
||||||
{
|
{
|
||||||
@ -87,13 +87,13 @@ namespace osu.Game.Overlays.Chat
|
|||||||
{
|
{
|
||||||
AccentColour = default_colours[user.Id % default_colours.Length];
|
AccentColour = default_colours[user.Id % default_colours.Length];
|
||||||
|
|
||||||
Child = colouredDrawable = drawableText;
|
Add(colouredDrawable = drawableText);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AccentColour = Color4Extensions.FromHex(user.Colour);
|
AccentColour = Color4Extensions.FromHex(user.Colour);
|
||||||
|
|
||||||
Child = new Container
|
Add(new Container
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
@ -127,7 +127,7 @@ namespace osu.Game.Overlays.Chat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user