web/DuneRealmsGUI/fancyui/README.md

56 lines
3.1 KiB
Markdown

# Fancy UI migration
Historical comparison only. The selected implementation uses MCGUI; see
[the active menu integration](../mcgui/README.md).
Requested replacement: https://builtbybit.com/resources/fancy-ui.115209/
Documentation checked 2026-11-23: https://nusse.dev/docs/fancyui
## Deployment prerequisite
The licensed FancyUI JAR has not been supplied. Do not remove or disable the
working DuneRealms menus until the replacement has been loaded and its generated
pack has been verified. PacketEvents is required by FancyUI. PlaceholderAPI is
optional according to the creator's documentation; use it only for actual data
bindings that need it.
## Presentation and authority
FancyUI supplies the presentation. DunerealmsGUI retains the existing player
sessions and actions; JarvisTranslator retains the central key and transaction
checks. Buttons must invoke the same current-player action as the existing menu.
They must not issue native give, money, claim, membership or teleport commands.
| Screen | Existing action owner | Required live state |
| --- | --- | --- |
| Imperial Codex | OrganisationMenus.console | Current player |
| House selector | DuneGUI.select / fetch | Current House key, selected House, confirmation |
| Mentat | DuneGUI.mentat | Current House and adviser |
| Spacing Guild | DuneGUI.openGuild / travelMenu | House, boarding window, central bank quote, reservation |
| Exchange | ExchangeMenus | Current catalogue revision, bank quote, durable delivery |
| Quests / quartermaster | QuestMenus | Verified journal, prerequisites, physical turn-in |
| Clan / company / POL | OrganisationMenus | Current deed, role, home world and claim capacity |
Preserve the DuneRealms green/gold theme, distinct company/POL colours, and blue
for quests that require an ingame interaction. Reuse existing House seals,
adviser portraits and item artwork. Dynamic text must be treated as text rather
than interpreted MiniMessage supplied by a player.
## Pack and client migration
1. Inspect the supplied JAR and exact API signatures; pin its version and digest.
2. Load it with PacketEvents in an isolated Paper instance first.
3. Generate the pages and run `fui reload`, `fui pack`, then `fui packinfo`.
4. Check the generated font/shader namespaces against the current GUI, lorecard
and item pack. Preserve current item models, lorecards and entity textures.
5. Publish a versioned pack with a new checksum and confirm the loaded-pack
acknowledgement before switching the Imperial Codex entry point.
6. Test mouse, controller/keyboard, small screens and Geyser/Floodgate. Keep the
existing Bedrock forms until FancyUI compatibility is actually established.
7. Roll out the verified build and pack together. Keep Jarvis actions unchanged
and switch the remaining screens only after their actual interactions pass.
The creator documents `api.open`, per-player `setText`/`setVisible`/`setItem` and
cancellable click events. These support using the existing action callbacks
without making the page configuration a second authority or data store. Do not
guess the API package names before inspecting the licensed JAR.