CocoStudio has been used for a while. Although there are still some bugs, we can see how practical and powerful its functions are. Today, we will add CocoStudio modules in our project.
PS: the current version of CocoStudio uses Cocos2D-X 2.1.2.
Step 1: copy the CocoStudio Module
If you have the CocoStudioTestCPP project, copy it directly from the project. If not, I have packed the module File. Address: http://down.51cto.com/data/760083
You can skip this step.
First, open the CocoStudioTestCPP folder.
We can see a folder for extensions. Extension classes in the Cocos2D-X, such as CCScrollView and CCEditBox, are all components that extend the functionality of 2D-X itself here. Of course, our CocoStudio is also an extension component, which will also be placed here.
Below we open the GUI folder in extensions.
We noticed that the CocoGUILIB folder in the red box does not exist in the original 2D-X folder. This is our CocoGUILIB module.
Step 2: Copy and add to project
We just found the CocoStudio module code, so now we will add it to our project.
After being added to the project, we can use the CocoStudio function! Then we will try to write the code in CocoStduioTestCPP. I will not introduce it more here.
Reference: CocoStudio Test decryption http://502317120.blog.51cto.com/4062300/1179512
Successful!
If you follow the steps, you can see the following results when debugging is enabled.
Now, we will introduce you here today.
Address: http://502317120.blog.51cto.com/4062300/1183253