Improve chat input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user