├── .gitignore ├── ABOUTME.md ├── Clone.md ├── CocosCreatorInspector ├── .babelrc ├── .editorconfig ├── .gitignore ├── README.md ├── Update.md ├── bin │ └── dist.pem ├── gulpfile.js ├── package-lock.json ├── package.json ├── src │ ├── assets │ │ └── images │ │ │ ├── github.png │ │ │ ├── icon48.png │ │ │ ├── money.jpg │ │ │ ├── qq.png │ │ │ └── tiezi.png │ ├── dev │ │ ├── backgroundScripts.js │ │ ├── contentScripts.js │ │ ├── dev.html │ │ ├── dev.js │ │ ├── devInspector │ │ │ ├── App.vue │ │ │ ├── ccType │ │ │ │ ├── ComponentsProperty.vue │ │ │ │ ├── NodeBaseProperty.vue │ │ │ │ └── SceneProperty.vue │ │ │ ├── devInspector.html │ │ │ ├── main.js │ │ │ └── ui │ │ │ │ ├── colorPicker.vue │ │ │ │ └── ui-prop.vue │ │ ├── injectScript.js │ │ └── util.js │ ├── index │ │ ├── App.vue │ │ ├── index.html │ │ └── main.js │ ├── manifest.json │ └── popup │ │ ├── App.vue │ │ ├── main.js │ │ └── popup.html ├── version │ └── cc-inspector-v1.2.crx ├── webpack.config.js ├── 如何运行项目.md └── 数据结构设计思路.md ├── LICENSE ├── README.md ├── assets ├── MainScene.fire ├── MainScene.fire.meta ├── MainScene.js ├── MainScene.js.meta ├── migration.meta ├── migration │ ├── use_reversed_rotateBy.js │ ├── use_reversed_rotateBy.js.meta │ ├── use_v2.1-2.2.1_cc.Toggle_event.js │ └── use_v2.1-2.2.1_cc.Toggle_event.js.meta ├── resources.meta ├── resources │ ├── bitMap.meta │ ├── bitMap │ │ ├── testBMFont.fnt │ │ ├── testBMFont.fnt.meta │ │ ├── testBMFont.png │ │ └── testBMFont.png.meta │ ├── cfg.meta │ ├── cfg │ │ ├── channelInfo.json │ │ ├── channelInfo.json.meta │ │ ├── versionInfo.json │ │ └── versionInfo.json.meta │ ├── font.meta │ ├── font │ │ ├── fzcyt.ttf │ │ └── fzcyt.ttf.meta │ ├── prefab.meta │ ├── prefab │ │ ├── CommonPrefab.js │ │ ├── CommonPrefab.js.meta │ │ ├── CommonPrefab.prefab │ │ ├── CommonPrefab.prefab.meta │ │ ├── dialog.meta │ │ ├── dialog │ │ │ ├── DialogLayer.js │ │ │ ├── DialogLayer.js.meta │ │ │ ├── DialogLayer.prefab │ │ │ └── DialogLayer.prefab.meta │ │ ├── uiMask.meta │ │ └── uiMask │ │ │ ├── ComUIBg.js │ │ │ ├── ComUIBg.js.meta │ │ │ ├── ComUIBg.prefab │ │ │ └── ComUIBg.prefab.meta │ ├── test.meta │ └── test │ │ ├── HelloWorld.png │ │ ├── HelloWorld.png.meta │ │ ├── hello.png │ │ ├── hello.png.meta │ │ ├── icon.png │ │ ├── icon.png.meta │ │ ├── singleColor.png │ │ └── singleColor.png.meta ├── subpack.meta └── subpack │ ├── core.meta │ ├── core │ ├── GameMsg.js │ ├── GameMsg.js.meta │ ├── Module.js │ ├── Module.js.meta │ ├── Observer.js │ ├── Observer.js.meta │ ├── ObserverMgr.js │ ├── ObserverMgr.js.meta │ ├── msg.meta │ ├── msg │ │ ├── GameLocalStorage.js │ │ ├── GameLocalStorage.js.meta │ │ ├── GameMsgGlobal.js │ │ └── GameMsgGlobal.js.meta │ ├── native.meta │ ├── native │ │ ├── Native.js │ │ └── Native.js.meta │ ├── ui.meta │ ├── ui │ │ ├── DialogMgr.js │ │ ├── DialogMgr.js.meta │ │ ├── UIMgr.js │ │ └── UIMgr.js.meta │ ├── util.meta │ └── util │ │ ├── Util.js │ │ └── Util.js.meta │ ├── module.meta │ ├── module │ ├── 4399 │ │ ├── 4399.fire │ │ ├── 4399.fire.meta │ │ ├── 4399.js │ │ └── 4399.js.meta │ ├── 4399.meta │ ├── Inspector.meta │ ├── Inspector │ │ ├── InspectorScript.js │ │ └── InspectorScript.js.meta │ ├── bezier.meta │ ├── bezier │ │ ├── BezierScene.fire │ │ ├── BezierScene.fire.meta │ │ ├── BezierScene.js │ │ ├── BezierScene.js.meta │ │ ├── CustomAni.js │ │ ├── CustomAni.js.meta │ │ ├── CustomBezier.js │ │ └── CustomBezier.js.meta │ ├── bitMap.meta │ ├── bitMap │ │ ├── BMFontScene.fire │ │ └── BMFontScene.fire.meta │ ├── bugly.meta │ ├── bugly │ │ ├── BuglyTest.fire │ │ ├── BuglyTest.fire.meta │ │ ├── BuglyTest.js │ │ └── BuglyTest.js.meta │ ├── customUI.meta │ ├── customUI │ │ ├── CustomUI.fire │ │ ├── CustomUI.fire.meta │ │ ├── MyTestUI.js │ │ └── MyTestUI.js.meta │ ├── encryption.meta │ ├── encryption │ │ ├── ImageEncryption.fire │ │ ├── ImageEncryption.fire.meta │ │ ├── ImageEncryption.js │ │ └── ImageEncryption.js.meta │ ├── hello.meta │ ├── hello │ │ ├── Hello.js │ │ ├── Hello.js.meta │ │ ├── Hello.prefab │ │ └── Hello.prefab.meta │ ├── hotUpDate.meta │ ├── index.meta │ ├── index │ │ ├── IndexScene.fire │ │ ├── IndexScene.fire.meta │ │ ├── IndexScene.js │ │ └── IndexScene.js.meta │ ├── main.meta │ ├── main │ │ ├── MainPrefab.js │ │ ├── MainPrefab.js.meta │ │ ├── MainPrefab.prefab │ │ └── MainPrefab.prefab.meta │ ├── mp3Compress.meta │ ├── mp3Compress │ │ ├── testcase.mp3 │ │ └── testcase.mp3.meta │ └── test │ │ ├── HelloWorld.js │ │ ├── HelloWorld.js.meta │ │ ├── TestScene.fire │ │ ├── TestScene.fire.meta │ │ ├── TestScene.js │ │ └── TestScene.js.meta │ ├── res.meta │ ├── res │ ├── bg.meta │ ├── bg │ │ ├── bg.jpg │ │ └── bg.jpg.meta │ ├── common.meta │ ├── common │ │ ├── AutoAtlas.pac │ │ ├── AutoAtlas.pac.meta │ │ ├── btn1Normal.png │ │ ├── btn1Normal.png.meta │ │ ├── btn1Pressed.png │ │ ├── btn1Pressed.png.meta │ │ ├── btn2Normal.png │ │ ├── btn2Normal.png.meta │ │ ├── btn2Pressed.png │ │ ├── btn2Pressed.png.meta │ │ ├── btnCloseNormal.png │ │ ├── btnCloseNormal.png.meta │ │ ├── btnClosePressed.png │ │ ├── btnClosePressed.png.meta │ │ ├── frame8.png │ │ ├── frame8.png.meta │ │ ├── frame9.png │ │ ├── frame9.png.meta │ │ ├── test11.png │ │ ├── test11.png.meta │ │ ├── tipsBg.png │ │ └── tipsBg.png.meta │ └── test │ │ ├── AutoAtlas.pac │ │ ├── AutoAtlas.pac.meta │ │ ├── btn_blue.png │ │ ├── btn_blue.png.meta │ │ ├── btn_green.png │ │ ├── btn_green.png.meta │ │ ├── btn_yellow.png │ │ └── btn_yellow.png.meta │ ├── testCase.meta │ └── testCase │ ├── TestCaseModule.js │ ├── TestCaseModule.js.meta │ ├── TestCaseScene.fire │ ├── TestCaseScene.fire.meta │ ├── TestCaseScene.js │ ├── TestCaseScene.js.meta │ ├── TestPrefab.js │ ├── TestPrefab.js.meta │ ├── TestPrefab.prefab │ └── TestPrefab.prefab.meta ├── auto ├── README.md ├── build-config │ └── build-ios.json ├── core │ └── util.js ├── deal-builded.js ├── gulpfile-builder.js ├── gulpfile.js ├── package-lock.json ├── package.json ├── packagePluginUtil.js ├── proto │ └── test.proto ├── res │ ├── assets.png │ └── package.png └── test-package.json ├── build-templates └── web-mobile │ └── splash.png ├── creator.d.ts ├── doc ├── 4399原创平台SDK │ ├── h5api.js │ ├── icon.png │ ├── scene.png │ └── 参数.png ├── 7niu │ ├── 1ace0297.png │ ├── 22688144.png │ ├── 422bc03b.png │ ├── 566c44c0.png │ ├── b6b70c10.png │ └── f13ec681.png ├── CreatorInspector │ ├── icon.png │ ├── install │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 5.png │ │ ├── 6.png │ │ └── README.md │ ├── package │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ └── 5.gif │ ├── scene1.png │ ├── scene2.png │ ├── scene3.png │ ├── scenePreview.png │ └── showHideNode.gif ├── GlobalMsg.js ├── bitmap-font │ ├── README.md │ ├── bug1.png │ ├── gen1.gif │ ├── gen2.gif │ ├── install-example.png │ └── scene2.png ├── bugly │ ├── icon.png │ └── scene.png ├── canvasToImage.js ├── cc-inspector-v2 │ ├── 0f4cc827.png │ ├── 111.png │ ├── 1e964faf.png │ ├── 2b42a3f2.png │ ├── bd67c8f1.png │ ├── icon.png │ ├── index.md │ ├── issue.md │ ├── scene1.png │ ├── timg.gif │ ├── timg.jpg │ ├── use.gif │ └── 提交资料 │ │ ├── icon.png │ │ ├── inspector+.psd │ │ ├── scene1.png │ │ └── scene2.png ├── cocos2dx 如何切换横竖屏幕.pdf ├── excel-killer │ ├── 1 │ │ ├── Fruit.xlsx │ │ ├── Test.xlsx │ │ └── ada.xlsx │ ├── icon.png │ ├── icon.psd │ ├── scene.png │ ├── scene.psd │ ├── scene_happy.png │ └── test.xlsx ├── installPlugin.md ├── plist盗图工具 │ └── haha.jpg ├── res-Compress │ ├── code │ │ ├── ReadMe.md │ │ ├── toMp3Andcompress.js │ │ └── toMp3Andcompress2.js │ ├── mac.png │ ├── pngquant版本 │ │ ├── README.md │ │ ├── pngquant-2.7.1.tar.gz │ │ ├── pngquant-mac.tar.bz2 │ │ ├── pngquant-mac │ │ │ ├── COPYRIGHT │ │ │ ├── README.md │ │ │ ├── pngquant │ │ │ └── pngquant-openmp │ │ ├── pngquant-windows.zip │ │ └── pngquant-windows │ │ │ ├── COPYRIGHT │ │ │ ├── Drag PNG here to reduce palette automatically.bat │ │ │ ├── Drag PNG here to reduce palette to 256.bat │ │ │ ├── README.txt │ │ │ └── pngquant.exe │ ├── test-compress.jpg │ ├── test-compress.png │ ├── test.jpg │ ├── test.png │ ├── testcase-compress.mp3 │ ├── testcase.mp3 │ ├── testcase.wav │ ├── 提交内容 │ │ ├── icon.png │ │ └── scene1.jpg │ └── 插件使用.gif ├── ttf │ ├── README.md │ ├── SuggestString.txt │ ├── example1.png │ ├── index.png │ └── num.txt ├── 图标替换 │ └── icon512.png └── 热更新 │ ├── desc │ ├── issue1.png │ ├── issue2.png │ ├── issue3.png │ └── 热更新工作原理.png │ ├── hot1.png │ ├── hot21.png │ ├── hot22.png │ ├── hot31.png │ └── icon.png ├── jsconfig.json ├── package-lock.json ├── package.json ├── packages ├── amazing-ui │ ├── main.js │ ├── package.json │ └── panel │ │ ├── index.css │ │ ├── index.html │ │ └── index.js ├── bezier │ ├── README.md │ ├── inspector.js │ ├── main.js │ ├── package.json │ └── panel │ │ └── index.js ├── creator-chat-room │ ├── README.md │ ├── main.js │ ├── package-lock.json │ ├── package.json │ ├── panel │ │ ├── index.css │ │ ├── index.html │ │ └── index.js │ ├── test.css │ ├── test.html │ └── timg.jpg ├── excel-killer │ ├── README.md │ ├── core │ │ ├── CfgUtil.js │ │ └── excel.js │ ├── main.js │ ├── package-lock.json │ ├── package.json │ └── panel │ │ ├── index.css │ │ ├── index.html │ │ ├── index.js │ │ └── item │ │ ├── excelItem.html │ │ └── excelItem.js ├── foobar │ ├── inspector.css │ ├── inspector.html │ ├── inspector.js │ ├── main.js │ ├── package.json │ └── panel │ │ └── index.js ├── plugin-4399-web-js-sdk │ ├── README.md │ ├── core │ │ └── CfgUtil.js │ ├── i18n │ │ ├── en.js │ │ └── zh.js │ ├── main.js │ ├── package.json │ └── panel │ │ ├── index.css │ │ ├── index.html │ │ └── index.js ├── plugin-bugly │ ├── README.md │ ├── bugly │ │ └── 1.4.3 │ │ │ ├── bugly │ │ │ ├── Android.mk │ │ │ ├── CrashReport.h │ │ │ ├── CrashReport.mm │ │ │ ├── js │ │ │ │ ├── Android.mk │ │ │ │ ├── BuglyJSAgent.cpp │ │ │ │ └── BuglyJSAgent.h │ │ │ └── lua │ │ │ │ ├── Android.mk │ │ │ │ ├── BuglyLuaAgent.cpp │ │ │ │ └── BuglyLuaAgent.h │ │ │ ├── libs │ │ │ ├── bugly_agent.jar │ │ │ └── bugly_crash_release.jar │ │ │ └── prebuilt │ │ │ ├── arm64-v8a │ │ │ └── libBugly.so │ │ │ ├── armeabi-v7a │ │ │ └── libBugly.so │ │ │ ├── armeabi │ │ │ └── libBugly.so │ │ │ ├── x86 │ │ │ └── libBugly.so │ │ │ └── x86_64 │ │ │ └── libBugly.so │ ├── buglySymbolAndroid │ │ ├── buglySymbolAndroid.bat │ │ ├── buglySymbolAndroid.jar │ │ ├── buglySymbolAndroid.sh │ │ ├── settings.txt │ │ └── 符号表工具Android版-使用指南.pdf │ ├── core │ │ └── CfgUtil.js │ ├── i18n │ │ ├── en.js │ │ └── zh.js │ ├── main.js │ ├── package.json │ └── panel │ │ ├── index.css │ │ ├── index.html │ │ └── index.js ├── psd-convert-to-node │ ├── BaumElements.js │ ├── BaumPrefabCreator.js │ ├── OnionRing.js │ ├── README-zh.md │ ├── README.md │ ├── convert.js │ ├── main.js │ ├── package-lock.json │ ├── package.json │ ├── panel │ │ ├── index.css │ │ ├── index.html │ │ └── index.js │ └── res │ │ └── Baum.js ├── qiniu │ ├── README.md │ ├── main.js │ ├── package-lock.json │ ├── package.json │ └── panel-7niu │ │ ├── file-item.html │ │ ├── file-item.js │ │ ├── index.css │ │ ├── index.html │ │ ├── index.js │ │ └── testCode.js ├── replace-icons │ ├── README.md │ ├── docs │ │ └── panel.png │ ├── i18n │ │ ├── en.js │ │ └── zh.js │ ├── main.js │ ├── package.json │ └── panel │ │ └── panel.js ├── res-compress │ ├── README.md │ ├── i18n │ │ ├── en.js │ │ └── zh.js │ ├── main.js │ ├── package.json │ ├── panel │ │ ├── index.css │ │ ├── index.html │ │ ├── index.js │ │ ├── item │ │ │ ├── image-item.html │ │ │ ├── image-item.js │ │ │ ├── mp3item.html │ │ │ └── mp3item.js │ │ └── msg.js │ └── tools │ │ ├── jpegtran │ │ ├── jpegtran │ │ └── win │ │ │ ├── x64 │ │ │ ├── jpegtran.exe │ │ │ └── libjpeg-62.dll │ │ │ └── x86 │ │ │ ├── jpegtran.exe │ │ │ └── libjpeg-62.dll │ │ ├── lame │ │ ├── lame │ │ ├── lame.exe │ │ └── lame_enc.dll │ │ ├── pngquant │ │ ├── pngquant │ │ └── pngquant.exe │ │ └── tools.js ├── resize-image │ ├── main.js │ ├── package.json │ └── panel │ │ ├── index.css │ │ ├── index.html │ │ ├── index.js │ │ └── item │ │ ├── item.html │ │ └── item.js ├── resource-looker │ ├── README.md │ ├── main.js │ ├── package.json │ └── panel │ │ ├── index.css │ │ ├── index.html │ │ ├── index.js │ │ ├── result-item.html │ │ └── result-item.js ├── resource │ ├── README.MD │ ├── main.js │ ├── package.json │ └── panel │ │ ├── less.css │ │ ├── panel.html │ │ ├── panel.js │ │ ├── scene.js │ │ └── style │ │ └── index.less ├── ts-demo │ ├── .npmrc │ ├── package.json │ ├── src │ │ ├── main.ts │ │ └── panel │ │ │ ├── index.less │ │ │ ├── index.ts │ │ │ └── index.vue │ ├── tsconfig.json │ └── webpack.config.js └── unpack-textureatlas │ ├── .eslintrc.json │ ├── LICENSE │ ├── README.md │ ├── main.js │ ├── package-lock.json │ ├── package.json │ └── panel │ ├── index.css │ ├── index.html │ ├── index.js │ └── item │ ├── item.css │ ├── item.html │ └── item.js ├── project.json ├── server ├── index.js ├── package-lock.json ├── package.json └── proto │ └── proto.js ├── settings └── builder.panel.json ├── shell └── buld.sh ├── template-banner.png └── template.json /ABOUTME.md: -------------------------------------------------------------------------------- 1 | # 关于作者 2 | 一名很普通的游戏开发者,技术集中在cocos游戏客户端开发,同时有一段egret游戏开发经验,从作者自身的引擎使用体验上来说,cocos creator至少目前是碾压egret的。 3 | 4 | 目前作者的工作内容还是和cocos creator有关,并在cocos creator的开发使用过程中积累了一些不错的资源,特分享一下 5 | - cocos creator插件 6 | - 开源在github上: [点击查看仓库](https://github.com/tidys/CocosCreatorPlugins) 7 | - egret开源项目 8 | - 一个简单的消除游戏: [点击查看仓库](https://github.com/tidys/egretCleanGame) 9 | - 一个另类的消除游戏: [点击查看仓库](https://github.com/tidys/egretRingsGame) 10 | 以上2个开源项目为作者在egret开发使用过程中的一个分享,项目是个人在工作业务时间开发的。 11 | ## 联系我 12 | 目前作者维护了一个[CocosCreator插件开发交流群](https://jq.qq.com/?_wv=1027&k=5JEh8VR),里面可以随时联系到群主,有任何问题都可以随时@群主,一般看到都能及时回复。 13 | -------------------------------------------------------------------------------- /Clone.md: -------------------------------------------------------------------------------- 1 | # 克隆说明 2 | ``` 3 | git clone https://github.com/tidys/CocosCreatorPlugins.git --depth 1 4 | 5 | ``` 6 | 因为项目加入了nodemodules目录,所以,在某些平台克隆的时候会出现问题,后期将取消nodemodules目录的加入 7 | 8 | 另外还有一种取巧的办法,巧妙的躲避Github克隆慢的方法,详细见[博文](https://www.jianshu.com/p/d437a5674625) 9 | -------------------------------------------------------------------------------- /CocosCreatorInspector/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-3" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /CocosCreatorInspector/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /CocosCreatorInspector/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log 4 | yarn-error.log 5 | 6 | # Editor directories and files 7 | .idea 8 | *.suo 9 | /dist 10 | *.ntvs* 11 | *.njsproj 12 | *.sln 13 | -------------------------------------------------------------------------------- /CocosCreatorInspector/Update.md: -------------------------------------------------------------------------------- 1 | # 版本更新说明 2 | ## v1.2 3 | ### 新功能 4 | - popup页面增加**支持作者**功能,还望各位打赏一下喽! 5 | ![](../doc/CreatorInspector/package/4.png) 6 | - 优化了很多交互,详细见下图 7 | ![](../doc/CreatorInspector/package/5.gif) 8 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/assets/images/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/CocosCreatorInspector/src/assets/images/github.png -------------------------------------------------------------------------------- /CocosCreatorInspector/src/assets/images/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/CocosCreatorInspector/src/assets/images/icon48.png -------------------------------------------------------------------------------- /CocosCreatorInspector/src/assets/images/money.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/CocosCreatorInspector/src/assets/images/money.jpg -------------------------------------------------------------------------------- /CocosCreatorInspector/src/assets/images/qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/CocosCreatorInspector/src/assets/images/qq.png -------------------------------------------------------------------------------- /CocosCreatorInspector/src/assets/images/tiezi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/CocosCreatorInspector/src/assets/images/tiezi.png -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/backgroundScripts.js: -------------------------------------------------------------------------------- 1 | chrome.extension.onConnect.addListener(function (port) { 2 | console.log("backgroundScripts connect!"); 3 | let extensionListener = function (message, sender, sendResponse) { 4 | if (message.tabId && message.content) { 5 | if (message.action === 'code') { 6 | console.log("执行code"); 7 | chrome.tabs.executeScript(message.tabId, {code: message.content}); 8 | } else if (message.action === 'script') { 9 | console.log("执行script"); 10 | chrome.tabs.executeScript(message.tabId, {file: message.content}); 11 | } else { 12 | console.log("执行other"); 13 | chrome.tabs.sendMessage(message.tabId, message, sendResponse); 14 | } 15 | 16 | } else { 17 | port.postMessage(message); 18 | } 19 | sendResponse(message); 20 | }; 21 | chrome.extension.onMessage.addListener(extensionListener); 22 | port.onDisconnect.addListener(function (port) { 23 | chrome.extension.onMessage.removeListener(extensionListener); 24 | }); 25 | }); 26 | 27 | chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) { 28 | return true; 29 | }); 30 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/contentScripts.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('message', function (event) { 2 | let data = event.data; 3 | // console.log("[contentScripts] " + JSON.stringify(data)); 4 | chrome.extension.sendMessage(data); 5 | }, false); 6 | 7 | 8 | let gameCanvas = document.querySelector("#GameCanvas"); 9 | if (gameCanvas) { 10 | // console.log('find GameCanvas element'); 11 | // gameCanvas.addEventListener('click', function () { 12 | // console.log("click canvas"); 13 | // }); 14 | // gameCanvas.style.display = 'none'; 15 | } else { 16 | // console.log("can't find GameCanvas element"); 17 | chrome.extension.sendMessage({type: 0, msg: "no creator game!"}); 18 | } 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/dev.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Dev 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/devInspector/ccType/ComponentsProperty.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 36 | 37 | 42 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/devInspector/ccType/SceneProperty.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 15 | 16 | 19 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/devInspector/devInspector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | 7 | 8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/devInspector/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import ElementUI from 'element-ui' 3 | import 'element-ui/lib/theme-chalk/index.css' 4 | import App from './App.vue'; 5 | 6 | import ui_prop from './ui/ui-prop.vue' 7 | import NodeBaseProperty from './ccType/NodeBaseProperty.vue' 8 | import SceneProperty from './ccType/SceneProperty.vue' 9 | import ComponentsProperty from './ccType/ComponentsProperty' 10 | import ColorPicker from './ui/colorPicker' 11 | 12 | 13 | Vue.component('ui-prop', ui_prop); 14 | Vue.component('NodeBaseProperty', NodeBaseProperty); 15 | Vue.component('SceneProperty', SceneProperty); 16 | Vue.component('ComponentsProperty', ComponentsProperty); 17 | Vue.component('ColorPicker', ColorPicker); 18 | 19 | Vue.use(ElementUI); 20 | new Vue({ 21 | el: '#app', 22 | render: h => h(App) 23 | }); 24 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/dev/util.js: -------------------------------------------------------------------------------- 1 | let index = 0; 2 | setInterval(function () { 3 | let msg = "util: " + index++; 4 | // chrome.extension.sendMessage(msg; 5 | if (typeof aa !== undefined) { 6 | msg = aa; 7 | } 8 | window.postMessage({type: 1, msg: msg}, '*'); 9 | }.bind(this), 2000); 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/index/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 17 | 18 | 19 | 22 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/index/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vue 6 | 7 | 8 |
9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/index/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import App from './App.vue'; 3 | 4 | new Vue({ 5 | el: '#app', 6 | render: h => h(App) 7 | }); 8 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/manifest.json: -------------------------------------------------------------------------------- 1 | // 开发参考:http://open.chrome.360.cn/extension_dev/overview.html 2 | // 字段说明参考:http://open.chrome.360.cn/extension_dev/manifest.html 3 | { 4 | "name": "Cocos Creator Inspector", 5 | "version": "1.0.1", 6 | "description": "Cocos Creator Inspector", 7 | "browser_action": { 8 | "default_title": "Cocos Creator Inspector", 9 | "default_icon": "static/images/icon48.png", 10 | "default_popup": "popup.html" 11 | }, 12 | "icons": { 13 | "48": "static/images/icon48.png" 14 | }, 15 | "devtools_page": "dev.html", 16 | "content_scripts": [ 17 | { 18 | "matches": [ 19 | "" 20 | ], 21 | "js": [ 22 | "contentScripts.main.js" 23 | ], 24 | "run_at": "document_end" 25 | } 26 | ], 27 | "background": { 28 | "scripts": [ 29 | "backgroundScripts.main.js" 30 | ] 31 | }, 32 | "options_page": "index.html", 33 | "manifest_version": 2, 34 | "permissions": [ 35 | "tabs", 36 | "http://*/*", 37 | "https://*/*", 38 | "*://*/*", 39 | "system.cpu", 40 | "tabs", 41 | "storage", 42 | "nativeMessaging" 43 | ], 44 | "web_accessible_resources": [ 45 | "*/*", 46 | "*" 47 | ], 48 | "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'" 49 | } 50 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/popup/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import ElementUI from 'element-ui' 3 | import 'element-ui/lib/theme-chalk/index.css' 4 | import App from './App.vue'; 5 | Vue.use(ElementUI); 6 | 7 | new Vue({ 8 | el: '#app', 9 | render: h => h(App) 10 | }); 11 | -------------------------------------------------------------------------------- /CocosCreatorInspector/src/popup/popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vue 6 | 7 | 8 |
9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /CocosCreatorInspector/version/cc-inspector-v1.2.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/CocosCreatorInspector/version/cc-inspector-v1.2.crx -------------------------------------------------------------------------------- /CocosCreatorInspector/如何运行项目.md: -------------------------------------------------------------------------------- 1 | # 如何运行项目 2 | ## 使用前 3 | 在使用之前,需要在项目目录CocosCreatorInspector下执行命令 4 | ``` 5 | npm install 6 | ``` 7 | 初始化项目所需的依赖包 8 | # 编译 9 | 在项目目录运行编译命令 10 | ``` 11 | npm run build 12 | ``` 13 | 会生成dist目录,目录下即打包所需要的所有文件 14 | 15 | 16 | 17 | # 如何打包插件 18 | ## 命令行方式 19 | - 为了能够在计算机上让gulp直行任务,所以我们需要全局安装gulp。在终端执行: 20 | ```$xslt 21 | cnpm install gulp -g 22 | ``` 23 | - 安装完成后,我们可以同样通过命令查看是否安装成功: 24 | ```$xslt 25 | gulp -v 26 | ``` 27 | - 运行打包任务 28 | ```$xslt 29 | gulp packageCrx 30 | ``` 31 | ## 在webstorm中运行gulp任务 32 | - 在gulpfile.js文件上右击选择**Show Gulp Tasks** 33 | ![](../doc/CreatorInspector/package/1.png) 34 | - 如果webstorm没有检测到任务列表,需要设置下安装包,点击**设置**, 35 | 打开**Gulp Settings...** 36 | ![](../doc/CreatorInspector/package/2.png) 37 | - 设置gulp模块的物理地址,注意图中红框设置的地址 38 | ![](../doc/CreatorInspector/package/3.png) 39 | - 在webstorm中的gulp视图刷新任务列表 40 | - 双击**packageCrx**,执行打包插件任务 41 | -------------------------------------------------------------------------------- /CocosCreatorInspector/数据结构设计思路.md: -------------------------------------------------------------------------------- 1 | ## 注入脚本收集的数据结构 2 | 节点树数据结构 3 | ```json 4 | { 5 | "scene": { 6 | "type":"1",// 类型 7 | "uuid": "scene-uuid", 8 | "name": "scene-name", 9 | "children": [ 10 | { 11 | "uuid": "node-uuid", 12 | "name": "node-name", 13 | "type": "cc_Node", 14 | "x": 960.48, 15 | "y": 540, 16 | "zIndex": 0, 17 | "width": 1920.96, 18 | "height": 1080, 19 | "active": true, 20 | "color": "#ffffff", 21 | "opacity": 255, 22 | "rotation": 0, 23 | "rotationX": 0, 24 | "rotationY": 0, 25 | "anchorX": 0.5, 26 | "anchorY": 0.5, 27 | "scaleX": 1, 28 | "scaleY": 1, 29 | "skewX": 0, 30 | "skewY": 0, 31 | "childrenCount": 5, 32 | "children": [] 33 | }, 34 | { 35 | "uuid":"..." 36 | } 37 | ] 38 | } 39 | } 40 | ``` 41 | 缓存游戏真实的内存结构,window.inspectorGameMemoryStorage 42 | ```json 43 | { 44 | "node-uuid":"node-memory" 45 | } 46 | ``` 47 | 在遍历节点树的同时,会存储游戏实际的内存数据到inspectorGameMemoryStorage 48 | 49 | ## 获取某个节点信息 50 | ``` 51 | window.getNodeInfo 52 | ``` 53 | 54 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 xu_yanfeng 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 项目简介 2 | 目前包含的免费插件有: 3 | [热更新插件](packages/hot-update-tools/README.md) 4 | [Bugly插件](packages/plugin-bugly/README.md) 5 | [4399原创平台SDK插件](packages/plugin-4399-web-js-sdk/README.md) 6 | [Cocos-Creator-Inspector](CocosCreatorInspector/README.md) 7 | [Excel-Killer工具](packages/excel-killer/README.md) 8 | [贝塞尔编辑工具<有待开发>](packages/bezier/README.md) 9 | [资源压缩工具](packages/res-compress/README.md) 10 | [cc-inspector+](doc/cc-inspector-v2/index.md) 11 | ## 克隆慢? 12 | [解决办法](Clone.md) 13 | 14 | ## 2款收费插件,有需求的支持下呗 15 | - 字体瘦身 16 | - 购买链接: http://store.cocos.com/stuff/show/178910.html 17 | - 帮助文档: [点击查看](doc/ttf/README.md) 18 | - BMFont位图字体生成工具 19 | - 购买链接: http://store.cocos.com/#/resources/detail/1975 20 | - 帮助文档: [点击查看](doc/bitmap-font/README.md) 21 | 22 | # 插件常见问题 23 | ## 如何安装从其他地方获取的插件 24 | - 首先你需要确认插件源码是否包含以下最基本的2个文件 25 | - package.json 26 | - main.js 27 | - 将下载的插件文件存放在这样的一个目录: **项目目录/packages/插件名字/** 28 | - 如果插件代码没有问题的话,重启creator即可正确加载该插件 29 | 30 | 31 | ## 如何修改插件快捷键 32 | 每个插件的源代码都放在项目的packages目录下 33 | ```json 34 | "accelerator": "CmdOrCtrl+Shift+m" 35 | ``` 36 | 如果在插件源码的package.json中定义了accelerator字段,那么插件的快捷键就会生效,如果设置的快捷键和系统快捷键有冲突,那么可以自行修改 37 | 38 | ## 如何手动安装插件 39 | [点击查看](doc/installPlugin.md) 40 | 41 | # 福利代码 42 | 项目中的代码是个人开发沉淀,希望对你有所帮助! 43 | - [Observer.js](assets/subpack/core/Observer.js) 44 | - [ObserverMgr.js](assets/subpack/core/ObserverMgr.js) 45 | # 支持一下呗 46 | ![](https://gitee.com/tidys/doc/raw/master/others/wx-pay.jpg) 47 | -------------------------------------------------------------------------------- /assets/MainScene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "91dae730-0763-412c-93bb-e3f80ef9ee3e", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/MainScene.js: -------------------------------------------------------------------------------- 1 | // 因为引入子包,所以,打包时启动成就也就必须设置为该scene了 2 | cc.Class({ 3 | extends: cc.Component, 4 | 5 | properties: { 6 | f:cc.Prefab, 7 | }, 8 | 9 | 10 | onLoad() { 11 | 12 | }, 13 | 14 | start() { 15 | 16 | 17 | }, 18 | _loadAllSubpack(){ 19 | if (CC_BUILD) { 20 | console.log("build 环境"); 21 | this._loadSubPackages(['subpack'], function () { 22 | this.completion(); 23 | }.bind(this)); 24 | } else { 25 | console.log("dev 环境"); 26 | this.completion(); 27 | } 28 | }, 29 | _loadSubPackages(subs, cb) { 30 | let loadFunc = function (sub, cb) { 31 | cc.loader.downloader.loadSubpackage(sub, function (err) { 32 | if (err) { 33 | return console.error(err); 34 | } 35 | console.log('load "' + sub + '" successfully.'); 36 | 37 | if (subs.length === 0) { 38 | cb && cb(); 39 | } else { 40 | loadFunc(subs.shift(), cb); 41 | } 42 | }); 43 | } 44 | loadFunc(subs.shift(), cb); 45 | }, 46 | completion() { 47 | cc.director.preloadScene("ImageEncryption", function () { 48 | cc.director.loadScene("ImageEncryption"); 49 | }); 50 | }, 51 | onClick(){ 52 | this._loadAllSubpack(); 53 | }, 54 | }); 55 | -------------------------------------------------------------------------------- /assets/MainScene.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "d389659a-1ba9-4d24-876e-f15e00717644", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/migration.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "a6e773c2-5fe3-4af7-8439-d93c05266ed1", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/migration/use_reversed_rotateBy.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This script is automatically generated by Cocos Creator and is only used for projects compatible with v2.1.0/v2.1.1/v2.3.0/v2.3.1/v2.3.2 versions. 3 | * You do not need to manually add this script in any other project. 4 | * If you don't use cc.Action in your project, you can delete this script directly. 5 | * If your project is hosted in VCS such as git, submit this script together. 6 | * 7 | * 此脚本由 Cocos Creator 自动生成,仅用于兼容 v2.1.0/v2.1.1/v2.3.0/v2.3.1/v2.3.2 版本的工程, 8 | * 你无需在任何其它项目中手动添加此脚本。 9 | * 如果你的项目中没用到 Action,可直接删除该脚本。 10 | * 如果你的项目有托管于 git 等版本库,请将此脚本一并上传。 11 | */ 12 | 13 | cc.RotateBy._reverse = true; 14 | -------------------------------------------------------------------------------- /assets/migration/use_reversed_rotateBy.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "2afa8ccd-9fc9-4330-8ff5-7da1a21e1201", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This script is automatically generated by Cocos Creator and is only used for projects compatible with the v2.1.0 ~ 2.2.1 version. 3 | * You do not need to manually add this script in any other project. 4 | * If you don't use cc.Toggle in your project, you can delete this script directly. 5 | * If your project is hosted in VCS such as git, submit this script together. 6 | * 7 | * 此脚本由 Cocos Creator 自动生成,仅用于兼容 v2.1.0 ~ 2.2.1 版本的工程, 8 | * 你无需在任何其它项目中手动添加此脚本。 9 | * 如果你的项目中没用到 Toggle,可直接删除该脚本。 10 | * 如果你的项目有托管于 git 等版本库,请将此脚本一并上传。 11 | */ 12 | 13 | if (cc.Toggle) { 14 | // Whether to trigger 'toggle' and 'checkEvents' events when modifying 'toggle.isChecked' in the code 15 | // 在代码中修改 'toggle.isChecked' 时是否触发 'toggle' 与 'checkEvents' 事件 16 | cc.Toggle._triggerEventInScript_isChecked = true; 17 | } 18 | -------------------------------------------------------------------------------- /assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "2052eea3-7b6b-4887-9a09-eccba8d7dbe6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "08456479-ddd2-47a9-aad6-7e4f6279e89f", 4 | "isBundle": true, 5 | "bundleName": "resources", 6 | "priority": 8, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/bitMap.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "2a6e2814-25b4-44a3-b763-01dc1ec58b35", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/bitMap/testBMFont.fnt: -------------------------------------------------------------------------------- 1 | info face="微软雅黑" size=40 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 outline=0 2 | common lineHeight=40 base=26 scaleW=52 scaleH=24 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0 3 | page id=0 file="testBMFont.png" 4 | chars count=3 5 | char id=49 x=0 y=0 width=14 height=23 xoffset=0 yoffset=0 xadvance=14 page=0 chnl=15 6 | char id=50 x=14 y=0 width=18 height=23 xoffset=0 yoffset=0 xadvance=18 page=0 chnl=15 7 | char id=48 x=32 y=0 width=20 height=24 xoffset=0 yoffset=0 xadvance=20 page=0 chnl=15 8 | -------------------------------------------------------------------------------- /assets/resources/bitMap/testBMFont.fnt.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "1f065bb3-1902-43f3-93fd-ace4ae1eeb2e", 4 | "textureUuid": "22a80fae-e3df-4fc7-a38b-3592b43a247a", 5 | "fontSize": 40, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/bitMap/testBMFont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/resources/bitMap/testBMFont.png -------------------------------------------------------------------------------- /assets/resources/bitMap/testBMFont.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "22a80fae-e3df-4fc7-a38b-3592b43a247a", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 52, 11 | "height": 24, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "testBMFont": { 15 | "ver": "1.0.4", 16 | "uuid": "1e8ccf56-28bf-4a51-9f5f-3340e6c3e419", 17 | "rawTextureUuid": "22a80fae-e3df-4fc7-a38b-3592b43a247a", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 52, 26 | "height": 24, 27 | "rawWidth": 52, 28 | "rawHeight": 24, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/resources/cfg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "7aea0d9f-4963-40db-98ed-5bca49b27cb0", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/cfg/channelInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "channel":"2100001" 3 | } 4 | -------------------------------------------------------------------------------- /assets/resources/cfg/channelInfo.json.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "eaee8941-e04e-434b-8e74-8fbf763b3b4c", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/cfg/versionInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "version":"2.0.2.3" 3 | } 4 | -------------------------------------------------------------------------------- /assets/resources/cfg/versionInfo.json.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "25d6f88f-14fd-44fb-a5e5-419b24c23f21", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/font.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "9d3c9e85-02a9-4f0c-9c12-2e4e95a921b2", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/font/fzcyt.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/resources/font/fzcyt.ttf -------------------------------------------------------------------------------- /assets/resources/font/fzcyt.ttf.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "uuid": "5c944147-3b78-4e4d-9ebd-39e8b7784a51", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "550d4c1d-a03f-4792-a9b8-7f19a14af186", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/prefab/CommonPrefab.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | }, 9 | 10 | start() { 11 | 12 | }, 13 | 14 | // update (dt) {}, 15 | }); 16 | -------------------------------------------------------------------------------- /assets/resources/prefab/CommonPrefab.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "861f77e3-ebc3-4f8a-b247-b3d73d8b7bee", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources/prefab/CommonPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "675b8671-1b1d-4267-b90f-a8f41f307149", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefab/dialog.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "7891a5b1-834d-42f6-acfa-c683b9c691cb", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/prefab/dialog/DialogLayer.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "8b1b45eb-c61f-46e8-a80b-deaa96798a54", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources/prefab/dialog/DialogLayer.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "80fb4f54-dbe4-40be-8194-91047f33b747", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefab/uiMask.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "66d97242-92ed-4336-9c14-db38aaaced7e", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/prefab/uiMask/ComUIBg.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | bgNode: {displayName: "背景节点", default: null, type: cc.Node}, 6 | }, 7 | 8 | 9 | onLoad() { 10 | let w = cc.view.getVisibleSize().width; 11 | let h = cc.view.getVisibleSize().height; 12 | this.bgNode.width = w; 13 | this.bgNode.height = h; 14 | 15 | this.bgNode.on(cc.Node.EventType.MOUSE_ENTER, function (event) { 16 | event.stopPropagation(); 17 | event.stopPropagationImmediate(); 18 | 19 | return false; 20 | }.bind(this)); 21 | 22 | this.bgNode.on(cc.Node.EventType.MOUSE_LEAVE, function (event) { 23 | event.stopPropagation(); 24 | event.stopPropagationImmediate(); 25 | return false; 26 | }.bind(this)); 27 | 28 | this.bgNode.on(cc.Node.EventType.MOUSE_WHEEL, function (event) { 29 | event.stopPropagation(); 30 | event.stopPropagationImmediate(); 31 | 32 | }.bind(this)); 33 | }, 34 | 35 | start() { 36 | 37 | }, 38 | addUI(ui) { 39 | let node = cc.instantiate(ui); 40 | node.x = node.y = 0; 41 | this.node.addChild(node); 42 | return node; 43 | }, 44 | 45 | // update (dt) {}, 46 | }); 47 | -------------------------------------------------------------------------------- /assets/resources/prefab/uiMask/ComUIBg.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "0fd0086c-6db3-4e42-ae05-40bddf387d84", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources/prefab/uiMask/ComUIBg.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "6dfcf16c-21c5-4753-85d8-a0602d214c2f", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/test.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "97ce8e7c-9b05-441a-a2c7-e7276083ec7e", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/resources/test/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/resources/test/HelloWorld.png -------------------------------------------------------------------------------- /assets/resources/test/HelloWorld.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 195, 11 | "height": 270, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "HelloWorld": { 15 | "ver": "1.0.4", 16 | "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc", 17 | "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 195, 26 | "height": 270, 27 | "rawWidth": 195, 28 | "rawHeight": 270, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/resources/test/hello.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/resources/test/hello.png -------------------------------------------------------------------------------- /assets/resources/test/hello.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "26319e35-743f-4171-9a49-1734c4758643", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 423, 11 | "height": 406, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "hello": { 15 | "ver": "1.0.4", 16 | "uuid": "60e5e64c-4a44-41d3-bc07-bc6ae3546f0f", 17 | "rawTextureUuid": "26319e35-743f-4171-9a49-1734c4758643", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 423, 26 | "height": 406, 27 | "rawWidth": 423, 28 | "rawHeight": 406, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/resources/test/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/resources/test/icon.png -------------------------------------------------------------------------------- /assets/resources/test/icon.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "40d63da3-bd4b-43ff-8d5b-fcfdcf28fd3f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 300, 11 | "height": 300, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "icon": { 15 | "ver": "1.0.4", 16 | "uuid": "b9a11e0f-0d0c-478f-9c41-a122cfccc59d", 17 | "rawTextureUuid": "40d63da3-bd4b-43ff-8d5b-fcfdcf28fd3f", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 300, 26 | "height": 300, 27 | "rawWidth": 300, 28 | "rawHeight": 300, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/resources/test/singleColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/resources/test/singleColor.png -------------------------------------------------------------------------------- /assets/resources/test/singleColor.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 2, 11 | "height": 2, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "singleColor": { 15 | "ver": "1.0.4", 16 | "uuid": "410fb916-8721-4663-bab8-34397391ace7", 17 | "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 2, 26 | "height": 2, 27 | "rawWidth": 2, 28 | "rawHeight": 2, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "e9f1a403-a8c1-4d66-9b6d-2993665621ef", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/core.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "49455d67-a6e2-4fe4-859e-0de5aad5ee21", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/core/GameMsg.js: -------------------------------------------------------------------------------- 1 | let GameMsg = module.exports = { 2 | Test: "111", 3 | TestFunc(){ 4 | console.log("TestFunc"); 5 | } 6 | } 7 | cc.app = cc.app || {}; 8 | cc.app.GameMsg = GameMsg; 9 | // 在引擎渲染之前就能执行的逻辑 10 | cc.app.GameMsg.TestFunc(); -------------------------------------------------------------------------------- /assets/subpack/core/GameMsg.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "c193904d-6255-4616-8841-458d91eced3e", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/Module.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | }, 9 | 10 | start() { 11 | 12 | }, 13 | 14 | // update (dt) {}, 15 | }); 16 | -------------------------------------------------------------------------------- /assets/subpack/core/Module.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "505d9ced-de58-4e6f-a14e-a60bb1e48ef0", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/Observer.js: -------------------------------------------------------------------------------- 1 | let Observer = cc.Class({ 2 | extends: cc.Component, 3 | 4 | _initMsg() { 5 | let list = this._getMsgList(); 6 | if (list) { 7 | for (let k = 0; k < list.length; k++) { 8 | let msg = list[k]; 9 | cc.ObserverMgr.addEventListener(msg, this._onMsg, this); 10 | } 11 | } 12 | }, 13 | ctor() { 14 | this._initMsg(); 15 | }, 16 | onLoad() { 17 | }, 18 | _getMsgList() { 19 | return []; 20 | }, 21 | // [子类继承接口]消息返回 22 | _onMsg(msg, data) { 23 | //let len = "error-".length; 24 | //msg = msg.substr(len, msg.length - len); 25 | //return msg; 26 | }, 27 | // [子类继承接口]游戏内逻辑错误 28 | _onError(msg, code, data) { 29 | 30 | }, 31 | //处理错误数据 32 | _onErrorDeal(errorMsgString, data) { 33 | let msgString = data[0]; 34 | let errorCode = data[1]; 35 | let errorData = data[2]; 36 | this._onError(msgString, errorCode, errorData); 37 | }, 38 | onDisable() { 39 | cc.ObserverMgr.removeEventListenerWithObject(this); 40 | }, 41 | onEnable() { 42 | // TODO next version register event method 43 | // ObserverMgr.removeEventListenerWithObject(this); 44 | // this._initMsg(); 45 | }, 46 | onDestroy() { 47 | cc.ObserverMgr.removeEventListenerWithObject(this); 48 | }, 49 | }); 50 | cc.Observer = module.exports = Observer; -------------------------------------------------------------------------------- /assets/subpack/core/Observer.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "c20c99ae-f9fa-4f91-bd48-a12c1cd8629c", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/ObserverMgr.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "fc7571ab-879a-4b86-98b9-0d9bc8e458f2", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/msg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "c333b9c6-9546-479d-8b1e-e2ba4bea8e7c", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/core/msg/GameLocalStorage.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | setVersion(a, b) { 3 | 4 | }, 5 | }; -------------------------------------------------------------------------------- /assets/subpack/core/msg/GameLocalStorage.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "d2814c13-df4c-4b2d-9e80-80dcb4cd8e60", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/msg/GameMsgGlobal.js: -------------------------------------------------------------------------------- 1 | window.GameMsgGlobal = { 2 | Net: { 3 | MsgErr: "GameMsgGlobal_Net_MsgErr", 4 | } 5 | }; -------------------------------------------------------------------------------- /assets/subpack/core/msg/GameMsgGlobal.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "37882b9b-9a68-4f77-bab1-3680e316cee9", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/native.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "45ac18fe-d195-4863-9a0b-b423ebd22009", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/core/native/Native.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "3877804e-8f2c-4265-9410-781eb43977b1", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/ui.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "65a809ef-57a3-44f8-bf15-172b196e39fc", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/core/ui/DialogMgr.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "f07e873d-0c2c-4b1a-bcb0-c643f29e14ac", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/ui/UIMgr.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "8b0cbe2d-d38d-4954-b520-b9c930e6e2a6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/core/util.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "bda38266-31bd-4126-bf37-b2e233da5f33", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/core/util/Util.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | log(str) { 3 | console.log("-----------------------------------------"); 4 | console.log(str); 5 | console.log("-----------------------------------------"); 6 | } 7 | }; -------------------------------------------------------------------------------- /assets/subpack/core/util/Util.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "85616695-117d-4063-b89f-084300360544", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "4708716d-70ac-47aa-8793-691a80a26bcb", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/4399.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "8a57c0f4-0119-418f-993e-ee572b1b546e", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/4399/4399.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "ec079092-e195-449d-92fc-d25ad117266b", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/4399/4399.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | 6 | 7 | }, 8 | 9 | // onLoad () {}, 10 | 11 | start () { 12 | 13 | }, 14 | onBtnClick(){ 15 | if(window.moreGame){ 16 | window.moreGame(); 17 | } 18 | } 19 | 20 | // update (dt) {}, 21 | }); 22 | -------------------------------------------------------------------------------- /assets/subpack/module/4399/4399.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "84d76872-cc8e-4cdf-9f7a-a700e57746da", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/Inspector.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "19074447-498a-4de4-bd00-97ae98ef772d", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/Inspector/InspectorScript.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "f2d869e2-7153-4f4d-8843-0200fa6c252f", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/bezier.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "eb3c77f6-372d-4235-b42b-cb9f83692130", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/bezier/BezierScene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "72cbf160-c16c-4a7f-b340-af35f9c431af", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/bezier/BezierScene.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "2dd1a556-55e6-40ff-87b5-c975fbbf907a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/bezier/CustomAni.js: -------------------------------------------------------------------------------- 1 | cc.CustomAni = cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | hp: 0, 6 | }, 7 | 8 | 9 | onLoad() { 10 | console.log("CustomAni onLoad"); 11 | }, 12 | 13 | start() { 14 | 15 | }, 16 | 17 | update(dt) { 18 | 19 | }, 20 | }); 21 | -------------------------------------------------------------------------------- /assets/subpack/module/bezier/CustomAni.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "87310394-418d-47a7-86f6-2eff409cf237", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/bezier/CustomBezier.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "37d867b2-99f8-46ee-9239-cbd135173151", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/bitMap.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/bitMap/BMFontScene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/bugly.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "314113d2-7d0d-42b4-a5ca-6431341e6f09", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/bugly/BuglyTest.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "53e65e99-8396-4ec4-8440-cb5f7ff97a5b", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/bugly/BuglyTest.js: -------------------------------------------------------------------------------- 1 | let Native = require('Native'); 2 | 3 | cc.Class({ 4 | extends: cc.Component, 5 | 6 | properties: {}, 7 | 8 | 9 | onLoad() { 10 | }, 11 | 12 | start() { 13 | 14 | }, 15 | onBtnClickTest() { 16 | Native.test(); 17 | }, 18 | }); 19 | -------------------------------------------------------------------------------- /assets/subpack/module/bugly/BuglyTest.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "135701e4-2be3-4bfe-bafd-38e2e7d6e0a6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/customUI.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "9f189784-5204-45d7-a20c-bbbf784ae660", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/customUI/CustomUI.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "e5da228a-d5d8-47b8-8ba2-988d529d68c3", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/customUI/MyTestUI.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | editor: CC_EDITOR && { 4 | inspector: "packages://foobar/inspector.js", 5 | }, 6 | properties: { 7 | foo: { 8 | default: "foo", 9 | type: cc.String, 10 | notify() { 11 | console.log("change"); 12 | }, 13 | }, 14 | bar: 'Bar' 15 | } 16 | }); 17 | -------------------------------------------------------------------------------- /assets/subpack/module/customUI/MyTestUI.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "730b7c99-8fca-4cae-ade5-f916ce98f9e8", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/encryption.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "3da7fd8e-6f86-4b86-9201-74e221bf659f", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/encryption/ImageEncryption.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "bdc23f4b-2249-4240-bf90-5564e841ba06", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/encryption/ImageEncryption.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | console.log("onload image encryption scene"); 9 | }, 10 | 11 | start() { 12 | 13 | }, 14 | onBtnClickImageEncryption() { 15 | console.log(1); 16 | }, 17 | // update (dt) {}, 18 | }); 19 | -------------------------------------------------------------------------------- /assets/subpack/module/encryption/ImageEncryption.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "9f6e725f-c1e8-4d2d-ae40-f6138586b48c", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/hello.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "cfea26c5-a529-41f9-b00a-fbfcd1ac2493", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/hello/Hello.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | console.log("hello"); 9 | }, 10 | 11 | start() { 12 | 13 | }, 14 | 15 | // update (dt) {}, 16 | }); 17 | -------------------------------------------------------------------------------- /assets/subpack/module/hello/Hello.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "df47b1c5-8120-4bc5-8c13-cf33ace965d7", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/hello/Hello.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "04ee000b-2d4e-4d35-9734-946bfdecf347", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/subpack/module/hotUpDate.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "39ed36cd-b62e-43a0-bb17-f57c07d24733", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/index.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "0ba16995-2749-4e63-8a1d-fcf04bba630c", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/index/IndexScene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "aa25e25b-eaf3-4d94-a700-ba518c70130f", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/index/IndexScene.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | tipsLabel: {displayName: "提示", default: null, type: cc.Label}, 6 | word: {displayName: "提示语", default: ""}, 7 | }, 8 | 9 | onLoad() { 10 | console.log('IndexScene'); 11 | }, 12 | start() { 13 | this.tipsLabel.string = this.word; 14 | // cc.view.setCanvasSize(1920, 1080); 15 | // this.tipsLabel.string = this.word + "- new Version"; 16 | }, 17 | 18 | update(dt) { 19 | 20 | }, 21 | onBtnClickTest() { 22 | require('Native').rotationSceneToLandscape(false, function () { 23 | cc.director.loadScene('TestScene'); 24 | }); 25 | }, 26 | }); 27 | -------------------------------------------------------------------------------- /assets/subpack/module/index/IndexScene.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "cf4c268b-9530-4afb-b505-b53e14bfd0e8", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/main.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "3fe48174-25f8-4ef0-bfc8-cf786dd6cd83", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/main/MainPrefab.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | }, 9 | 10 | start() { 11 | 12 | }, 13 | 14 | // update (dt) {}, 15 | }); 16 | -------------------------------------------------------------------------------- /assets/subpack/module/main/MainPrefab.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "b75e12b9-3c85-4184-895f-8d16e155b25f", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/main/MainPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "014f19fb-fef2-4dce-b4fa-eb4f8ab9d179", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/subpack/module/mp3Compress.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "556ff5c1-dd78-4057-8aa7-9eeb6e44dd04", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/module/mp3Compress/testcase.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/module/mp3Compress/testcase.mp3 -------------------------------------------------------------------------------- /assets/subpack/module/mp3Compress/testcase.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.1", 3 | "uuid": "2d41bbca-53cf-4fd9-8aea-b3acf3aa4829", 4 | "downloadMode": 0, 5 | "duration": 0.624, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/test/HelloWorld.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | label: { 6 | default: null, 7 | type: cc.Label 8 | }, 9 | // defaults, set visually when attaching this script to the Canvas 10 | text: 'Hello, World!' 11 | }, 12 | 13 | // use this for initialization 14 | onLoad: function () { 15 | this.label.string = this.text; 16 | }, 17 | 18 | // called every frame 19 | update: function (dt) { 20 | 21 | }, 22 | }); 23 | -------------------------------------------------------------------------------- /assets/subpack/module/test/HelloWorld.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/module/test/TestScene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "96626ae2-1e44-4cf1-89de-79010176575f", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/module/test/TestScene.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | console.log('TestScene'); 9 | 10 | let canvas = cc.find('Canvas'); 11 | if (canvas) { 12 | let comp = canvas.getComponent(cc.Canvas); 13 | if (comp) { 14 | // comp.setDesignResolutionSize(1920, 1080); 15 | // comp.designResolution.width = 1920; 16 | // comp.designResolution.height = 1080; 17 | // canvas.rotation = -90; 18 | } 19 | } 20 | }, 21 | 22 | start() { 23 | 24 | }, 25 | onBtnClickTest() { 26 | require('Native').rotationSceneToLandscape(true, function () { 27 | cc.director.loadScene('IndexScene'); 28 | }); 29 | } 30 | 31 | }); 32 | -------------------------------------------------------------------------------- /assets/subpack/module/test/TestScene.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "167721f5-e916-40fd-ba47-85f6d82a178a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/res.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "788b5a61-ceb6-4760-bd6b-50bc5bf5bdf2", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/res/bg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "bef41786-d30d-47c2-bfa8-9b9bbab0ac5d", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/res/bg/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/bg/bg.jpg -------------------------------------------------------------------------------- /assets/subpack/res/bg/bg.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "3abd40ec-9a61-4e1f-9725-bdf26b600aff", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 1219, 11 | "height": 1920, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "bg": { 15 | "ver": "1.0.4", 16 | "uuid": "899c846b-3f59-403b-9497-114800c90a5e", 17 | "rawTextureUuid": "3abd40ec-9a61-4e1f-9725-bdf26b600aff", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 1219, 26 | "height": 1920, 27 | "rawWidth": 1219, 28 | "rawHeight": 1920, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "4a003848-3f05-4c5e-9c21-61be8b6ebd99", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/AutoAtlas.pac: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.SpriteAtlas" 3 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/AutoAtlas.pac.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.0", 3 | "uuid": "2c38b324-e1d0-4ced-b1d1-33fd9066d43b", 4 | "maxWidth": 1024, 5 | "maxHeight": 1024, 6 | "padding": 2, 7 | "allowRotation": true, 8 | "forceSquared": false, 9 | "powerOfTwo": false, 10 | "algorithm": "MaxRects", 11 | "format": "png", 12 | "quality": 80, 13 | "contourBleed": true, 14 | "paddingBleed": true, 15 | "filterUnused": true, 16 | "packable": false, 17 | "premultiplyAlpha": false, 18 | "filterMode": "bilinear", 19 | "platformSettings": {}, 20 | "subMetas": {} 21 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/btn1Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/btn1Normal.png -------------------------------------------------------------------------------- /assets/subpack/res/common/btn1Normal.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "8f46b041-f82e-4edf-bfec-f4ea7155fe47", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 200, 11 | "height": 70, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn1Normal": { 15 | "ver": "1.0.4", 16 | "uuid": "3354f348-d955-4fde-8283-9961cf5581ab", 17 | "rawTextureUuid": "8f46b041-f82e-4edf-bfec-f4ea7155fe47", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 200, 26 | "height": 70, 27 | "rawWidth": 200, 28 | "rawHeight": 70, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/btn1Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/btn1Pressed.png -------------------------------------------------------------------------------- /assets/subpack/res/common/btn1Pressed.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "f824735b-5df0-498c-88dd-fd1dc018f15c", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 200, 11 | "height": 70, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn1Pressed": { 15 | "ver": "1.0.4", 16 | "uuid": "268368df-9ef7-415b-b60d-2778f421f722", 17 | "rawTextureUuid": "f824735b-5df0-498c-88dd-fd1dc018f15c", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 200, 26 | "height": 70, 27 | "rawWidth": 200, 28 | "rawHeight": 70, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/btn2Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/btn2Normal.png -------------------------------------------------------------------------------- /assets/subpack/res/common/btn2Normal.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "62865a65-fdbd-4236-b43c-f7c0567add7f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 200, 11 | "height": 70, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn2Normal": { 15 | "ver": "1.0.4", 16 | "uuid": "b9a0839a-8e6a-4891-9789-a8fceb724fdc", 17 | "rawTextureUuid": "62865a65-fdbd-4236-b43c-f7c0567add7f", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 200, 26 | "height": 70, 27 | "rawWidth": 200, 28 | "rawHeight": 70, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/btn2Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/btn2Pressed.png -------------------------------------------------------------------------------- /assets/subpack/res/common/btn2Pressed.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "4d4c9d4f-4fc7-4601-8f1b-4810d4d863f9", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 200, 11 | "height": 70, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn2Pressed": { 15 | "ver": "1.0.4", 16 | "uuid": "e5176a24-7735-4361-9972-91ea9abd25d4", 17 | "rawTextureUuid": "4d4c9d4f-4fc7-4601-8f1b-4810d4d863f9", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 200, 26 | "height": 70, 27 | "rawWidth": 200, 28 | "rawHeight": 70, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/btnCloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/btnCloseNormal.png -------------------------------------------------------------------------------- /assets/subpack/res/common/btnCloseNormal.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "e37986e4-f3a7-48bc-a96a-f64be3834315", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 140, 11 | "height": 56, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btnCloseNormal": { 15 | "ver": "1.0.4", 16 | "uuid": "9ddf0835-beb9-478e-bed5-12c246edb1c0", 17 | "rawTextureUuid": "e37986e4-f3a7-48bc-a96a-f64be3834315", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 140, 26 | "height": 56, 27 | "rawWidth": 140, 28 | "rawHeight": 56, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/btnClosePressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/btnClosePressed.png -------------------------------------------------------------------------------- /assets/subpack/res/common/btnClosePressed.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "41dd6eb1-2e10-4756-b167-bafc1e549f57", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 140, 11 | "height": 56, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btnClosePressed": { 15 | "ver": "1.0.4", 16 | "uuid": "65e90a35-883d-404f-9625-202e7a1ac1e2", 17 | "rawTextureUuid": "41dd6eb1-2e10-4756-b167-bafc1e549f57", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 140, 26 | "height": 56, 27 | "rawWidth": 140, 28 | "rawHeight": 56, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/frame8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/frame8.png -------------------------------------------------------------------------------- /assets/subpack/res/common/frame8.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "a881d98a-5a4b-4be8-b7f4-d8ef22143ccd", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 504, 11 | "height": 35, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "frame8": { 15 | "ver": "1.0.4", 16 | "uuid": "b8e0283d-9cae-40aa-8534-62ec8dd5fc2a", 17 | "rawTextureUuid": "a881d98a-5a4b-4be8-b7f4-d8ef22143ccd", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 504, 26 | "height": 35, 27 | "rawWidth": 504, 28 | "rawHeight": 35, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 228, 32 | "borderRight": 223, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/frame9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/frame9.png -------------------------------------------------------------------------------- /assets/subpack/res/common/frame9.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "1a71255d-74c1-4082-b49b-e2441ff22ac2", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 498, 11 | "height": 27, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "frame9": { 15 | "ver": "1.0.4", 16 | "uuid": "b557296a-e9eb-47fa-a235-8a514eb53843", 17 | "rawTextureUuid": "1a71255d-74c1-4082-b49b-e2441ff22ac2", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": -0.5, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 497, 26 | "height": 27, 27 | "rawWidth": 498, 28 | "rawHeight": 27, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 238, 32 | "borderRight": 236, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/test11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/test11.png -------------------------------------------------------------------------------- /assets/subpack/res/common/test11.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "597aa753-5e9d-46a4-a69d-c6b5ad169046", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 191, 11 | "height": 192, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "test11": { 15 | "ver": "1.0.4", 16 | "uuid": "188ee729-c5c6-40da-8616-5fe58278d7ae", 17 | "rawTextureUuid": "597aa753-5e9d-46a4-a69d-c6b5ad169046", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 191, 26 | "height": 192, 27 | "rawWidth": 191, 28 | "rawHeight": 192, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/common/tipsBg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/common/tipsBg.png -------------------------------------------------------------------------------- /assets/subpack/res/common/tipsBg.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "3264a2c8-feb2-4154-97a7-e6a6d0b1bc48", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 800, 11 | "height": 516, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "tipsBg": { 15 | "ver": "1.0.4", 16 | "uuid": "0cdb2e79-2dd3-4533-a994-7eade4905b70", 17 | "rawTextureUuid": "3264a2c8-feb2-4154-97a7-e6a6d0b1bc48", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 800, 26 | "height": 516, 27 | "rawWidth": 800, 28 | "rawHeight": 516, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/test/AutoAtlas.pac: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.SpriteAtlas" 3 | } -------------------------------------------------------------------------------- /assets/subpack/res/test/AutoAtlas.pac.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.0", 3 | "uuid": "d3264801-f878-4e62-8f96-1928c0c53c11", 4 | "maxWidth": 1024, 5 | "maxHeight": 1024, 6 | "padding": 2, 7 | "allowRotation": true, 8 | "forceSquared": false, 9 | "powerOfTwo": false, 10 | "algorithm": "MaxRects", 11 | "format": "png", 12 | "quality": 80, 13 | "contourBleed": true, 14 | "paddingBleed": true, 15 | "filterUnused": true, 16 | "packable": false, 17 | "premultiplyAlpha": false, 18 | "filterMode": "bilinear", 19 | "platformSettings": {}, 20 | "subMetas": {} 21 | } -------------------------------------------------------------------------------- /assets/subpack/res/test/btn_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/test/btn_blue.png -------------------------------------------------------------------------------- /assets/subpack/res/test/btn_blue.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "0c887585-e7e0-451f-919e-7cdc2846623d", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 220, 11 | "height": 66, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn_blue": { 15 | "ver": "1.0.4", 16 | "uuid": "cb7801b7-a318-4359-8f45-4b7072391327", 17 | "rawTextureUuid": "0c887585-e7e0-451f-919e-7cdc2846623d", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 220, 26 | "height": 66, 27 | "rawWidth": 220, 28 | "rawHeight": 66, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/test/btn_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/test/btn_green.png -------------------------------------------------------------------------------- /assets/subpack/res/test/btn_green.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "93be6f15-d0b5-4b7d-882d-f69641058cc2", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 175, 11 | "height": 52, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn_green": { 15 | "ver": "1.0.4", 16 | "uuid": "7c3b7ca2-8867-4794-bf5d-6fb0165069f0", 17 | "rawTextureUuid": "93be6f15-d0b5-4b7d-882d-f69641058cc2", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": -0.5, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 174, 26 | "height": 52, 27 | "rawWidth": 175, 28 | "rawHeight": 52, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/res/test/btn_yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/assets/subpack/res/test/btn_yellow.png -------------------------------------------------------------------------------- /assets/subpack/res/test/btn_yellow.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "7e81b2d2-931e-46e2-b975-4e3cd2fd0547", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 220, 11 | "height": 66, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "btn_yellow": { 15 | "ver": "1.0.4", 16 | "uuid": "6542f63b-8e2a-400a-bbfc-c075ac34d8dd", 17 | "rawTextureUuid": "7e81b2d2-931e-46e2-b975-4e3cd2fd0547", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 220, 26 | "height": 66, 27 | "rawWidth": 220, 28 | "rawHeight": 66, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/subpack/testCase.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "8e8f16b5-cae4-4b6e-a50f-dff8bc7d96f7", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/subpack/testCase/TestCaseModule.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | Msg: { 3 | Test: "TestCaseModule_Msg_Test", 4 | } 5 | } -------------------------------------------------------------------------------- /assets/subpack/testCase/TestCaseModule.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "00a95acd-c032-4a12-b427-92679ad39756", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/testCase/TestCaseScene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "b42f1986-ad25-4c0d-9c9e-b74e140c8813", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/subpack/testCase/TestCaseScene.js: -------------------------------------------------------------------------------- 1 | let TestCaseModule = require("TestCaseModule"); 2 | cc.Class({ 3 | extends: require('Observer'), 4 | 5 | properties: { 6 | testPrefab: cc.Prefab, 7 | infoLabel: cc.Label, 8 | _num: 0, 9 | }, 10 | 11 | _getMsgList() { 12 | return [ 13 | TestCaseModule.Msg.Test, 14 | ]; 15 | }, 16 | _onMsg(msg, data) { 17 | if (msg === TestCaseModule.Msg.Test) { 18 | console.log(data); 19 | this.infoLabel.string = `${data}-${this._num++}`; 20 | } 21 | }, 22 | onLoad() { 23 | }, 24 | 25 | start() { 26 | 27 | }, 28 | onBtnClickTestObserver() { 29 | cc.ObserverMgr.dispatchMsg(TestCaseModule.Msg.Test, "测试信息"); 30 | }, 31 | onBtnClickAddPrefab() { 32 | let node = cc.instantiate(this.testPrefab); 33 | this.node.addChild(node); 34 | }, 35 | 36 | // update (dt) {}, 37 | }); 38 | -------------------------------------------------------------------------------- /assets/subpack/testCase/TestCaseScene.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "b1bb577b-db72-46a9-8651-e80d39ec5434", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/testCase/TestPrefab.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | 7 | onLoad() { 8 | }, 9 | 10 | start() { 11 | 12 | }, 13 | onBtnClickTest() { 14 | cc.ObserverMgr.dispatchMsg(require("TestCaseModule").Msg.Test, "Testprefab"); 15 | 16 | }, 17 | onBtnClickClose(){ 18 | this.node.destroy(); 19 | }, 20 | // update (dt) {}, 21 | }); 22 | -------------------------------------------------------------------------------- /assets/subpack/testCase/TestPrefab.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "df737913-2fdb-4839-807f-aaa7574b313d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/subpack/testCase/TestPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "73f8565b-17cb-47d8-be1b-7520830af214", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /auto/README.md: -------------------------------------------------------------------------------- 1 | # 插件打包 2 | 使用之前,记得首先安装gulp,然后 3 | ``` 4 | npm i 5 | ``` 6 | 安装必要的node模块 7 | 8 | ## 说明 9 | 使用gulp的**打包插件**自动化打包过程中,task处理的流程: 10 | ### 1. 优化package.json 11 | 在打包过程中,task修改了插件的package.json插件配置文件,删除了开发过程中使用到的插件自定义菜单. 12 | 13 | 如果不想让某个菜单在最终打包过程中出现,那么只需要在该插件上定义 14 | ``` 15 | "del": true, 16 | ``` 17 | 打包后的package.json将删除这个菜单 18 | 19 | 20 | [示例插件配置文件](test-package.json) 21 | 22 | 从配置中可以看到 23 | ```json 24 | { 25 | "TEST/测试面板":{ 26 | "del": true, 27 | "message":"test-plugin:open-test" 28 | } 29 | } 30 | ``` 31 | ### 2. 将项目根目录的README.md打包进压缩包 32 | 如果插件需要来一份使用说明,那么可以写在项目的README.md中,最后会一同打进压缩包里面. 33 | ### 3. 处理插件的runtime-resource 34 | 这也是使用task打包插件的一个重要原因,因为runtime-resource一般来说是放在插件自身的某个目录,当creator加载插件的时候,会在资源管理其中映射一份runtime-resource,作为项目的组成部分存在,唯一不同的是runtime-resource是只读属性,不允许任何修改. 35 | 36 | 那么问题就来了,开发插件的过程中,runtime-resource肯定要修修改改,如果放在插件runtime-resource配置的路径下,creator的机制又不允许修改,所以,不得不重新拷贝到assets下,编辑完成之后,在发布的时候,再重新拷贝到runtime-resource的配置目录下,而目前官方也是推荐这种方式去开发runtime-resource部分的逻辑. 37 | 38 | 于是,该task就应运而生,把这部分机械的文件拷贝工作交给task来处理,这样,只需要把runtime-resource当做正常的assets来进行开发维护进行了,需要注意的是,要保证所有的runtime-resource要保证在一个目录下,而且名字要和配置中的path一直,如图所示: 39 | 40 | package.json的配置 41 | ![cfg1](res/package.png) 42 | 43 | assets的配置 44 | ![cfg2](res/assets.png) 45 | 46 | ### 最终插件打包后的目录结构 47 | - 插件压缩包根目录 48 | - 插件说明.txt 49 | - 插件根目录 50 | - package.json 51 | - main.js 52 | 53 | ### 最后 54 | 该task仅仅解决了个人开发插件过程中遇到的问题,如果有更好的建议,欢迎交流,QQ群**224756137**,插件小王子在这里等着你哦! 55 | -------------------------------------------------------------------------------- /auto/build-config/build-ios.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "helloWorld", 3 | "platform": "ios", 4 | "startScene": "91dae730-0763-412c-93bb-e3f80ef9ee3e", 5 | "packageName": "org.cocos2d.helloworld", 6 | "debug": true, 7 | "sourceMaps": true, 8 | "buildPath": "build", 9 | "zipCompressJs": false, 10 | "template": "default", 11 | "encryptJs": false, 12 | "xxteaKey": "3c44c5ef-1b08-4a", 13 | "excludeScenes": [], 14 | "fb-instant-games": {}, 15 | "includeAnySDK": false, 16 | "includeSDKBox": false, 17 | "inlineSpriteFrames": false, 18 | "inlineSpriteFrames_native": true, 19 | "jailbreakPlatform": false, 20 | "md5Cache": false, 21 | "mergeStartScene": false, 22 | "oauthLoginServer": "", 23 | "optimizeHotUpdate": false, 24 | "orientation": { 25 | "landscapeLeft": true, 26 | "landscapeRight": true, 27 | "portrait": false, 28 | "upsideDown": false 29 | }, 30 | "webOrientation": "portrait", 31 | "autoCompile": false 32 | } 33 | -------------------------------------------------------------------------------- /auto/core/util.js: -------------------------------------------------------------------------------- 1 | const ChildProcess = require("child_process"); 2 | 3 | module.exports = { 4 | execSync(cmd) { 5 | return ChildProcess.execSync(cmd); 6 | }, 7 | exec(cmd, callback) { 8 | let cmdder = ChildProcess.exec(cmd, function (error, stdout, stdError) { 9 | if (error) { 10 | // console.log("std-err: " + stdError); 11 | } else { 12 | //输出所有的输出 13 | // console.log("std-out: " + stdout); 14 | } 15 | }); 16 | cmdder.stdout.on('data', function (data) { 17 | console.log(data); 18 | }); 19 | cmdder.stderr.on('data', function (data) { 20 | console.error(data); 21 | callback && callback(data, null); 22 | }); 23 | cmdder.on('close', function () { 24 | callback && callback(null); 25 | }); 26 | } 27 | } -------------------------------------------------------------------------------- /auto/gulpfile-builder.js: -------------------------------------------------------------------------------- 1 | const Gulp = require("gulp"); 2 | const CocosCreator = "/Applications/CocosCreator.app/Contents/MacOS/CocosCreator"; 3 | const ChildProcess = require("child_process"); 4 | const Path = require("path"); 5 | let projectPath = Path.join(__dirname, "../"); 6 | const Util = require("./core/util.js"); 7 | 8 | Gulp.task("build-ios", function () { 9 | let configPath = Path.join(__dirname, "build-config/build-ios.json"); 10 | let cmd = `${CocosCreator} --path ${projectPath} --build "configPath=${configPath}"`; 11 | Util.exec(cmd, function (error) { 12 | if (error) { 13 | 14 | } else { 15 | console.log("构建完毕"); 16 | } 17 | }) 18 | }); -------------------------------------------------------------------------------- /auto/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "avg-ck", 3 | "version": "1.0.0", 4 | "description": "Hello world new project template.", 5 | "main": "gulpfile.js", 6 | "directories": { 7 | "doc": "doc" 8 | }, 9 | "scripts": { 10 | "test": "echo \"Error: no test specified\" && exit 1" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "http://git.ck/avgmaker/avgmaker.git" 15 | }, 16 | "author": "", 17 | "license": "ISC", 18 | "dependencies": { 19 | "fs-extra": "^7.0.0", 20 | "globby": "2.1.0", 21 | "gulp": "^4.0.0", 22 | "html-minifier": "^3.5.21", 23 | "json-beautifully": "^1.0.3", 24 | "jszip": "^3.1.5", 25 | "protobufjs": "^6.8.8", 26 | "uglify-es": "^3.3.9" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /auto/packagePluginUtil.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | test() { 4 | console.log('hello package!'); 5 | } 6 | 7 | }; -------------------------------------------------------------------------------- /auto/proto/test.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package proto; 3 | 4 | 5 | message Test{ 6 | int32 id = 1;//活动ID 7 | string name = 2;//名字 8 | } -------------------------------------------------------------------------------- /auto/res/assets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/auto/res/assets.png -------------------------------------------------------------------------------- /auto/res/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/auto/res/package.png -------------------------------------------------------------------------------- /auto/test-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name":"test-plugin", 3 | "version":"0.0.1", 4 | "description":"test-plugin", 5 | "author":"xuyanfeng", 6 | "main":"main.js", 7 | "main-menu":{ 8 | "TEST/初始化面板":{ 9 | "message":"test-plugin:init-panel" 10 | }, 11 | "TEST/测试面板":{ 12 | "del": true, 13 | "message":"test-plugin:open-test" 14 | } 15 | }, 16 | "panel":{ 17 | "main":"panel/index.js", 18 | "type":"dockable", 19 | "title":"主界面", 20 | "width":400, 21 | "height":300 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /build-templates/web-mobile/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/build-templates/web-mobile/splash.png -------------------------------------------------------------------------------- /doc/4399原创平台SDK/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/4399原创平台SDK/icon.png -------------------------------------------------------------------------------- /doc/4399原创平台SDK/scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/4399原创平台SDK/scene.png -------------------------------------------------------------------------------- /doc/4399原创平台SDK/参数.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/4399原创平台SDK/参数.png -------------------------------------------------------------------------------- /doc/7niu/1ace0297.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/7niu/1ace0297.png -------------------------------------------------------------------------------- /doc/7niu/22688144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/7niu/22688144.png -------------------------------------------------------------------------------- /doc/7niu/422bc03b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/7niu/422bc03b.png -------------------------------------------------------------------------------- /doc/7niu/566c44c0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/7niu/566c44c0.png -------------------------------------------------------------------------------- /doc/7niu/b6b70c10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/7niu/b6b70c10.png -------------------------------------------------------------------------------- /doc/7niu/f13ec681.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/7niu/f13ec681.png -------------------------------------------------------------------------------- /doc/CreatorInspector/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/icon.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/install/1.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/install/2.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/install/3.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/install/4.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/install/5.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/install/6.png -------------------------------------------------------------------------------- /doc/CreatorInspector/install/README.md: -------------------------------------------------------------------------------- 1 | # 重要说明 2 | 安装cc_inspector插件前请您先查看下自己chrome浏览器的版本,在帮助》关于中查看版本, 3 | - 如您的浏览器版本大于或等于63.x.x.x请使用开发者安装模式 4 | - 如小于63.x.x.x您可以使用普通安装模式。 5 | 6 | ## 1.开发者安装模式(推荐) 7 | * 打开Chrome,转到Chrome扩展工具页 (可以直接输入chrome://extensions/ 打开)。 8 | * 先把开发者模式打开。 9 |  ![image](3.png) 10 | * 解压后你会发现*.crx文件,这个是chrome的插件安装文件,需要将*.crx修改为*.zip,然后再次解压. 11 | * 点击加载已解压的扩展程序,点击弹出浏览文件夹,选择刚刚解压出来的文件夹。 12 | ![image](4.png) 13 | * 点击确定安装,安装完成的状态: 14 |  ![image](2.png) 15 | * 如果没有安装成功,或者遇到任何安装困难,我感觉你需要阅读一下这篇文档: [chrome怎么安装非官方插件](https://www.jianshu.com/p/438e15fec81b) 16 | 17 | ## 2.普通安装模式 18 | 19 | * 注意您的chrome浏览器一定要小于63.x.x.x版本才可以使用。 20 | * 把下载的crx文件直接拖动到Chrome的扩展工具窗口中 21 | ![image](1.png) 22 | * 点击确定安装 23 | * 安装完成的状态: 24 | ![image](2.png) 25 | * 如果是这样,原因是因为你的chrome版本过高导致,为了防止扩展程式被病毒木马或恶意软件修改,Chrome的扩展程序安全验证机制, 会比对本地扩展和Chrome商店中的扩展是否一致,如不匹配就会出现这个错误。 26 | ![](5.png) 27 | ![](6.png) 28 | * 碰到上述情况,请使用 **开发者安装模式** ,如果对插件的安全性存在疑问,请自行阅读源码,修改打包即可! 29 | 30 | > 为保证工具可用,请重新启动浏览器 31 | -------------------------------------------------------------------------------- /doc/CreatorInspector/package/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/package/1.png -------------------------------------------------------------------------------- /doc/CreatorInspector/package/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/package/2.png -------------------------------------------------------------------------------- /doc/CreatorInspector/package/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/package/3.png -------------------------------------------------------------------------------- /doc/CreatorInspector/package/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/package/4.png -------------------------------------------------------------------------------- /doc/CreatorInspector/package/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/package/5.gif -------------------------------------------------------------------------------- /doc/CreatorInspector/scene1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/scene1.png -------------------------------------------------------------------------------- /doc/CreatorInspector/scene2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/scene2.png -------------------------------------------------------------------------------- /doc/CreatorInspector/scene3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/scene3.png -------------------------------------------------------------------------------- /doc/CreatorInspector/scenePreview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/scenePreview.png -------------------------------------------------------------------------------- /doc/CreatorInspector/showHideNode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/CreatorInspector/showHideNode.gif -------------------------------------------------------------------------------- /doc/bitmap-font/bug1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bitmap-font/bug1.png -------------------------------------------------------------------------------- /doc/bitmap-font/gen1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bitmap-font/gen1.gif -------------------------------------------------------------------------------- /doc/bitmap-font/gen2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bitmap-font/gen2.gif -------------------------------------------------------------------------------- /doc/bitmap-font/install-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bitmap-font/install-example.png -------------------------------------------------------------------------------- /doc/bitmap-font/scene2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bitmap-font/scene2.png -------------------------------------------------------------------------------- /doc/bugly/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bugly/icon.png -------------------------------------------------------------------------------- /doc/bugly/scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/bugly/scene.png -------------------------------------------------------------------------------- /doc/canvasToImage.js: -------------------------------------------------------------------------------- 1 | var canvas = document.getElementById("GameCanvas"); 2 | var strDataURI = canvas.toDataURL("png"); 3 | 4 | var saveFile = function(data, filename){ 5 | var save_link = document.createElementNS('http://www.w3.org/1999/xhtml', 'a'); 6 | save_link.href = data; 7 | save_link.download = filename; 8 | 9 | var event = document.createEvent('MouseEvents'); 10 | event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); 11 | save_link.dispatchEvent(event); 12 | }; 13 | saveFile(strDataURI,"scene1.png"); 14 | -------------------------------------------------------------------------------- /doc/cc-inspector-v2/0f4cc827.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/0f4cc827.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/111.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/1e964faf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/1e964faf.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/2b42a3f2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/2b42a3f2.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/bd67c8f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/bd67c8f1.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/icon.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/issue.md: -------------------------------------------------------------------------------- 1 | # cc-inspector+插件异常说明 2 | 3 | ## 构建过程中,提示不支持加密 4 | 在构建选项里面选择**加密脚本**功能,就会导致该问题 5 | 6 | 要剔除插件脚本,就需要修改src/settings.js,而creator在加密过程前后,均为暴露相关接口,所以无法对settings.js作出修改 7 | 8 | 目前给出的解决方案为,手动移除插件,再次进行构建即可 9 | 10 | ## 构建过程中,提示剔除插件脚本发生错误 11 | 要剔除插件脚本,就需要修改src/settings.js,如果构建后,没有发现构建目录中包含该文件,那么就会产生该错误! 12 | 13 | 目前给出的解决方案为,仔细排查构建后的项目文件,如果还是不行,请联系插件作者,如果急需解决,手动移除插件,再次进行构建即可 14 | 15 | ## 如何移除插件 16 | ### 全局安装 17 | #### Mac 18 | 找到路径/Users/xxx/.CocosCreator/packages,这个目录保存了你安装的所有全局插件,删除对应的文件夹就好了。 19 | #### Windows 20 | 在C盘用户目录下也有这个文件夹,C:/用户/xxx/.CocosCreator/packages,也是删除插件对应的文件夹。 21 | 22 | 注意:.CocosCreator文件夹默认是隐藏的 23 | 24 | ### 项目安装 25 | 找到 项目目录/packages/cc-inspector, 删除cc-inspector文件夹即可 26 | 27 | -------------------------------------------------------------------------------- /doc/cc-inspector-v2/scene1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/scene1.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/timg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/timg.gif -------------------------------------------------------------------------------- /doc/cc-inspector-v2/timg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/timg.jpg -------------------------------------------------------------------------------- /doc/cc-inspector-v2/use.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/use.gif -------------------------------------------------------------------------------- /doc/cc-inspector-v2/提交资料/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/提交资料/icon.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/提交资料/inspector+.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/提交资料/inspector+.psd -------------------------------------------------------------------------------- /doc/cc-inspector-v2/提交资料/scene1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/提交资料/scene1.png -------------------------------------------------------------------------------- /doc/cc-inspector-v2/提交资料/scene2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cc-inspector-v2/提交资料/scene2.png -------------------------------------------------------------------------------- /doc/cocos2dx 如何切换横竖屏幕.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/cocos2dx 如何切换横竖屏幕.pdf -------------------------------------------------------------------------------- /doc/excel-killer/1/Fruit.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/1/Fruit.xlsx -------------------------------------------------------------------------------- /doc/excel-killer/1/Test.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/1/Test.xlsx -------------------------------------------------------------------------------- /doc/excel-killer/1/ada.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/1/ada.xlsx -------------------------------------------------------------------------------- /doc/excel-killer/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/icon.png -------------------------------------------------------------------------------- /doc/excel-killer/icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/icon.psd -------------------------------------------------------------------------------- /doc/excel-killer/scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/scene.png -------------------------------------------------------------------------------- /doc/excel-killer/scene.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/scene.psd -------------------------------------------------------------------------------- /doc/excel-killer/scene_happy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/scene_happy.png -------------------------------------------------------------------------------- /doc/excel-killer/test.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/excel-killer/test.xlsx -------------------------------------------------------------------------------- /doc/installPlugin.md: -------------------------------------------------------------------------------- 1 | # 如何安装插件 2 | ## creator项目是严格遵守以下目录的 3 | - xx项目 4 | - assets 5 | - library 6 | - local 7 | - settings 8 | - temp 9 | - packages 10 | - AA插件 11 | - main.js 12 | - package.json 13 | - BB插件 14 | - main.js 15 | - package.json 16 | 17 | 18 | ## 插件目录 19 | 从目录中可以观察出插件的目录结构为: 20 | - AA插件 21 | - main.js 22 | - package.json 23 | 24 | 以上为最小的插件单元,所以,手动拷贝第三方creator插件,你你需要按照以上目录结构放置即可,例如 25 | ![](bitmap-font/install-example.png) 26 | 27 | ## 常见问题 28 | - 如果出现插件未正常加载的情况,重启一下creator一般都能解决。 29 | -------------------------------------------------------------------------------- /doc/plist盗图工具/haha.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/plist盗图工具/haha.jpg -------------------------------------------------------------------------------- /doc/res-Compress/code/ReadMe.md: -------------------------------------------------------------------------------- 1 | 2 | * 确保你已经安装了lame解码器 https://jaist.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz 或者../_install下面有完整包 3 | 4 | > 安装方法 5 | Run the following commands: 6 | 7 | % ./configure 8 | % make 9 | % make install 10 | 测试:lame,如果有版本号输出说明安装正确。 11 | 12 | * 执行 node toMp3Andcompress.js {dir} ,这样{dir}下面的所有wav格式音频都会被转成mp3格式并被压缩一次,可以根据自己需求修改脚本 -------------------------------------------------------------------------------- /doc/res-Compress/mac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/mac.png -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/README.md: -------------------------------------------------------------------------------- 1 | # pngquant 2 | 3 | 官方网站: https://pngquant.org/ 4 | 5 | 开源仓库:https://github.com/kornelski/pngquant 6 | 7 | 时间:2020/05/20 8 | Github最新Tag版本2.12.6 9 | Github最新Release版本2.12.1 10 | 官方网站下载到的版本:2.12.5 11 | 12 | 插件商店使用的版本:2.11.7 13 | -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-2.7.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/pngquant版本/pngquant-2.7.1.tar.gz -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-mac.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/pngquant版本/pngquant-mac.tar.bz2 -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-mac/pngquant: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/pngquant版本/pngquant-mac/pngquant -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-mac/pngquant-openmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/pngquant版本/pngquant-mac/pngquant-openmp -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-windows.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/pngquant版本/pngquant-windows.zip -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-windows/Drag PNG here to reduce palette automatically.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | set path=%~d0%~p0 4 | 5 | :start 6 | 7 | "%path%pngquant.exe" --force --verbose --quality=45-85 %1 8 | "%path%pngquant.exe" --force --verbose --ordered --speed=1 --quality=50-90 %1 9 | 10 | shift 11 | if NOT x%1==x goto start 12 | -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-windows/Drag PNG here to reduce palette to 256.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | set path=%~d0%~p0 4 | 5 | :start 6 | 7 | "%path%pngquant.exe" --force --verbose 256 %1 8 | 9 | shift 10 | if NOT x%1==x goto start 11 | -------------------------------------------------------------------------------- /doc/res-Compress/pngquant版本/pngquant-windows/pngquant.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/pngquant版本/pngquant-windows/pngquant.exe -------------------------------------------------------------------------------- /doc/res-Compress/test-compress.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/test-compress.jpg -------------------------------------------------------------------------------- /doc/res-Compress/test-compress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/test-compress.png -------------------------------------------------------------------------------- /doc/res-Compress/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/test.jpg -------------------------------------------------------------------------------- /doc/res-Compress/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/test.png -------------------------------------------------------------------------------- /doc/res-Compress/testcase-compress.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/testcase-compress.mp3 -------------------------------------------------------------------------------- /doc/res-Compress/testcase.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/testcase.mp3 -------------------------------------------------------------------------------- /doc/res-Compress/testcase.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/testcase.wav -------------------------------------------------------------------------------- /doc/res-Compress/提交内容/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/提交内容/icon.png -------------------------------------------------------------------------------- /doc/res-Compress/提交内容/scene1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/提交内容/scene1.jpg -------------------------------------------------------------------------------- /doc/res-Compress/插件使用.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/res-Compress/插件使用.gif -------------------------------------------------------------------------------- /doc/ttf/README.md: -------------------------------------------------------------------------------- 1 | # 字体瘦身插件 2 | ## 插件说明 3 | 提供一份需要保留的字符文件,插件可以剔除字体文件中多余的字符,以达到减小ttf文件大小的目的. 4 | ![](index.png) 5 | ## 插件使用 6 | - 选择要瘦身的**字体.ttf**文件路径 7 | - 选择新生成的**ttf字体文件**保存路径 8 | - 拖拽文件或者文件夹到 **文件列表** 下边的区域,插件能够自动检测所有文件 9 | - 插件本身自带了**常用推荐字**,可以勾选**使用推荐字**即可,[推荐字](SuggestString.txt)里面包含了常用的中英文 10 | - 点击**生成**根据文件列表中的文件,插件会检索出所有不重复的字符,这些字符就是新生成的字体文件中的字符 11 | ## 其他说明 12 | - 关于char.txt 13 | - 在设置的字体保存路径下,会生成一个char.txt的文件,里面的字符和ttf文件内的字符是匹配一致的. 14 | 15 | - 我想自定义字符瘦身ttf字体怎么办? 16 | - 例如你想保留ttf字体文件中的所有数字,那么你需要创建一份[配置文件](num.txt),里面包含了"0.123456789",然后将该配置加入列表中 17 | 18 | - ![](example1.png) 19 | 20 | - 点击生成,即可仅仅保留ttf字体中的所有数字 21 | 22 | ## 关于 23 | 使用过程中有任何疑问,欢迎反馈,QQ群 224756137 24 | 25 | -------------------------------------------------------------------------------- /doc/ttf/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/ttf/example1.png -------------------------------------------------------------------------------- /doc/ttf/index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/ttf/index.png -------------------------------------------------------------------------------- /doc/ttf/num.txt: -------------------------------------------------------------------------------- 1 | 0.123456789 -------------------------------------------------------------------------------- /doc/图标替换/icon512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/图标替换/icon512.png -------------------------------------------------------------------------------- /doc/热更新/desc/issue1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/desc/issue1.png -------------------------------------------------------------------------------- /doc/热更新/desc/issue2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/desc/issue2.png -------------------------------------------------------------------------------- /doc/热更新/desc/issue3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/desc/issue3.png -------------------------------------------------------------------------------- /doc/热更新/desc/热更新工作原理.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/desc/热更新工作原理.png -------------------------------------------------------------------------------- /doc/热更新/hot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/hot1.png -------------------------------------------------------------------------------- /doc/热更新/hot21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/hot21.png -------------------------------------------------------------------------------- /doc/热更新/hot22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/hot22.png -------------------------------------------------------------------------------- /doc/热更新/hot31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/hot31.png -------------------------------------------------------------------------------- /doc/热更新/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/doc/热更新/icon.png -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "experimentalDecorators": true 6 | }, 7 | "exclude": [ 8 | "node_modules", 9 | ".vscode", 10 | "library", 11 | "local", 12 | "settings", 13 | "temp" 14 | ] 15 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cocoscreatorplugins", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "directories": { 7 | "doc": "doc" 8 | }, 9 | "dependencies": { 10 | }, 11 | "devDependencies": {}, 12 | "scripts": { 13 | "test": "echo \"Error: no test specified\" && exit 1" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/tidys/CocosCreatorPlugins.git" 18 | }, 19 | "author": "", 20 | "license": "ISC", 21 | "bugs": { 22 | "url": "https://github.com/tidys/CocosCreatorPlugins/issues" 23 | }, 24 | "homepage": "https://github.com/tidys/CocosCreatorPlugins#readme" 25 | } 26 | -------------------------------------------------------------------------------- /packages/amazing-ui/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('amazing-ui'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('amazing-ui', 'amazing-ui:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/amazing-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amazing-ui", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/amazing-ui/open": { 9 | "message": "amazing-ui:open" 10 | }, 11 | "i18n:MAIN_MENU.package.title/amazing-ui/hello": { 12 | "message": "amazing-ui:say-hello" 13 | } 14 | }, 15 | "panel": { 16 | "main": "panel/index.js", 17 | "type": "dockable", 18 | "title": "amazing-ui", 19 | "width": 400, 20 | "height": 300 21 | }, 22 | "dependencies": { 23 | "@types/node": "^12.6.8", 24 | "rete": "^1.4.1-rc.1", 25 | "rete-connection-plugin": "^0.8.1", 26 | "rete-vue-render-plugin": "^0.4.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/amazing-ui/panel/index.css: -------------------------------------------------------------------------------- 1 | 2 | :host { margin: 5px; } 3 | h2 { color: #f90; } -------------------------------------------------------------------------------- /packages/amazing-ui/panel/index.html: -------------------------------------------------------------------------------- 1 |
2 | rete 3 |
-------------------------------------------------------------------------------- /packages/amazing-ui/panel/index.js: -------------------------------------------------------------------------------- 1 | const Fs = require('fs'); 2 | const Path = require('path'); 3 | Editor.Panel.extend({ 4 | style: Fs.readFileSync(Editor.url('packages://amazing-ui/panel/index.css'), 'utf-8'), 5 | template: Fs.readFileSync(Editor.url('packages://amazing-ui/panel/index.html'), 'utf-8'), 6 | 7 | $: {}, 8 | 9 | ready () { 10 | let plugin = new Vue({ 11 | el: this.shadowRoot, 12 | created () { 13 | this._initPlugin(); 14 | }, 15 | data: {}, 16 | methods: { 17 | _initPlugin () { 18 | 19 | }, 20 | onBtnClickRete () { 21 | debugger; 22 | let rete = Editor.require('packages://amazing-ui/node_modules/rete'); 23 | 24 | } 25 | } 26 | 27 | }); 28 | }, 29 | 30 | messages: {} 31 | }); -------------------------------------------------------------------------------- /packages/bezier/README.md: -------------------------------------------------------------------------------- 1 | # 贝塞尔编辑工具 2 | ## 说明 3 | 目前仅仅有了一个简单的思路,还没有完善,具体演示[参考代码](../../assets/module/bezier) -------------------------------------------------------------------------------- /packages/bezier/inspector.js: -------------------------------------------------------------------------------- 1 | Vue.component('bezier-editor-inspector', { 2 | template: ` 3 | 4 | 5 | 6 | `, 7 | 8 | props: { 9 | target: { 10 | twoWay: true, 11 | type: Object, 12 | }, 13 | }, 14 | }); 15 | -------------------------------------------------------------------------------- /packages/bezier/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('bezier'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('bezier', 'bezier:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/bezier/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bezier", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/bezier/open": { 9 | "message": "bezier:open" 10 | }, 11 | "i18n:MAIN_MENU.package.title/bezier/hello": { 12 | "message": "bezier:say-hello" 13 | } 14 | }, 15 | "panel": { 16 | "main": "panel/index.js", 17 | "type": "dockable", 18 | "title": "bezier", 19 | "width": 400, 20 | "height": 300 21 | } 22 | } -------------------------------------------------------------------------------- /packages/bezier/panel/index.js: -------------------------------------------------------------------------------- 1 | // panel/index.js, this filename needs to match the one registered in package.json 2 | Editor.Panel.extend({ 3 | // css style for panel 4 | style: ` 5 | :host { margin: 5px; } 6 | h2 { color: #f90; } 7 | `, 8 | 9 | // html template for panel 10 | template: ` 11 |

