[PR #4845] [MERGED] Test instance error markers: filled box and billboard text #5889

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4845
Author: @levzzz5154
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: parity/T2-error-marker


📝 Commits (2)

  • 49b4dbe Test instance error markers: filled translucent box and billboard text
  • e1c4d5d Merge remote-tracking branch 'hr/main' into parity/T2-error-marker

📊 Changes

5 files changed (+174 additions, -25 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/names.rs (+36 -5)
📝 crates/horizon-client/src/game/structure_blocks.rs (+0 -1)
📝 crates/horizon-client/src/game/test_instances.rs (+69 -19)
📝 crates/horizon-client/src/gizmos.rs (+68 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3519

Rows

  • TestInstanceRenderer.submitErrorMarker: the marker drew as red edges (a stroke); vanilla fills the AABB(pos).inflate(0.02F) box with colorFromFloat(0.375, 1, 0, 0) (six CuboidGizmo fill quads, blended, depth tested) and draws error.text().getString() as a white centred billboard at pos + (0.5, 1.2, 0.5), scale 0.16 (scale / 16 per font pixel), always on top. The box goes through the translucent entity geometry, the text through the name tag text path (new unit parameter, 0.025 for name tags) in the see-through layer.

Vanilla followed: TestInstanceRenderer.submitErrorMarker, CuboidGizmo.emit, GizmoFeatureRenderer.buildQuads/buildTexts, TextGizmo.

Tests

gizmos::tests::an_error_marker_is_a_filled_box_with_text_above_it (box, text anchor, fill colour, text unit, quad winding). clippy and fmt clean. Not run in-game.

🤖 Generated with Claude Code


🔄 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/4845 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/T2-error-marker` --- ### 📝 Commits (2) - [`49b4dbe`](https://github.com/horizon-rust/horizon/commit/49b4dbec3de14c1cb2f88b9303fa80cc1ce3ee06) Test instance error markers: filled translucent box and billboard text - [`e1c4d5d`](https://github.com/horizon-rust/horizon/commit/e1c4d5dc882eda07982c634ee519bef742e10c2a) Merge remote-tracking branch 'hr/main' into parity/T2-error-marker ### 📊 Changes **5 files changed** (+174 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/names.rs` (+36 -5) 📝 `crates/horizon-client/src/game/structure_blocks.rs` (+0 -1) 📝 `crates/horizon-client/src/game/test_instances.rs` (+69 -19) 📝 `crates/horizon-client/src/gizmos.rs` (+68 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3519 ## Rows - `TestInstanceRenderer.submitErrorMarker`: the marker drew as red edges (a stroke); vanilla fills the `AABB(pos).inflate(0.02F)` box with `colorFromFloat(0.375, 1, 0, 0)` (six `CuboidGizmo` fill quads, blended, depth tested) and draws `error.text().getString()` as a white centred billboard at `pos + (0.5, 1.2, 0.5)`, scale 0.16 (`scale / 16` per font pixel), always on top. The box goes through the translucent entity geometry, the text through the name tag text path (new `unit` parameter, 0.025 for name tags) in the see-through layer. Vanilla followed: `TestInstanceRenderer.submitErrorMarker`, `CuboidGizmo.emit`, `GizmoFeatureRenderer.buildQuads/buildTexts`, `TextGizmo`. ## Tests `gizmos::tests::an_error_marker_is_a_filled_box_with_text_above_it` (box, text anchor, fill colour, text unit, quad winding). clippy and fmt clean. Not run in-game. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:42 +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#5889
No description provided.