Example #1
0
 public PopupDialogButton(HoverSampleSet sampleSet = HoverSampleSet.Button)
     : base(sampleSet)
 {
     Height           = 50;
     BackgroundColour = Color4Extensions.FromHex(@"150e14");
     TextSize         = 18;
 }
Example #2
0
 public OsuHoverContainer(HoverSampleSet sampleSet = HoverSampleSet.Default)
     : base(sampleSet)
 {
     Enabled.ValueChanged += e =>
     {
         if (isHovered)
         {
             if (e.NewValue)
             {
                 fadeIn();
             }
             else
             {
                 fadeOut();
             }
         }
     };
 }
Example #3
0
 public HoverSounds(HoverSampleSet sampleSet = HoverSampleSet.Normal)
 {
     SampleSet        = sampleSet;
     RelativeSizeAxes = Axes.Both;
 }
Example #4
0
 protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverSounds();
Example #5
0
 public LinkHoverSounds(HoverSampleSet sampleSet, List <Drawable> parts)
     : base(sampleSet)
 {
     this.parts = parts;
 }
Example #6
0
 protected override HoverClickSounds CreateHoverClickSounds(HoverSampleSet sampleSet) => new LinkHoverSounds(sampleSet, Parts);
Example #7
0
 /// <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 };
 }
Example #8
0
 public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Default)
 {
     this.sampleSet = sampleSet;
 }
Example #9
0
 protected virtual HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet);
Example #10
0
 public LinkHoverSounds(HoverSampleSet sampleSet, List <SpriteText> parts)
     : base(sampleSet)
 {
     this.parts = parts;
 }
Example #11
0
 public HoverClickSounds(HoverSampleSet sampleSet = HoverSampleSet.Normal) : base(sampleSet)
 {
 }
 public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Normal)
 {
     this.sampleSet = sampleSet;
 }
Example #13
0
 public HoverSounds(HoverSampleSet sampleSet = HoverSampleSet.Default)
 {
     SampleSet        = sampleSet;
     RelativeSizeAxes = Axes.Both;
 }