Originally Posted by Haleth
Sorry for thread hijack, but how can this code be applied to a single animation instead of a looping 'pulse'? I'm trying to add opening/closing animations to some addon frames, for example in the following code:
Code:
local function Stuffing_Open()
Stuffing.frame:Show()
end
local function Stuffing_Close()
Stuffing.frame:Hide()
end
I've tried a couple of things, but no luck.
|
maybe you are looking for
frame:SetScript('OnShow', doSomethingOnShow)
or frame:SetScript('OnHide', doSomethingOnHide)
?