mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
small style fixes plus new assert in test
This commit is contained in:
@ -23,7 +23,8 @@ namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
public override bool HandleInput => true;
|
||||
|
||||
public OsuLinkFlowContainer(Action<SpriteText> defaultCreationParameters = null) : base(defaultCreationParameters)
|
||||
public OsuLinkFlowContainer(Action<SpriteText> defaultCreationParameters = null)
|
||||
: base(defaultCreationParameters)
|
||||
{
|
||||
}
|
||||
|
||||
@ -41,8 +42,8 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
return AddText(text, link =>
|
||||
{
|
||||
((OsuSpriteLink)link).Url = url;
|
||||
creationParameters?.Invoke(link);
|
||||
((T)link).Url = url;
|
||||
});
|
||||
}
|
||||
|
||||
@ -51,7 +52,6 @@ namespace osu.Game.Graphics.Containers
|
||||
return base.AddText(text, sprite =>
|
||||
{
|
||||
((OsuSpriteLink)sprite).TextColour = TextColour;
|
||||
|
||||
creationParameters?.Invoke(sprite);
|
||||
});
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Graphics.Sprites
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
private readonly Container content;
|
||||
private readonly OsuHoverContainer content;
|
||||
|
||||
public OsuSpriteLink()
|
||||
{
|
||||
|
Reference in New Issue
Block a user