Thread: Bag Lua Problem
View Single Post
07-04-10, 10:52 AM   #5
hairy_palms
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 25
ah i was making it harder than needed, didnt realise BAG_OPEN was deprecated, all i needed was

Code:
local function hideBG()
	ContainerFrame1MoneyFrame:Hide()
	for i = 1, NUM_CONTAINER_FRAMES do
		_G["ContainerFrame"..i.."CloseButton"]:Hide()
		_G["ContainerFrame"..i.."BackgroundTop"]:Hide()
		_G["ContainerFrame"..i.."BackgroundBottom"]:Hide()
		_G["ContainerFrame"..i.."BackgroundMiddle1"]:Hide()
	end
end
hooksecurefunc("ContainerFrame_OnShow", function() hideBG() end)
  Reply With Quote