forked from unimatrix/web
25 lines
1.9 KiB
Markdown
25 lines
1.9 KiB
Markdown
# New DuneRealms menu (painted full-screen chest)
|
|
|
|
Java players now get a 6-row chest whose title draws a painted 176x222 background (resource pack font `dunerealms:gui`).
|
|
Each menu keeps its own layout: its real items sit on the painted panel; panes/fillers are hidden so the art shows.
|
|
Clicks go through the Menu's own buttons, so every J.A.R.V.I.S. call is unchanged. Bedrock still uses Floodgate forms.
|
|
|
|
## Changed files (everything else, including JarvisBackend and Backend, is untouched)
|
|
- `GlyphChestProvider.java` (new): the renderer, registered as the `FullscreenProvider` service.
|
|
- `FullscreenProvider.java`: `Screen` also carries the menu's item contents.
|
|
- `Menu.java`: passes a copy of its inventory to the provider.
|
|
- `DuneMenusPlugin.java`: registers the provider when `fullscreen.enabled` is true; adds `/dm calibrate` (admin).
|
|
- `config.yml`: `fullscreen.enabled: true`.
|
|
- `tools/build_gui_backgrounds.py`: paints the 12 backgrounds and `font/gui.json`.
|
|
|
|
## Deploy
|
|
1. Merge `gui-pack/assets/dunerealms/` into the central pack (adds `font/gui.json` and `textures/gui/bg/*.png`). Republish the pack and update its SHA-1.
|
|
2. Build DuneMenus (`gradle test jar`, Java 21) and replace the plugin.
|
|
3. As an admin run `/dm calibrate`: you should see numbered paper markers sitting inside the painted sockets.
|
|
If the art is shifted, adjust `ascent` (13) in `font/gui.json`; if the title text is shifted, adjust the `` advance (-177) there.
|
|
4. Open `/dm`, `/dm travel`, `/dm spice` ... and check each screen.
|
|
|
|
## Not verified (nothing was compiled or run by the author)
|
|
- Compilation against Paper 1.21.8, in-game alignment, shadow on the background glyph, and Bedrock behaviour.
|
|
- Menus with more than 54 slots are not supported (the chest is 6 rows).
|
|
- Backgrounds are per accent colour (gold, travel, market, clan, company, quest, spice, war, politics, house, forge), not one painting per screen.
|

Staff