diff options
| author | ne_mene <[email protected]> | 2026-04-02 15:30:30 +0200 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-04-02 15:30:30 +0200 |
| commit | 62d0eaff9b511121e0031504e56ad3125b18e46e (patch) | |
| tree | d6dd7b087e268172f794bfbbb1c92511a772ef6c /src/scenes | |
| parent | 70c035688f47ced28a5fc10b56250e34d998b61b (diff) | |
idk bro.
Diffstat (limited to 'src/scenes')
| -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 }) |
