[PR #7829] Cosmetics: name tag styles (a mark and a line, no model) #7847

Open
opened 2026-11-03 07:25:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7829
Author: @ludovic111
Created: 11/2/2026
Status: 🔄 Open

Base: feat/cosmetics-preview ← Head: feat/cosmetics-name-tag


📝 Commits (2)

  • a2edcd0 Cosmetics: name tag styles, a mark and a line with no model
  • c4e339a Merge feat/cosmetics-preview into feat/cosmetics-name-tag

📊 Changes

5 files changed (+112 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/game/cosmetics.rs (+2 -1)
📝 crates/horizon-cosmetics/src/item.rs (+50 -1)
📝 crates/horizon-cosmetics/src/lib.rs (+5 -4)
📝 crates/horizon-cosmetics/src/pose.rs (+42 -1)
📝 docs/cosmetics.md (+13 -3)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Cosmetics (off by default, behind horizon_cosmetics::ON_BY_DEFAULT): a fourth item kind, the name tag style. It has no model: a square mark of at most 16×16 drawn before the player's name, and tag.line, the colour of a thin line under the name. The founder set's Founder Tag is one.

  • Slot::NameTag, Item::tag: Option<Tag>, MAX_MARK = 16. A name tag has no parts and no animations; no other slot has a tag. bone now defaults to head.
  • The game's body pass never draws one (covered → true). Drawing it beside the name comes in the game PR that follows.
  • docs/cosmetics.md: the format, with an example.

Stacked on #7774 (CPU preview), which is on #7772 (game drawing).

Tests

  • a_name_tag_is_a_mark_and_a_line_without_a_model: the line colour is read as RGB, there are 0 vertices, and the mark keeps its size; a model item has no tag.
  • refuses_name_tags_with_a_model_or_a_big_mark: a box, a 32×32 or 16×8 mark, a missing or malformed line, or a hat with a tag are all refused.
  • The three real founder items (in the private service repo) parse with this parser: a 48-vertex visor, a 144-vertex shoulder pet, and the tag.

Checks

cargo fmt -p horizon-cosmetics --check                          ok
cargo clippy -p horizon-cosmetics --all-targets -- -D warnings  ok
cargo test -p horizon-cosmetics                                 17 passed

tools/pr_ready.py was not run: the Mac mini has 14 GB free and the build host 16 GB, both below the 25 GB floor for a fresh horizon-client build. The game-side change is one match arm (Slot::NameTag => true); CI builds and tests horizon-client.

Perf: nothing per frame. The new match arm runs where the old ones did.

🤖 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/7829 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `feat/cosmetics-preview` ← **Head:** `feat/cosmetics-name-tag` --- ### 📝 Commits (2) - [`a2edcd0`](https://github.com/horizon-rust/horizon/commit/a2edcd034ffd96fc5f6e3805edee6e63e1f1a207) Cosmetics: name tag styles, a mark and a line with no model - [`c4e339a`](https://github.com/horizon-rust/horizon/commit/c4e339ae81b776af8ee851f03c357a3200dd44cd) Merge feat/cosmetics-preview into feat/cosmetics-name-tag ### 📊 Changes **5 files changed** (+112 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/cosmetics.rs` (+2 -1) 📝 `crates/horizon-cosmetics/src/item.rs` (+50 -1) 📝 `crates/horizon-cosmetics/src/lib.rs` (+5 -4) 📝 `crates/horizon-cosmetics/src/pose.rs` (+42 -1) 📝 `docs/cosmetics.md` (+13 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Cosmetics (off by default, behind `horizon_cosmetics::ON_BY_DEFAULT`): a fourth item kind, the **name tag style**. It has no model: a square mark of at most 16×16 drawn before the player's name, and `tag.line`, the colour of a thin line under the name. The founder set's Founder Tag is one. - `Slot::NameTag`, `Item::tag: Option<Tag>`, `MAX_MARK = 16`. A name tag has no parts and no animations; no other slot has a `tag`. `bone` now defaults to `head`. - The game's body pass never draws one (`covered` → true). Drawing it beside the name comes in the game PR that follows. - `docs/cosmetics.md`: the format, with an example. Stacked on #7774 (CPU preview), which is on #7772 (game drawing). ## Tests - `a_name_tag_is_a_mark_and_a_line_without_a_model`: the line colour is read as RGB, there are 0 vertices, and the mark keeps its size; a model item has no tag. - `refuses_name_tags_with_a_model_or_a_big_mark`: a box, a 32×32 or 16×8 mark, a missing or malformed line, or a hat with a tag are all refused. - The three real founder items (in the private service repo) parse with this parser: a 48-vertex visor, a 144-vertex shoulder pet, and the tag. ## Checks ``` cargo fmt -p horizon-cosmetics --check ok cargo clippy -p horizon-cosmetics --all-targets -- -D warnings ok cargo test -p horizon-cosmetics 17 passed ``` `tools/pr_ready.py` was not run: the Mac mini has 14 GB free and the build host 16 GB, both below the 25 GB floor for a fresh `horizon-client` build. The game-side change is one match arm (`Slot::NameTag => true`); CI builds and tests `horizon-client`. **Perf:** nothing per frame. The new match arm runs where the old ones did. 🤖 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>
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#7847
No description provided.