Skip to content

Secondary Stats Display: right-aligned values, row spacing, per-stat … - #1258

Closed
labrie75 wants to merge 1 commit into
EllesmereGaming:mainfrom
labrie75:labrie75-patch-7
Closed

Secondary Stats Display: right-aligned values, row spacing, per-stat …#1258
labrie75 wants to merge 1 commit into
EllesmereGaming:mainfrom
labrie75:labrie75-patch-7

Conversation

@labrie75

@labrie75 labrie75 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

…colors

What does this PR do?

Three readability improvements to the Secondary Stats overlay, all inside its own section of EllesmereUIQoL.lua:

Right-aligned values. The overlay was a single left-justified FontString, so each number started wherever its label happened to end and the column wobbled. The text is now two FontStrings -- labels justified left, values justified right -- sharing the same font, size and line spacing, so the rows stay in step and the numbers line up on their right edge. Label widths vary a lot between locales (compare the English and Korean screenshots), and the value column absorbs all of it.

Row spacing. The lines sat directly on top of each other. Both columns now get SetSpacing(3), scaled together with the font size, so the block stays readable at any overlay scale.

Per-stat colors. With no custom color picked, each secondary now has its own hue -- Crit gold ffd100, Haste green 2ecc71, Mastery blue 55aaff, Versatility violet c77dff -- and the value takes the row's color too, so each stat reads as one piece. Tertiaries keep the original default, the player's class color.

The existing options are unchanged: picking a custom secondary or tertiary color still paints that whole group the chosen color exactly as before -- the palette only applies while no custom color is set. Saved position, scale, the tertiary toggle, and the secret-safe value path are untouched, and no new locale keys are introduced (the labels reuse the existing L("Crit") family).

How was it tested?

Tested in game on the 12.1 PTR with a koKR client: default palette with tertiary rows enabled, and overlay rescaling. Values stay right-aligned as the numbers change width, the row gap scales with the font, and tertiaries render in the class color. No load errors.

Screenshots

Same overlay on an English client (left) and a Korean client (right):
image

Checklist

  • New settings default OFF -- n/a, no setting added
  • Zero cost while disabled -- the section still early-returns when the overlay is off
  • Cheap while enabled -- same update path; one extra FontString, built once
  • No writes onto Blizzard-owned frames -- the addon's own overlay frame only
  • Tested in-game, works on the 12.1 PTR; no load errors

…colors

## What does this PR do?

Three readability improvements to the Secondary Stats overlay, all inside its
own section of `EllesmereUIQoL.lua`:

**Right-aligned values.** The overlay was a single left-justified FontString,
so each number started wherever its label happened to end and the column
wobbled. The text is now two FontStrings -- labels justified left, values
justified right -- sharing the same font, size and line spacing, so the rows
stay in step and the numbers line up on their right edge. Label widths vary a
lot between locales (compare the English and Korean screenshots), and the
value column absorbs all of it.

**Row spacing.** The lines sat directly on top of each other. Both columns now
get `SetSpacing(3)`, scaled together with the font size, so the block stays
readable at any overlay scale.

**Per-stat colors.** With no custom color picked, each secondary now has its
own hue -- Crit gold `ffd100`, Haste green `2ecc71`, Mastery blue `55aaff`,
Versatility violet `c77dff` -- and the value takes the row's color too, so each
stat reads as one piece. Tertiaries keep the original default, the player's
class color.

The existing options are unchanged: picking a custom secondary or tertiary
color still paints that whole group the chosen color exactly as before -- the
palette only applies while no custom color is set. Saved position, scale, the
tertiary toggle, and the secret-safe value path are untouched, and no new
locale keys are introduced (the labels reuse the existing `L("Crit")` family).

## How was it tested?

Tested in game on the 12.1 PTR with a koKR client: default palette with
tertiary rows enabled, and overlay rescaling. Values stay right-aligned as the
numbers change width, the row gap scales with the font, and tertiaries render
in the class color. No load errors.

## Screenshots

Same overlay on an English client (left) and a Korean client (right):


## Checklist

- [x] New settings default **OFF** -- n/a, no setting added
- [x] Zero cost while disabled -- the section still early-returns when the overlay is off
- [x] Cheap while enabled -- same update path; one extra FontString, built once
- [x] No writes onto Blizzard-owned frames -- the addon's own overlay frame only
- [x] Tested in-game, works on the 12.1 PTR; no load errors
@labrie75 labrie75 closed this Aug 8, 2026
@labrie75
labrie75 deleted the labrie75-patch-7 branch August 8, 2026 01:51
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