public DUITrackBar() { this.sliderBody = new SliderBody(this); this.DUIControls.Add(sliderBody); this.BackColor = Color.AliceBlue; this.sliderBody.LocationChanging += sliderBody_LocationChanging; this.sliderBody.LocationChanged += sliderBody_LocationChanged; }
public SliderOverlay(DrawableSlider slider) : base(slider) { this.slider = slider; var obj = (Slider)slider.HitObject; InternalChildren = new Drawable[] { body = new SliderBody(obj) { AccentColour = Color4.Transparent, PathWidth = obj.Scale * 64 }, new SliderCircleOverlay(slider.HeadCircle, slider), new SliderCircleOverlay(slider.TailCircle, slider), }; }
public SliderMask(DrawableSlider slider) : base(slider) { this.slider = slider; Position = slider.Position; var sliderObject = (Slider)slider.HitObject; InternalChildren = new Drawable[] { body = new SliderBody(sliderObject) { AccentColour = Color4.Transparent, PathWidth = sliderObject.Scale * 64 }, new SliderCircleMask(slider.HeadCircle, slider), new SliderCircleMask(slider.TailCircle, slider), }; sliderObject.PositionChanged += _ => Position = slider.Position; }