public PopupDialogButton(HoverSampleSet sampleSet = HoverSampleSet.Button) : base(sampleSet) { Height = 50; BackgroundColour = Color4Extensions.FromHex(@"150e14"); TextSize = 18; }
public OsuHoverContainer(HoverSampleSet sampleSet = HoverSampleSet.Default) : base(sampleSet) { Enabled.ValueChanged += e => { if (isHovered) { if (e.NewValue) { fadeIn(); } else { fadeOut(); } } }; }
public HoverSounds(HoverSampleSet sampleSet = HoverSampleSet.Normal) { SampleSet = sampleSet; RelativeSizeAxes = Axes.Both; }
protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverSounds();
public LinkHoverSounds(HoverSampleSet sampleSet, List <Drawable> parts) : base(sampleSet) { this.parts = parts; }
protected override HoverClickSounds CreateHoverClickSounds(HoverSampleSet sampleSet) => new LinkHoverSounds(sampleSet, Parts);
/// <summary> /// a container which plays sounds on hover and click for any specified <see cref="MouseButton"/>s. /// </summary> /// <param name="sampleSet">Set of click samples to play.</param> /// <param name="buttons"> /// Array of button codes which should trigger the click sound. /// If this optional parameter is omitted or set to <code>null</code>, the click sound will only be played on left click. /// </param> public HoverClickSounds(HoverSampleSet sampleSet = HoverSampleSet.Default, MouseButton[] buttons = null) : base(sampleSet) { this.buttons = buttons ?? new[] { MouseButton.Left }; }
public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Default) { this.sampleSet = sampleSet; }
protected virtual HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet);
public LinkHoverSounds(HoverSampleSet sampleSet, List <SpriteText> parts) : base(sampleSet) { this.parts = parts; }
public HoverClickSounds(HoverSampleSet sampleSet = HoverSampleSet.Normal) : base(sampleSet) { }
public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Normal) { this.sampleSet = sampleSet; }
public HoverSounds(HoverSampleSet sampleSet = HoverSampleSet.Default) { SampleSet = sampleSet; RelativeSizeAxes = Axes.Both; }