Added silder:set_value documentation

This commit is contained in:
Thomas Croft 2022-10-02 20:50:20 -06:00
parent 3c214a7883
commit 667db83ab7
1 changed files with 6 additions and 0 deletions

View File

@ -324,6 +324,12 @@ for prop in pairs(properties) do
end
-- Add some validation to set_value
--- Set the slider's value
-- @tparam number number Set value to number
-- @method set_value number
-- @noreturn
function slider:set_value(value)
value = math.min(value, self:get_maximum())
value = math.max(value, self:get_minimum())