VoyVivika Posted October 3, 2020 Posted October 3, 2020 I've searched through the widget documentation and the slider.lua, also googling every combination I can think of to no luck. How do I get the current value of a slider widget? I've tried :GetValue(), :GetSliderValue, :GetSelectedItem() and none of them worked, with the last one always returning something like "index out of range" despite the value i'm putting in being very well within the range I defined (0, 170). I'd also like to know how to Set the value for loading. This is for a simple FOV Slider for my options menu. Quote
VoyVivika Posted October 4, 2020 Author Posted October 4, 2020 Bumping because I still have no idea how to get a number from the Slider Widget Quote
Solution Josh Posted October 4, 2020 Solution Posted October 4, 2020 It's just widget:SetSliderValue() and widget:GetSliderValue(). Quote My job is to make tools you love, with the features you want, and performance you can't live without.
VoyVivika Posted October 4, 2020 Author Posted October 4, 2020 4 minutes ago, Josh said: It's just widget:SetSliderValue() and widget:GetSliderValue(). I honestly feel really dumb because I swear I tried that already, but I guess I was typing or doing something wrong because it works. 1 Quote
Josh Posted October 4, 2020 Posted October 4, 2020 Easy to do. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.