Hold and valley minigames

This commit is contained in:
2026-10-11 14:58:01 -03:00
parent 21442fb822
commit c71584eeea
10 changed files with 617 additions and 30 deletions
+8 -6
View File
@@ -157,12 +157,14 @@ export function setup(ctx: ClientContext) {
The engine puts the screen in the middle of the window, and draws the menu's slots, the item on the cursor and item
tooltips. The screen draws everything else with [`Graphics`](../gui/index.md#graphics), from its own top left:
| Field | Meaning |
| ---------------------- | ------------------------------------------------------------------ |
| `width`, `height` | Its size in GUI pixels, like `imageWidth` and `imageHeight`. |
| `on_render_background` | Every frame, under the slots: a panel, textures, progress bars. |
| `on_render_labels` | Every frame, over the slots: the title, labels, buttons. |
| `on_tick` | 20 times a second while it's open, like `containerTick`. Optional. |
| Field | Meaning |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `width`, `height` | Its size in GUI pixels, like `imageWidth` and `imageHeight`. |
| `on_render_background` | Every frame, under the slots: a panel, textures, progress bars. |
| `on_render_labels` | Every frame, over the slots: the title, labels, buttons. |
| `on_tick` | 20 times a second while it's open, like `containerTick`. Optional. |
| `dim_background` | `false` draws it right over the world, without darkening it. Optional. |
| `inventory_overlays` | `false` keeps [inventory overlays](../gui/index.md#inventory-overlays), like the recipe viewer's item list, off it. Optional. |
The menu it gets: