Originally Posted by Sniffles
No something like this:
Code:
...
...
FrameName:SetScript("OnEvent", function(self, event, ...)
if (event == "PLAYER_REGEN_DISABLED") then
frame:Hide()
elseif (event == "PLAYER_REGEN_ENABLED") then
frame:Show()
end
end)
|
Hm, i use atm.
Code:
local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(_, event, ...)
if (event == 'PLAYER_LOGIN') then
frame:Hide()
end
end)