Exemple #1
0
 protected override bool OnHover(Framework.Input.InputState state)
 {
     colourContainer.ResizeTo(new Vector2(hover_width, 1f), hover_duration, EasingTypes.OutElastic);
     spriteText.TransformSpacingTo(new Vector2(3f, 0f), hover_duration, EasingTypes.OutElastic);
     glowContainer.FadeIn(glow_fade_duration, EasingTypes.Out);
     SampleHover?.Play();
     return(true);
 }
Exemple #2
0
 protected override bool OnHover(InputState state)
 {
     SampleHover?.Play();
     return(base.OnHover(state));
 }