Thread Tools Display Modes
Prev Previous Post   Next Post Next
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?
  Reply With Quote
 

WoWInterface » Developer Discussions » Graphics Help » .tga is not transparent - .png is


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off