mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 00:20:38 +08:00
Fix score tooltips being displayed when hovering freemods status bar on PlaylistsSSV2 (#36413)
- similar to https://github.com/ppy/osu/pull/36332
This commit is contained in:
committed by
GitHub
Unverified
parent
9f0f9ef229
commit
84ec4bb866
@@ -41,7 +41,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
[Resolved]
|
||||
private OverlayColourProvider colourProvider { get; set; } = null!;
|
||||
|
||||
private Drawable modsWedge = null!;
|
||||
private Container modsWedge = null!;
|
||||
private ModDisplay modDisplay = null!;
|
||||
private Container modContainer = null!;
|
||||
private ModCountText overflowModCountDisplay = null!;
|
||||
@@ -58,7 +58,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
Icon = FontAwesome.Solid.ExchangeAlt;
|
||||
AccentColour = colours.Lime1;
|
||||
|
||||
Add(modsWedge = new Container
|
||||
Add(modsWedge = new InputBlockingContainer
|
||||
{
|
||||
Y = -5f,
|
||||
Depth = float.MaxValue,
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace osu.Game.Screens.SelectV2
|
||||
AddRange(new[]
|
||||
{
|
||||
unrankedBadge = new UnrankedBadge(),
|
||||
modDisplayBar = new ModDisplayBarContainer
|
||||
modDisplayBar = new InputBlockingContainer
|
||||
{
|
||||
Y = -5f,
|
||||
Depth = float.MaxValue,
|
||||
@@ -343,14 +343,7 @@ namespace osu.Game.Screens.SelectV2
|
||||
}
|
||||
}
|
||||
|
||||
internal partial class ModDisplayBarContainer : Container
|
||||
{
|
||||
protected override bool OnMouseDown(MouseDownEvent e) => true;
|
||||
|
||||
protected override bool OnHover(HoverEvent e) => true;
|
||||
}
|
||||
|
||||
internal partial class UnrankedBadge : CompositeDrawable, IHasTooltip
|
||||
internal partial class UnrankedBadge : InputBlockingContainer, IHasTooltip
|
||||
{
|
||||
public LocalisableString TooltipText { get; }
|
||||
|
||||
@@ -393,10 +386,6 @@ namespace osu.Game.Screens.SelectV2
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(MouseDownEvent e) => true;
|
||||
|
||||
protected override bool OnHover(HoverEvent e) => true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user