public SliderBodyPiece()
 {
     InternalChild = body = new ManualSliderBody
     {
         AccentColour = Color4.Transparent
     };
 }
예제 #2
0
        public SliderBodyPiece(Slider slider)
            : base(slider)
        {
            this.slider = slider;

            InternalChild = body = new ManualSliderBody
            {
                AccentColour = Color4.Transparent,
            };
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }