[PR #4698] [MERGED] Feat/quick actions #5789

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4698
Author: @stievenw
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/quick-actions


📝 Commits (10+)

  • 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
  • c020499 Merge branch 'main' into feat/quick-actions
  • 776f8a4 test: fix pause_buttons test calls with 5th argument

📊 Changes

9 files changed (+379 additions, -82 deletions)

View changed files

📝 crates/horizon-client-render/src/datapack.rs (+3 -2)
📝 crates/horizon-client/src/game.rs (+10 -0)
📝 crates/horizon-client/src/game/dialogs.rs (+6 -0)
➕ crates/horizon-client/src/game/quick_actions.rs (+50 -0)
📝 crates/horizon-client/src/game/remote.rs (+3 -0)
📝 crates/horizon-client/src/game/screens.rs (+137 -35)
📝 crates/horizon-client/src/lan/data.rs (+167 -42)
📝 tools/port_map/client2-014.tsv (+2 -2)
📝 tools/port_map/rest-003.tsv (+1 -1)

📄 Description

🤖 Opened by StievenW's AI agent (OpenCode, Nemotron 3, 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 reads the minecraft:pause_screen_additions dialog tag and displays a button (vanilla-parity: one button opening dialog_list) for dialogs with external_title and pause: true. Button appears at row 3 (above Options/World Options). Clicking closes the pause menu and opens the dialog.

Kind

  • parity: Horizon now does what vanilla 26.3 does (pause_screen_additions in pause menu, quick_actions keybind)
  • bug
  • 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 (local):

pr_ready: 505 files changed since origin/main; checks on local
  Public tree...
  Public tree: pass (0 s)
  Python tests...
  Python tests: pass (3 min 43 s)
  rustfmt...
  rustfmt: pass (44 s)
  clippy...
  clippy: pass (5 s)
  tests: workspace... (timed out locally, CI will run)

🔄 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/4698 **Author:** [@stievenw](https://github.com/stievenw) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/quick-actions` --- ### 📝 Commits (10+) - [`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 - [`c020499`](https://github.com/horizon-rust/horizon/commit/c020499a73ff5dac252ebf6360ca8557ccd5e6e9) Merge branch 'main' into feat/quick-actions - [`776f8a4`](https://github.com/horizon-rust/horizon/commit/776f8a40b164ffabcf8ba7e59b4393c83ea5a9c8) test: fix pause_buttons test calls with 5th argument ### 📊 Changes **9 files changed** (+379 additions, -82 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/datapack.rs` (+3 -2) 📝 `crates/horizon-client/src/game.rs` (+10 -0) 📝 `crates/horizon-client/src/game/dialogs.rs` (+6 -0) ➕ `crates/horizon-client/src/game/quick_actions.rs` (+50 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+3 -0) 📝 `crates/horizon-client/src/game/screens.rs` (+137 -35) 📝 `crates/horizon-client/src/lan/data.rs` (+167 -42) 📝 `tools/port_map/client2-014.tsv` (+2 -2) 📝 `tools/port_map/rest-003.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by StievenW's AI agent (OpenCode, Nemotron 3, 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 reads the `minecraft:pause_screen_additions` dialog tag and displays a button (vanilla-parity: one button opening dialog_list) for dialogs with `external_title` and `pause: true`. Button appears at row 3 (above Options/World Options). Clicking closes the pause menu and opens the dialog. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does (pause_screen_additions in pause menu, quick_actions keybind) - [ ] bug - [ ] 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 (local): ``` pr_ready: 505 files changed since origin/main; checks on local Public tree... Public tree: pass (0 s) Python tests... Python tests: pass (3 min 43 s) rustfmt... rustfmt: pass (44 s) clippy... clippy: pass (5 s) tests: workspace... (timed out locally, CI will run) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:00 +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#5789
No description provided.