WoWInterface (
-   Lua/XML Help (
-   -   Trouble opening the calender (

10leej 03-17-18 01:51 AM

Trouble opening the calender
Recently reinspired to work on my addons again :) sadly I haven't done much of anything with programming of any kind the last two years, but as far as I know this little code snippet should still work....

but instead it fires off this error

3x attempt to call a nil value
[C]: in function `securecall'
Click Menu\core.lua:176: in function `func'
FrameXML\UIDropDownMenu.lua:791: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

(*temporary) = <function> defined =[C]:-1
(*temporary) = nil

So I fire up my handy dandy link to the UI source code (thanks for maintaining that tekkub, at least I think it's up to date....), and maybe I forgot what I'm doing here, but it all looks no different to me >.>
So I double check out lovely calender eform some ctrl+f magic looking for "Calendar_Toggle" and it seems like I'm doing everything right.
Maybe I just forgot how to be smart?

p3lim 03-17-18 07:36 AM


Originally Posted by 10leej (Post 327275) least I think it's up to date....

It's not. Use this:

10leej 03-17-18 06:15 PM


Originally Posted by p3lim (Post 327277)

Well thats what I get for relying on old links and only referencing github projects. Thanks got it working now!

All times are GMT -6. The time now is 05:29 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI