diff --git a/.gitignore b/.gitignore index 0511e2b..a231b3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,24 @@ -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json + +#/////////////////////////// +# Cocos Creator 3D Project +#/////////////////////////// +library/ +temp/ +local/ +build/ +profiles/ +native +#////////////////////////// +# NPM +#////////////////////////// +node_modules/ + +#////////////////////////// +# VSCode +#////////////////////////// +.vscode/ + +#////////////////////////// +# WebStorm +#////////////////////////// +.idea/ \ No newline at end of file diff --git a/README.en.md b/README.en.md deleted file mode 100644 index f5cea7a..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# oops-framework - -#### Description -Cocos Creato 3.x 版本的游戏框架,框架中集成一些优秀的第三方库 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 18afe5f..8ac649c 100644 --- a/README.md +++ b/README.md @@ -3,35 +3,39 @@ #### 介绍 Cocos Creato 3.x 版本的游戏框架,框架中集成一些优秀的第三方库 -#### 软件架构 -软件架构说明 +#### 基础功能 +1. 资源管理 +2. 音乐管理 +3. 界面管理 + - 屏幕自适应 + - 主界层 + - 弹窗层 + - 模式弹窗层 + - 系统消息层 + - 数据驱动加载界面 +4. 多语言管理 + - 文本多语言组件 + - 图片多语言组件 +5. 网络模块 + - HttpRequest +6. 全局消息管理 +7. 随机数生成器 +8. 定时器管理 +#### 工具库 +1. 异步队列处理 +2. 日志管理 +3. 字符串处理 +4. 基础数学库 +5. 常用UI组件 -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +#### 集成优秀的第三方库 +1. WebSocket 框架(原创者设计灵活容易扩展自定义协议)[原创者代码地址](https://github.com/wyb10a10/cocos_creator_framework) +2. animator 可视化动画状态机(与Untiy3D的Animator使用体验类似,源库上做了三维骨骼动画的支持) [原创者代码地址](https://github.com/LeeYip/cocos-animator) +3. model-view MVVM组件库(源库为cc2.x版本,本人升级到cc3.x) [原创者代码地址](https://github.com/wsssheep/cocos_creator_mvvm_tools) +4. seedrandom 带随机种子的随机数库 [原创者代码地址](https://www.npmjs.com/package/seedrandom) +5. ECS 框架 [原创者代码地址](https://github.com/shangdibaozi/ECS) +6. Json资源打包zip加载 [原创者代码地址](https://github.com/Stuk/jszip) +7. behavior-tree 行为树 +8. 本地存储库数据加密 +9. MD5、RSA、Crypto \ No newline at end of file diff --git a/assets/resources.meta b/assets/resources.meta new file mode 100644 index 0000000..afd432e --- /dev/null +++ b/assets/resources.meta @@ -0,0 +1,15 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "11349493-059b-466d-8a63-bc29a4d895cd", + "files": [], + "subMetas": {}, + "userData": { + "isBundle": true, + "bundleName": "resources", + "priority": 8, + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/resources/audios.meta b/assets/resources/audios.meta new file mode 100644 index 0000000..1c4d548 --- /dev/null +++ b/assets/resources/audios.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "0fcfc2fc-e17a-4f43-a59b-8b97fc052429", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/resources/audios/Gravel.mp3 b/assets/resources/audios/Gravel.mp3 new file mode 100644 index 0000000..46700bd Binary files /dev/null and b/assets/resources/audios/Gravel.mp3 differ diff --git a/assets/resources/audios/Gravel.mp3.meta b/assets/resources/audios/Gravel.mp3.meta new file mode 100644 index 0000000..489a526 --- /dev/null +++ b/assets/resources/audios/Gravel.mp3.meta @@ -0,0 +1,14 @@ +{ + "ver": "1.0.0", + "importer": "audio-clip", + "imported": true, + "uuid": "b389ba94-1b8c-4e51-84c4-0ae55a3d5c99", + "files": [ + ".mp3", + ".json" + ], + "subMetas": {}, + "userData": { + "downloadMode": 0 + } +} diff --git a/assets/resources/audios/nocturne.mp3 b/assets/resources/audios/nocturne.mp3 new file mode 100644 index 0000000..be013aa Binary files /dev/null and b/assets/resources/audios/nocturne.mp3 differ diff --git a/assets/resources/audios/nocturne.mp3.meta b/assets/resources/audios/nocturne.mp3.meta new file mode 100644 index 0000000..d36f348 --- /dev/null +++ b/assets/resources/audios/nocturne.mp3.meta @@ -0,0 +1,14 @@ +{ + "ver": "1.0.0", + "importer": "audio-clip", + "imported": true, + "uuid": "d0d4d969-8db9-4024-86e4-527d8b354ead", + "files": [ + ".mp3", + ".json" + ], + "subMetas": {}, + "userData": { + "downloadMode": 0 + } +} diff --git a/assets/resources/avatar.meta b/assets/resources/avatar.meta new file mode 100644 index 0000000..a866d9f --- /dev/null +++ b/assets/resources/avatar.meta @@ -0,0 +1,9 @@ +{ + "ver": "0.0.1", + "importer": "*", + "imported": true, + "uuid": "e702ec14-4b07-4a05-9908-de47767ed821", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/resources/common.meta b/assets/resources/common.meta new file mode 100644 index 0000000..5b999c1 --- /dev/null +++ b/assets/resources/common.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "b9dc5d89-1070-4f62-8a31-5b96306c192b", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/resources/common/anim.meta b/assets/resources/common/anim.meta new file mode 100644 index 0000000..8c098d1 --- /dev/null +++ b/assets/resources/common/anim.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "0b70ab49-9f2b-4cbb-b4cb-849b2e477598", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/resources/common/anim/button_scale_end.anim b/assets/resources/common/anim/button_scale_end.anim new file mode 100644 index 0000000..b4026a1 --- /dev/null +++ b/assets/resources/common/anim/button_scale_end.anim @@ -0,0 +1,45 @@ +{ + "__type__": "cc.AnimationClip", + "_name": "button_scale_end", + "_objFlags": 0, + "_native": "", + "sample": 60, + "speed": 1, + "wrapMode": 1, + "events": [], + "_duration": 0.08333333333333333, + "_keys": [ + [ + 0, + 0.08333333333333333 + ] + ], + "_stepness": 0, + "_curves": [ + { + "modifiers": [ + "scale" + ], + "data": { + "keys": 0, + "values": [ + { + "__type__": "cc.Vec3", + "x": 0.95, + "y": 0.95, + "z": 0.95 + }, + { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + } + ], + "easingMethods": {} + } + } + ], + "_commonTargets": [], + "_hash": 3362078797 +} \ No newline at end of file diff --git a/assets/resources/common/anim/button_scale_end.anim.meta b/assets/resources/common/anim/button_scale_end.anim.meta new file mode 100644 index 0000000..602bfec --- /dev/null +++ b/assets/resources/common/anim/button_scale_end.anim.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.0.11", + "importer": "animation-clip", + "imported": true, + "uuid": "0430e564-9665-435e-9895-7b8e19fcb0b9", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "name": "button_scale_end" + } +} diff --git a/assets/resources/common/anim/button_scale_start.anim b/assets/resources/common/anim/button_scale_start.anim new file mode 100644 index 0000000..33bb351 --- /dev/null +++ b/assets/resources/common/anim/button_scale_start.anim @@ -0,0 +1,45 @@ +{ + "__type__": "cc.AnimationClip", + "_name": "button_scale_start", + "_objFlags": 0, + "_native": "", + "sample": 60, + "speed": 1, + "wrapMode": 1, + "events": [], + "_duration": 0.08333333333333333, + "_keys": [ + [ + 0, + 0.08333333333333333 + ] + ], + "_stepness": 0, + "_curves": [ + { + "modifiers": [ + "scale" + ], + "data": { + "keys": 0, + "values": [ + { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + { + "__type__": "cc.Vec3", + "x": 0.95, + "y": 0.95, + "z": 0.95 + } + ], + "easingMethods": {} + } + } + ], + "_commonTargets": [], + "_hash": 250411285 +} \ No newline at end of file diff --git a/assets/resources/common/anim/button_scale_start.anim.meta b/assets/resources/common/anim/button_scale_start.anim.meta new file mode 100644 index 0000000..dbee728 --- /dev/null +++ b/assets/resources/common/anim/button_scale_start.anim.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.0.11", + "importer": "animation-clip", + "imported": true, + "uuid": "99c3c7ad-3086-4333-81e6-19b82da0c89d", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "name": "button_scale_start" + } +} diff --git a/assets/resources/common/anim/notify.anim b/assets/resources/common/anim/notify.anim new file mode 100644 index 0000000..243b128 --- /dev/null +++ b/assets/resources/common/anim/notify.anim @@ -0,0 +1,150 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "notify", + "_objFlags": 0, + "_native": "", + "sample": 60, + "speed": 1, + "wrapMode": 1, + "events": [], + "enableTrsBlending": false, + "_duration": 1.25, + "_keys": [ + [ + 0, + 0.8333333333333334, + 1.25 + ], + [ + 0, + 0.8333333333333334, + 1.25 + ], + [ + 0, + 0.8333333333333334, + 1.25 + ] + ], + "_stepness": 0, + "_curves": [ + { + "modifiers": [ + "position" + ], + "data": { + "keys": 0, + "values": [ + { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + { + "__type__": "cc.Vec3", + "x": 0, + "y": 300, + "z": 0 + } + ], + "easingMethods": {} + } + }, + { + "modifiers": [ + { + "__id__": 1 + }, + { + "__id__": 2 + }, + "color" + ], + "data": { + "keys": 1, + "values": [ + { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + } + ], + "easingMethods": {} + } + }, + { + "modifiers": [ + { + "__id__": 3 + }, + "color" + ], + "data": { + "keys": 2, + "values": [ + { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + } + ], + "easingMethods": {} + } + } + ], + "_commonTargets": [], + "_hash": 1779385867 + }, + { + "__type__": "cc.animation.HierarchyPath", + "path": "lab_content" + }, + { + "__type__": "cc.animation.ComponentPath", + "component": "cc.Label" + }, + { + "__type__": "cc.animation.ComponentPath", + "component": "cc.Sprite" + } +] \ No newline at end of file diff --git a/assets/resources/common/anim/notify.anim.meta b/assets/resources/common/anim/notify.anim.meta new file mode 100644 index 0000000..e51df7d --- /dev/null +++ b/assets/resources/common/anim/notify.anim.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.0.11", + "importer": "animation-clip", + "imported": true, + "uuid": "4cecde51-d46d-4b20-b02e-e58f063ec56f", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "name": "notify" + } +} diff --git a/assets/resources/common/prefab.meta b/assets/resources/common/prefab.meta new file mode 100644 index 0000000..57c5b19 --- /dev/null +++ b/assets/resources/common/prefab.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "853ce1af-fb40-4f30-aebb-f12234f3d7fe", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/resources/common/prefab/netinstable.prefab b/assets/resources/common/prefab/netinstable.prefab new file mode 100644 index 0000000..7c7985a --- /dev/null +++ b/assets/resources/common/prefab/netinstable.prefab @@ -0,0 +1,458 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "netinstable", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 7 + } + ], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 12 + }, + { + "__id__": 13 + } + ], + "_prefab": { + "__id__": 14 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bg", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 4 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 6 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_priority": 0, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 1280 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "", + "__prefab": { + "__id__": 15 + } + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_visFlags": 0, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 60 + }, + "_spriteFrame": { + "__uuid__": "57520716-48c8-4a19-8acf-41c9f8777fb0@f9941" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "", + "__prefab": { + "__id__": 16 + } + }, + { + "__type__": "cc.Widget", + "_name": "loading", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 2, + "_originalHeight": 2, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "", + "__prefab": { + "__id__": 17 + } + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c5KGHiK9REY4bg8g3FbCdj" + }, + { + "__type__": "cc.Node", + "_name": "loading", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 8 + }, + { + "__id__": 9 + } + ], + "_prefab": { + "__id__": 10 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "_priority": 0, + "_contentSize": { + "__type__": "cc.Size", + "width": 138, + "height": 138 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "", + "__prefab": { + "__id__": 18 + } + }, + { + "__type__": "cc.Sprite", + "_name": "loading", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "_visFlags": 0, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "06942a20-0474-4385-9a85-293366d2473e@f9941" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "", + "__prefab": { + "__id__": 19 + } + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "b4DOS8ivZJwbuvCM8qdysu" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_priority": 0, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 1280 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "", + "__prefab": { + "__id__": 20 + } + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 2, + "_originalHeight": 2, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "", + "__prefab": { + "__id__": 21 + } + }, + { + "__type__": "95143M/82NCOLKGzw14JlmS", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "loading": { + "__id__": 7 + }, + "_id": "", + "__prefab": { + "__id__": 22 + } + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a0daVw8DRLi6ToMaTA0VS2" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "fbb9ezFuVDaKU7Tqqncexy" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1dTEwstYVMdL5jWZ5yFCIZ" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a5eUOPMadAdp+Jl5/FXe3j" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "daXOgzkhFPR5dIT+JDB+2t" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3efK3xmdVFf4X3ErJtErAe" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "77N2cid5pKDpXplRH/AWEU" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63zNQq8NlBQ5QWzOJ4Kgjs" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5f/x4X/oJE6ZkuMdoq+sX3" + } +] \ No newline at end of file diff --git a/assets/resources/common/prefab/netinstable.prefab.meta b/assets/resources/common/prefab/netinstable.prefab.meta new file mode 100644 index 0000000..57ab928 --- /dev/null +++ b/assets/resources/common/prefab/netinstable.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.27", + "importer": "prefab", + "imported": true, + "uuid": "9cc71d8c-192a-4234-8204-352f42b95c65", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "netinstable" + } +} diff --git a/assets/resources/common/prefab/notify.prefab b/assets/resources/common/prefab/notify.prefab new file mode 100644 index 0000000..1d4bf13 --- /dev/null +++ b/assets/resources/common/prefab/notify.prefab @@ -0,0 +1,353 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "notify", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 10 + }, + { + "__id__": 12 + }, + { + "__id__": 14 + }, + { + "__id__": 16 + } + ], + "_prefab": { + "__id__": 18 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "lab_content", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 9 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 131.21, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "99X9v0jUlJNZIh0XrXacci" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 6 + }, + "_visFlags": 0, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "content", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 40, + "_fontSize": 40, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "16EtbFHdZJE6XKV6ws1G8+" + }, + { + "__type__": "110c8vEd5NEPL/N9meGQnaX", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 8 + }, + "_params": [], + "_dataID": "", + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "83d8hC41dI4awr4NW+asAo" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "ddsPDrtFpNTpbV/TewBYOo" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 539, + "height": 90 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "51DJ7yv09KnoNkqSbMfoJS" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 13 + }, + "_visFlags": 0, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "ef58b575-d5bd-4b6b-ac05-6364e90ff8fc@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "23CbWnuJdPJYsCIbhHA6dc" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 15 + }, + "playOnLoad": true, + "_clips": [ + { + "__uuid__": "4cecde51-d46d-4b20-b02e-e58f063ec56f", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "4cecde51-d46d-4b20-b02e-e58f063ec56f", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "49S2DJCTxMnLx+UXQk11q0" + }, + { + "__type__": "de1daMgSoJNGqNHLZHoRzt1", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "lab_content": { + "__id__": 5 + }, + "animation": { + "__id__": 14 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6d8moNIJ9OcKegqd010dKC" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "4fj6jVgO1KzKob1u6D65Ik" + } +] \ No newline at end of file diff --git a/assets/resources/common/prefab/notify.prefab.meta b/assets/resources/common/prefab/notify.prefab.meta new file mode 100644 index 0000000..f19358f --- /dev/null +++ b/assets/resources/common/prefab/notify.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.27", + "importer": "prefab", + "imported": true, + "uuid": "10285c1d-979d-4a7e-80c0-86e0dc2a65d8", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "notify" + } +} diff --git a/assets/resources/common/prefab/window.prefab b/assets/resources/common/prefab/window.prefab new file mode 100644 index 0000000..43c6012 --- /dev/null +++ b/assets/resources/common/prefab/window.prefab @@ -0,0 +1,1302 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "window", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 10 + }, + { + "__id__": 18 + }, + { + "__id__": 37 + } + ], + "_active": true, + "_components": [ + { + "__id__": 56 + }, + { + "__id__": 58 + }, + { + "__id__": 60 + } + ], + "_prefab": { + "__id__": 62 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "lab_title", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 9 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 114, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_priority": 0, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1c9xohlJtL3bm53voN5DeV" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 6 + }, + "_visFlags": 0, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "标题", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "26eZlgc6xJWqYRq4rBoG6R" + }, + { + "__type__": "110c8vEd5NEPL/N9meGQnaX", + "_name": "lab_ok", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 8 + }, + "_params": [], + "_dataID": "", + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "12QljFj4dG9LVb4oZYMNmY" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "42TIPOfhhM7ra85tXw74QR" + }, + { + "__type__": "cc.Node", + "_name": "lab_content", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 13 + }, + { + "__id__": 15 + } + ], + "_prefab": { + "__id__": 17 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 12, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_priority": 0, + "_contentSize": { + "__type__": "cc.Size", + "width": 420, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "49SU+NRCVFC7lotcT5Arsj" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_visFlags": 0, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "内容", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 26, + "_fontSize": 26, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 3, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "867mEteZhIVLc5LxzUTUW5" + }, + { + "__type__": "110c8vEd5NEPL/N9meGQnaX", + "_name": "lab_ok", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "_params": [], + "_dataID": "", + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "fdJ1rAAmlDeqjsBHa5gesk" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7fk7nP/NJBI7+oI60VkgZO" + }, + { + "__type__": "cc.Node", + "_name": "btn_ok", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 19 + } + ], + "_active": true, + "_components": [ + { + "__id__": 27 + }, + { + "__id__": 29 + }, + { + "__id__": 31 + }, + { + "__id__": 34 + } + ], + "_prefab": { + "__id__": 36 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -89, + "y": -100, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "lab_ok", + "_objFlags": 0, + "_parent": { + "__id__": 18 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 20 + }, + { + "__id__": 22 + }, + { + "__id__": 24 + } + ], + "_prefab": { + "__id__": 26 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "Label", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 21 + }, + "_priority": 0, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "44bD80KHZProBBM3AMP1KY" + }, + { + "__type__": "cc.Label", + "_name": "Label