diff options
Diffstat (limited to 'src/scenes/speck_editor.lua')
| -rw-r--r-- | src/scenes/speck_editor.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scenes/speck_editor.lua b/src/scenes/speck_editor.lua index 1484abe..2f08d97 100644 --- a/src/scenes/speck_editor.lua +++ b/src/scenes/speck_editor.lua @@ -39,7 +39,8 @@ local PROPERTY_TYPES = { im.text(name) im.text(tostring(value)) im.layout() - props[name] = im.slider(value, custom.min or 0, custom.max or 1, custom.step or 0.1) + props[name] = im.slider( + value, custom.min or 0, custom.max or 1, custom.step or 0.1) end, ["boolean"] = function(props, name, value) im.layout({ 0.25, 0.5, 1 }) @@ -48,6 +49,7 @@ local PROPERTY_TYPES = { if im.button("Toggle") then props[name] = not value end + im.layout() end, ["string"] = function(props, name, value, custom) im.layout({ 0.25, 0.8, 1 }) |
