aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-12 18:16:46 -0400
committeriamcheeseman <[email protected]>2026-03-12 18:16:46 -0400
commitf5d00397e02fde75e3c63e9872ac5625bd961794 (patch)
tree44d65f591e41632da1a3fb3eeced49e3b899e14d /src
parent2b3245f44fecbf2e426bb28f522a24e00662c610 (diff)
increase ui scroll speed
Diffstat (limited to 'src')
-rw-r--r--src/im.lua2
-rw-r--r--src/objs/room_editor.lua8
2 files changed, 2 insertions, 8 deletions
diff --git a/src/im.lua b/src/im.lua
index 2737ed5..cb583ff 100644
--- a/src/im.lua
+++ b/src/im.lua
@@ -9,7 +9,7 @@ im = {
text = {0.8, 0.8, 0.8},
},
padding = 1,
- scroll_speed = 5,
+ scroll_speed = 15,
slider_handle_width = 5,
resize_handle_size = 5,
}
diff --git a/src/objs/room_editor.lua b/src/objs/room_editor.lua
index baee368..70f0a86 100644
--- a/src/objs/room_editor.lua
+++ b/src/objs/room_editor.lua
@@ -40,14 +40,8 @@ end
function room_editor_ui_sys(ent)
local room_editor = ent.room_editor
im.begin_window("Room Editor", 120, 5, 180, 320, {})
- -- im.layout({0.5, 0.75, 1})
im.text("Tile: " .. tostring(room_editor.tile))
- -- if im.button(" - ") then
- -- tile = math.max(tile - 1, 1)
- -- end
- -- if im.button("+ ") then
- -- tile = tile + 1
- -- end
+ im.separator()
im.layout({0.1, 0.6, 1})
for tileset_id=1, get_tileset_count() do