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