Reply
Thread Tools Display Modes
Unread 12-04-12, 11:57 AM   #1
whoarrior
A Deviate Faerie Dragon
 
whoarrior's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 14
desperately searching a background in the standard unitframes

Hey guys,

i'm trying to find out what's the name of that semitransparent background from the standard unitframes.

http://img402.imageshack.us/img402/8...0412182422.jpg

I'm trying to replace that background through backgrounds directly behind the health- and manabar.
Actual problem here -> http://i.imgur.com/JNIGC.jpg

Any hints would be appreciated.

(:
whoarrior is offline   Reply With Quote
Unread 12-04-12, 12:08 PM   #2
whoarrior
A Deviate Faerie Dragon
 
whoarrior's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 14
Here's another picture and some lines of my code...

http://img819.imageshack.us/img819/8024/bgproblem.png

Code:
local function whoa_targetFrame()
    TargetFrame.nameBackground:Hide() -- that was the upper background
--  UNKNOWNBACKGROUNDFRAME:Hide()
    TargetFrame.deadText:ClearAllPoints()
    TargetFrame.deadText:SetPoint("CENTER", TargetFrameHealthBar, "CENTER", 0, 0)
    TargetFrameTextureFrameName:ClearAllPoints()
    TargetFrameTextureFrameName:SetPoint("BOTTOMRIGHT", TargetFrame, "TOP", 0, -20)
    TargetFrameHealthBar:ClearAllPoints()
    TargetFrameHealthBar:SetPoint("TOPLEFT", 5, -24)
    TargetFrameHealthBar:SetHeight(18)
    TargetFrameHealthBar.background = TargetFrameHealthBar:CreateTexture("TargetFrameHealthBarBackground", "BACKGROUND")
    TargetFrameHealthBar.background:SetTexture(0, 0, 0, 0.5)
    TargetFrameHealthBar.background:SetAllPoints()
    TargetFrameTextureFrameHealthBarText:ClearAllPoints()
    TargetFrameTextureFrameHealthBarText:SetPoint("CENTER", TargetFrameHealthBar, "CENTER", 0, 0)
    TargetFrameManaBar:ClearAllPoints()
    TargetFrameManaBar:SetPoint("TOPLEFT", 5, -45)
    TargetFrameManaBar:SetHeight(17)
    TargetFrameManaBar.background = TargetFrameManaBar:CreateTexture("TargetFrameManaBarBackground", "BACKGROUND")
    TargetFrameManaBar.background:SetTexture(0, 0, 0, 0.5)
    TargetFrameManaBar.background:SetAllPoints()
    TargetFrameTextureFrameManaBarText:ClearAllPoints()
    TargetFrameTextureFrameManaBarText:SetPoint("CENTER", TargetFrameManaBar, "CENTER", 0, 0)
    TargetFrame.threatNumericIndicator:SetPoint("BOTTOM", PlayerFrame, "TOP", 75, -22)
end
* new code for mop version

Just for the testing i hide the targetgraphic.
Code:
    TargetFrameTextureFrame:Hide()

Last edited by whoarrior : 12-04-12 at 12:10 PM.
whoarrior is offline   Reply With Quote
Unread 12-04-12, 05:40 PM   #3
whoarrior
A Deviate Faerie Dragon
 
whoarrior's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 14
Problem solved. After somebody told me how to extract the Blizzard Code by myself it was easy to find the frame (TargetFrameBackground).

http://www.wowpedia.org/Viewing_Bliz...interface_code

(:
whoarrior is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » desperately searching a background in the standard unitframes

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