diff options
| author | iamcheeseman <[email protected]> | 2026-03-13 15:25:03 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-13 15:25:03 -0400 |
| commit | 332d00e92bf620b6dd11dc10096ead7a5badd7f4 (patch) | |
| tree | d0e557afe65949d0d7de2f7aa97a8327f1537360 /src/im.lua | |
| parent | b47490aea2f63d881a2cc69a326b03abae1a46c0 (diff) | |
Add basic entity editor
Diffstat (limited to 'src/im.lua')
| -rw-r--r-- | src/im.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -281,7 +281,7 @@ function im.slider(val, min, max, step, h) rect_cmd(x, y, w, h, unpack(col)) p = handle / max_w - return clamp(p * (max - min) + min, min, max) + return snap(clamp(p * (max - min) + min, min, max), step) end function im.begin_window(title, x, y, w, h, opts) @@ -422,6 +422,7 @@ function im.draw() for _, cmd in ipairs(win.cmds) do cmd.fn(unpack(cmd.args)) end + win.cmds = {} end lg.setStencilTest() end |
