[PR #4693] [CLOSED] Feat/quick actions #5784

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4693
Author: @stievenw
Created: 10/30/2026
Status: ❌ Closed

Base: main ← Head: feat/quick-actions


📝 Commits (8)

  • d3b5a9c feat: add client-side Quick Actions screen (key.quickActions / G)
  • 99bf176 feat: make Quick Actions datapack-driven
  • ea29fb0 feat: quick actions implementation
  • 69461a9 feat: add pause_screen_additions support to pause menu
  • 63be0b4 fix: pause_screen_additions button position and click handling
  • e0a1e12 fix: pause_screen_additions button closes pause menu before opening dialog
  • 673a4f8 chore: remove horizon_official_server.txt (should not be committed)
  • 2d88cea style: rustfmt fixes for screens.rs

📊 Changes

7 files changed (+441 additions, -47 deletions)

View changed files

📝 crates/horizon-client-render/src/datapack.rs (+10 -8)
📝 crates/horizon-client/src/game.rs (+7 -0)
📝 crates/horizon-client/src/game/dialogs.rs (+7 -0)
📝 crates/horizon-client/src/game/lan.rs (+8 -1)
➕ crates/horizon-client/src/game/quick_actions.rs (+50 -0)
📝 crates/horizon-client/src/game/screens.rs (+152 -36)
📝 crates/horizon-client/src/lan/data.rs (+207 -2)

📄 Description

🤖 Opened by StievenW's AI agent (OpenCode, Nemotron 3 Ultra), not by StievenW personally.

What and why

This PR implements two related features:

  1. Quick Actions (key.quickActions, default G): Opens dialogs from the minecraft:quick_actions tag (synced from server datapacks). Follows Minecraft.getQuickActionsDialog() logic:

    • Empty tag → nothing
    • One dialog → opens it directly
    • Multiple → opens minecraft:quick_actions dialog_list
  2. pause_screen_additions support: The pause menu now reads the minecraft:pause_screen_additions dialog tag and displays buttons for dialogs that have external_title and pause: true. Buttons appear at row 3 (above Options/World Options), matching vanilla 26.3 behavior. Clicking closes the pause menu and opens the dialog.

Also fixes a bug where held movement keys weren't released when opening any dialog (pause_screen_additions, quick actions, or server-sent dialogs), causing the player to appear "stuck" walking.

Kind

  • parity: Horizon now does what vanilla 26.3 does (pause_screen_additions in pause menu, quick_actions keybind)
  • bug: held keys not cleared when opening dialogs (stuck movement)
  • perf
  • feature: quick actions keybind (G) for players
  • extra
  • tooling
  • docs

Vanilla reference

Feature Vanilla class/method Horizon implementation
Quick Actions Minecraft.getQuickActionsDialog(), KeyMapping.key.quickActions Game::open_quick_actions(), quick_actions.rs
pause_screen_additions PauseScreen.init(), DialogListDialogScreen.createListActions(), CommonDialogData.computeExternalTitle() Game::pause_screen_additions(), draw_pause_menu(), pause_click() in screens.rs
Dialog external_title CommonDialogData.computeExternalTitle() → external_title.orElse(title) Dialog::external_title.unwrap_or(title) in dialog.rs:668
Dialog opening from pause PauseScreen button click → DialogScreen pause_click() → show_dialog()

Harnesses to run:

  • python3 tools/parity.py quick_actions (if harness exists)
  • python3 tools/parity.py pause_screen (if harness exists)

Self-check

python3 tools/pr_ready.py --quick

Results:

pr_ready: 7 files changed since origin/main; checks on local
  Public tree...
  Public tree: pass (0 s)
  Python tests...
  Python tests: pass (2 min 5 s)
  rustfmt...
  rustfmt: pass (20 s)
  clippy...
  clippy: pass (2 min 0 s)

All checks pass.


🔄 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/4693 **Author:** [@stievenw](https://github.com/stievenw) **Created:** 10/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/quick-actions` --- ### 📝 Commits (8) - [`d3b5a9c`](https://github.com/horizon-rust/horizon/commit/d3b5a9c5aca63257e99534a191bc89c8b854f96f) feat: add client-side Quick Actions screen (key.quickActions / G) - [`99bf176`](https://github.com/horizon-rust/horizon/commit/99bf176372878abcf8c4a36b9bdb2a1641f380a4) feat: make Quick Actions datapack-driven - [`ea29fb0`](https://github.com/horizon-rust/horizon/commit/ea29fb043387be799ff6adc1543420ec62b8cc84) feat: quick actions implementation - [`69461a9`](https://github.com/horizon-rust/horizon/commit/69461a9accb68ba581148d53668014e0806a73ea) feat: add pause_screen_additions support to pause menu - [`63be0b4`](https://github.com/horizon-rust/horizon/commit/63be0b4b5d9c02a008feae47843b7673c208c27b) fix: pause_screen_additions button position and click handling - [`e0a1e12`](https://github.com/horizon-rust/horizon/commit/e0a1e12b649cccead342824cde21b2199fbca674) fix: pause_screen_additions button closes pause menu before opening dialog - [`673a4f8`](https://github.com/horizon-rust/horizon/commit/673a4f8f880705e5781b2f7e5b3ae1913645cbaa) chore: remove horizon_official_server.txt (should not be committed) - [`2d88cea`](https://github.com/horizon-rust/horizon/commit/2d88cea471fc7a6dd1800bdfa85359fd588bc1c3) style: rustfmt fixes for screens.rs ### 📊 Changes **7 files changed** (+441 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/datapack.rs` (+10 -8) 📝 `crates/horizon-client/src/game.rs` (+7 -0) 📝 `crates/horizon-client/src/game/dialogs.rs` (+7 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+8 -1) ➕ `crates/horizon-client/src/game/quick_actions.rs` (+50 -0) 📝 `crates/horizon-client/src/game/screens.rs` (+152 -36) 📝 `crates/horizon-client/src/lan/data.rs` (+207 -2) </details> ### 📄 Description > 🤖 Opened by StievenW's AI agent (OpenCode, Nemotron 3 Ultra), not by StievenW personally. ## What and why This PR implements two related features: 1. **Quick Actions (key.quickActions, default G)**: Opens dialogs from the `minecraft:quick_actions` tag (synced from server datapacks). Follows `Minecraft.getQuickActionsDialog()` logic: - Empty tag → nothing - One dialog → opens it directly - Multiple → opens `minecraft:quick_actions` dialog_list 2. **pause_screen_additions support**: The pause menu now reads the `minecraft:pause_screen_additions` dialog tag and displays buttons for dialogs that have `external_title` and `pause: true`. Buttons appear at row 3 (above Options/World Options), matching vanilla 26.3 behavior. Clicking closes the pause menu and opens the dialog. Also fixes a bug where held movement keys weren't released when opening any dialog (pause_screen_additions, quick actions, or server-sent dialogs), causing the player to appear "stuck" walking. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does (pause_screen_additions in pause menu, quick_actions keybind) - [x] bug: held keys not cleared when opening dialogs (stuck movement) - [ ] perf - [x] feature: quick actions keybind (G) for players - [ ] extra - [ ] tooling - [ ] docs ## Vanilla reference | Feature | Vanilla class/method | Horizon implementation | |---------|---------------------|------------------------| | Quick Actions | `Minecraft.getQuickActionsDialog()`, `KeyMapping.key.quickActions` | `Game::open_quick_actions()`, `quick_actions.rs` | | pause_screen_additions | `PauseScreen.init()`, `DialogListDialogScreen.createListActions()`, `CommonDialogData.computeExternalTitle()` | `Game::pause_screen_additions()`, `draw_pause_menu()`, `pause_click()` in `screens.rs` | | Dialog external_title | `CommonDialogData.computeExternalTitle()` → `external_title.orElse(title)` | `Dialog::external_title.unwrap_or(title)` in `dialog.rs:668` | | Dialog opening from pause | `PauseScreen` button click → `DialogScreen` | `pause_click()` → `show_dialog()` | Harnesses to run: - `python3 tools/parity.py quick_actions` (if harness exists) - `python3 tools/parity.py pause_screen` (if harness exists) ## Self-check ```bash python3 tools/pr_ready.py --quick ``` Results: ``` pr_ready: 7 files changed since origin/main; checks on local Public tree... Public tree: pass (0 s) Python tests... Python tests: pass (2 min 5 s) rustfmt... rustfmt: pass (20 s) clippy... clippy: pass (2 min 0 s) ``` All checks pass. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:58 +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#5784
No description provided.