Added silder:set_value documentation
This commit is contained in:
parent
3c214a7883
commit
667db83ab7
|
@ -324,6 +324,12 @@ for prop in pairs(properties) do
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add some validation to set_value
|
-- 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)
|
function slider:set_value(value)
|
||||||
value = math.min(value, self:get_maximum())
|
value = math.min(value, self:get_maximum())
|
||||||
value = math.max(value, self:get_minimum())
|
value = math.max(value, self:get_minimum())
|
||||||
|
|
Loading…
Reference in New Issue