[PR #2671] [MERGED] Chat wheel counts right Shift, durability line is translated #4525

Closed
opened 2026-11-03 04:17:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2671
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/chat-minor


📝 Commits (1)

  • 2c0d3c1 Chat wheel counts right Shift, durability line is translated

📊 Changes

2 files changed (+13 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game/chat.rs (+2 -1)
📝 crates/horizon-client/src/game/stations.rs (+11 -7)

📄 Description

What and why

Two small fixes:

  • The chat wheel step now treats either Shift key as held. Right Shift gave the 7-line step because only the left key was tested.
  • The "Durability: x / y" tooltip line (Advanced Tooltips) reads the item.durability translation, so it follows the selected language instead of always being English.

Vanilla reference

  • ChatScreen.mouseScrolled uses hasShiftDown(), which counts both Shift keys.
  • ItemStack.getTooltipLines adds Component.translatable("item.durability", ...).

Self-check

cargo check -p horizon-client passes.


🔄 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/2671 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/chat-minor` --- ### 📝 Commits (1) - [`2c0d3c1`](https://github.com/horizon-rust/horizon/commit/2c0d3c1a86e51f95badc0f34783f695b5c31b017) Chat wheel counts right Shift, durability line is translated ### 📊 Changes **2 files changed** (+13 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/chat.rs` (+2 -1) 📝 `crates/horizon-client/src/game/stations.rs` (+11 -7) </details> ### 📄 Description ## What and why Two small fixes: - The chat wheel step now treats either Shift key as held. Right Shift gave the 7-line step because only the left key was tested. - The "Durability: x / y" tooltip line (Advanced Tooltips) reads the `item.durability` translation, so it follows the selected language instead of always being English. ## Vanilla reference - `ChatScreen.mouseScrolled` uses `hasShiftDown()`, which counts both Shift keys. - `ItemStack.getTooltipLines` adds `Component.translatable("item.durability", ...)`. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:49 +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#4525
No description provided.