Slider Node

From RoboPad Wiki
Revision as of 21:49, 28 February 2023 by Blayze (talk | contribs) (Added Stick Colour)
Jump to navigation Jump to search
Slider Node
Inputs
    none
Outputs
  • signal
Version Introduced
2.1

The Slider Node is a UI Node that places a slider on the controller. A slider is a simple element that can can be dragged in one direction - either up and down or left and right.

Slider Nodes were introduced in firmware version 2.1 along with all basic nodes.

Outputs

A Slider Node has a single output port - signal. This output port will emit the position of the slider, from 0 to 1 (clipped), every time the slider is moved when in the controller.

Settings

The Slider Node's settings can be configured to alter it's visual presentation, mode of operation and output value mapping.

As a UI Node, the Slider Node possesses the UI Transform and Background Colour settings. All UI Nodes draw to a region on the controller - this is an area that will be populated by the Slider Node's display elements.

  • UI Transform: Configures the position of this Slider Node's UI element within the controller. The Position x and y values control the position of the center of this element on the controller, from the bottom left (i.e. x and y values of 0 result in its center being in the bottom left, x and y values of 1 result in its center being in the top right). The Scale x and y values control the width and height of this Slider Node's UI element, relative to the controller's width and height. Scaling occurs from the center of the Slider.
  • Background Colour: Configures the background colour of this Slider Node's UI region when it is drawn to the controller.
  • Stick Colour: Configures the colour of the stick of this slider as it's seen in the controller.