First topic! Really excited about Cocos2dx. Want to create a modal box

Hello everyone, hang on to the rant!

I have been using Cocos2DX for about half a year now here and there on a side project.

I really like it and I am hoping that I can find like-minded passionate programmers here :smile:

I am right now trying to create my first modal box. After that I am hoping I can create an extension out of it so that anyone can use.

I found these two extensions PSModalLayer and JACModalLayer here:

Unfortunately they are old and incompatible with Cocos2DX v3. I am trying to get the PSModalLayer and refactoring it so it can work with v3, but Im getting stuck at some linker error for SEL_CallFunc type argument

Does anyone have any working extensions for modals? If not can someone help me understand what SEL_CallFunc is? Im assuming it’s a pointer to a callback function, but how can I make a function into a SEL_CallFunc in v3? Dont we use CC_CALLBACK_X for callbacks in v3?

Thanks to who reads the rant :stuck_out_tongue:

I’d share my modal extension, but it is also coded for v2.

SEL_CallFunc is a callback without any arguments.

SEL_CallFuncN is a callback with a CCNode.

SEL_CallFuncND is a callback with a CCNode and a void*

SEL_CallFuncO is a callback with a CCObject