Update link to additional widget handlers
m (→Arguments) |
(Update link to additional widget handlers) |
||
| Line 10: | Line 10: | ||
:("handler", func) | :("handler", func) | ||
:;handler : String - The handler to attach func to (OnShow, OnEvent, [[ | :;handler : String - The handler to attach func to (OnShow, OnEvent, [[Widget_handlers|et al]]) | ||
:;func : Function - The function to call. <tt>nil</tt> to remove the handler. <tt>func</tt> is called with arguments <tt>(frame, event, arg1, arg2, ...)</tt> | :;func : Function - The function to call. <tt>nil</tt> to remove the handler. <tt>func</tt> is called with arguments <tt>(frame, event, arg1, arg2, ...)</tt> | ||
| Line 16: | Line 16: | ||
for i = 1, 4 do | for i = 1, 4 do | ||
local frame = getglobal("PartyMemberFrame"..i) | local frame = getglobal("PartyMemberFrame"..i) | ||
frame:SetScript("OnShow", function() | frame:SetScript("OnShow", function(self) self:Hide() end) | ||
end | end | ||