public SliderBodyPiece() { InternalChild = body = new ManualSliderBody { AccentColour = Color4.Transparent }; }
public SliderBodyPiece(Slider slider) : base(slider) { this.slider = slider; InternalChild = body = new ManualSliderBody { AccentColour = Color4.Transparent, }; }
public SliderBodyPiece() { InternalChild = body = new ManualSliderBody { AccentColour = Color4.Transparent }; // SliderSelectionBlueprint relies on calling ReceivePositionalInputAt on this drawable to determine whether selection should occur. // Without AlwaysPresent, a movement in a parent container (ie. the editor composer area resizing) could cause incorrect input handling. AlwaysPresent = true; }
public SliderBodyPiece(Slider slider) { this.slider = slider; InternalChild = body = new ManualSliderBody { AccentColour = Color4.Transparent, PathWidth = slider.Scale * 64 }; slider.PositionChanged += _ => updatePosition(); slider.ScaleChanged += _ => body.PathWidth = slider.Scale * 64; }