Originally Posted by SDPhantom
That'll open the calendar every time you load in a new area too.
|
Good point! :-) Make it this then:
Lua Code:
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(_, _, isLogin, isReload)
if isLogin or isReload then ToggleCalendar() end
end)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
Originally Posted by SDPhantom
I'd suggest using PLAYER_LOGIN instead.
|
Also good, if you don't care about the reload.