Add vide.slider and vide.draggable (reusable slider component + drag action helper)#66
Closed
isarsindri wants to merge 19 commits intocentau:mainfrom
Closed
Add vide.slider and vide.draggable (reusable slider component + drag action helper)#66isarsindri wants to merge 19 commits intocentau:mainfrom
isarsindri wants to merge 19 commits intocentau:mainfrom
Conversation
-- DOES NOT USE DEPRECATED .DRAGGABLE!
Add documentation for draggable() action in 12-actions.md
Added detailed documentation for the draggable function, including options, supported instances, and an example of usage.
Corrected comment formatting in the slider component example.
Updated the components section to improve formatting and clarity.
Removed unnecessary blank line and adjusted code formatting.
Added a nil check for UserInputService to handle non-Roblox environments.
isarsindri
commented
Mar 2, 2026
Author
isarsindri
left a comment
There was a problem hiding this comment.
fixed error with UIS not including nil for outside of roblox code environments
isarsindri
commented
Mar 2, 2026
Author
isarsindri
left a comment
There was a problem hiding this comment.
Fixed UIS error not taking into account for other code environments added "or nil"
Updated UserInputService initialization and added checks for non-Roblox environments and GuiObject types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two reusable UI helpers to Vide:
• vide.slider(props): a first-class slider component built with create, source, action, and cleanup. Supports mouse/touch dragging, track click-to-jump, value quantisation via step, formatting via format, callback via onChanged, and theming (track, fill, knob, stroke, and how rounded the corners are).
• vide.draggable(opts): an action() wrapper that makes any GuiObject draggable using input events (no deprecated Roblox .Draggable). Supports axis constraints (x, y, both) and optional drag callbacks.
Includes documentation:
• API docs for slider and draggable with full props/options reference.
• Updated Components guide showing how to wrap and reuse vide.slider as a component and how to compose it in a menu.
Notes:
• Both modules are wired through lib using injected dependencies to avoid cyclic requires.
• Gamepad support is not included in this PR; a follow-up can add selection-based D-pad/thumbstick adjustments.