Alright, so there are (I think) two problems currently:
- NOTE: It seems this problem was partially fixed (now the good & bad pages, as explained below, seem identical - both are like the “good” page). Still, quite a lot missing from both. Here’s my original text:
(little note: first, there is a guide / turorial page (only one)). Then, there are two creator docs pages.
One of them (the wrong / invalid / whatever one), called the 1.7 creator docs (in its text it says 1.8 but link says 1.7) is incomplete - a lot of missing functions (for example, they do not contain any child-related functions for the node class, like getChild
, removeChild
etc.).
Then, there is the second docs page (the good one), that is… still bad. It has way more than the bad one, but still misses on a lot (for example, cc.EventListener.TOUCH_ONE_BY_ONE
. The true ‘good’ page that contains everything is the cocos2d-js reference. Now, about links. Let’s talk about only the good / bad (as I named them, even tho both are bad) pages. The problem is that in some places you link the good one, in some places the bad one. Below are a lot of images with location of guide / good / bad links (basically only ‘bad’ matters).
Also, here are the good and bad docs links (and guide). As you can see, the pages seem identical, but if you check them, the “bad one” has a lot of missing functions compared to the “good one” (as I said before). Screenshots:
As you can see, the only bad link is in the API refs page (in the screenshots, there may be more links).
-
The second problem is autocompletion: the
creator.d.ts
has a lot of missing functions and so the autocompletion is missing a lot. Basically. it only contains what the “bad page” used to contain (since the bad page now is the same as the good page). For example, it doesn’t have cc.Node.getChild
or cc.EventListener.TOUCH_ONE_BY_ONE
.
And that is about it. Currently, I am using the cocos2d-js reference, since it’s the correct one. I still don’t know why Creator needed seperate docs pages when the api is the same. Anyways, here are the issues explained as good as I could. If you need more info, feel free to ask, since I am not the best at explaining.
Thanks a lot for looking into this issue!