View Single Post
01-16-13, 03:29 PM   #5
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
I used SetPoint() to cover my viewport with a texture, like this:

Code:
	local toppanel = CreateFrame("Frame", nil, UIParent)
Code:
 	toppanel:SetPoint("TOPLEFT", -2, 0)
	toppanel:SetPoint("TOPRIGHT", 2, 0)
	toppanel:SetHeight(15)
or consequently

Code:
 	toppanel:SetPoint("TOPLEFT", -2, 0)
	toppanel:SetPoint("TOPRIGHT", 2, -15)

Using a small offset for x just to make sure there's no clipping (aka a little visual gap). Not necessarily needed, I suppose.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote