View Single Post
03-14-10, 12:22 PM   #5
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Originally Posted by v6o View Post
Could you post the code for the CreateBG function so we know what it does and if it does it correctly.

Are you using the default Minimap or a custom one, if the latter, which one?
I'm using a custom UI with the core by Alza, so it's aMinimap. It has no border on its own, it just uses the CreateBG to make one.

CreateBG:

Code:
function CreateBG(parent)
	local bg = parent:CreateTexture(nil, "BACKGROUND")
	local offset = UIParent:GetScale() / parent:GetEffectiveScale()
	bg:SetAllPoints(parent)
	bg:SetTexture(0, 0, 0, 1)
	bg:SetPoint("BOTTOMRIGHT", offset, -offset)
	bg:SetPoint("TOPLEFT", -offset, offset)

	local bd = CreateFrame("Frame", nil, parent)

	return bg, bd
end
'bd' is there so I can change the texture or alpha of the borders. Don't ask, it just works.

I'm just wondering how to make it update instantly instead of on a reloadui.
  Reply With Quote