View Single Post
08-28-09, 01:47 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Ah, you need to redefine CargoPanel_Frame in each function you want to access it in as they are local to the function unless you set it outside the function.

Code:
plugin.setSelected = function( selected )
	if selected ~= plugin.selected then
		plugin.selected = selected;
                          local CargoPanel_Frame = _G["CargoPanel_Frame"];
		if selected then
		CargoPanel_Frame:show()
		else
		CargoPanel_Frame:hide()
		end
	end
end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818