View Single Post
Old 07-16-10, 02:45 PM   #21
magges
An Aku'mai Servant
 
magges's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 36
Code:
function Skada:ToggleWindow()
	for i, win in ipairs(windows) do
		if win:IsShown() then
			win.db.hidden = true
			win:Hide()
		else
			win.db.hidden = false
			win:Show()
		end
	end
end
i dont get how to use that in my addon :/

if i try to say for i, win ... win:Show() it wont work.
The same with ...then win.db.hidden = false
Do i have to set a some variables for the addon skada or ..whatever?
magges is offline   Reply With Quote