Skip to content

Out of Range: unified Text Alpha driving the Text Designer overlay#163

Open
Krathe82 wants to merge 4 commits into
DanderBot:mainfrom
Krathe82:pr/oor-text-alpha
Open

Out of Range: unified Text Alpha driving the Text Designer overlay#163
Krathe82 wants to merge 4 commits into
DanderBot:mainfrom
Krathe82:pr/oor-text-alpha

Conversation

@Krathe82

Copy link
Copy Markdown
Contributor

Reported: the Name Text Alpha setting (Fading → Out of Range) stopped working after the Text Designer update.

Cause: the Text Designer now renders all unit text, so the old per-element oorNameTextAlpha (and the other per-element OOR text alphas) no longer drive anything.

Fix: a single unified Text Alpha (oorTextAlpha, default 0.55) fades the whole Text Designer overlay out of range via SetAlphaFromBoolean. The Fading → Out of Range page collapses the old Name/Health Text Alpha sliders into one Text Alpha. A per-profile guarded migration folds a customised legacy oorNameTextAlpha into the new value (default-config users just get the new default). Applied in test mode too so the fade previews, and exported under the text category.

Krathe82 added 4 commits June 16, 2026 13:53
The Text Designer now renders all unit text, so the legacy per-element OOR
text alphas (oorNameTextAlpha / oorHealthTextAlpha) acted on the now-hidden
legacy FontStrings and did nothing — the reported 'Name Text Alpha doesn't
work since the last update'.

Rework it to a single unified 'Text Alpha' that dims the whole TD overlay
out of range:
- Render.lua: at the end of Render:UpdateFrame, fade frame._tdOverlay via
  SetAlphaFromBoolean(dfInRange, 1, oorTextAlpha) when oorEnabled (secret-safe;
  dfInRange may be a secret boolean). oorEnabled off -> overlay stays 1 and the
  frame-level OOR fade cascades to it as a child.
- Config: new oorTextAlpha (party + raid), default 0.55.
- Options: replace the Name/Health Text Alpha sliders with one 'Text Alpha'.
- ExportCategories: export oorTextAlpha.
- Core/Profile: MigrateOORTextAlpha folds a customised legacy oorNameTextAlpha
  (changed from its old default of 1) into oorTextAlpha, per-profile guarded.

Legacy keys left in place (harmless). Test-mode TD OOR preview is unchanged
(separate testData path).
Let test frames (dfIsTestFrame) through the OOR overlay-fade block. TestMode
already sets frame.dfInRange from the test OOR state (gated on
testShowOutOfRange), so the same secret-safe SetAlphaFromBoolean path now
dims the TD overlay in the test preview, matching live. The Options mock
preview (isPreview, not a test frame) stays skipped — it has no range state.
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.

1 participant