I can see, at least at some stage, someone provided experimental support for doing this. I should be able to do something like ccexp.Webview:create(), but I’ve listed the keys of ccexp and Webview isn’t amongst them. Is there a flag to the cocos new command? Or do I need to rebuild cocos locally with an added option? Also I’m wondering how robust this experimental feature is. I need it to work under windows for development, and Android for deployment.
I may have found the answer. This code:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) && !defined(CC_TARGET_OS_TVOS) register_all_cocos2dx_experimental_video(L); register_all_cocos2dx_experimental_video_manual(L); register_all_cocos2dx_experimental_webview(L); register_all_cocos2dx_experimental_webview_manual(L); #endif
suggests that Webview is supported only for Android and iOS, and not for the simulator. Developing on the device is feasible but a pain. My help system is coded in html; is there some automated way I can turn html into something that cocos2d-x can display on all platforms?