View Single Post
Old 03-05-10, 12: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.
Cirdan is offline   Reply With Quote