Interface

SliderTemplate {
    eventIn     SFFloat set_fraction
    eventIn     SFBool  set_enabled
    field       SFBool  enabled                         TRUE
    field       SFFloat fraction                        0.0  # [0, 1]
    field       SFFloat length                          1.0  # [0, ∞)
    field       SFNode  slideBarAppearance              NULL
    field       SFNode  slideBarOverAppearance          NULL
    field       SFNode  slideBarActiveAppearance        NULL
    field       SFNode  slideBarActiveOverAppearance    NULL
    field       SFNode  slideBarDisabledAppearance      NULL
    field       SFNode  slideBarGeometry                NULL
    field       SFNode  slideBarOverGeometry            NULL
    field       SFNode  slideBarActiveGeometry          NULL
    field       SFNode  slideBarActiveOverGeometry      NULL
    field       SFNode  slideBarDisabledGeometry        NULL
    field       SFNode  markerAppearance                NULL
    field       SFNode  markerOverAppearance            NULL
    field       SFNode  markerActiveAppearance          NULL
    field       SFNode  markerActiveOverAppearance      NULL
    field       SFNode  markerDisabledAppearance        NULL
    field       SFNode  markerGeometry                  NULL
    field       SFNode  markerOverGeometry              NULL
    field       SFNode  markerActiveGeometry            NULL
    field       SFNode  markerActiveOverGeometry        NULL
    field       SFNode  markerDisabledGeometry          NULL
    eventOut    SFBool  enabled_changed
    eventOut    SFFloat fraction_changed
    eventOut    SFBool  isOver
    eventOut    SFBool  isActive
}

Description

Slide me, baby.
SliderTemplate Preview

Yeah, I know: everyone's got a slider. So here's mine. I wasn't satisifed with the way the other sliders I found worked, so I made this one. Note that not only can you drag the marker, but you can click anywhere along the length of the slider and the marker will jump to that position.

Like my other template PROTOs, it supplies the logic, you supply the geometry.

Download