Skip to content

Comments

[DialoguePage Refactor Step 2] Nametag refactor #395

Draft
PringlesGang wants to merge 3 commits intomasterfrom
nametag-refactor
Draft

[DialoguePage Refactor Step 2] Nametag refactor #395
PringlesGang wants to merge 3 commits intomasterfrom
nametag-refactor

Conversation

@PringlesGang
Copy link
Member

@PringlesGang PringlesGang commented Feb 15, 2026

Refactors the whole nametag system for more extensibility, maintainability, and readability

Makes use of an abstract base class approach for the NametagDisplay
Similarly overhauls the DialogueBox class to make better use of the new nametag system

Adds ownership from DialoguePage -> DialogueBox -> NametagDisplay, as each DialoguePage in the MAGES. engine maintains its own textbox state
(I am aware this ownership unnecessarily allocated DialogueBoxes for every backlog and tip entry. I pinky-promise I will finally separate these two from DialoguePage next refactor!)

src/hud/nametagdisplay and src/hud/dialoguebox have been completely rewritten, so I suggest reviewing those as effectively "new files," instead of looking at the git diff

@PringlesGang PringlesGang added this to the 0.9.X Polishing milestone Feb 15, 2026
@PringlesGang PringlesGang self-assigned this Feb 15, 2026
@PringlesGang PringlesGang linked an issue Feb 15, 2026 that may be closed by this pull request
@PringlesGang PringlesGang force-pushed the nametag-refactor branch 5 times, most recently from 8f03e4b to 2a7f915 Compare February 19, 2026 22:49
@Enorovan Enorovan changed the title Nametag refactor [DialoguePage Refactor Step 2] Nametag refactor Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nametag animation is triggered when the name stays the same

1 participant