[PR #3953] [MERGED] Menus, tooltips, world opening and chat now behave like vanilla #5316

Closed
opened 2026-11-03 05:11:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3953
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/split-screens


📝 Commits (10+)

  • b5bcf03 Name a shield after its banner base colour
  • ef890e6 Show the item tooltip on hover in the statistics Items tab
  • 3d5407a Show the ghost recipe item tooltip on hover
  • 7a2121d Create the world on Enter in Create New World
  • 7af0a21 Join the typed server address on Enter in Direct Connection
  • 1976c27 Join the selected world with Enter or Space on the world list
  • 913ad15 Let Ctrl plus the mouse wheel change the GUI scale on the Video page
  • f31e30a Select the word under a double click on a book page
  • 6840b57 Show the incompatible version alert instead of opening such a world
  • 20ad245 Ask for a backup before opening a world saved by a newer version

📊 Changes

23 files changed (+716 additions, -127 deletions)

View changed files

📝 crates/horizon-client-render/src/options_ui.rs (+99 -20)
📝 crates/horizon-client-render/src/settings.rs (+7 -0)
📝 crates/horizon-client-render/src/ui.rs (+15 -0)
📝 crates/horizon-client/src/dialog_screen.rs (+7 -2)
📝 crates/horizon-client/src/game.rs (+56 -38)
📝 crates/horizon-client/src/game/agent.rs (+1 -1)
📝 crates/horizon-client/src/game/books.rs (+16 -3)
📝 crates/horizon-client/src/game/chat.rs (+53 -1)
📝 crates/horizon-client/src/game/commands.rs (+5 -0)
📝 crates/horizon-client/src/game/dialogs.rs (+31 -2)
📝 crates/horizon-client/src/game/integrated.rs (+1 -0)
📝 crates/horizon-client/src/game/options.rs (+16 -4)
📝 crates/horizon-client/src/game/recipe_book.rs (+14 -0)
📝 crates/horizon-client/src/game/remote.rs (+103 -5)
📝 crates/horizon-client/src/game/server_packs.rs (+16 -0)
📝 crates/horizon-client/src/game/startup_menu.rs (+19 -9)
📝 crates/horizon-client/src/game/stations.rs (+8 -3)
📝 crates/horizon-client/src/game/stats_screen.rs (+9 -0)
📝 crates/horizon-client/src/item_tooltip.rs (+5 -0)
📝 crates/horizon-client/src/multiplayer.rs (+10 -0)

...and 3 more files

📄 Description

What and why

  • Shields show their banner base colour in the name (a white-based shield is no longer plain "Shield").
  • Hovering an item icon in the statistics Items tab shows its tooltip.
  • Hovering a ghost ingredient or result in a crafting grid or furnace shows its tooltip.
  • Enter confirms Create New World (it only confirmed a world rename before).
  • Enter joins the typed address on Direct Connection.
  • Enter or Space on a selected world joins it, so keyboard players can join from the list.
  • Ctrl plus the mouse wheel on the Video page steps the GUI scale and resets the list to the top.
  • A double click on a book page selects the word under the cursor instead of only moving the caret.
  • A world from another version series shows the red Incompatible version alert instead of opening.
  • A world saved by a newer version asks for a backup first, with the red downgrade question.
  • The saved version id and name are read the way vanilla does (missing Version counts as 0, missing Id as the current one), shared by both world checks.
  • Clicking styled text in dialog messages and item descriptions runs its click event.
  • The mouse wheel over an option cycle button steps its value (up goes back) and the list stays put.
  • Player and disguised chat is held back while Chat Delay is set, one line per delay.
  • T and / reopen the chat with the kept draft; Escape keeps it when Save Chat Drafts is on.
  • A world's own resourcepacks/resources.zip is loaded as a local pack when the world opens.

Vanilla reference

  • Shield name: ShieldItem.getName, ShieldItem.java:12
  • Stats Items tooltip: ItemRowWidget.extractTooltip, StatsScreen.java:512
  • Ghost recipe tooltip: GhostSlots.extractTooltip, GhostSlots.java:65
  • Enter on Create New World: CreateWorldScreen.keyPressed, CreateWorldScreen.java:360
  • Enter on Direct Connection: DirectJoinServerScreen.keyPressed, DirectJoinServerScreen.java:32
  • Enter/Space on world list: WorldListEntry.keyPressed, WorldSelectionList.java:602
  • Ctrl wheel GUI scale: VideoSettingsScreen.mouseScrolled, VideoSettingsScreen.java:263
  • Book word select: MultiLineEditBox.onClick and MultilineTextField.selectWordAtCursor, MultiLineEditBox.java:89, MultilineTextField.java:184
  • Incompatible version alert: WorldOpenFlows.openWorldCheckVersionCompatibility, WorldOpenFlows.java:352
  • Backup before newer world: WorldOpenFlows.openWorldCheckVersionCompatibility, WorldOpenFlows.java:352; LevelSummary BackupStatus.DOWNGRADE, LevelSummary.java
  • Saved version reading: LevelVersion.parse, LevelVersion.java
  • Dialog text click events: DialogBodyHandlers (lines 54 and 108) and DialogScreen.runAction, DialogBodyHandlers.java, DialogScreen.java
  • Cycle button wheel: CycleButton.mouseScrolled, CycleButton.java:115
  • Chat Delay: ChatListener.handleMessage, tick and flushQueue, ChatListener.java:75-120
  • Chat draft: ChatComponent.createScreen, ChatComponent.java:442; ChatScreen.removed, ChatScreen.java
  • World resource pack: WorldOpenFlows.loadBundledResourcePack and ServerPackManager.pushLocalPack, WorldOpenFlows.java, ServerPackManager.java:61

Self-check

rustfmt on changed files; built by CI; not run in game.

Split out of #3926.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3953 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/split-screens` --- ### 📝 Commits (10+) - [`b5bcf03`](https://github.com/horizon-rust/horizon/commit/b5bcf031e509324a8a883718224dd4aaf81321fa) Name a shield after its banner base colour - [`ef890e6`](https://github.com/horizon-rust/horizon/commit/ef890e667f2a231ae88dc151da1c16574211b967) Show the item tooltip on hover in the statistics Items tab - [`3d5407a`](https://github.com/horizon-rust/horizon/commit/3d5407ab11243d3672a68fcf87eace977e1532bf) Show the ghost recipe item tooltip on hover - [`7a2121d`](https://github.com/horizon-rust/horizon/commit/7a2121d84fd5fef70dc7ebba6291836d676bcbdb) Create the world on Enter in Create New World - [`7af0a21`](https://github.com/horizon-rust/horizon/commit/7af0a21f2d381c5045ead5dcaff17cf5f2382ff3) Join the typed server address on Enter in Direct Connection - [`1976c27`](https://github.com/horizon-rust/horizon/commit/1976c27870c6e494029ea29fa684cd197cee36bc) Join the selected world with Enter or Space on the world list - [`913ad15`](https://github.com/horizon-rust/horizon/commit/913ad15462f0982afa162ecf11595fc6f4bcd4b9) Let Ctrl plus the mouse wheel change the GUI scale on the Video page - [`f31e30a`](https://github.com/horizon-rust/horizon/commit/f31e30a08155b2cbed7f442f3161db901e420ff7) Select the word under a double click on a book page - [`6840b57`](https://github.com/horizon-rust/horizon/commit/6840b572016bf3ab977e4f8c30d4582ef2b63b8e) Show the incompatible version alert instead of opening such a world - [`20ad245`](https://github.com/horizon-rust/horizon/commit/20ad245e02a03cb9d51a36a762e8bf1767224fd5) Ask for a backup before opening a world saved by a newer version ### 📊 Changes **23 files changed** (+716 additions, -127 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/options_ui.rs` (+99 -20) 📝 `crates/horizon-client-render/src/settings.rs` (+7 -0) 📝 `crates/horizon-client-render/src/ui.rs` (+15 -0) 📝 `crates/horizon-client/src/dialog_screen.rs` (+7 -2) 📝 `crates/horizon-client/src/game.rs` (+56 -38) 📝 `crates/horizon-client/src/game/agent.rs` (+1 -1) 📝 `crates/horizon-client/src/game/books.rs` (+16 -3) 📝 `crates/horizon-client/src/game/chat.rs` (+53 -1) 📝 `crates/horizon-client/src/game/commands.rs` (+5 -0) 📝 `crates/horizon-client/src/game/dialogs.rs` (+31 -2) 📝 `crates/horizon-client/src/game/integrated.rs` (+1 -0) 📝 `crates/horizon-client/src/game/options.rs` (+16 -4) 📝 `crates/horizon-client/src/game/recipe_book.rs` (+14 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+103 -5) 📝 `crates/horizon-client/src/game/server_packs.rs` (+16 -0) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+19 -9) 📝 `crates/horizon-client/src/game/stations.rs` (+8 -3) 📝 `crates/horizon-client/src/game/stats_screen.rs` (+9 -0) 📝 `crates/horizon-client/src/item_tooltip.rs` (+5 -0) 📝 `crates/horizon-client/src/multiplayer.rs` (+10 -0) _...and 3 more files_ </details> ### 📄 Description ## What and why - Shields show their banner base colour in the name (a white-based shield is no longer plain "Shield"). - Hovering an item icon in the statistics Items tab shows its tooltip. - Hovering a ghost ingredient or result in a crafting grid or furnace shows its tooltip. - Enter confirms Create New World (it only confirmed a world rename before). - Enter joins the typed address on Direct Connection. - Enter or Space on a selected world joins it, so keyboard players can join from the list. - Ctrl plus the mouse wheel on the Video page steps the GUI scale and resets the list to the top. - A double click on a book page selects the word under the cursor instead of only moving the caret. - A world from another version series shows the red Incompatible version alert instead of opening. - A world saved by a newer version asks for a backup first, with the red downgrade question. - The saved version id and name are read the way vanilla does (missing Version counts as 0, missing Id as the current one), shared by both world checks. - Clicking styled text in dialog messages and item descriptions runs its click event. - The mouse wheel over an option cycle button steps its value (up goes back) and the list stays put. - Player and disguised chat is held back while Chat Delay is set, one line per delay. - T and / reopen the chat with the kept draft; Escape keeps it when Save Chat Drafts is on. - A world's own resourcepacks/resources.zip is loaded as a local pack when the world opens. ## Vanilla reference - Shield name: ShieldItem.getName, ShieldItem.java:12 - Stats Items tooltip: ItemRowWidget.extractTooltip, StatsScreen.java:512 - Ghost recipe tooltip: GhostSlots.extractTooltip, GhostSlots.java:65 - Enter on Create New World: CreateWorldScreen.keyPressed, CreateWorldScreen.java:360 - Enter on Direct Connection: DirectJoinServerScreen.keyPressed, DirectJoinServerScreen.java:32 - Enter/Space on world list: WorldListEntry.keyPressed, WorldSelectionList.java:602 - Ctrl wheel GUI scale: VideoSettingsScreen.mouseScrolled, VideoSettingsScreen.java:263 - Book word select: MultiLineEditBox.onClick and MultilineTextField.selectWordAtCursor, MultiLineEditBox.java:89, MultilineTextField.java:184 - Incompatible version alert: WorldOpenFlows.openWorldCheckVersionCompatibility, WorldOpenFlows.java:352 - Backup before newer world: WorldOpenFlows.openWorldCheckVersionCompatibility, WorldOpenFlows.java:352; LevelSummary BackupStatus.DOWNGRADE, LevelSummary.java - Saved version reading: LevelVersion.parse, LevelVersion.java - Dialog text click events: DialogBodyHandlers (lines 54 and 108) and DialogScreen.runAction, DialogBodyHandlers.java, DialogScreen.java - Cycle button wheel: CycleButton.mouseScrolled, CycleButton.java:115 - Chat Delay: ChatListener.handleMessage, tick and flushQueue, ChatListener.java:75-120 - Chat draft: ChatComponent.createScreen, ChatComponent.java:442; ChatScreen.removed, ChatScreen.java - World resource pack: WorldOpenFlows.loadBundledResourcePack and ServerPackManager.pushLocalPack, WorldOpenFlows.java, ServerPackManager.java:61 ## Self-check rustfmt on changed files; built by CI; not run in game. Split out of #3926. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:44 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5316
No description provided.