[PR #2118] [MERGED] Prefer expression sprites in runtime overlay #5444

Closed
opened 2026-10-22 04:16:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2118
Author: @Promansis
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-2110-runtime-sprite-browser-proof


📝 Commits (2)

  • b052c13 Prefer expression sprites in runtime overlay
  • 7178b67 Align sprite fallback priority

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/features/runtime/visuals/components/SpriteOverlay.tsx (+2 -2)

📄 Description

Linked issue

Closes #2110

Why this change

  • Runtime sprite overlays could prefer a matching full_* sprite before a facial expression sprite when both sprite display modes were enabled, which could hide roleplay expression sprite parity behind full-body assets.

What changed

  • Updated SpriteOverlay sprite resolution so normal runtime overlays prefer facial expression sprites first.
  • Preserved game/full-body behavior by keeping fullBodyOnly overlays restricted to the full-body sprite pool.

Refactor impact

Primary owner:

Runtime visuals.

Impact areas reviewed:

  • Roleplay SpriteOverlay usage with expression and full-body display modes.
  • Game SpriteOverlay usage with fullBodyOnly.
  • Tracker sprite helper behavior, which already resolves expression sprites independently.

Boundary notes:

  • Runtime visual behavior remains in src/features/runtime/visuals.
  • No engine, shared API, Rust, or remote-runtime boundary changes.

Pressure points touched:

  • Runtime SpriteOverlay.
  • Reviewed roleplay and game SpriteOverlay call sites.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm typecheck passed.
  • pnpm check passed.
  • Rendered app/browser sprite visibility proof was not run locally in this pass.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • This fixes existing runtime sprite selection behavior and adds no new discoverable feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • Not captured; no visible layout change. The user-facing change is corrected sprite selection priority in runtime overlays.

🔄 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/Pasta-Devs/Marinara-Engine/pull/2118 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-2110-runtime-sprite-browser-proof` --- ### 📝 Commits (2) - [`b052c13`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b052c13f9e2ae464194abb775afb2cab953a5db4) Prefer expression sprites in runtime overlay - [`7178b67`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7178b6727f1de5d1966610e9d812319bbf3d32aa) Align sprite fallback priority ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/features/runtime/visuals/components/SpriteOverlay.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #2110 ## Why this change - Runtime sprite overlays could prefer a matching `full_*` sprite before a facial expression sprite when both sprite display modes were enabled, which could hide roleplay expression sprite parity behind full-body assets. ## What changed - Updated `SpriteOverlay` sprite resolution so normal runtime overlays prefer facial expression sprites first. - Preserved game/full-body behavior by keeping `fullBodyOnly` overlays restricted to the full-body sprite pool. ## Refactor impact Primary owner: Runtime visuals. Impact areas reviewed: - Roleplay `SpriteOverlay` usage with expression and full-body display modes. - Game `SpriteOverlay` usage with `fullBodyOnly`. - Tracker sprite helper behavior, which already resolves expression sprites independently. Boundary notes: - Runtime visual behavior remains in `src/features/runtime/visuals`. - No engine, shared API, Rust, or remote-runtime boundary changes. Pressure points touched: - Runtime `SpriteOverlay`. - Reviewed roleplay and game `SpriteOverlay` call sites. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm typecheck` passed. - `pnpm check` passed. - Rendered app/browser sprite visibility proof was not run locally in this pass. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - This fixes existing runtime sprite selection behavior and adds no new discoverable feature. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - Not captured; no visible layout change. The user-facing change is corrected sprite selection priority in runtime overlays. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:22 +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
Pasta-Devs/Marinara-Engine#5444
No description provided.