Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-05-10, 01:15 PM   #1
Cirdan
A Murloc Raider
Join Date: Feb 2010
Posts: 5
Can't get custom texture to show

I'm trying to make a custom map border, but it will not show up at all in the game.

I believe I have transparency set up correctly in Photoshop

The code isn't that complex...

Code:
	local minimapFrame = CreateFrame('FRAME')
	local border = Minimap:CreateTexture(nil, 'OVERLAY')
	border:SetTexture('Interface\\AddOns\\rcHUD\\mapBorder')
	border:SetPoint('TOPLEFT', minimapFrame, 'TOPLEFT')
	border:SetPoint('BOTTOMRIGHT', minimapFrame, 'BOTTOMRIGHT')

	minimapFrame:SetParent(Minimap)
	minimapFrame:SetFrameLevel(1)
	minimapFrame:SetAllPoints(Minimap)
	minimapFrame:SetBackdrop({ 	
		bgFile = "Interface\\AddOns\\rcHUD\\mapBorder",
		insets = {left = -4, right = -4, top = -4, bottom = -4},
		}) 

	minimapFrame:SetBackdropColor(0,0,0)
I tired setting the border's point to UIParent, and no image is shown stretched across the screen.
  Reply With Quote
 

WoWInterface » Developer Discussions » Graphics Help » Can't get custom texture to show


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