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