Skip to content

Commit

Permalink
[SlabTest] Pass nil for missing arg Step
Browse files Browse the repository at this point in the history
Fix error when adjusting min/max values for slider.

We weren't passing all the args -- Step was missing and a table
(Options) was being passed instead.

This was included in flamendless#39, but got omitted on merge.
  • Loading branch information
idbrii committed Mar 11, 2021
1 parent d3d8bd4 commit b133efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlabTest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -540,14 +540,14 @@ local function DrawInput()

Slab.Text("Min")
Slab.SameLine()
if Slab.InputNumberDrag('DrawInput_Basic_Numbers_Slider_Min', DrawInput_Basic_Numbers_Slider_Min, nil, DrawInput_Basic_Numbers_Slider_Max, {W = 50}) then
if Slab.InputNumberDrag('DrawInput_Basic_Numbers_Slider_Min', DrawInput_Basic_Numbers_Slider_Min, nil, DrawInput_Basic_Numbers_Slider_Max, nil, {W = 50}) then
DrawInput_Basic_Numbers_Slider_Min = Slab.GetInputNumber()
end

Slab.SameLine()
Slab.Text("Max")
Slab.SameLine()
if Slab.InputNumberDrag('DrawInput_Basic_Numbers_Slider_Max', DrawInput_Basic_Numbers_Slider_Max, DrawInput_Basic_Numbers_Slider_Min, nil, {W = 50}) then
if Slab.InputNumberDrag('DrawInput_Basic_Numbers_Slider_Max', DrawInput_Basic_Numbers_Slider_Max, DrawInput_Basic_Numbers_Slider_Min, nil, nil, {W = 50}) then
DrawInput_Basic_Numbers_Slider_Max = Slab.GetInputNumber()
end

Expand Down

0 comments on commit b133efc

Please sign in to comment.