Thread Tools Display Modes
03-31-10, 06:31 AM   #1
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Button:SetPushedTexture .. layer issue

Code:
		Icon:SetTexCoord(.08, .92, .08, .92)	
		Icon:SetDrawLayer("ARTWORK")
			
		Button:SetBackdrop(backdrop)
		Button:SetBackdropColor(unpack(avid_BACKDROP))
		Button:SetHeight(22)
		Button:SetWidth(22)
Button:SetPushedTexture(blankTex)
afaik I know.. using ARTWORK to 100% always make Icon is ontop of the backdrop. but this puts it on top of PushedTexture. any help id liek to keep icon on top of backdrop whilst being able to see PushedTexture?
  Reply With Quote
03-31-10, 07:17 AM   #2
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
I thought the Backdrop was always behind the parent no matter what Draw Layer/Strata but you might want to test with BACKGROUND or BORDER (lower than ARTWORK)

ARTWORK is the "top level for textures" as OVERLAY should be used for text, buttons and such so most likely this is where the PushedTexture resides at (ARTWORK that is)
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 03-31-10 at 07:20 AM.
  Reply With Quote
03-31-10, 08:24 AM   #3
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Originally Posted by alimjocox View Post
Code:
		Icon:SetTexCoord(.08, .92, .08, .92)	
		Icon:SetDrawLayer("ARTWORK")
			
		Button:SetBackdrop(backdrop)
		Button:SetBackdropColor(unpack(avid_BACKDROP))
		Button:SetHeight(22)
		Button:SetWidth(22)
Button:SetPushedTexture(blankTex)
afaik I know.. using ARTWORK to 100% always make Icon is ontop of the backdrop. but this puts it on top of PushedTexture. any help id liek to keep icon on top of backdrop whilst being able to see PushedTexture?
It seems that you want to remove the pushed texture, in that case use Button:SetPushedTexture().

If that wasn't the thing you tried to accomplish, you should create a new frame, and make the backdrop on that like this:
Code:
Icon:SetTexCoord(.08, .92, .08, .92)
Button:SetPushedTexture(blankTex)

local overlay = CreateFrame("Frame")	
overlay:SetBackdrop(backdrop)
overlay:SetBackdropColor(unpack(avid_BACKDROP))
overlay:SetSize(22,22)
overlay:SetFrameStrata(Button:GetFrameStrata())
overlay:SetFrameLevel(Button:GetFrameLevel()+1)
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Button:SetPushedTexture .. layer 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