This is good enough

This commit is contained in:
2026-10-02 22:38:39 -03:00
parent 4fb392adae
commit 50d47cedef
4 changed files with 35 additions and 6 deletions
+3
View File
@@ -115,6 +115,9 @@ export interface Graphics {
// list. it gets the screen's box to lay itself out around
export interface InventoryOverlay {
on_render(g: Graphics, screen: InventoryScreenView): void;
// while it's true the screen underneath isn't drawn or clicked, panels outside its box included, for something
// drawn in its place like the recipe viewer's recipes. asked every frame, before on_render
hides_screen?(): boolean;
// the screen closed for any reason, like the player closing their inventory
on_close?(): void;
}