protected override bool OnHover(Framework.Input.InputState state) { spriteText.TransformSpacingTo(hoverSpacing, hover_duration, EasingTypes.OutElastic); colourContainer.ResizeTo(new Vector2(hover_width, 1f), hover_duration, EasingTypes.OutElastic); glowContainer.FadeIn(glow_fade_duration, EasingTypes.Out); SampleHover?.Play(); return(true); }
protected override void OnHoverLost(Framework.Input.InputState state) { if (!didClick) { colourContainer.ResizeTo(new Vector2(0.8f, 1f), hover_duration, EasingTypes.OutElastic); spriteText.TransformSpacingTo(Vector2.Zero, hover_duration, EasingTypes.OutElastic); glowContainer.FadeOut(glow_fade_duration, EasingTypes.Out); } didClick = false; }
protected override bool OnClick(Framework.Input.InputState state) { didClick = true; colourContainer.ResizeTo(new Vector2(1.5f, 1f), click_duration, Easing.In); flash(); this.Delay(click_duration).Schedule(delegate { colourContainer.ResizeTo(new Vector2(0.8f, 1f)); spriteText.Spacing = Vector2.Zero; glowContainer.FadeOut(); }); return(base.OnClick(state)); }
protected override bool OnClick(Framework.Input.InputState state) { didClick = true; colourContainer.ResizeTo(new Vector2(1.5f, 1f), click_duration, EasingTypes.In); flash(); SampleClick?.Play(); Action?.Invoke(); Delay(click_duration); Schedule(delegate { colourContainer.ResizeTo(new Vector2(0.8f, 1f), 0, EasingTypes.None); spriteText.Spacing = Vector2.Zero; glowContainer.FadeOut(); }); return(true); }
protected override void OnHoverLost(Framework.Input.InputState state) { background.FadeTo(background_alpha, 200, Easing.OutQuint); base.OnHoverLost(state); }
protected override bool OnHover(Framework.Input.InputState state) { background.FadeTo(0.5f, 300, Easing.OutQuint); return(base.OnHover(state)); }
protected override bool OnClick(Framework.Input.InputState state) { OnSelect?.Invoke(BeatmapSetInfo); return(true); }
protected override void OnHoverLost(Framework.Input.InputState state) { handle.FadeOut(fade_duration); }
protected override bool OnHover(Framework.Input.InputState state) { handle.FadeIn(fade_duration); return(base.OnHover(state)); }