Thread Tools Display Modes
11-20-22, 07:56 AM   #1
Milcon
A Kobold Labourer
Join Date: Nov 2022
Posts: 1
Mana status bar color change issue

-Classic WoTLK-
Tryin to change the mana status bar color using "SetStatusBarColor(r, g, b[, alpha]". This works for all frames except for the "Target of Target" -frame and "Focus Target" -frame.

Any "Know How" to get around this issue??


Example

Works:
/script TargetFrameManaBar:SetStatusBarColor(0.0, 0.66, 1);
-Script runs fine without any errors and Target mana status bar change color to light blue.-

Doesn't work:
/script TargetFrameToTManaBar:SetStatusBarColor(0.0, 0.66, 1);
-Script runs fine without any errors, but nothing happens with the Target of Target mana status bar.-

Last edited by Milcon : 11-20-22 at 12:24 PM.
  Reply With Quote
11-20-22, 02:05 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
It doesn't stick as the TargetFrame is going to revert it every time you change target or if your target's power type changes (ex: Druid shapeshift). The ToT frames do this check through their OnUpdate scripts, so you'll never see your change.

For a run-and-forget script, I'd advise adjusting the colors in the PowerBarColor table.
Code:
/run local c=PowerBarColor.MANA;c.r,c.g,c.b=0,0.66,1
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 11-20-22 at 02:07 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Mana status bar color change issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off