Skip to content

Test mode: merge status-icon toggles into one "Icons" toggle#126

Merged
DanderBot merged 19 commits into
DanderBot:mainfrom
Krathe82:pr/test-icons-toggle
Jun 6, 2026
Merged

Test mode: merge status-icon toggles into one "Icons" toggle#126
DanderBot merged 19 commits into
DanderBot:mainfrom
Krathe82:pr/test-icons-toggle

Conversation

@Krathe82
Copy link
Copy Markdown
Contributor

@Krathe82 Krathe82 commented Jun 5, 2026

Stacks on #125 / #122 — depends on the icon-suite + combat-icon work, so until those merge this PR's diff also shows their commits. Please merge the icon stack first; this then reduces to just the test-mode toggle change.

What

In test mode, merges the separate "Status / Ready" and "Role / Leader" preview toggles into a single "Icons" toggle, so the preview matches the live status-icon grouping and is less confusing to scan.

Testing

Test mode (party + raid): toggling the unified Icons checkbox shows/hides the role/leader/target/status preview icons together, matching live behaviour.

Krathe82 added 19 commits June 5, 2026 16:39
…tling

Route every border (frame, square/icon, bar, defensive icon, missing buff,
resource bar, pet, targeted spells) through a single DF.Border engine with
shared style / alpha / gradient controls and 10 animation effects (LibCustomGlow
embedded). Add DF.Expiring with per-entry throttle + stagger for the expiring
border ticker. Defensive-icon and missing-buff border fixes (frame level,
co-planar with the icon, out-of-range fade preserved across re-renders). Adds
the border & expiry system overview docs.
Default-value tweaks for new profiles: buff icon size 20, buff spacing 2, buff
stack-count offsets, Stack/Duration outline SHADOW;OUTLINE, buff & debuff
expiring border inset 0 (flush), plus minor text/aura/absorb/targeted default
tweaks. (Targets border-rework's new border-key schema.)
The old default was opaque black, which is easy to mistake for empty
space on a dark health bar. New default is a translucent grey
(#757575 @ ~80% alpha) so the reduced-max region reads clearly.

Includes a one-time, value-guarded migration: any profile still on the
exact old black {0,0,0,1} is flipped to the new colour on load; any
profile with a customised (non-black) colour is left untouched, and a
per-mode flag means a later deliberate black choice is not reverted.
Iterate the new default from #757575CB to #808080CD (50% mid-grey at
~80% alpha). Migration bumped to V2 and now also catches the brief
in-development #757575CB value (in-dev testers only) in addition to the
original opaque black, so it lands on the final colour; customised
colours are still left alone.
…targeted list

- Role icons: Show Tank/Healer/DPS toggles apply live (no /reload), decoupled
  from the Hide-in-Combat gate.
- Boss debuffs: widen Border Scale range to allow hiding the border, cap to +/-5,
  step by 1, add an explanatory tip.
- Aura Designer: tear down indicators when AD is disabled; re-apply on profile swap.
- Targeted list: don't show in test mode when the feature is disabled.
In replace mode ApplyHealthBar reset the underlying health-bar texture
to the full configured alpha on every aura re-apply, while the OOR path
(UpdateHealthBarAppearance / UpdateAuraDesignerAppearance) drove it to
the faded healthbarEffectiveBlend. In element-specific OOR mode the two
disagree on an out-of-range unit, and a phased unit — whose auras the
client re-syncs constantly, firing UNIT_AURA in a tight loop — makes the
re-apply re-assert full opacity many times a second, so the bar flashed.

Read the OOR-aware effective blend here too (fall back to the configured
alpha on first apply / in range). Regression from the a685d42 vertex->
frame alpha move, which made UpdateHealthBarAppearance OOR-aware but left
this companion write using the raw alpha.
With framePadding 0 the health bar fills the whole frame and the border
draws inward over its edge. In element-specific OOR mode the border fades
to its OOR alpha, revealing the AD replace overlay/recolour sitting under
it — so a green Renew indicator tinted the (class-coloured) border out of
range.

- Inset the AD tint/replace overlay by the frame border thickness so it
  never sits under the border (ApplyHealthBar, and re-applied in
  UpdateAuraDesignerAppearance so a range transition positions it
  immediately instead of waiting for the next aura tick).
- Run UpdateAuraDesignerAppearance before UpdateHealthBarAppearance in
  UpdateAllElementAppearances: the AD pass writes healthbarEffectiveBlend
  (the OOR-aware bar alpha) that the health pass reads, so the underlying
  bar fades in lockstep with the border on the first out-of-range frame
  (no one-tick green flash).
…es, mono fonts

- Upgrade status icons to modern Blizzard atlases (prefer atlas, fall back to the
  legacy texture); role icons prefer the LFG role atlases.
- Live header previews per icon section (icon swatch or status text), greyed when
  disabled; the role preview tracks the selected style.
- AFK icon timer: dedicated Timer Text controls, left-justified zero-padded MM:SS
  countdown that stays steady (no wobble); bundle Roboto Mono for an optional
  fully-static timer.
- Restructure every status-icon section into collapsible Settings / Appearance /
  Position boxes (matching Aura Designer); collapse-bar arrow points up.
- Rename Raid Target -> Target Marker; status-icon font/size/colour now apply to
  live frames instantly.
Follow-up work captured after the initial bundle was cut:

* (Icons) New BG objective carrier icon — lights up a friendly
  party/raid member carrying a battleground objective (flag or orb),
  detected via UnitPvpClassification so it needs no aura access and
  renders on DF frames regardless of Blizzard frame state. Defaults
  on, centred; full Settings/Appearance/Position controls + preview.
* (Icons) Target Marker section header preview now shows the four
  common markers (square/cross/triangle/circle), inset to match the
  other swatch sizes.
* (Defaults) Summon/AFK icon defaults — Show-as-Text off, centred,
  repositioned; AFK timer text size 16, offset Y 1 (party + raid).
* (GUI) Collapse-bar arrow points up and is more visible.
* (Test Mode) Replaced test-mode buff/debuff preview icons that
  pointed at art removed in Midnight, so they no longer render blank.
New optional status icon showing the classic crossed-swords glyph (Interface\CharacterFrame\UI-StateIcon, swords quadrant) on a party/raid member who is in combat. Detection via UnitAffectingCombat(unit), secret-guarded; event-driven on UNIT_FLAGS (no new ticker) plus the normal status-icon refresh. Full Settings/Appearance/Position GUI, Config defaults (party+raid, off by default), export keys, and test-mode rendering — mirrors the BG-carrier icon pattern. Off by default; default position CENTER.
…e "Icons" toggle

The two test-panel preview toggles were confusing; combine them into a single "Icons" checkbox keyed on testShowStatusIcons (now default on). Repoints the role/leader render gate and the quick-preset writes to that key; testShowIcons is retired. One-time migration flips existing profiles on so role/leader icons do not disappear in test mode. Test-mode display only — no gameplay impact.
@Krathe82 Krathe82 force-pushed the pr/test-icons-toggle branch from 0d58a2b to ffc9aac Compare June 5, 2026 16:12
Krathe82 pushed a commit to Krathe82/DandersFrames that referenced this pull request Jun 6, 2026
@DanderBot DanderBot merged commit ffc9aac into DanderBot:main Jun 6, 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.

2 participants