View Single Post
Unread 10-05-08, 02:34 PM   #37
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,226
Originally Posted by Caellian View Post
Hmm this doesn't work at all

Code:
local function Hide(f)
   f:Hide()
   f:SetScript("OnShow", f.Hide)
end
local Show(f)
	f:Show() -- LINE 280
	f:SetScript("OnShow", nil)
end

Hide(self.Experience)
Code:
Interface\AddOns\oUF_Caellian\oUF_Caellian.lua:280: syntax error near 'f'
Count: 1
Code:
local function Hide(f)
   f:Hide()
   f:SetScript("OnShow", function() f.Hide end)
end
local Show(f)
	f:Show() -- LINE 280
	f:SetScript("OnShow", nil)
end

Hide(self.Experience)
p3lim is offline