bezier

12 |
13 |
State: --
14 |
15 | Send To Main 16 | `, 17 | 18 | // element and variable binding 19 | $: { 20 | btn: '#btn', 21 | label: '#label', 22 | }, 23 | 24 | // method executed when template and styles are successfully loaded and initialized 25 | ready () { 26 | this.$btn.addEventListener('confirm', () => { 27 | Editor.Ipc.sendToMain('bezier:clicked'); 28 | }); 29 | }, 30 | 31 | // register your ipc messages here 32 | messages: { 33 | 'bezier:hello' (event) { 34 | this.$label.innerText = 'Hello!'; 35 | } 36 | } 37 | }); -------------------------------------------------------------------------------- /packages/creator-chat-room/README.md: -------------------------------------------------------------------------------- 1 | # 说明 2 | creator聊天插件,方便开发者在线吹水,嘿嘿 3 | 4 | # 技术支持 5 | - 野狗 wilddog -------------------------------------------------------------------------------- /packages/creator-chat-room/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('creator-chat-room'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('creator-chat-room', 'creator-chat-room:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/creator-chat-room/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "creator-chat-room", 3 | "version": "0.0.1", 4 | "description": "creator chat room", 5 | "author": "xu_yanfeng", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/creator-chat-room": { 9 | "message": "creator-chat-room:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/index.js", 14 | "type": "dockable", 15 | "title": "creator-chat-room", 16 | "width": 400, 17 | "height": 300 18 | }, 19 | "dependencies": { 20 | "wilddog": "^2.5.17" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/creator-chat-room/panel/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/creator-chat-room/panel/index.css -------------------------------------------------------------------------------- /packages/creator-chat-room/panel/index.html: -------------------------------------------------------------------------------- 1 |

{{word}}

2 | 3 | test -------------------------------------------------------------------------------- /packages/creator-chat-room/test.css: -------------------------------------------------------------------------------- 1 | button { 2 | font-family: Calibri; 3 | } 4 | 5 | h1 { 6 | position: relative; 7 | left: 10px; 8 | top: 0px; 9 | margin: 0; 10 | padding: 0; 11 | } 12 | 13 | p { 14 | float: right; 15 | } 16 | 17 | h2 { 18 | background-color: gray; 19 | /*padding: 20px 15px 10px 5px;*/ 20 | border-style: outset; 21 | /*border-left-style:dashed;*/ 22 | border-width: 1px; 23 | margin: 0; 24 | padding: 0; 25 | } 26 | 27 | body { 28 | background-image: url("timg.jpg"); 29 | background-repeat: no-repeat; 30 | background-position: center; 31 | } -------------------------------------------------------------------------------- /packages/creator-chat-room/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | 7 | 8 | 9 | 10 |

chat

11 |

test

12 |

test

13 |

test

14 |

h1

15 |

h2

16 |

h3

17 |

h4

18 |

h5

19 |

h6 20 |

21 |

h7

22 |

h8

23 |

h9

24 |

h10

25 |

h11

26 |

h12

27 |

h13

28 |

h14

29 |

h15

30 |

h16

31 |

h17

32 |

h18

33 |

h19

34 |

h20

35 |

h21

36 |

h22

37 |

h23

38 |

h24

39 |

h25

40 |

h26

41 |

h27

42 |

h28

43 |

h29

44 |

h30

45 |

h31

46 |

h32

47 |

h33

48 |

h34

49 |

h35

50 |

h36

51 |

h37

52 |

h38

53 |

h39

54 | 55 | 56 | -------------------------------------------------------------------------------- /packages/creator-chat-room/timg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/creator-chat-room/timg.jpg -------------------------------------------------------------------------------- /packages/excel-killer/core/excel.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; -------------------------------------------------------------------------------- /packages/excel-killer/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('excel-killer'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('excel-killer', 'excel-killer:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/excel-killer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "excel-killer", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/excel-killer": { 9 | "accelerator": "CmdOrCtrl+Shift+j", 10 | "message": "excel-killer:open" 11 | } 12 | }, 13 | "panel": { 14 | "main": "panel/index.js", 15 | "type": "dockable", 16 | "title": "excel-killer", 17 | "width": 500, 18 | "height": 800, 19 | "min-height": 200, 20 | "min-width": 500 21 | }, 22 | "engines": { 23 | "node": "~8.4.0", 24 | "npm": "~5.5.1" 25 | }, 26 | "dependencies": { 27 | "chokidar": "~2.0.2", 28 | "fs-extra": "^5.0.0", 29 | "node-xlsx": "~0.11.2", 30 | "uglify-js": "~3.3.14", 31 | "upath": "~1.0.4" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/excel-killer/panel/index.css: -------------------------------------------------------------------------------- 1 | 2 | h2 { 3 | color: #11ff00; 4 | } 5 | 6 | .greenColor { 7 | color: #11ff00; 8 | } 9 | 10 | :host { 11 | display: flex; 12 | flex-direction: column; 13 | } 14 | 15 | h3 { 16 | margin-top: 0; 17 | margin-bottom: 10px; 18 | } 19 | 20 | .toolbar { 21 | display: flex; 22 | flex-direction: row; 23 | align-items: center; 24 | 25 | padding: 10px; 26 | } 27 | 28 | .excelBoard { 29 | margin-left: 15px; 30 | margin-right: 18px; 31 | } 32 | 33 | #view-root { 34 | flex: 1; 35 | 36 | padding: 10px; 37 | padding-top: 0px; 38 | 39 | overflow-y: auto; 40 | overflow-x: hidden; 41 | } 42 | 43 | #view { 44 | flex: 1; 45 | 46 | padding: 10px; 47 | padding-top: 0px; 48 | 49 | overflow-y: auto; 50 | overflow-x: hidden; 51 | } 52 | 53 | div.section { 54 | border-bottom: 1px solid #666; 55 | padding-bottom: 10px; 56 | margin-bottom: 10px; 57 | margin-right: 0px; 58 | } 59 | 60 | div.section:last-child { 61 | border-bottom: 0px; 62 | } 63 | 64 | div.group { 65 | min-width: 420px; 66 | margin-bottom: 5px; 67 | 68 | display: flex; 69 | flex-direction: row; 70 | align-items: center; 71 | flex-wrap: wrap; 72 | } 73 | 74 | span { 75 | margin-right: 0.25em; 76 | } 77 | 78 | .log { 79 | width: 100%; 80 | height: 150px; 81 | background: #252525; 82 | color: #fd942b; 83 | border-color: #fd942b; 84 | } 85 | 86 | -------------------------------------------------------------------------------- /packages/excel-killer/panel/item/excelItem.html: -------------------------------------------------------------------------------- 1 |
7 |
8 | 10 | {{index+1}} 11 | 12 |
13 |
{{data.name}}
14 |
{{data.sheet}}
15 |
16 |
-------------------------------------------------------------------------------- /packages/excel-killer/panel/item/excelItem.js: -------------------------------------------------------------------------------- 1 | let fs = require('fire-fs'); 2 | let packageName = "excel-killer"; 3 | 4 | module.exports = { 5 | init() { 6 | console.log("excel-item 注册组件!"); 7 | Vue.component('excel-item', { 8 | props: ['data', 'index'], 9 | template: fs.readFileSync(Editor.url('packages://' + packageName + '/panel/item/excelItem.html', 'utf8')) + "", 10 | created() { 11 | 12 | }, 13 | methods: { 14 | onBtnClickUse() { 15 | this.data.isUse=!this.data.isUse; 16 | console.log("on use: " + this.data.isUse); 17 | 18 | } 19 | }, 20 | computed: {}, 21 | }); 22 | } 23 | }; -------------------------------------------------------------------------------- /packages/foobar/inspector.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: #ff342e; 3 | } -------------------------------------------------------------------------------- /packages/foobar/inspector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | test 6 |

********************

-------------------------------------------------------------------------------- /packages/foobar/inspector.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | let packageName = "foobar"; 3 | let fs = require("fire-fs"); 4 | let path = require('fire-path'); 5 | 6 | 7 | Vue.component('foobar-inspector', { 8 | style: fs.readFileSync(Editor.url('packages://' + packageName + '/inspector.css'), 'utf8') + "", 9 | template: fs.readFileSync(Editor.url('packages://' + packageName + '/inspector.html'), 'utf8') + "", 10 | 11 | props: { 12 | target: { 13 | twoWay: true, 14 | type: Object, 15 | } 16 | }, 17 | methods: { 18 | onBtnClickTest() { 19 | Editor.log('test'); 20 | } 21 | } 22 | }); -------------------------------------------------------------------------------- /packages/foobar/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('foobar'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('foobar', 'foobar:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/foobar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foobar", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/foobar/open": { 9 | "message": "foobar:open" 10 | }, 11 | "i18n:MAIN_MENU.package.title/foobar/hello": { 12 | "message": "foobar:say-hello" 13 | } 14 | }, 15 | "panel": { 16 | "main": "panel/index.js", 17 | "type": "dockable", 18 | "title": "foobar", 19 | "width": 400, 20 | "height": 300 21 | } 22 | } -------------------------------------------------------------------------------- /packages/foobar/panel/index.js: -------------------------------------------------------------------------------- 1 | // panel/index.js, this filename needs to match the one registered in package.json 2 | Editor.Panel.extend({ 3 | // css style for panel 4 | style: ` 5 | :host { margin: 5px; } 6 | h2 { color: #f90; } 7 | `, 8 | 9 | // html template for panel 10 | template: ` 11 |

foobar

12 |
13 |
State: --
14 |
15 | Send To Main 16 | `, 17 | 18 | // element and variable binding 19 | $: { 20 | btn: '#btn', 21 | label: '#label', 22 | }, 23 | 24 | // method executed when template and styles are successfully loaded and initialized 25 | ready () { 26 | this.$btn.addEventListener('confirm', () => { 27 | Editor.Ipc.sendToMain('foobar:clicked'); 28 | }); 29 | }, 30 | 31 | // register your ipc messages here 32 | messages: { 33 | 'foobar:hello' (event) { 34 | this.$label.innerText = 'Hello!'; 35 | } 36 | } 37 | }); -------------------------------------------------------------------------------- /packages/plugin-4399-web-js-sdk/i18n/en.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | title:'4399WebJSSdkPlugin', 3 | }; -------------------------------------------------------------------------------- /packages/plugin-4399-web-js-sdk/i18n/zh.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | title:'4399WebSdk插件', 3 | } -------------------------------------------------------------------------------- /packages/plugin-4399-web-js-sdk/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load() { 5 | }, 6 | 7 | unload() { 8 | }, 9 | 10 | messages: { 11 | 'open'() { 12 | // open entry panel registered in package.json 13 | Editor.Panel.open('plugin-4399-web-js-sdk'); 14 | }, 15 | 'say-hello'() { 16 | Editor.log('Hello World!'); 17 | // send ipc message to panel 18 | }, 19 | 'clicked'() { 20 | Editor.log('Button clicked!'); 21 | }, 22 | 'editor:build-finished': function (event, target) { 23 | Editor.Ipc.sendToPanel('plugin-4399-web-js-sdk', 'plugin-4399-web-js-sdk:onBuildFinished'); 24 | } 25 | }, 26 | }; -------------------------------------------------------------------------------- /packages/plugin-4399-web-js-sdk/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "plugin-4399-web-js-sdk", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/i18n:plugin-4399-web-js-sdk.title": { 9 | "message": "plugin-4399-web-js-sdk:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/index.js", 14 | "type": "dockable", 15 | "title": "plugin-4399-web-js-sdk", 16 | "width": 400, 17 | "height": 360, 18 | "max-height":360, 19 | "min-height":360 20 | } 21 | } -------------------------------------------------------------------------------- /packages/plugin-4399-web-js-sdk/panel/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-4399-web-js-sdk/panel/index.css -------------------------------------------------------------------------------- /packages/plugin-bugly/README.md: -------------------------------------------------------------------------------- 1 | # 说明 2 | 更详细的文档请参考: http://forum.cocos.com/t/bugly/52947 3 | -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/bugly/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := bugly_crashreport_cocos_static 6 | 7 | LOCAL_MODULE_FILENAME := libcrashreport 8 | 9 | LOCAL_CPP_EXTENSION := .mm .cpp .cc 10 | LOCAL_CFLAGS += -x c++ 11 | 12 | LOCAL_SRC_FILES := CrashReport.mm 13 | 14 | LOCAL_C_INCLUDES := $(LOCAL_PATH)\ 15 | $(LOCAL_PATH)/../ \ 16 | $(LOCAL_PATH)/../../ \ 17 | $(LOCAL_PATH)/../../cocos/base \ 18 | $(LOCAL_PATH)/../../cocos \ 19 | $(LOCAL_PATH)/../../cocos/2d \ 20 | $(LOCAL_PATH)/../../cocos/2d/platform/android \ 21 | $(LOCAL_PATH)/../../cocos/platform/android \ 22 | $(LOCAL_PATH)/../../cocos/math/kazmath \ 23 | $(LOCAL_PATH)/../../cocos/physics \ 24 | $(LOCAL_PATH)/../../cocos2dx \ 25 | $(LOCAL_PATH)/../../cocos2dx/include \ 26 | $(LOCAL_PATH)/../../cocos2dx/platform/android \ 27 | $(LOCAL_PATH)/../../cocos2dx/kazmath/include \ 28 | $(LOCAL_PATH)/../../external 29 | 30 | include $(BUILD_STATIC_LIBRARY) -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/bugly/js/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := bugly_agent_cocos_static_js 6 | 7 | LOCAL_MODULE_FILENAME := libbuglyagentjs 8 | 9 | LOCAL_SRC_FILES := BuglyJSAgent.cpp 10 | 11 | LOCAL_CPPFLAGS := -D__STDC_LIMIT_MACROS=1 -Wno-invalid-offsetof 12 | 13 | LOCAL_C_INCLUDES := $(LOCAL_PATH)\ 14 | $(LOCAL_PATH)/../ \ 15 | $(LOCAL_PATH)/../../ \ 16 | $(LOCAL_PATH)/../../../ \ 17 | $(LOCAL_PATH)/../../../cocos \ 18 | $(LOCAL_PATH)/../../../cocos/2d \ 19 | $(LOCAL_PATH)/../../../cocos/base \ 20 | $(LOCAL_PATH)/../../../cocos/2d/platform/android \ 21 | $(LOCAL_PATH)/../../../cocos/platform/android \ 22 | $(LOCAL_PATH)/../../../cocos/scripting/js-bindings/manual \ 23 | $(LOCAL_PATH)/../../../external/spidermonkey/include/android \ 24 | $(LOCAL_PATH)/../../../cocos/math/kazmath \ 25 | $(LOCAL_PATH)/../../../cocos/physics \ 26 | $(LOCAL_PATH)/../../../cocos2dx \ 27 | $(LOCAL_PATH)/../../../cocos2dx/include \ 28 | $(LOCAL_PATH)/../../../cocos2dx/platform/android \ 29 | $(LOCAL_PATH)/../../../cocos2dx/kazmath/include \ 30 | $(LOCAL_PATH)/../../../scripting/javascript/binding \ 31 | $(LOCAL_PATH)/../../../scripting/javascript/spidermonkey-android/include \ 32 | 33 | 34 | include $(BUILD_STATIC_LIBRARY) -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/bugly/js/BuglyJSAgent.h: -------------------------------------------------------------------------------- 1 | // 2 | // BuglyJSAgent.h 3 | // Bugly 4 | // 5 | // Copyright © 2016年 Bugly. All rights reserved. 6 | // 7 | // 8 | 9 | #ifndef __BUGLY_JS_AGENT_H__ 10 | #define __BUGLY_JS_AGENT_H__ 11 | 12 | #include "cocos2d.h" 13 | #include "ScriptingCore.h" 14 | 15 | #if COCOS2D_VERSION >= 0x00030500 16 | #define BLYJSObject JS::HandleObject 17 | #else 18 | #define BLYJSObject JSObject* 19 | #endif 20 | 21 | class BuglyJSAgent { 22 | public: 23 | 24 | static void registerJSFunctions(JSContext *cx, BLYJSObject object); 25 | 26 | static void registerJSExceptionHandler(JSContext * cx); 27 | static void reportJSError(JSContext *cx, const char *message, JSErrorReport *report); 28 | 29 | /* define js function 'buglySetUserId' */ 30 | static bool setUserId(JSContext *cx, unsigned argc, JS::Value *vp); 31 | 32 | /* define js function 'buglySetTag' */ 33 | static bool setTag(JSContext *cx, unsigned argc, JS::Value *vp); 34 | 35 | /* define js function 'buglyAddUserValue' */ 36 | static bool addUserValue(JSContext *cx, unsigned argc, JS::Value *vp); 37 | 38 | /* define js function 'buglyLog' */ 39 | static bool printLog(JSContext *cx, unsigned argc, JS::Value *vp); 40 | }; 41 | 42 | #endif /* __BUGLY_JS_AGENT_H__ */ 43 | -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/bugly/lua/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := bugly_agent_cocos_static_lua 6 | 7 | LOCAL_MODULE_FILENAME := libbuglyagentlua 8 | 9 | LOCAL_SRC_FILES := BuglyLuaAgent.cpp 10 | 11 | # Maybe you need modify the head files according to the version of cocos engine be used 12 | # This head files Cocos/frameworks/cocos2d-x-3.6 13 | # 14 | LOCAL_C_INCLUDES := $(LOCAL_PATH)\ 15 | $(LOCAL_PATH)/../ \ 16 | $(LOCAL_PATH)/../../ \ 17 | $(LOCAL_PATH)/../../../ \ 18 | $(LOCAL_PATH)/../../../cocos \ 19 | $(LOCAL_PATH)/../../../cocos/base \ 20 | $(LOCAL_PATH)/../../../cocos/platform/android \ 21 | $(LOCAL_PATH)/../../../cocos/scripting/lua-bindings/manual \ 22 | $(LOCAL_PATH)/../../../cocos/math/kazmath \ 23 | $(LOCAL_PATH)/../../../cocos/physics \ 24 | $(LOCAL_PATH)/../../../external \ 25 | $(LOCAL_PATH)/../../../external/lua/luajit/include\ 26 | $(LOCAL_PATH)/../../../external/lua/tolua\ 27 | $(LOCAL_PATH)/../../../cocos2dx \ 28 | $(LOCAL_PATH)/../../../cocos2dx/include \ 29 | $(LOCAL_PATH)/../../../cocos2dx/platform/android \ 30 | $(LOCAL_PATH)/../../../cocos2dx/kazmath/include \ 31 | $(LOCAL_PATH)/../../../cocos/2d \ 32 | $(LOCAL_PATH)/../../../cocos/2d/platform/android \ 33 | $(LOCAL_PATH)/../../../scripting/lua/cocos2dx_support \ 34 | $(LOCAL_PATH)/../../../scripting/lua/lua \ 35 | $(LOCAL_PATH)/../../../scripting/lua/tolua \ 36 | 37 | 38 | include $(BUILD_STATIC_LIBRARY) -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/libs/bugly_agent.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/libs/bugly_agent.jar -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/libs/bugly_crash_release.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/libs/bugly_crash_release.jar -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/prebuilt/arm64-v8a/libBugly.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/prebuilt/arm64-v8a/libBugly.so -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/prebuilt/armeabi-v7a/libBugly.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/prebuilt/armeabi-v7a/libBugly.so -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/prebuilt/armeabi/libBugly.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/prebuilt/armeabi/libBugly.so -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/prebuilt/x86/libBugly.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/prebuilt/x86/libBugly.so -------------------------------------------------------------------------------- /packages/plugin-bugly/bugly/1.4.3/prebuilt/x86_64/libBugly.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/bugly/1.4.3/prebuilt/x86_64/libBugly.so -------------------------------------------------------------------------------- /packages/plugin-bugly/buglySymbolAndroid/buglySymbolAndroid.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/buglySymbolAndroid/buglySymbolAndroid.bat -------------------------------------------------------------------------------- /packages/plugin-bugly/buglySymbolAndroid/buglySymbolAndroid.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/buglySymbolAndroid/buglySymbolAndroid.jar -------------------------------------------------------------------------------- /packages/plugin-bugly/buglySymbolAndroid/settings.txt: -------------------------------------------------------------------------------- 1 | ****************************************** 2 | * Bugly 符号表工具配置文件 * 3 | * * 4 | * Debug 调试模式开关(打印更多Log) * 5 | * Upload 上传开关 * 6 | * ID Bugly平台的APP ID * 7 | * Key Bugly平台的APP key * 8 | * * 9 | ****************************************** 10 | Debug=false 11 | Upload=false 12 | ID= 13 | Key= 14 | -------------------------------------------------------------------------------- /packages/plugin-bugly/buglySymbolAndroid/符号表工具Android版-使用指南.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/plugin-bugly/buglySymbolAndroid/符号表工具Android版-使用指南.pdf -------------------------------------------------------------------------------- /packages/plugin-bugly/i18n/en.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | title:'Bugly Tools', 3 | }; -------------------------------------------------------------------------------- /packages/plugin-bugly/i18n/zh.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | title:'Bugly 工具', 3 | } -------------------------------------------------------------------------------- /packages/plugin-bugly/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "plugin-bugly", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/i18n:plugin-bugly.title": { 9 | "message": "plugin-bugly:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/index.js", 14 | "type": "dockable", 15 | "title": "plugin-bugly", 16 | "width": 400, 17 | "height": 780, 18 | "min-height": 780 19 | } 20 | } -------------------------------------------------------------------------------- /packages/plugin-bugly/panel/index.css: -------------------------------------------------------------------------------- 1 | :host { margin: 5px; } 2 | h2 { color: #f90; } -------------------------------------------------------------------------------- /packages/psd-convert-to-node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psd-convert-to-node", 3 | "version": "0.0.1", 4 | "description": "将有层级的psd文件挂载到同名场景中的节点下", 5 | "author": "xu_yanfeng", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/PSD2Node": { 9 | "message": "psd-convert-to-node:open-panel" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/index.js", 14 | "type": "dockable", 15 | "title": "PSD2Node", 16 | "width": 800, 17 | "height": 600 18 | }, 19 | "scene-script": "convert.js", 20 | "dependencies": { 21 | "@types/node": "^11.13.5", 22 | "@types/pngjs": "^3.3.2", 23 | "lodash": "^4.17.11", 24 | "math.gl": "^2.3.1", 25 | "pngjs": "^3.4.0" 26 | }, 27 | "scripts": { 28 | "test": "echo \"Error: no test specified\" && exit 1", 29 | "build": "tsc", 30 | "watch": "tsc -w" 31 | }, 32 | "devDependencies": { 33 | "prettier": "^1.17.0" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /packages/psd-convert-to-node/panel/index.css: -------------------------------------------------------------------------------- 1 | :host { 2 | margin: 5px; 3 | } 4 | 5 | h2 { 6 | color: #f90; 7 | } 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/psd-convert-to-node/panel/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 9 | 10 | ... 11 | 12 | 13 | 14 | 16 | 17 | 18 | ... 19 | 20 | 21 |
22 | 转换 23 |
24 |

注意:

25 |

・使用的字体文件,请手动存放到db://assets/resources/font/

26 |
27 |

・Png图片保存位置: db://assets/Texture/{{saveName}}

28 |

・生成的prefab保存位置db://assets/Prefab/{{saveName}}.prefab

29 |
30 |
31 | -------------------------------------------------------------------------------- /packages/qiniu/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load() { 5 | }, 6 | 7 | unload() { 8 | }, 9 | 10 | messages: { 11 | 'open'() { 12 | Editor.Panel.open('qiniu'); 13 | }, 14 | }, 15 | }; -------------------------------------------------------------------------------- /packages/qiniu/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "qiniu", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/7牛云存储": { 9 | "message": "qiniu:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel-7niu/index.js", 14 | "type": "dockable", 15 | "title": "qiniu", 16 | "width": 400, 17 | "height": 300, 18 | "min-height": 300 19 | }, 20 | "dependencies": { 21 | "qn": "^1.3.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/qiniu/panel-7niu/file-item.html: -------------------------------------------------------------------------------- 1 |
2 | {{data.key}} 3 |
4 | {{getFileSize()}} 5 |
6 |
-------------------------------------------------------------------------------- /packages/qiniu/panel-7niu/file-item.js: -------------------------------------------------------------------------------- 1 | const fs = require("fire-fs"); 2 | module.exports = function () { 3 | Vue.component('file-item', { 4 | template: fs.readFileSync(Editor.url('packages://qiniu/panel-7niu/file-item.html'),"utf-8"), 5 | props: ['data'], 6 | created() { 7 | this._dealFileInfo(); 8 | }, 9 | watch: { 10 | 'data'(value) { 11 | console.log(value); 12 | } 13 | }, 14 | data() { 15 | return { 16 | size: 0, 17 | }; 18 | }, 19 | methods: { 20 | _dealFileInfo() { 21 | 22 | }, 23 | getFileSize() { 24 | if (this.data) { 25 | let b = this.data.fsize / 1024; 26 | if (b < 1) { 27 | return (b * 1024).toFixed(2) + "b" 28 | } 29 | let m = b / 1024; 30 | if (m < 1) { 31 | return (m * 1024).toFixed(2) + "kb"; 32 | } 33 | return m.toFixed(2) + "M"; 34 | } 35 | } 36 | } 37 | }); 38 | }; -------------------------------------------------------------------------------- /packages/qiniu/panel-7niu/index.css: -------------------------------------------------------------------------------- 1 | .file-container { 2 | overflow-x: hidden; 3 | overflow-y: scroll; 4 | width: 100%; 5 | flex: 1; 6 | 7 | border-radius: 3px; 8 | border: 1px solid #666666; 9 | padding: 5px; 10 | background: #333333; 11 | box-sizing: border-box; 12 | box-shadow: inset 0 0 8px 2px rgba(0, 0, 0, .2); 13 | /*position: absolute;*/ 14 | /*top: 30px;*/ 15 | /*bottom: 0px;*/ 16 | } 17 | 18 | .file-list { 19 | display: flex; 20 | flex-flow: column; 21 | height: 100%; 22 | } 23 | 24 | .file-item { 25 | 26 | } 27 | 28 | .file-item:hover { 29 | color: #eeede2; 30 | background-color: #a29494; 31 | } 32 | 33 | .back-btn { 34 | width: 20px; 35 | height: 20px; 36 | margin-right: 10px; 37 | } 38 | .back-btn:hover{ 39 | color: #aaaaaa; 40 | cursor: pointer; 41 | } -------------------------------------------------------------------------------- /packages/replace-icons/README.md: -------------------------------------------------------------------------------- 1 | # 替换图标插件 2 | 3 | 本插件用于替换 Cocos Creator 工程的 native 平台的 icon。插件安装方法请参考[文档](http://www.cocos.com/docs/creator/extension/install-and-share.html) 4 | 5 | ## 环境要求 6 | 7 | * Cocos Creator 1.3 以及以上版本 8 | 9 | ## 使用方法 10 | 11 | 1. 首先,需要先通过 Cocos Creator 中的 构建与发布 面板构建一次某个 native 平台(iOS/Mac/Android/Windows) 12 | 2. 通过 Cocos Creator 中主菜单的 [项目]->[替换图标] 菜单项,打开插件的操作面板。如下图: 13 | ![panel](./docs/panel.png) 14 | 15 | 3. 选择目标工程(构建 native 平台生成的 jsb-[TemplateName] 文件夹)。 16 | 4. 选项需要替换的平台。 17 | 5. 选择需要使用的 icon 文件。不同平台需要指定不同的 icon 文件。对应关系如下: 18 | * iOS 与 Android 需要指定 png 图片 19 | * Mac 需要指定 icns 文件 20 | * Windows 需要指定 ico 文件 21 | 6. 点击 [替换] 按钮。 22 | 23 | ## 备注 24 | 25 | 替换过程中,请注意控制台面板输出的报错或者警告信息。替换成功后,控制台面板也会输出 log 提示信息。 -------------------------------------------------------------------------------- /packages/replace-icons/docs/panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/replace-icons/docs/panel.png -------------------------------------------------------------------------------- /packages/replace-icons/i18n/en.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | title: 'Replace Icons', 3 | projProp: 'Target Project', 4 | platforms: 'Platforms', 5 | pngPath: '.png File', 6 | icnsPath: '.icns File', 7 | icoPath: '.ico File', 8 | replace: 'Replace' 9 | }; 10 | -------------------------------------------------------------------------------- /packages/replace-icons/i18n/zh.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | title: '替换图标', 3 | projProp: '目标工程', 4 | platforms: '替换平台', 5 | pngPath: '.png 文件', 6 | icnsPath: '.icns 文件', 7 | icoPath: '.ico 文件', 8 | replace: '替换' 9 | }; 10 | -------------------------------------------------------------------------------- /packages/replace-icons/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | }, 6 | 7 | unload () { 8 | }, 9 | 10 | messages: { 11 | open() { 12 | Editor.Panel.open('replace-icons'); 13 | Editor.Metrics.trackEvent({ 14 | category: 'Packages', 15 | label: 'replace-icons', 16 | action: 'Panel Open' 17 | }, null); 18 | }, 19 | } 20 | }; 21 | -------------------------------------------------------------------------------- /packages/replace-icons/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "replace-icons", 3 | "version": "0.1.1", 4 | "description": "Replace the icons of the native projects.", 5 | "author": "lengaoxin@gmail.com", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.project.title/i18n:replace-icons.title": { 9 | "message": "replace-icons:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/panel.js", 14 | "type": "dockable", 15 | "title": "i18n:replace-icons.title", 16 | "width": 600, 17 | "min-width": 500, 18 | "height": 220, 19 | "min-height": 220 20 | }, 21 | "reload": { 22 | "ignore": [ 23 | "**/*.md", 24 | "docs/*.*" 25 | ] 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/res-compress/README.md: -------------------------------------------------------------------------------- 1 | # 插件说明 2 | 插件提供了对mp3,png,jpg资源的压缩功能,在保证文件质量的前提下,对文件进行瘦身,减小文件体积的大小 3 | 4 | ## 其他说明 5 | - 项目中压缩mp3使用了lame 6 | - npm地址: https://www.npmjs.com/package/node-lame 7 | - sourceforge地址: http://lame.sourceforge.net/ 8 | - 项目中压缩图片使用了[imageMin](https://github.com/imagemin/imagemin#readme) 9 | 10 | ## 插件使用 11 | - 打开快捷键: Cmd/Ctrl + m 12 | - 音频文件: 目前插件只会对mp3进行压缩,所以建议项目使用mp3类型音频文件 13 | 14 | ## 使用动态图 15 | ![使用小视频](../../doc/res-Compress/插件使用.gif) 16 | 17 | ## 压缩效果 18 | ### mp3 19 | - [压缩前文件 9.79k](../../doc/res-Compress/testcase.mp3) 20 | - [压缩后文件 4.94k](../../doc/res-Compress/testcase-compress.mp3) 21 | 22 | ### jpg 23 | - [压缩前jpg 1.08M](../../doc/res-Compress/test.jpg) 24 | - [压缩后jpg 360k](../../doc/res-Compress/test-compress.jpg) 25 | 26 | ### png 27 | - [压缩前png 57.3k](../../doc/res-Compress/test.png) 28 | - [压缩后png 12.6k](../../doc/res-Compress/test-compress.png) 29 | 30 | ## 帮助 31 | 在mac平台下,执行lame需要运行权限,插件会自动授予权限,如果插件提示了权限问题,需要再次检查下lame的权限 32 | 33 | ![权限问题](../../doc/res-Compress/mac.png) 34 | 35 | 36 | -------------------------------------------------------------------------------- /packages/res-compress/i18n/en.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | title:'res-compress', 3 | }; -------------------------------------------------------------------------------- /packages/res-compress/i18n/zh.js: -------------------------------------------------------------------------------- 1 | module.exports={ 2 | title:'资源压缩', 3 | }; -------------------------------------------------------------------------------- /packages/res-compress/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | }, 6 | 7 | unload () { 8 | }, 9 | 10 | messages: { 11 | 'open' () { 12 | Editor.Panel.open('res-compress'); 13 | }, 14 | // 文件移动 15 | 'asset-db:assets-moved': function (event, target) { 16 | // Editor.log('[Mp3Compress] 文件移动,刷新列表!'); 17 | Editor.Ipc.sendToPanel('res-compress', 'res-compress:hello', target); 18 | }, 19 | // 文件删除 20 | 'asset-db:assets-deleted': function (event, target) { 21 | // Editor.log('[Mp3Compress] 文件删除,刷新列表!'); 22 | Editor.Ipc.sendToPanel('res-compress', 'res-compress:hello', target); 23 | }, 24 | // 文件创建 25 | 'asset-db:assets-created': function (event, target) { 26 | // Editor.log('[Mp3Compress] 文件创建,刷新列表!'); 27 | Editor.Ipc.sendToPanel('res-compress', 'res-compress:hello', target); 28 | }, 29 | }, 30 | }; 31 | -------------------------------------------------------------------------------- /packages/res-compress/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "res-compress", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/i18n:res-compress.title": { 9 | "message": "res-compress:open", 10 | "accelerator": "CmdOrCtrl+Shift+m" 11 | } 12 | }, 13 | "panel": { 14 | "main": "panel/index.js", 15 | "type": "dockable", 16 | "title": "资源压缩", 17 | "engineSupport": true, 18 | "width": 400, 19 | "height": 300 20 | }, 21 | "dependencies": { 22 | "is-jpg": "^2.0.0", 23 | "is-png": "^2.0.0" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/res-compress/panel/index.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | h2 { 4 | color: #11ff00; 5 | } 6 | .greenColor{ 7 | color: #11ff00; 8 | } 9 | 10 | :host { 11 | display: flex; 12 | flex-direction: column; 13 | } 14 | 15 | h3 { 16 | margin-top: 0; 17 | margin-bottom: 10px; 18 | } 19 | 20 | .toolbar { 21 | display: flex; 22 | flex-direction: row; 23 | align-items: center; 24 | 25 | padding: 10px; 26 | } 27 | 28 | #view { 29 | flex: 1; 30 | 31 | padding: 10px; 32 | padding-top: 0px; 33 | 34 | overflow-y: auto; 35 | overflow-x: hidden; 36 | } 37 | 38 | div.section { 39 | border-bottom: 1px solid #666; 40 | padding-bottom: 10px; 41 | margin-bottom: 10px; 42 | } 43 | 44 | div.section:last-child { 45 | border-bottom: 0px; 46 | } 47 | 48 | div.group { 49 | min-width: 420px; 50 | margin-bottom: 5px; 51 | 52 | display: flex; 53 | flex-direction: row; 54 | align-items: center; 55 | flex-wrap: wrap; 56 | } 57 | 58 | span { 59 | margin-right: 0.25em; 60 | } 61 | 62 | -------------------------------------------------------------------------------- /packages/res-compress/panel/item/image-item.html: -------------------------------------------------------------------------------- 1 |
7 |
{{index+1}}
8 |
9 | 10 | 11 | 12 |
13 |
14 | 15 | 16 |
17 |
-------------------------------------------------------------------------------- /packages/res-compress/panel/item/image-item.js: -------------------------------------------------------------------------------- 1 | const Fs = require('fire-fs'); 2 | const Msg = Editor.require('packages://res-compress/panel/msg.js'); 3 | 4 | module.exports = () => { 5 | Vue.component('image-item', { 6 | props: ['data', 'index'], 7 | template: Fs.readFileSync(Editor.url('packages://res-compress/panel/item/image-item.html'), 'utf-8'), 8 | created () { 9 | }, 10 | methods: { 11 | onBtnClickCompress () { 12 | // this.data.isUse=!this.data.isUse; 13 | // console.log("on use: " + this.data.isUse); 14 | // console.log("压缩"); 15 | // console.log(this.data); 16 | this.$root.$emit(Msg.CompressImage, this.data); 17 | } 18 | }, 19 | computed: {}, 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /packages/res-compress/panel/item/mp3item.html: -------------------------------------------------------------------------------- 1 |
7 |
{{index+1}}
8 |
9 | 10 | 11 | 12 |
13 |
14 | 15 | 16 |
17 |
-------------------------------------------------------------------------------- /packages/res-compress/panel/item/mp3item.js: -------------------------------------------------------------------------------- 1 | const Fs = require('fire-fs'); 2 | const Msg = Editor.require('packages://res-compress/panel/msg.js'); 3 | 4 | module.exports = () => { 5 | Vue.component('mp3-item', { 6 | props: ['data', 'index'], 7 | template: Fs.readFileSync(Editor.url('packages://res-compress/panel/item/mp3item.html', 'utf8')) + "", 8 | created () { 9 | }, 10 | methods: { 11 | onBtnClickCompress () { 12 | // this.data.isUse=!this.data.isUse; 13 | // console.log("on use: " + this.data.isUse); 14 | // console.log("压缩"); 15 | // console.log(this.data); 16 | this.$root.$emit(Msg.CompressAudio, this.data); 17 | } 18 | }, 19 | computed: {}, 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /packages/res-compress/panel/msg.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | CompressImage: 'CompressImage', 3 | CompressAudio: 'CompressAudio', 4 | } 5 | -------------------------------------------------------------------------------- /packages/res-compress/tools/jpegtran/jpegtran: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/jpegtran/jpegtran -------------------------------------------------------------------------------- /packages/res-compress/tools/jpegtran/win/x64/jpegtran.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/jpegtran/win/x64/jpegtran.exe -------------------------------------------------------------------------------- /packages/res-compress/tools/jpegtran/win/x64/libjpeg-62.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/jpegtran/win/x64/libjpeg-62.dll -------------------------------------------------------------------------------- /packages/res-compress/tools/jpegtran/win/x86/jpegtran.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/jpegtran/win/x86/jpegtran.exe -------------------------------------------------------------------------------- /packages/res-compress/tools/jpegtran/win/x86/libjpeg-62.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/jpegtran/win/x86/libjpeg-62.dll -------------------------------------------------------------------------------- /packages/res-compress/tools/lame/lame: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/lame/lame -------------------------------------------------------------------------------- /packages/res-compress/tools/lame/lame.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/lame/lame.exe -------------------------------------------------------------------------------- /packages/res-compress/tools/lame/lame_enc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/lame/lame_enc.dll -------------------------------------------------------------------------------- /packages/res-compress/tools/pngquant/pngquant: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/pngquant/pngquant -------------------------------------------------------------------------------- /packages/res-compress/tools/pngquant/pngquant.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/res-compress/tools/pngquant/pngquant.exe -------------------------------------------------------------------------------- /packages/resize-image/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('resize-image'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('resize-image', 'resize-image:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/resize-image/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "resize-image", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/resize-image": { 9 | "message": "resize-image:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/index.js", 14 | "type": "dockable", 15 | "title": "resize-image", 16 | "width": 400, 17 | "height": 300 18 | } 19 | } -------------------------------------------------------------------------------- /packages/resize-image/panel/index.css: -------------------------------------------------------------------------------- 1 | .myTableHead{ 2 | background-color: #333; 3 | color: #fff; 4 | border-bottom-width: 0; 5 | } 6 | .myTable{ 7 | width:100%; 8 | border-width: 1px; 9 | padding: 0; 10 | border-style: solid; 11 | border-color: #666666; 12 | background-color: #333; 13 | } 14 | 15 | 16 | orange { 17 | color: #ffffff; 18 | background-image: linear-gradient(#ff9900,#fd942b); 19 | } 20 | h2 { 21 | color: #11ff00; 22 | } 23 | .greenColor{ 24 | color: #11ff00; 25 | } 26 | 27 | :host { 28 | display: flex; 29 | flex-direction: column; 30 | } 31 | 32 | h3 { 33 | margin-top: 0; 34 | margin-bottom: 10px; 35 | } 36 | 37 | .toolbar { 38 | display: flex; 39 | flex-direction: row; 40 | align-items: center; 41 | 42 | padding: 10px; 43 | } 44 | 45 | #view { 46 | flex: 1; 47 | 48 | padding: 10px; 49 | padding-top: 0px; 50 | 51 | overflow-y: auto; 52 | overflow-x: hidden; 53 | } 54 | 55 | div.section { 56 | border-bottom: 1px solid #666; 57 | padding-bottom: 10px; 58 | margin-bottom: 10px; 59 | } 60 | 61 | div.section:last-child { 62 | border-bottom: 0px; 63 | } 64 | 65 | div.group { 66 | min-width: 420px; 67 | margin-bottom: 5px; 68 | 69 | display: flex; 70 | flex-direction: row; 71 | align-items: center; 72 | flex-wrap: wrap; 73 | } 74 | 75 | span { 76 | margin-right: 0.25em; 77 | } 78 | 79 | -------------------------------------------------------------------------------- /packages/resize-image/panel/item/item.js: -------------------------------------------------------------------------------- 1 | let fs = require('fire-fs'); 2 | let packageName = "resize-image"; 3 | 4 | module.exports = { 5 | init() { 6 | console.log("image-item 注册组件!"); 7 | Vue.component('image-item', { 8 | props: ['data', 'index'], 9 | template: fs.readFileSync(Editor.url('packages://' + packageName + '/panel/item/item.html', 'utf8')) + "", 10 | created() { 11 | this.$nextTick(function () { 12 | this.onMouseOut(); 13 | }) 14 | }, 15 | methods: { 16 | onClickBtnDel(event) { 17 | window.plugin.delImage(this.data); 18 | }, 19 | onMouseOver() { 20 | this.$el.style.backgroundColor = '#777'; 21 | }, 22 | onMouseOut() { 23 | let bgColor = '#333'; 24 | if (this.index % 2) { 25 | bgColor = '#333'; 26 | } else { 27 | bgColor = '#444'; 28 | } 29 | this.$el.style.backgroundColor = bgColor; 30 | }, 31 | }, 32 | computed: {}, 33 | }); 34 | } 35 | }; -------------------------------------------------------------------------------- /packages/resource-looker/README.md: -------------------------------------------------------------------------------- 1 | # resource-looker 2 | ## 插件说明 3 | 查找项目中没有使用到的资源文件,因为creator自带的查找资源引用检索结果有问题,所以开发了这个插件 4 | 5 | 在插件商店存在这样的插件,暂停开发 6 | ## 插件使用 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/resource-looker/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | load () { 5 | // execute when package loaded 6 | }, 7 | 8 | unload () { 9 | // execute when package unloaded 10 | }, 11 | 12 | // register your ipc messages here 13 | messages: { 14 | 'open' () { 15 | // open entry panel registered in package.json 16 | Editor.Panel.open('resource-looker'); 17 | }, 18 | 'say-hello' () { 19 | Editor.log('Hello World!'); 20 | // send ipc message to panel 21 | Editor.Ipc.sendToPanel('resource-looker', 'resource-looker:hello'); 22 | }, 23 | 'clicked' () { 24 | Editor.log('Button clicked!'); 25 | } 26 | }, 27 | }; -------------------------------------------------------------------------------- /packages/resource-looker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "resource-looker", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/resource-looker": { 9 | "message": "resource-looker:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/index.js", 14 | "type": "dockable", 15 | "title": "resource-looker", 16 | "width": 400, 17 | "height": 300 18 | } 19 | } -------------------------------------------------------------------------------- /packages/resource-looker/panel/index.css: -------------------------------------------------------------------------------- 1 | :host { 2 | display: flex; 3 | flex-direction: column; 4 | } 5 | 6 | 7 | .toolbar { 8 | display: flex; 9 | flex-direction: row; 10 | align-items: center; 11 | 12 | padding: 10px; 13 | } 14 | 15 | #view { 16 | flex: 1; 17 | 18 | padding: 10px; 19 | padding-top: 0px; 20 | display: flex; 21 | flex-direction: column; 22 | overflow-y: auto; 23 | overflow-x: hidden; 24 | } 25 | 26 | 27 | span { 28 | margin-right: 0.25em; 29 | } 30 | 31 | -------------------------------------------------------------------------------- /packages/resource-looker/panel/result-item.html: -------------------------------------------------------------------------------- 1 |
4 |
5 | 6 | {{index}} 7 |
8 |
9 | {{data.name}} 10 |
11 |
12 | {{data.path}} 13 |
14 |
-------------------------------------------------------------------------------- /packages/resource-looker/panel/result-item.js: -------------------------------------------------------------------------------- 1 | const fs = require('fire-fs'); 2 | let packageName = "resource-looker"; 3 | 4 | module.exports = function () { 5 | console.log("result-item 注册组件!"); 6 | Vue.component('result-item', { 7 | props: ['data', 'index'], 8 | template: fs.readFileSync(Editor.url(`packages://${packageName}/panel/result-item.html`), 'utf8'), 9 | created() { 10 | this.$nextTick(function () { 11 | this.onMouseOut(); 12 | }) 13 | }, 14 | methods: { 15 | onMenu(event) { 16 | // Editor.Ipc.sendToMain('bitmap-font:popup-create-menu', event.x, event.y, this.data); 17 | console.log("on right mouse menu: " + this.data.image); 18 | }, 19 | onMouseOver() { 20 | this.$el.style.backgroundColor = '#777'; 21 | }, 22 | onMouseOut() { 23 | let bgColor = '#333'; 24 | if (this.index % 2) { 25 | bgColor = '#333'; 26 | } else { 27 | bgColor = '#444'; 28 | } 29 | this.$el.style.backgroundColor = bgColor; 30 | }, 31 | onBtnClickSelectItem(){ 32 | console.log("click item"); 33 | } 34 | 35 | 36 | }, 37 | computed: {}, 38 | }); 39 | } 40 | -------------------------------------------------------------------------------- /packages/resource/README.MD: -------------------------------------------------------------------------------- 1 | ## RESOURCE 插件 2 | 3 | 基于 Creator 的插件系统开发,需要将 resource.git 文件夹放入指定文件夹 4 | 5 | %User%/.CocosCreator/packages 全局插件引用目录 6 | %ProjectDir%/packages 当前项目使用的插件目录 7 | 8 | ### 功能介绍 9 | 10 | 将需要查询的资源拖拽进入目标资源框内,下方会列出所有哪些场景,哪个节点引用了这个资源。 11 | 12 | 并提供跳转到资源和跳转到场景/节点的快捷操作按钮。 -------------------------------------------------------------------------------- /packages/resource/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.load = function () { 4 | 5 | }; 6 | 7 | exports.unload = function () { 8 | 9 | }; 10 | 11 | exports.messages = { 12 | open () { 13 | Editor.Panel.open('resource'); 14 | Editor.Metrics.trackEvent({ 15 | category: 'Packages', 16 | label: 'resource', 17 | action: 'Panel Open' 18 | }, null); 19 | } 20 | }; -------------------------------------------------------------------------------- /packages/resource/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "resource", 3 | "version": "0.0.2", 4 | "description": "Creator Resource Tools", 5 | "author": "VisualSJ", 6 | "main": "main.js", 7 | "main-menu": { 8 | "工具/Resource": { 9 | "message": "resource:open" 10 | } 11 | }, 12 | "panel": { 13 | "main": "panel/panel.js", 14 | "type": "dockable", 15 | "title": "Resource Tools", 16 | "width": 500, 17 | "height": 300, 18 | "messages": [] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /packages/resource/panel/less.css: -------------------------------------------------------------------------------- 1 | @import url('app://bower_components/fontawesome/css/font-awesome.min.css'); 2 | :host { 3 | display: flex; 4 | } 5 | #warp { 6 | margin: 10px; 7 | display: flex; 8 | flex: 1; 9 | flex-direction: column; 10 | overflow: hidden; 11 | } 12 | header { 13 | display: flex; 14 | height: 50px; 15 | } 16 | header ui-prop { 17 | display: flex; 18 | flex: 1; 19 | } 20 | header ui-prop ui-asset { 21 | flex: 1; 22 | } 23 | header i.fa { 24 | margin: 6px 2px; 25 | padding: 12px 6px; 26 | cursor: pointer; 27 | font-size: 14px; 28 | } 29 | section { 30 | flex: 1; 31 | border-radius: 4px; 32 | border: 1px solid #666; 33 | padding: 10px; 34 | overflow: auto; 35 | } 36 | ul { 37 | margin: 0; 38 | padding: 0; 39 | } 40 | ul li { 41 | padding: 4px 10px; 42 | list-style: none; 43 | display: flex; 44 | border-bottom: 1px solid #666666; 45 | } 46 | ul li:last-child { 47 | border-bottom: none; 48 | } 49 | ul li > div { 50 | padding: 4px 6px; 51 | overflow: hidden; 52 | text-overflow: ellipsis; 53 | white-space: nowrap; 54 | } 55 | ul li .scene { 56 | width: 120px; 57 | } 58 | ul li .path { 59 | flex: 1; 60 | } 61 | ul li .controller { 62 | width: 46px; 63 | } 64 | ul li .controller i { 65 | margin: 0 2px; 66 | padding: 0 4px; 67 | cursor: pointer; 68 | } 69 | -------------------------------------------------------------------------------- /packages/resource/panel/panel.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 |
    12 |
  • 13 |
    场景
    14 |
    路径
    15 |
    16 |
  • 17 |
  • 18 |
    {{item.scene}}
    19 |
    {{item.path}}
    20 |
    21 | 22 | 23 | 24 |
    25 |
  • 26 |
27 |
28 | 29 |
30 | -------------------------------------------------------------------------------- /packages/ts-demo/.npmrc: -------------------------------------------------------------------------------- 1 | @types/cc-editor:registry=/Users/xyf/Documents/project/cc-editor 2 | -------------------------------------------------------------------------------- /packages/ts-demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ts-demo", 3 | "version": "0.0.1", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "dist/main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/ts-demo/open": { 9 | "message": "ts-demo:open" 10 | }, 11 | "i18n:MAIN_MENU.package.title/ts-demo/hello": { 12 | "message": "ts-demo:say-hello" 13 | } 14 | }, 15 | "scripts": { 16 | "build": "webpack --progress --hide-modules --display-error-details" 17 | }, 18 | "panel": { 19 | "main": "dist/panel.js", 20 | "type": "dockable", 21 | "title": "ts-demo", 22 | "width": 400, 23 | "height": 300 24 | }, 25 | "dependencies": { 26 | "ts-loader": "^8.0.1", 27 | "typescript": "^3.9.7" 28 | }, 29 | "devDependencies": { 30 | "@types/cc-editor": "/Users/xyf/Documents/project/cc-editor", 31 | "webpack-cli": "^3.3.12", 32 | "vue": "^2.6.11", 33 | "vue-class-component": "^7.2.5", 34 | "vue-loader": "^15.9.3", 35 | "vue-template-compiler": "^2.6.11", 36 | "webpack": "^4.44.0" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /packages/ts-demo/src/main.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | load() { 3 | }, 4 | 5 | unload() { 6 | }, 7 | 8 | messages: { 9 | 'open'() { 10 | Editor.Panel.open('ts-demo'); 11 | }, 12 | 'say-hello'() { 13 | Editor.log('Hello World!'); 14 | Editor.Ipc.sendToPanel('ts-demo', 'ts-demo:hello'); 15 | }, 16 | 'clicked'() { 17 | Editor.log('Button clicked!'); 18 | } 19 | }, 20 | } 21 | 22 | -------------------------------------------------------------------------------- /packages/ts-demo/src/panel/index.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/ts-demo/src/panel/index.less -------------------------------------------------------------------------------- /packages/ts-demo/src/panel/index.ts: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index.vue' 3 | 4 | Editor.Panel.extend({ 5 | style: ` 6 | :host { margin: 5px; } 7 | h2 { color: #f90; } 8 | `, 9 | 10 | template: "
", 11 | ready() { 12 | new Vue({ 13 | render: h => h(App), 14 | }).$mount('#app') 15 | }, 16 | 17 | messages: { 18 | 'ts-demo:hello'(event) { 19 | this.$label.innerText = 'Hello!'; 20 | } 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /packages/ts-demo/src/panel/index.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 33 | 34 | 37 | -------------------------------------------------------------------------------- /packages/ts-demo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | // 监听ts编译 6 | "watch": false, 7 | "sourceMap": true, 8 | "outDir": "./build", 9 | "experimentalDecorators": true, 10 | // 是否在表达式和声明上有隐含的any类型时报错 11 | "noImplicitAny": false, 12 | "skipDefaultLibCheck": true, 13 | "allowSyntheticDefaultImports": true, 14 | "types": [], 15 | "typeRoots": [ 16 | "./types", 17 | "./node_modules/@types", 18 | "./node_modules/vue/types" 19 | ] 20 | }, 21 | "include": [ 22 | "src" 23 | ], 24 | "exclude": [ 25 | "node_modules", 26 | "build" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /packages/unpack-textureatlas/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint:recommended", 3 | "rules": { 4 | "comma-dangle": 0, 5 | "no-console": 0, 6 | "no-constant-condition": 0, 7 | "quotes": ["warn", "single"], 8 | "semi": 1 9 | }, 10 | "parserOptions": { 11 | "ecmaVersion": 6, 12 | "ecmaFeatures": { 13 | "jsx": true 14 | } 15 | }, 16 | "env": { 17 | "browser": true, 18 | "node": true, 19 | "es6": true, 20 | "mocha": true 21 | }, 22 | "plugins": [ 23 | ], 24 | "globals": { 25 | "tap": false, 26 | "unused": false, 27 | "Editor": false, 28 | "Helper": false, 29 | "Vue": false, 30 | "Polymer": false, 31 | "expect": false, 32 | "sinon": false, 33 | "assert": false, 34 | "_Scene": false, 35 | "cc": false, 36 | "CC_EDITOR": false, 37 | "CC_TEST": false 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /packages/unpack-textureatlas/LICENSE: -------------------------------------------------------------------------------- 1 | zilongshanren https://zilongshanren.com 2 | 3 | Copyright (c) 2016-2017 - zilongshanren 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /packages/unpack-textureatlas/README.md: -------------------------------------------------------------------------------- 1 | # plist 还原散图工具 2 | ## 说明 3 | 本工具仅仅是对官方发布工具的一个二次迭代优化,增加的功能有: 4 | - 支持批量操作、自定义操作 5 | - 支持快捷键 6 | 7 | 该插件不再发布到商店,仅仅作为个人盗图使用! 8 | ![](../../doc/plist盗图工具/haha.jpg) -------------------------------------------------------------------------------- /packages/unpack-textureatlas/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unpack-textureatlas", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "co": { 8 | "version": "4.6.0", 9 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 10 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/unpack-textureatlas/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unpack-textureatlas", 3 | "version": "0.0.1", 4 | "description": "A package for unpacking texture atlas created with TexturePacker.", 5 | "author": "zilongshanren", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/unpack-textureatlas/unpack": { 9 | "message": "unpack-textureatlas:unpack", 10 | "accelerator": "Alt+q" 11 | }, 12 | "i18n:MAIN_MENU.package.title/unpack-textureatlas/panel": { 13 | "message": "unpack-textureatlas:showPanel", 14 | "accelerator": "Alt+w" 15 | } 16 | }, 17 | "panel": { 18 | "main": "panel/index.js", 19 | "type": "dockable", 20 | "title": "unpack-textureatlas", 21 | "width": 400, 22 | "height": 300 23 | }, 24 | "dependencies": { 25 | "co": "^4.6.0" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/unpack-textureatlas/panel/index.css: -------------------------------------------------------------------------------- 1 | h2 { 2 | color: #11ff00; 3 | } 4 | .greenColor{ 5 | color: #11ff00; 6 | } 7 | 8 | :host { 9 | display: flex; 10 | flex-direction: column; 11 | } 12 | 13 | h3 { 14 | margin-top: 0; 15 | margin-bottom: 10px; 16 | } 17 | 18 | .toolbar { 19 | display: flex; 20 | flex-direction: row; 21 | align-items: center; 22 | 23 | padding: 10px; 24 | } 25 | 26 | #view { 27 | flex: 1; 28 | 29 | padding: 10px; 30 | padding-top: 0px; 31 | 32 | overflow-y: auto; 33 | overflow-x: hidden; 34 | } 35 | 36 | div.section { 37 | border-bottom: 1px solid #666; 38 | padding-bottom: 10px; 39 | margin-bottom: 10px; 40 | } 41 | 42 | div.section:last-child { 43 | border-bottom: 0px; 44 | } 45 | 46 | div.group { 47 | min-width: 420px; 48 | margin-bottom: 5px; 49 | 50 | display: flex; 51 | flex-direction: row; 52 | align-items: center; 53 | flex-wrap: wrap; 54 | } 55 | 56 | span { 57 | margin-right: 0.25em; 58 | } 59 | 60 | -------------------------------------------------------------------------------- /packages/unpack-textureatlas/panel/item/item.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/packages/unpack-textureatlas/panel/item/item.css -------------------------------------------------------------------------------- /packages/unpack-textureatlas/panel/item/item.html: -------------------------------------------------------------------------------- 1 |
7 |
{{index+1}}
8 |
9 | 10 | 11 | 12 |
13 |
14 | 15 | 16 | 17 |
18 |
-------------------------------------------------------------------------------- /packages/unpack-textureatlas/panel/item/item.js: -------------------------------------------------------------------------------- 1 | let fs = require('fire-fs'); 2 | let packageName = "unpack-textureatlas"; 3 | 4 | module.exports = { 5 | init() { 6 | console.log("item 注册组件!"); 7 | Vue.component('item', { 8 | props: ['data', 'index'], 9 | template: fs.readFileSync(Editor.url('packages://' + packageName + '/panel/item/item.html', 'utf8')) + "", 10 | created() { 11 | 12 | }, 13 | methods: { 14 | onBtnClickSplit() { 15 | window.plugin.onSplitItemPlist(this.data); 16 | }, 17 | onBtnClickDel() { 18 | // 删除这个plist配置 19 | let selectionMeta = Editor.remote.assetdb.loadMetaByUuid(this.data.uuid); 20 | const pngUuid = Editor.remote.assetdb.uuidToUrl(selectionMeta.rawTextureUuid); 21 | Editor.assetdb.delete([this.data.url, pngUuid], function (err, results) { 22 | results.forEach(function (result) { 23 | console.log("del: " + result.path); 24 | }); 25 | window.plugin.onBtnClickRefreshProject(); 26 | }) 27 | } 28 | }, 29 | computed: {}, 30 | }); 31 | } 32 | }; -------------------------------------------------------------------------------- /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos2d-html5", 3 | "packages": "packages", 4 | "version": "2.4.0", 5 | "id": "65d25def-f160-4d1d-9075-d91b5fa10fec", 6 | "isNew": false 7 | } -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "server", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "dependencies": { 12 | "body-parser": "^1.18.3", 13 | "express": "^4.16.4", 14 | "protobufjs": "^6.8.8" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /settings/builder.panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "packageName": "org.cocos2d.helloworld", 4 | "platform": "web-mobile", 5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 6 | "title": "HelloWorld" 7 | } -------------------------------------------------------------------------------- /shell/buld.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 获取Shell文件目录, 项目目录 3 | ShellFilePath=$(dirname $0) 4 | cd ${ShellFilePath} 5 | ShellFilePath=$(pwd) 6 | ProjectRootPath=$(dirname ${ShellFilePath}) 7 | echo 项目路径: ${ProjectRootPath} 8 | 9 | # todo 添加CocosCreator路径到环境变量 10 | export CocosCreator=/Applications/CocosCreator.app/Contents/MacOS/ 11 | export PATH=${CocosCreator}:${PATH} 12 | 13 | # 编译项目 14 | CocosCreator --path ${ProjectRootPath} --build "platform=web-mobile" 15 | echo "" 16 | echo "构建完成" 17 | 18 | # 处理web-mobile 19 | deal_WebMobile(){ 20 | echo "处理[web-mobile]" 21 | WebMobileDir=${ProjectRootPath}/build/web-mobile 22 | # TODO 目标文件夹 23 | HttpServerDir=/Users/cocos/Desktop/1 24 | if [[ ! -d "${HttpServerDir}" ]]; then 25 | # mkdir "${HttpServerDir}" 26 | echo "不存在文件夹: ${HttpServerDir}"; 27 | return -1 28 | fi 29 | 30 | # 清空目标文件夹 31 | rm -rf ${HttpServerDir}/* 32 | # 拷贝文件到指定的目录, 注意文件结尾带上/,否则会拷贝文件夹本身 33 | cp -r ${WebMobileDir}/ ${HttpServerDir} 34 | echo "copy from [${WebMobileDir}] to [${HttpServerDir}] done!" 35 | } 36 | #deal_WebMobile 37 | 38 | deal_android(){ 39 | 40 | echo "android" 41 | 42 | } 43 | deal_android 44 | 45 | 46 | 47 | 48 | deal_ios(){ 49 | echo "" 50 | } 51 | 52 | -------------------------------------------------------------------------------- /template-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tidys/CocosCreatorPlugins/789150e9fe664a35f3b2b5ae7ce977b72699f4d0/template-banner.png -------------------------------------------------------------------------------- /template.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TEMPLATES.helloworld.name", 3 | "desc": "TEMPLATES.helloworld.desc", 4 | "banner": "template-banner.png" 5 | } --------------------------------------------------------------------------------