This is good enough
This commit is contained in:
@@ -86,6 +86,10 @@ Overlays get the mouse before the slots:
|
||||
- While a `g.text_input` has the keyboard, keybinds like the inventory key don't fire. Text inputs edit like chat:
|
||||
selecting with shift or the mouse, ctrl+a, and copy, cut and paste.
|
||||
|
||||
`hides_screen()`, if the overlay has one, is asked every frame before `on_render`. While it returns `true` the screen
|
||||
underneath isn't drawn and its slots don't react to the mouse, including the panels mods add outside its box, like the
|
||||
curios slots. The recipe viewer does this while it shows a recipe in the screen's place.
|
||||
|
||||
`on_close()`, if the overlay has one, runs when the screen closes for any reason, like the player closing their
|
||||
inventory. The recipe viewer goes back to its item list then.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user