Quantcast
TargetFrame texture - WoWInterface
Thread Tools Display Modes
09-25-22, 03:18 AM   #1
sirpucna
A Fallenroot Satyr
Join Date: Nov 2016
Posts: 25
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)
Any snippets much appreciated.
  Reply With Quote
09-25-22, 06:03 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,179
TargetFrame's health bar should be able to be accessed by TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBar.
__________________
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)
  Reply With Quote
09-25-22, 06:34 AM   #3
sirpucna
A Fallenroot Satyr
Join Date: Nov 2016
Posts: 25
i tried that exact line, i couldn't modify it.
even tried using Terciob's Frame Inspect addon to edit it on the fly.
  Reply With Quote
09-26-22, 07:05 AM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,179
I just ran it on PTR and saw it apply.
Code:
/run TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBar:SetStatusBarTexture(423819)
__________________
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)
  Reply With Quote
09-26-22, 07:56 AM   #5
sirpucna
A Fallenroot Satyr
Join Date: Nov 2016
Posts: 25
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.
  Reply With Quote
09-26-22, 02:37 PM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,179
Looks like it's getting updated by TargetFrameMixin:CheckClassification() through :SetAtlas() at lines 372 and 385.
__________________
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)
  Reply With Quote
10-01-22, 01:24 AM   #7
sirpucna
A Fallenroot Satyr
Join Date: Nov 2016
Posts: 25
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)
	self.healthbar:SetStatusBarColor(.23,.2,.93)
end
hooksecurefunc("PlayerFrame_ToPlayerArt", UFPlayerFrame)
still has a tint of green,

Last edited by sirpucna : 10-01-22 at 07:58 AM.
  Reply With Quote
10-02-22, 02:15 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,179
It's controlled through UnitFrameHealthBar_Update(), so I'd start there.
__________________
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)
  Reply With Quote
10-07-22, 04:25 AM   #9
sirpucna
A Fallenroot Satyr
Join Date: Nov 2016
Posts: 25
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)
turns the green into grey, after which you then color it anyway you like.
  Reply With Quote

WoWInterface » PTR » PTR General Discussion » TargetFrame texture

Thread Tools
Display Modes

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