TargetFrame texture
This is for WoW 10.0x DF
I can't seem to figure out how to change the texture of the TargetFrame I can set the PlayerFrame just fine like this: Code:
PlayerFrameHealthBar:SetStatusBarTexture(423819) |
TargetFrame's health bar should be able to be accessed by TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBar.
|
i tried that exact line, i couldn't modify it.
even tried using Terciob's Frame Inspect addon to edit it on the fly. |
I just ran it on PTR and saw it apply.
Code:
/run TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBar:SetStatusBarTexture(423819) |
cheers, it is indeed changing, i did the same thing before, however i wasn't targeting anything and when the frame updated, the change refreshed back to default.
next step, figure out how to make it stick. |
Looks like it's getting updated by TargetFrameMixin:CheckClassification() through :SetAtlas() at lines 372 and 385.
|
do you know how to change the color of the texture in the playerframe and targetframe.
specifically this texture, its green. <BarTexture atlas="UI-HUD-UnitFrame-Player-PortraitOn-Bar-Health"/> Code:
function UFPlayerFrame(self) |
It's controlled through UnitFrameHealthBar_Update(), so I'd start there.
|
ended up having to look at the:
https://wowpedia.fandom.com/wiki/Pat....0/API_changes and sure enough a new line listed for exactly what i needed since everything else i tried didn't work. Code:
StatusBar:SetStatusBarDesaturated(1) |
All times are GMT -6. The time now is 01:45 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI