WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   desperately searching a background in the standard unitframes (https://www.wowinterface.com/forums/showthread.php?t=45372)

whoarrior 12-04-12 11:57 AM

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 12-04-12 12:08 PM

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()

whoarrior 12-04-12 05:40 PM

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

(:


All times are GMT -6. The time now is 06:23 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI