Skip to content

(Aura Designer) Fix health bar tint indicator stale state and live settings update#62

Merged
DanderBot merged 1 commit into
DanderBot:mainfrom
Krathe82:fix/ad-healthbar-tint-stale-state
May 11, 2026
Merged

(Aura Designer) Fix health bar tint indicator stale state and live settings update#62
DanderBot merged 1 commit into
DanderBot:mainfrom
Krathe82:fix/ad-healthbar-tint-stale-state

Conversation

@Krathe82

@Krathe82 Krathe82 commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Texture re-sync on apply: GetOrCreateTintOverlay captures the health bar's StatusBarTexture at creation time. When a frame is recycled to a different party member the underlying texture can change, leaving the overlay showing a stale texture. ApplyHealthBar now re-syncs the texture before each Show().
  • Colour reset on revert: RevertHealthBar now calls SetStatusBarColor(1,1,1,1) after hiding the overlay so stale tint from a previous unit cannot bleed through on the next activation cycle (bug 861).
  • Tint mode live update: Switching from replace → tint mode in the settings panel now takes effect immediately on live frames without needing to toggle the aura. Previously, UpdateHealthBarAppearance blocked all colour updates while the AD indicator was active (including tint mode, where the underlying bar colour should still be managed normally). The guard now only blocks colour in replace mode; tint mode lets class/percent/custom colour logic run as expected.

Test plan

  • Set up a health bar indicator in replace mode — confirm the indicator colour shows correctly in range and fades OOR
  • Switch to tint mode in the settings panel — confirm the tint updates immediately on live frames without toggling the aura
  • Switch back to replace mode — confirm replace mode updates immediately
  • With tint mode active, verify the underlying bar shows class colour (not the AD colour) visible through the overlay
  • Test with multiple party members to exercise frame recycling — confirm no stale texture or colour from a previous member bleeds through
  • Toggle the indicator on and off several times — confirm no stale tint persists after revert

…ttings update

- Re-sync tint overlay StatusBarTexture on each apply in case the frame
  was recycled to a different unit (stale texture from previous member)
- Reset overlay SetStatusBarColor(1,1,1,1) in RevertHealthBar so stale
  tint colour cannot bleed through on the next activation cycle
- In tint mode, briefly release the AD colour lock before re-applying so
  UpdateHealthBarAppearance can restore the underlying bar to its normal
  class/custom colour; fixes mode switching not taking effect on live
  frames without toggling the aura
- UpdateHealthBarAppearance now only skips normal colour logic in replace
  mode; tint mode lets class/percent/custom colour updates run normally
  so the underlying bar stays correct across health events and form shifts
@DanderBot DanderBot merged commit d4b7622 into DanderBot:main May 11, 2026
@DanderBot

Copy link
Copy Markdown
Owner

Thanks for the PR! Merged into main and will ship in the next alpha build.

DanderBot added a commit that referenced this pull request May 11, 2026
DanderBot added a commit that referenced this pull request May 11, 2026
…king

PR #60 conflicted with PR #62 on the replace-mode hbTex:SetVertexColor block; applied
only the non-duplicate parts manually. The state.healthbarMode/R/G/B/Blend writes also
fix a latent bug in already-merged PR #62 where adHealthBarMode was read but never
written, making the live tint/replace switch gate always fail.
@Krathe82 Krathe82 deleted the fix/ad-healthbar-tint-stale-state branch June 4, 2026 12:42
Krathe82 pushed a commit to Krathe82/DandersFrames that referenced this pull request Jun 6, 2026
…tale-state

(Aura Designer) Fix health bar tint indicator stale state and live settings update
Krathe82 pushed a commit to Krathe82/DandersFrames that referenced this pull request Jun 6, 2026
…bar* tracking

PR DanderBot#60 conflicted with PR DanderBot#62 on the replace-mode hbTex:SetVertexColor block; applied
only the non-duplicate parts manually. The state.healthbarMode/R/G/B/Blend writes also
fix a latent bug in already-merged PR DanderBot#62 where adHealthBarMode was read but never
written, making the live tint/replace switch gate always fail.
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