forked from unimatrix/web
1.9 KiB
1.9 KiB
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 theFullscreenProviderservice.FullscreenProvider.java:Screenalso carries the menu's item contents.Menu.java: passes a copy of its inventory to the provider.DuneMenusPlugin.java: registers the provider whenfullscreen.enabledis true; adds/dm calibrate(admin).config.yml:fullscreen.enabled: true.tools/build_gui_backgrounds.py: paints the 12 backgrounds andfont/gui.json.
Deploy
- Merge
gui-pack/assets/dunerealms/into the central pack (addsfont/gui.jsonandtextures/gui/bg/*.png). Republish the pack and update its SHA-1. - Build DuneMenus (
gradle test jar, Java 21) and replace the plugin. - As an admin run
/dm calibrate: you should see numbered paper markers sitting inside the painted sockets. If the art is shifted, adjustascent(13) infont/gui.json; if the title text is shifted, adjust theadvance (-177) there. - 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