mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 03:22:54 +08: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
|
public class OsuTooltipContainer : TooltipContainer
|
||||||
{
|
{
|
||||||
protected override Tooltip CreateTooltip() => new OsuTooltip();
|
protected override ITooltip CreateTooltip() => new OsuTooltip();
|
||||||
|
|
||||||
public OsuTooltipContainer(CursorContainer cursor) : base(cursor)
|
public OsuTooltipContainer(CursorContainer cursor) : base(cursor)
|
||||||
{
|
{
|
||||||
|
@ -194,7 +194,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
protected override bool OnDragStart(InputState state)
|
protected override bool OnDragStart(InputState state)
|
||||||
{
|
{
|
||||||
if (!channelTabs.Hovering)
|
if (!channelTabs.IsHovered)
|
||||||
return base.OnDragStart(state);
|
return base.OnDragStart(state);
|
||||||
|
|
||||||
startDragChatHeight = chatHeight.Value;
|
startDragChatHeight = chatHeight.Value;
|
||||||
|
@ -236,7 +236,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
if (beatIndex < 0) return;
|
if (beatIndex < 0) return;
|
||||||
|
|
||||||
if (Hovering)
|
if (IsHovered)
|
||||||
{
|
{
|
||||||
using (BeginDelayedSequence(early_activation))
|
using (BeginDelayedSequence(early_activation))
|
||||||
Schedule(() => sampleBeat.Play());
|
Schedule(() => sampleBeat.Play());
|
||||||
|
@ -156,7 +156,7 @@ namespace osu.Game.Screens.Play
|
|||||||
if (lastState == Visibility.Hidden)
|
if (lastState == Visibility.Hidden)
|
||||||
FadeIn(500, EasingTypes.OutExpo);
|
FadeIn(500, EasingTypes.OutExpo);
|
||||||
|
|
||||||
if (!Hovering)
|
if (!IsHovered)
|
||||||
using (BeginDelayedSequence(1000))
|
using (BeginDelayedSequence(1000))
|
||||||
scheduledHide = Schedule(() => State = Visibility.Hidden);
|
scheduledHide = Schedule(() => State = Visibility.Hidden);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user