Improve chat input

This commit is contained in:
2026-09-27 12:54:10 -03:00
parent 60188ff735
commit d822267bd3
6 changed files with 288 additions and 33 deletions
+2 -1
View File
@@ -934,7 +934,8 @@ ctx.ui.add_inventory_overlay({
Overlays get the mouse before the slots. A click they use (`g.button`, or `g.consume_click()`) doesn't reach the slots,
and `g.block_mouse(x, y, w, h)` keeps the slots from taking the mouse under something drawn over them. While a
`g.text_input` has the keyboard, keybinds like the inventory key don't fire. An overlay that throws is removed, with the
`g.text_input` has the keyboard, keybinds like the inventory key don't fire. Text inputs edit like chat does: selecting
with shift or the mouse, ctrl+a, and copy, cut and paste. An overlay that throws is removed, with the
error in the console.
Client scripts are for presentation. They can't change the world or inventories; they ask the server over a