[PR #2466] [MERGED] Draw the autosave indicator #4340

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

📋 Pull Request Information

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

Base: main ← Head: fix/autosave-indicator


📝 Commits (1)

  • 4cf9ffd Draw the autosave indicator

📊 Changes

4 files changed (+93 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+12 -1)
📝 crates/horizon-client/src/game/integrated.rs (+12 -0)
📝 crates/horizon-client/src/game/titles.rs (+22 -0)
📝 crates/horizon-client/src/hud_overlays.rs (+47 -0)

📄 Description

What and why

The Autosave Indicator option only toggled a setting; nothing was ever drawn. Horizon now shows the fading "Saving world" text in the bottom right corner while the world autosaves.

The autosave runs on the integrated server thread, so it publishes an "is saving" flag with the other shared flags; the window reads it each tick. In frame (--in-frame) it reads the game's own flag. The flag is true for the tick that starts the autosave (every 6000 ticks), and the fade makes it visible for a moment. Servers other than single player's own never show it, as in vanilla.

Vanilla reference

Hud.tickAutosaveIndicator (Mth.lerp(0.2F, value, server.isCurrentlySaving() ? 1 : 0)) and Hud.extractSavingIndicator (menu.savingLevel with a backdrop at guiWidth - width - 5, guiHeight - 9 - 5, drawn after the screens when showAutosaveIndicator is on).

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/2466 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/autosave-indicator` --- ### 📝 Commits (1) - [`4cf9ffd`](https://github.com/horizon-rust/horizon/commit/4cf9ffd8472ef7e4c23045b503772ba5fd46d31f) Draw the autosave indicator ### 📊 Changes **4 files changed** (+93 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+12 -1) 📝 `crates/horizon-client/src/game/integrated.rs` (+12 -0) 📝 `crates/horizon-client/src/game/titles.rs` (+22 -0) 📝 `crates/horizon-client/src/hud_overlays.rs` (+47 -0) </details> ### 📄 Description ## What and why The Autosave Indicator option only toggled a setting; nothing was ever drawn. Horizon now shows the fading "Saving world" text in the bottom right corner while the world autosaves. The autosave runs on the integrated server thread, so it publishes an "is saving" flag with the other shared flags; the window reads it each tick. In frame (`--in-frame`) it reads the game's own flag. The flag is true for the tick that starts the autosave (every 6000 ticks), and the fade makes it visible for a moment. Servers other than single player's own never show it, as in vanilla. ## Vanilla reference `Hud.tickAutosaveIndicator` (`Mth.lerp(0.2F, value, server.isCurrentlySaving() ? 1 : 0)`) and `Hud.extractSavingIndicator` (`menu.savingLevel` with a backdrop at `guiWidth - width - 5`, `guiHeight - 9 - 5`, drawn after the screens when `showAutosaveIndicator` is on). ## 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:16:28 +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#4340
No description provided.