Skip to content

fix player emoji hiding player status - #4834

Merged
evanpelle merged 2 commits into
mainfrom
bug/4829-fix-player-status
Aug 2, 2026
Merged

fix player emoji hiding player status#4834
evanpelle merged 2 commits into
mainfrom
bug/4829-fix-player-status

Conversation

@JB940

@JB940 JB940 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Before opening a PR: discuss new features on Discord first, and file bugs or small improvements as issues. You must be assigned to an approved issue — unsolicited PRs will be auto-closed.

Add approved & assigned issue number here:

Resolves #4829

Description:

This PR solves player global emoting hiding all their status icons. A player could permanently hide them by emoting in intervals. This PR shows the emoji next to the status icons, properly re-centering the entire set of icons above a players' name.

image
  • Single source of truth: the status icons now live in index.ts. Adding a new status icon only requires updating one place since the emoji draw also depends on it.
  • Both shaders simplified: status-icon.vert.glsl loses the counting loop (saving 3 lines); icon.vert.glsl loses the pd5/pd6 fetches and the dot(step()) expression (saving 4 lines + 2 texture reads).
  • pd8 was already fetched at the top of status-icon.vert.glsl's main(), so int(pd8.z) there is completely free.

Please complete the following:

  • I have added screenshots for all UI updates

Please put your Discord username so you can be contacted if a bug or regression is found:

JB940

…e of truth for status icons in index.ts and simplified, optimzed workload by reducing looping over status icons twice.
@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The name pass now stores the active status-icon count in player-data column 8. The count includes relation, state, target, embargo, nuke, and doomsday icons.

Changes

Status icon encoding

Layer / File(s) Summary
Encode active status icons
src/client/render/gl/passes/name-pass/index.ts
writePlayerDataRow now computes the active status-icon count and stores it in player-data column 8 with the crown layer and verified badge.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: UI/UX

Suggested reviewers: evanpelle

Poem

Icons gather, counted bright,
Column eight now holds their light.
Crowns and badges take their place,
Status stays within the trace.
Names reveal what sprites convey.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The core emoji visibility and re-centering logic is in two excluded GLSL files, so compliance with issue #4829 cannot be verified. Include the excluded GLSL files in review, or provide evidence that they preserve status icons and re-center emojis as required by issue #4829.
✅ Passed checks (4 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The reviewed change supports the stated status-icon counting and emoji/status display objectives, with no unrelated changes shown.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly identifies the fix for player emotes hiding status icons.
Description check ✅ Passed The description directly explains the status-icon visibility fix and related shader and rendering changes.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Aug 2, 2026
@JB940

JB940 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

With that fix it now scales properly and looks really normal
image

@JB940 JB940 changed the title fix player emoji hiding player status, proper re-center, single sourc… fix player emoji hiding player status Aug 2, 2026
@ryanbarlow97 ryanbarlow97 added the UI/UX UI/UX changes including assets, menus, QoL, etc. label Aug 2, 2026
@ryanbarlow97 ryanbarlow97 added this to the v33 milestone Aug 2, 2026
@github-project-automation github-project-automation Bot moved this from Triage to Final Review in OpenFront Release Management Aug 2, 2026
@evanpelle
evanpelle merged commit dacf74a into main Aug 2, 2026
14 of 17 checks passed
@github-project-automation github-project-automation Bot moved this from Final Review to Complete in OpenFront Release Management Aug 2, 2026
@evanpelle
evanpelle deleted the bug/4829-fix-player-status branch August 2, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI/UX UI/UX changes including assets, menus, QoL, etc.

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

Emojis hide current player relation/ status

3 participants