mirror of
https://github.com/ppy/osu
synced 2024-12-28 09:52:56 +00:00
Update framework with tooltip changes
This commit is contained in:
parent
eb64765848
commit
6de9776e05
@ -1 +1 @@
|
||||
Subproject commit 862e478219a376f769a7ecb32f6fa135fd69cb26
|
||||
Subproject commit c966b1b9d035f8b1df5ee81db7aae112ac374847
|
@ -15,7 +15,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
{
|
||||
public class OsuTooltipContainer : TooltipContainer
|
||||
{
|
||||
protected override Tooltip CreateTooltip() => new OsuTooltip();
|
||||
protected override ITooltip CreateTooltip() => new OsuTooltip();
|
||||
|
||||
public OsuTooltipContainer(CursorContainer cursor) : base(cursor)
|
||||
{
|
||||
|
@ -194,7 +194,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override bool OnDragStart(InputState state)
|
||||
{
|
||||
if (!channelTabs.Hovering)
|
||||
if (!channelTabs.IsHovered)
|
||||
return base.OnDragStart(state);
|
||||
|
||||
startDragChatHeight = chatHeight.Value;
|
||||
|
@ -236,7 +236,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
if (beatIndex < 0) return;
|
||||
|
||||
if (Hovering)
|
||||
if (IsHovered)
|
||||
{
|
||||
using (BeginDelayedSequence(early_activation))
|
||||
Schedule(() => sampleBeat.Play());
|
||||
|
@ -156,7 +156,7 @@ namespace osu.Game.Screens.Play
|
||||
if (lastState == Visibility.Hidden)
|
||||
FadeIn(500, EasingTypes.OutExpo);
|
||||
|
||||
if (!Hovering)
|
||||
if (!IsHovered)
|
||||
using (BeginDelayedSequence(1000))
|
||||
scheduledHide = Schedule(() => State = Visibility.Hidden);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user