Skip to content

Commit

Permalink
Fixed Fix missing Step argument to InputNumberDrag
Browse files Browse the repository at this point in the history
close #39
  • Loading branch information
idbrii authored and coding-jackalope committed Aug 25, 2020
1 parent 474cda4 commit bf42d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions API.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ end
Value: [Number] The value to display in the control.
Min: [Number] The minimum value that can be set for this number control. If nil, then this value will be set to -math.huge.
Max: [Number] The maximum value that can be set for this number control. If nil, then this value will be set to math.huge.
Step: [Number] The amount to increase value when mouse delta reaches threshold.
Options: [Table] List of options for how this input control is displayed. See Slab.Input for all options.
Return: [Boolean] Returns true whenever this valued is modified.
Expand All @@ -1039,6 +1040,7 @@ function Slab.InputNumberDrag(Id, Value, Min, Max, Step, Options)
Options.Text = tostring(Value)
Options.MinNumber = Min
Options.MaxNumber = Max
Options.Step = Step
Options.NumbersOnly = true
Options.UseSlider = false
Options.NoDrag = false
Expand Down

0 comments on commit bf42d7f

Please sign in to comment.