├── .gitignore ├── HISTORY.md ├── README.md ├── assets ├── Demo.meta ├── Demo │ ├── Demo.js │ ├── Demo.js.meta │ ├── Scene.fire │ └── Scene.fire.meta ├── Plugins.meta └── Plugins │ ├── CreatorConsole.meta │ └── CreatorConsole │ ├── Console.js │ ├── Console.js.meta │ ├── Console.prefab │ ├── Console.prefab.meta │ ├── consola.ttf │ └── consola.ttf.meta └── build └── web-desktop ├── cocos2d-js-min.js ├── index.html ├── main.js ├── res ├── import │ ├── a2 │ │ └── a23235d1-15db-4b95-8439-a2e005bfff91.json │ ├── c4 │ │ └── c4c21e33-673b-4f80-85f4-fc0d9eca2477.json │ └── f1 │ │ └── f14bda5c-bbd2-4468-bef2-b32f3279efb3.json ├── raw-assets │ └── Plugins │ │ └── CreatorConsole │ │ └── consola.ttf └── raw-internal │ └── image │ └── default_sprite_splash.png ├── splash.png ├── src ├── project.js └── settings.js └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | /library 2 | /local 3 | /temp 4 | /settings 5 | /creator.d.ts 6 | /project.json -------------------------------------------------------------------------------- /HISTORY.md: -------------------------------------------------------------------------------- 1 | ##Next Version Prevue 2 | - 加入快捷键启动与关闭(启动游戏后默认关闭) 3 | - 修复在原生上崩溃的BUG 4 | - 添加更多命令(例如‘将日志输出到文件’,‘固定窗口’,‘设置字体大小’等命令) 5 | 6 | ##V0.9 7 | - 【提交】提交初版Console,实现基本日志输出,命令执行功能 8 | - 【更新】完善输出,修改content的文本滚动由ScrollView改为手动滚动 9 | - 【更新】更新Readme 10 | - 【修复】整理目录,修复覆盖cc.sys导致在原生运行崩溃的BUG 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CreatorConsole 游戏内置控制台 2 | 3 | **CreatorConsole**是一款支持在CocosCretor游戏运行时启动控制台的插件,该插件具有以下特性: 4 | 5 | - **内置输出** :虽然WEB的浏览器控制台很方便,但原生输出的话,开发者是无法直观地看到调试输出的,因此,直接在游戏内部可视化输出日志就相当方便了; 6 | - **支持命令** :除了日志输出外,`CreatorConsole`还支持自定义命令,就跟shell一样,你可以实时输入命令来控制程序,例如键入`'cl'`,可实现清屏; 7 | - **开放源码** :由于是开放源码的,因此你可以自由地拓展功能,例如定义更多的命令等。 8 | 9 | ------------- 10 | 11 | ## 使用说明 12 | 13 | > - 安装 14 | > - 在场景中使用 15 | > - 在代码中使用 16 | > - 命令 17 | 18 | ### 安装 19 | 从[GitHub](https://github.com/jeason1997/CreatorConsole)上下载Zip文件,解压,覆盖到你的项目目录下。 20 | 21 | ### 在场景中使用 22 | 打开项目,将Asset/Plugins/CreatorConsole/Console.prefab拖入到场景中 23 | > 注意:`Console.prefab` 拖入场景后一定要至于节点层级的最顶层,确保`console.js`最先被加载。 24 | 25 |  26 | 27 | ### 在代码中使用 28 | ``` javascript 29 | // 像平常一样直接输出即可 30 | cc.log('Hello World'); 31 | cc.warn('Warning!'); 32 | cc.error('Fucking!'); 33 | ``` 34 | 35 | ### 命令 36 | | Command | Describe | 37 | | :-------- | --------:| 38 | | Help | 显示帮助,列出所有命令 | 39 | | Cl | 清空屏幕| 40 | | E [script] | 执行脚本,例如`'E var i = 10;'`| 41 | | Q | 退出控制台 | 42 |  -------------------------------------------------------------------------------- /assets/Demo.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "cf953f4a-78be-450a-8d47-6dc01753c699", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Demo/Demo.js: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * This demo show you how to use CreatorConsole with your code. 3 | * 1.You mush put the 'Console.prefab' in your scene, and it mush be the top one. 4 | * 2.Just use 'cc.log' like: cc.log('Hello World'); 5 | * 3.You can use command in the cnosole, like 'cl' to clean the screan. 6 | * 4.Wo TMD ying wen zhe me lan, ni shi zen me kan de dong de? 7 | * ****************************************************************************/ 8 | 9 | cc.Class({ 10 | extends: cc.Component, 11 | 12 | properties: { 13 | }, 14 | 15 | // use this for initialization 16 | onLoad: function () { 17 | cc.log('hello world'); 18 | }, 19 | 20 | update: function (dt) { 21 | //cc.log(dt); 22 | }, 23 | }); 24 | -------------------------------------------------------------------------------- /assets/Demo/Demo.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d63397b6-5829-4992-9262-dfff341b2643", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Demo/Scene.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_name": "", 14 | "_objFlags": 0, 15 | "_opacity": 255, 16 | "_color": { 17 | "__type__": "cc.Color", 18 | "r": 255, 19 | "g": 255, 20 | "b": 255, 21 | "a": 255 22 | }, 23 | "_cascadeOpacityEnabled": true, 24 | "_parent": null, 25 | "_anchorPoint": { 26 | "__type__": "cc.Vec2", 27 | "x": 0, 28 | "y": 0 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 0, 33 | "height": 0 34 | }, 35 | "_children": [ 36 | { 37 | "__id__": 2 38 | }, 39 | { 40 | "__id__": 31 41 | } 42 | ], 43 | "_localZOrder": 0, 44 | "_globalZOrder": 0, 45 | "_tag": -1, 46 | "_opacityModifyRGB": false, 47 | "_id": "c4c21e33-673b-4f80-85f4-fc0d9eca2477" 48 | }, 49 | { 50 | "__type__": "cc.Node", 51 | "_name": "Console", 52 | "_objFlags": 0, 53 | "_opacity": 255, 54 | "_color": { 55 | "__type__": "cc.Color", 56 | "r": 255, 57 | "g": 255, 58 | "b": 255, 59 | "a": 255 60 | }, 61 | "_cascadeOpacityEnabled": true, 62 | "_parent": { 63 | "__id__": 1 64 | }, 65 | "_anchorPoint": { 66 | "__type__": "cc.Vec2", 67 | "x": 0.5, 68 | "y": 0.5 69 | }, 70 | "_contentSize": { 71 | "__type__": "cc.Size", 72 | "width": 0, 73 | "height": 0 74 | }, 75 | "_children": [ 76 | { 77 | "__id__": 3 78 | } 79 | ], 80 | "_rotationX": 0, 81 | "_rotationY": 0, 82 | "_scaleX": 1, 83 | "_scaleY": 1, 84 | "_position": { 85 | "__type__": "cc.Vec2", 86 | "x": 0, 87 | "y": 0 88 | }, 89 | "_skewX": 0, 90 | "_skewY": 0, 91 | "_localZOrder": 0, 92 | "_globalZOrder": 0, 93 | "_tag": -1, 94 | "_opacityModifyRGB": false, 95 | "_id": "df9e6rRxg5EtZJczwrdVZDi", 96 | "_active": true, 97 | "_components": [ 98 | { 99 | "__id__": 29 100 | } 101 | ], 102 | "_prefab": { 103 | "__id__": 30 104 | } 105 | }, 106 | { 107 | "__type__": "cc.Node", 108 | "_name": "window", 109 | "_objFlags": 0, 110 | "_opacity": 255, 111 | "_color": { 112 | "__type__": "cc.Color", 113 | "r": 184, 114 | "g": 184, 115 | "b": 184, 116 | "a": 255 117 | }, 118 | "_cascadeOpacityEnabled": true, 119 | "_parent": { 120 | "__id__": 2 121 | }, 122 | "_anchorPoint": { 123 | "__type__": "cc.Vec2", 124 | "x": 0, 125 | "y": 1 126 | }, 127 | "_contentSize": { 128 | "__type__": "cc.Size", 129 | "width": 960, 130 | "height": 100 131 | }, 132 | "_children": [ 133 | { 134 | "__id__": 4 135 | }, 136 | { 137 | "__id__": 8 138 | }, 139 | { 140 | "__id__": 13 141 | }, 142 | { 143 | "__id__": 17 144 | }, 145 | { 146 | "__id__": 21 147 | } 148 | ], 149 | "_rotationX": 0, 150 | "_rotationY": 0, 151 | "_scaleX": 1, 152 | "_scaleY": 1, 153 | "_position": { 154 | "__type__": "cc.Vec2", 155 | "x": 0, 156 | "y": 625 157 | }, 158 | "_skewX": 0, 159 | "_skewY": 0, 160 | "_localZOrder": 0, 161 | "_globalZOrder": 0, 162 | "_tag": -1, 163 | "_opacityModifyRGB": false, 164 | "_id": "bd4ccAFJb1Dnq3rg1vLs3Mw", 165 | "_active": true, 166 | "_components": [], 167 | "_prefab": { 168 | "__id__": 28 169 | } 170 | }, 171 | { 172 | "__type__": "cc.Node", 173 | "_name": "background", 174 | "_objFlags": 0, 175 | "_opacity": 50, 176 | "_color": { 177 | "__type__": "cc.Color", 178 | "r": 255, 179 | "g": 255, 180 | "b": 255, 181 | "a": 255 182 | }, 183 | "_cascadeOpacityEnabled": true, 184 | "_parent": { 185 | "__id__": 3 186 | }, 187 | "_anchorPoint": { 188 | "__type__": "cc.Vec2", 189 | "x": 0.5, 190 | "y": 0.5 191 | }, 192 | "_contentSize": { 193 | "__type__": "cc.Size", 194 | "width": 960, 195 | "height": 100 196 | }, 197 | "_children": [], 198 | "_rotationX": 0, 199 | "_rotationY": 0, 200 | "_scaleX": 1, 201 | "_scaleY": 1, 202 | "_position": { 203 | "__type__": "cc.Vec2", 204 | "x": 480, 205 | "y": -50 206 | }, 207 | "_skewX": 0, 208 | "_skewY": 0, 209 | "_localZOrder": 0, 210 | "_globalZOrder": 0, 211 | "_tag": -1, 212 | "_opacityModifyRGB": false, 213 | "_id": "ed684B0ABhAmqOV5A/Atg+h", 214 | "_active": true, 215 | "_components": [ 216 | { 217 | "__id__": 5 218 | }, 219 | { 220 | "__id__": 6 221 | } 222 | ], 223 | "_prefab": { 224 | "__id__": 7 225 | } 226 | }, 227 | { 228 | "__type__": "cc.Sprite", 229 | "_name": "", 230 | "_objFlags": 0, 231 | "node": { 232 | "__id__": 4 233 | }, 234 | "_enabled": true, 235 | "_spriteFrame": { 236 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 237 | }, 238 | "_type": 0, 239 | "_useOriginalSize": true, 240 | "_sizeMode": 0, 241 | "_fillType": 0, 242 | "_fillCenter": { 243 | "__type__": "cc.Vec2", 244 | "x": 0, 245 | "y": 0 246 | }, 247 | "_fillStart": 0, 248 | "_fillRange": 0, 249 | "_isTrimmedMode": true, 250 | "_srcBlendFactor": 770, 251 | "_dstBlendFactor": 771, 252 | "_atlas": null 253 | }, 254 | { 255 | "__type__": "cc.Widget", 256 | "_name": "", 257 | "_objFlags": 0, 258 | "node": { 259 | "__id__": 4 260 | }, 261 | "_enabled": true, 262 | "_alignFlags": 45, 263 | "_left": 0, 264 | "_right": 0, 265 | "_top": 0, 266 | "_bottom": 0, 267 | "_isAbsLeft": true, 268 | "_isAbsRight": true, 269 | "_isAbsTop": true, 270 | "_isAbsBottom": true, 271 | "_originalWidth": 40, 272 | "_originalHeight": 40 273 | }, 274 | { 275 | "__type__": "cc.PrefabInfo", 276 | "root": { 277 | "__id__": 2 278 | }, 279 | "asset": { 280 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 281 | }, 282 | "fileId": "ed684B0ABhAmqOV5A/Atg+h" 283 | }, 284 | { 285 | "__type__": "cc.Node", 286 | "_name": "cmdEditBox", 287 | "_objFlags": 0, 288 | "_opacity": 255, 289 | "_color": { 290 | "__type__": "cc.Color", 291 | "r": 255, 292 | "g": 255, 293 | "b": 255, 294 | "a": 255 295 | }, 296 | "_cascadeOpacityEnabled": true, 297 | "_parent": { 298 | "__id__": 3 299 | }, 300 | "_anchorPoint": { 301 | "__type__": "cc.Vec2", 302 | "x": 0.5, 303 | "y": 0.5 304 | }, 305 | "_contentSize": { 306 | "__type__": "cc.Size", 307 | "width": 960, 308 | "height": 30 309 | }, 310 | "_children": [], 311 | "_rotationX": 0, 312 | "_rotationY": 0, 313 | "_scaleX": 1, 314 | "_scaleY": 1, 315 | "_position": { 316 | "__type__": "cc.Vec2", 317 | "x": 480, 318 | "y": -115 319 | }, 320 | "_skewX": 0, 321 | "_skewY": 0, 322 | "_localZOrder": 0, 323 | "_globalZOrder": 0, 324 | "_tag": -1, 325 | "_opacityModifyRGB": false, 326 | "_id": "3384fC0NTFKbbyqSsQGmCpj", 327 | "_active": true, 328 | "_components": [ 329 | { 330 | "__id__": 9 331 | }, 332 | { 333 | "__id__": 11 334 | } 335 | ], 336 | "_prefab": { 337 | "__id__": 12 338 | } 339 | }, 340 | { 341 | "__type__": "cc.EditBox", 342 | "_name": "", 343 | "_objFlags": 0, 344 | "node": { 345 | "__id__": 8 346 | }, 347 | "_enabled": true, 348 | "_useOriginalSize": false, 349 | "_string": "", 350 | "editingDidBegan": [], 351 | "textChanged": [], 352 | "editingDidEnded": [ 353 | { 354 | "__id__": 10 355 | } 356 | ], 357 | "_N$backgroundImage": null, 358 | "_N$returnType": 0, 359 | "_N$inputFlag": 3, 360 | "_N$inputMode": 6, 361 | "_N$fontSize": 20, 362 | "_N$lineHeight": 20, 363 | "_N$fontColor": { 364 | "__type__": "cc.Color", 365 | "r": 235, 366 | "g": 255, 367 | "b": 0, 368 | "a": 255 369 | }, 370 | "_N$placeholder": "Enter command here (Enter 'Help' for more info)...", 371 | "_N$placeholderFontSize": 20, 372 | "_N$placeholderFontColor": { 373 | "__type__": "cc.Color", 374 | "r": 255, 375 | "g": 153, 376 | "b": 0, 377 | "a": 255 378 | }, 379 | "_N$maxLength": 50 380 | }, 381 | { 382 | "__type__": "cc.ClickEvent", 383 | "target": { 384 | "__id__": 2 385 | }, 386 | "component": "Console", 387 | "handler": "commandSubmit" 388 | }, 389 | { 390 | "__type__": "cc.Widget", 391 | "_name": "", 392 | "_objFlags": 0, 393 | "node": { 394 | "__id__": 8 395 | }, 396 | "_enabled": true, 397 | "_alignFlags": 44, 398 | "_left": 0, 399 | "_right": 0, 400 | "_top": 0, 401 | "_bottom": -30, 402 | "_isAbsLeft": true, 403 | "_isAbsRight": true, 404 | "_isAbsTop": true, 405 | "_isAbsBottom": true, 406 | "_originalWidth": 160, 407 | "_originalHeight": 0 408 | }, 409 | { 410 | "__type__": "cc.PrefabInfo", 411 | "root": { 412 | "__id__": 2 413 | }, 414 | "asset": { 415 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 416 | }, 417 | "fileId": "3384fC0NTFKbbyqSsQGmCpj" 418 | }, 419 | { 420 | "__type__": "cc.Node", 421 | "_name": "dragBar", 422 | "_objFlags": 0, 423 | "_opacity": 255, 424 | "_color": { 425 | "__type__": "cc.Color", 426 | "r": 255, 427 | "g": 255, 428 | "b": 255, 429 | "a": 255 430 | }, 431 | "_cascadeOpacityEnabled": true, 432 | "_parent": { 433 | "__id__": 3 434 | }, 435 | "_anchorPoint": { 436 | "__type__": "cc.Vec2", 437 | "x": 0.5, 438 | "y": 1 439 | }, 440 | "_contentSize": { 441 | "__type__": "cc.Size", 442 | "width": 960, 443 | "height": -15 444 | }, 445 | "_children": [], 446 | "_rotationX": 0, 447 | "_rotationY": 0, 448 | "_scaleX": 1, 449 | "_scaleY": 1, 450 | "_position": { 451 | "__type__": "cc.Vec2", 452 | "x": 480, 453 | "y": 0 454 | }, 455 | "_skewX": 0, 456 | "_skewY": 0, 457 | "_localZOrder": 0, 458 | "_globalZOrder": 0, 459 | "_tag": -1, 460 | "_opacityModifyRGB": false, 461 | "_id": "20a23RmQY1LioCwVkUOlrOU", 462 | "_active": true, 463 | "_components": [ 464 | { 465 | "__id__": 14 466 | }, 467 | { 468 | "__id__": 15 469 | } 470 | ], 471 | "_prefab": { 472 | "__id__": 16 473 | } 474 | }, 475 | { 476 | "__type__": "cc.Sprite", 477 | "_name": "", 478 | "_objFlags": 0, 479 | "node": { 480 | "__id__": 13 481 | }, 482 | "_enabled": true, 483 | "_spriteFrame": { 484 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 485 | }, 486 | "_type": 0, 487 | "_useOriginalSize": true, 488 | "_sizeMode": 0, 489 | "_fillType": 0, 490 | "_fillCenter": { 491 | "__type__": "cc.Vec2", 492 | "x": 0, 493 | "y": 0 494 | }, 495 | "_fillStart": 0, 496 | "_fillRange": 0, 497 | "_isTrimmedMode": true, 498 | "_srcBlendFactor": 770, 499 | "_dstBlendFactor": 771, 500 | "_atlas": null 501 | }, 502 | { 503 | "__type__": "cc.Widget", 504 | "_name": "", 505 | "_objFlags": 0, 506 | "node": { 507 | "__id__": 13 508 | }, 509 | "_enabled": true, 510 | "_alignFlags": 41, 511 | "_left": 0, 512 | "_right": 0, 513 | "_top": 0, 514 | "_bottom": 0, 515 | "_isAbsLeft": true, 516 | "_isAbsRight": true, 517 | "_isAbsTop": true, 518 | "_isAbsBottom": true, 519 | "_originalWidth": 40, 520 | "_originalHeight": 0 521 | }, 522 | { 523 | "__type__": "cc.PrefabInfo", 524 | "root": { 525 | "__id__": 2 526 | }, 527 | "asset": { 528 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 529 | }, 530 | "fileId": "20a23RmQY1LioCwVkUOlrOU" 531 | }, 532 | { 533 | "__type__": "cc.Node", 534 | "_name": "resizeBtn", 535 | "_objFlags": 0, 536 | "_opacity": 255, 537 | "_color": { 538 | "__type__": "cc.Color", 539 | "r": 255, 540 | "g": 255, 541 | "b": 255, 542 | "a": 255 543 | }, 544 | "_cascadeOpacityEnabled": true, 545 | "_parent": { 546 | "__id__": 3 547 | }, 548 | "_anchorPoint": { 549 | "__type__": "cc.Vec2", 550 | "x": 0.5, 551 | "y": 0.5 552 | }, 553 | "_contentSize": { 554 | "__type__": "cc.Size", 555 | "width": 15, 556 | "height": 15 557 | }, 558 | "_children": [], 559 | "_rotationX": 0, 560 | "_rotationY": 0, 561 | "_scaleX": 1, 562 | "_scaleY": 1, 563 | "_position": { 564 | "__type__": "cc.Vec2", 565 | "x": 952.5, 566 | "y": -92.5 567 | }, 568 | "_skewX": 0, 569 | "_skewY": 0, 570 | "_localZOrder": 0, 571 | "_globalZOrder": 0, 572 | "_tag": -1, 573 | "_opacityModifyRGB": false, 574 | "_id": "ea8149c8plFKJfeKvW51xK6", 575 | "_active": true, 576 | "_components": [ 577 | { 578 | "__id__": 18 579 | }, 580 | { 581 | "__id__": 19 582 | } 583 | ], 584 | "_prefab": { 585 | "__id__": 20 586 | } 587 | }, 588 | { 589 | "__type__": "cc.Sprite", 590 | "_name": "", 591 | "_objFlags": 0, 592 | "node": { 593 | "__id__": 17 594 | }, 595 | "_enabled": true, 596 | "_spriteFrame": { 597 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 598 | }, 599 | "_type": 0, 600 | "_useOriginalSize": true, 601 | "_sizeMode": 0, 602 | "_fillType": 0, 603 | "_fillCenter": { 604 | "__type__": "cc.Vec2", 605 | "x": 0, 606 | "y": 0 607 | }, 608 | "_fillStart": 0, 609 | "_fillRange": 0, 610 | "_isTrimmedMode": true, 611 | "_srcBlendFactor": 770, 612 | "_dstBlendFactor": 771, 613 | "_atlas": null 614 | }, 615 | { 616 | "__type__": "cc.Widget", 617 | "_name": "", 618 | "_objFlags": 0, 619 | "node": { 620 | "__id__": 17 621 | }, 622 | "_enabled": true, 623 | "_alignFlags": 36, 624 | "_left": 445.1, 625 | "_right": 0, 626 | "_top": 99.2, 627 | "_bottom": 0, 628 | "_isAbsLeft": true, 629 | "_isAbsRight": true, 630 | "_isAbsTop": true, 631 | "_isAbsBottom": true, 632 | "_originalWidth": 40, 633 | "_originalHeight": 0 634 | }, 635 | { 636 | "__type__": "cc.PrefabInfo", 637 | "root": { 638 | "__id__": 2 639 | }, 640 | "asset": { 641 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 642 | }, 643 | "fileId": "ea8149c8plFKJfeKvW51xK6" 644 | }, 645 | { 646 | "__type__": "cc.Node", 647 | "_name": "view", 648 | "_objFlags": 0, 649 | "_opacity": 255, 650 | "_color": { 651 | "__type__": "cc.Color", 652 | "r": 255, 653 | "g": 255, 654 | "b": 255, 655 | "a": 255 656 | }, 657 | "_cascadeOpacityEnabled": true, 658 | "_parent": { 659 | "__id__": 3 660 | }, 661 | "_anchorPoint": { 662 | "__type__": "cc.Vec2", 663 | "x": 0, 664 | "y": 0 665 | }, 666 | "_contentSize": { 667 | "__type__": "cc.Size", 668 | "width": 960, 669 | "height": 100 670 | }, 671 | "_children": [ 672 | { 673 | "__id__": 22 674 | } 675 | ], 676 | "_rotationX": 0, 677 | "_rotationY": 0, 678 | "_scaleX": 1, 679 | "_scaleY": 1, 680 | "_position": { 681 | "__type__": "cc.Vec2", 682 | "x": 0, 683 | "y": -100 684 | }, 685 | "_skewX": 0, 686 | "_skewY": 0, 687 | "_localZOrder": 0, 688 | "_globalZOrder": 0, 689 | "_tag": -1, 690 | "_opacityModifyRGB": false, 691 | "_id": "36eab+dVrlOd60WIin5fj0Q", 692 | "_active": true, 693 | "_components": [ 694 | { 695 | "__id__": 25 696 | }, 697 | { 698 | "__id__": 26 699 | } 700 | ], 701 | "_prefab": { 702 | "__id__": 27 703 | } 704 | }, 705 | { 706 | "__type__": "cc.Node", 707 | "_name": "content", 708 | "_objFlags": 0, 709 | "_opacity": 255, 710 | "_color": { 711 | "__type__": "cc.Color", 712 | "r": 255, 713 | "g": 255, 714 | "b": 255, 715 | "a": 255 716 | }, 717 | "_cascadeOpacityEnabled": true, 718 | "_parent": { 719 | "__id__": 21 720 | }, 721 | "_anchorPoint": { 722 | "__type__": "cc.Vec2", 723 | "x": 0, 724 | "y": 0 725 | }, 726 | "_contentSize": { 727 | "__type__": "cc.Size", 728 | "width": 945, 729 | "height": 75 730 | }, 731 | "_children": [], 732 | "_rotationX": 0, 733 | "_rotationY": 0, 734 | "_scaleX": 1, 735 | "_scaleY": 1, 736 | "_position": { 737 | "__type__": "cc.Vec2", 738 | "x": 0, 739 | "y": 0 740 | }, 741 | "_skewX": 0, 742 | "_skewY": 0, 743 | "_localZOrder": 0, 744 | "_globalZOrder": 0, 745 | "_tag": -1, 746 | "_opacityModifyRGB": false, 747 | "_id": "824a31Cj49K1b8QuTbmIBzX", 748 | "_active": true, 749 | "_components": [ 750 | { 751 | "__id__": 23 752 | } 753 | ], 754 | "_prefab": { 755 | "__id__": 24 756 | } 757 | }, 758 | { 759 | "__type__": "cc.Label", 760 | "_name": "", 761 | "_objFlags": 0, 762 | "node": { 763 | "__id__": 22 764 | }, 765 | "_enabled": true, 766 | "_useOriginalSize": false, 767 | "_fontSize": 15, 768 | "_lineHeight": 15, 769 | "_enableWrapText": true, 770 | "_isSystemFontUsed": false, 771 | "_N$string": "Creator Console [Ver 0.9]\nAuthor : Jeason1997\nGithub : https://github.com/jeason1997/CreatorConsole\n\n", 772 | "_N$horizontalAlign": 0, 773 | "_N$verticalAlign": 0, 774 | "_N$overflow": 3, 775 | "_N$file": { 776 | "__uuid__": "f4c31230-3b00-4554-a3c6-b579cd427b94" 777 | } 778 | }, 779 | { 780 | "__type__": "cc.PrefabInfo", 781 | "root": { 782 | "__id__": 2 783 | }, 784 | "asset": { 785 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 786 | }, 787 | "fileId": "824a31Cj49K1b8QuTbmIBzX" 788 | }, 789 | { 790 | "__type__": "cc.Mask", 791 | "_name": "", 792 | "_objFlags": 0, 793 | "node": { 794 | "__id__": 21 795 | }, 796 | "_enabled": true 797 | }, 798 | { 799 | "__type__": "cc.Widget", 800 | "_name": "", 801 | "_objFlags": 0, 802 | "node": { 803 | "__id__": 21 804 | }, 805 | "_enabled": true, 806 | "_alignFlags": 45, 807 | "_left": 0, 808 | "_right": 0, 809 | "_top": 0, 810 | "_bottom": 0, 811 | "_isAbsLeft": true, 812 | "_isAbsRight": true, 813 | "_isAbsTop": true, 814 | "_isAbsBottom": true, 815 | "_originalWidth": 240, 816 | "_originalHeight": 250 817 | }, 818 | { 819 | "__type__": "cc.PrefabInfo", 820 | "root": { 821 | "__id__": 2 822 | }, 823 | "asset": { 824 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 825 | }, 826 | "fileId": "36eab+dVrlOd60WIin5fj0Q" 827 | }, 828 | { 829 | "__type__": "cc.PrefabInfo", 830 | "root": { 831 | "__id__": 2 832 | }, 833 | "asset": { 834 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 835 | }, 836 | "fileId": "bd4ccAFJb1Dnq3rg1vLs3Mw" 837 | }, 838 | { 839 | "__type__": "e6d566uOHFAkbu9fEOY5H1d", 840 | "_name": "", 841 | "_objFlags": 0, 842 | "node": { 843 | "__id__": 2 844 | }, 845 | "_enabled": true, 846 | "dragBar": { 847 | "__id__": 13 848 | }, 849 | "resizeBtn": { 850 | "__id__": 17 851 | }, 852 | "cmdEditBox": { 853 | "__id__": 9 854 | }, 855 | "_N$content": { 856 | "__id__": 23 857 | } 858 | }, 859 | { 860 | "__type__": "cc.PrefabInfo", 861 | "root": { 862 | "__id__": 2 863 | }, 864 | "asset": { 865 | "__uuid__": "f14bda5c-bbd2-4468-bef2-b32f3279efb3" 866 | }, 867 | "fileId": "df9e6rRxg5EtZJczwrdVZDi" 868 | }, 869 | { 870 | "__type__": "cc.Node", 871 | "_name": "Canvas", 872 | "_objFlags": 0, 873 | "_opacity": 255, 874 | "_color": { 875 | "__type__": "cc.Color", 876 | "r": 255, 877 | "g": 255, 878 | "b": 255, 879 | "a": 255 880 | }, 881 | "_cascadeOpacityEnabled": true, 882 | "_parent": { 883 | "__id__": 1 884 | }, 885 | "_anchorPoint": { 886 | "__type__": "cc.Vec2", 887 | "x": 0.5, 888 | "y": 0.5 889 | }, 890 | "_contentSize": { 891 | "__type__": "cc.Size", 892 | "width": 960, 893 | "height": 640 894 | }, 895 | "_children": [], 896 | "_rotationX": 0, 897 | "_rotationY": 0, 898 | "_scaleX": 1, 899 | "_scaleY": 1, 900 | "_position": { 901 | "__type__": "cc.Vec2", 902 | "x": 480, 903 | "y": 320 904 | }, 905 | "_skewX": 0, 906 | "_skewY": 0, 907 | "_localZOrder": 0, 908 | "_globalZOrder": 0, 909 | "_tag": -1, 910 | "_opacityModifyRGB": false, 911 | "_id": "d32767eB8BAqJo4KgFa4jR1", 912 | "_active": true, 913 | "_components": [ 914 | { 915 | "__id__": 32 916 | }, 917 | { 918 | "__id__": 33 919 | } 920 | ], 921 | "_prefab": null 922 | }, 923 | { 924 | "__type__": "cc.Canvas", 925 | "_name": "", 926 | "_objFlags": 1835008, 927 | "node": { 928 | "__id__": 31 929 | }, 930 | "_enabled": true, 931 | "_designResolution": { 932 | "__type__": "cc.Size", 933 | "width": 960, 934 | "height": 640 935 | }, 936 | "_fitWidth": false, 937 | "_fitHeight": true 938 | }, 939 | { 940 | "__type__": "d6339e2WClJkpJi3/80GyZD", 941 | "_name": "", 942 | "_objFlags": 0, 943 | "node": { 944 | "__id__": 31 945 | }, 946 | "_enabled": true 947 | } 948 | ] -------------------------------------------------------------------------------- /assets/Demo/Scene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "c4c21e33-673b-4f80-85f4-fc0d9eca2477", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "32e2cee1-dfba-42a9-9cb1-e7e41bc190fc", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "ff935a85-e053-4163-92a5-0be857de4547", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole/Console.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | content: { 6 | default: null, 7 | type: cc.Label, 8 | notify: function () { 9 | // clean content when overflow. 10 | }, 11 | }, 12 | dragBar: { 13 | default: null, 14 | type: cc.Node, 15 | }, 16 | resizeBtn: { 17 | default: null, 18 | type: cc.Node, 19 | }, 20 | cmdEditBox: { 21 | default: null, 22 | type: cc.EditBox, 23 | }, 24 | }, 25 | 26 | onLoad: function () { 27 | 28 | var self = this; 29 | 30 | cc.log = function (str) { 31 | self.content.string += 'log: ' + str + '\n'; 32 | }; 33 | 34 | cc.warn = function (str) { 35 | self.content.string += 'warn: ' + str + '\n'; 36 | }; 37 | 38 | cc.error = function (str) { 39 | self.content.string += 'error: ' + str + '\n'; 40 | }; 41 | 42 | cc.syslog = function (str) { 43 | self.content.string += str + '\n'; 44 | }; 45 | 46 | 47 | self.content.node.on('touchmove', function ( touch) { 48 | var y = touch.getPreviousLocation().y - touch.getLocationY(); 49 | 50 | this.y += -y; 51 | if (this.y > 0 || -this.y > (this.height + this.parent.y)) 52 | this.y += y; 53 | }); 54 | 55 | self.dragBar.on('touchmove', function ( touch ) { 56 | var x = touch.getPreviousLocation().x - touch.getLocationX(); 57 | var y = touch.getPreviousLocation().y - touch.getLocationY(); 58 | this.parent.x += -x; 59 | this.parent.y += -y; 60 | }); 61 | 62 | self.resizeBtn.on('touchmove', function ( touch ) { 63 | var lastPos = touch.getPreviousLocation(); 64 | this.parent.width += touch.getLocationX() - lastPos.x; 65 | this.parent.height += lastPos.y - touch.getLocationY(); 66 | self.content.node.width = this.parent.width - this.width; 67 | }); 68 | 69 | }, 70 | 71 | commandSubmit: function () { 72 | 73 | var content = this.cmdEditBox.string; 74 | 75 | if (content === '') 76 | return; 77 | 78 | cc.syslog('cmd: ' + content); 79 | var cmds = this.cmdEditBox.string.split(' '); 80 | 81 | var fun = this[cmds[0]]; 82 | if (!fun) { 83 | cc.syslog('Invalid command !'); 84 | } 85 | else{ 86 | fun(this, cmds); 87 | } 88 | this.cmdEditBox.string = ''; 89 | 90 | }, 91 | 92 | // Command 93 | Help: function () { 94 | var cmdList = [ 95 | '\n -- cl : Clean the screen', 96 | '\n -- e [script] : Execute the script', 97 | '\n -- q : Quit the console' 98 | ]; 99 | cc.log('Command List:' + cmdList); 100 | }, 101 | 102 | Cl: function (self) { 103 | var content = self.content; 104 | content.string = ''; 105 | }, 106 | 107 | E: function (self, cmds) { 108 | var script = ''; 109 | for (var i = 1; i < cmds.length; ++i) { 110 | script += cmds[i] + ' '; 111 | } 112 | eval(script); 113 | }, 114 | 115 | Q: function (self) { 116 | self.node.destroy(); 117 | }, 118 | }); 119 | -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole/Console.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "e6d56eae-3871-4091-bbbd-7c4398e47d5d", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole/Console.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Console", 14 | "_objFlags": 0, 15 | "_opacity": 255, 16 | "_color": { 17 | "__type__": "cc.Color", 18 | "r": 255, 19 | "g": 255, 20 | "b": 255, 21 | "a": 255 22 | }, 23 | "_cascadeOpacityEnabled": true, 24 | "_parent": null, 25 | "_anchorPoint": { 26 | "__type__": "cc.Vec2", 27 | "x": 0.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 0, 33 | "height": 0 34 | }, 35 | "_children": [ 36 | { 37 | "__id__": 2 38 | } 39 | ], 40 | "_rotationX": 0, 41 | "_rotationY": 0, 42 | "_scaleX": 1, 43 | "_scaleY": 1, 44 | "_position": { 45 | "__type__": "cc.Vec2", 46 | "x": 0, 47 | "y": 0 48 | }, 49 | "_skewX": 0, 50 | "_skewY": 0, 51 | "_localZOrder": 0, 52 | "_globalZOrder": 0, 53 | "_tag": -1, 54 | "_opacityModifyRGB": false, 55 | "_id": "", 56 | "_active": true, 57 | "_components": [ 58 | { 59 | "__id__": 28 60 | } 61 | ], 62 | "_prefab": { 63 | "__id__": 29 64 | } 65 | }, 66 | { 67 | "__type__": "cc.Node", 68 | "_name": "window", 69 | "_objFlags": 0, 70 | "_opacity": 255, 71 | "_color": { 72 | "__type__": "cc.Color", 73 | "r": 184, 74 | "g": 184, 75 | "b": 184, 76 | "a": 255 77 | }, 78 | "_cascadeOpacityEnabled": true, 79 | "_parent": { 80 | "__id__": 1 81 | }, 82 | "_anchorPoint": { 83 | "__type__": "cc.Vec2", 84 | "x": 0, 85 | "y": 1 86 | }, 87 | "_contentSize": { 88 | "__type__": "cc.Size", 89 | "width": 960, 90 | "height": 100 91 | }, 92 | "_children": [ 93 | { 94 | "__id__": 3 95 | }, 96 | { 97 | "__id__": 7 98 | }, 99 | { 100 | "__id__": 12 101 | }, 102 | { 103 | "__id__": 16 104 | }, 105 | { 106 | "__id__": 20 107 | } 108 | ], 109 | "_rotationX": 0, 110 | "_rotationY": 0, 111 | "_scaleX": 1, 112 | "_scaleY": 1, 113 | "_position": { 114 | "__type__": "cc.Vec2", 115 | "x": 0, 116 | "y": 625 117 | }, 118 | "_skewX": 0, 119 | "_skewY": 0, 120 | "_localZOrder": 0, 121 | "_globalZOrder": 0, 122 | "_tag": -1, 123 | "_opacityModifyRGB": false, 124 | "_id": "", 125 | "_active": true, 126 | "_components": [], 127 | "_prefab": { 128 | "__id__": 27 129 | } 130 | }, 131 | { 132 | "__type__": "cc.Node", 133 | "_name": "background", 134 | "_objFlags": 0, 135 | "_opacity": 50, 136 | "_color": { 137 | "__type__": "cc.Color", 138 | "r": 255, 139 | "g": 255, 140 | "b": 255, 141 | "a": 255 142 | }, 143 | "_cascadeOpacityEnabled": true, 144 | "_parent": { 145 | "__id__": 2 146 | }, 147 | "_anchorPoint": { 148 | "__type__": "cc.Vec2", 149 | "x": 0.5, 150 | "y": 0.5 151 | }, 152 | "_contentSize": { 153 | "__type__": "cc.Size", 154 | "width": 960, 155 | "height": 100 156 | }, 157 | "_children": [], 158 | "_rotationX": 0, 159 | "_rotationY": 0, 160 | "_scaleX": 1, 161 | "_scaleY": 1, 162 | "_position": { 163 | "__type__": "cc.Vec2", 164 | "x": 480, 165 | "y": -50 166 | }, 167 | "_skewX": 0, 168 | "_skewY": 0, 169 | "_localZOrder": 0, 170 | "_globalZOrder": 0, 171 | "_tag": -1, 172 | "_opacityModifyRGB": false, 173 | "_id": "", 174 | "_active": true, 175 | "_components": [ 176 | { 177 | "__id__": 4 178 | }, 179 | { 180 | "__id__": 5 181 | } 182 | ], 183 | "_prefab": { 184 | "__id__": 6 185 | } 186 | }, 187 | { 188 | "__type__": "cc.Sprite", 189 | "_name": "", 190 | "_objFlags": 0, 191 | "node": { 192 | "__id__": 3 193 | }, 194 | "_enabled": true, 195 | "_spriteFrame": { 196 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 197 | }, 198 | "_type": 0, 199 | "_useOriginalSize": true, 200 | "_sizeMode": 0, 201 | "_fillType": 0, 202 | "_fillCenter": { 203 | "__type__": "cc.Vec2", 204 | "x": 0, 205 | "y": 0 206 | }, 207 | "_fillStart": 0, 208 | "_fillRange": 0, 209 | "_isTrimmedMode": true, 210 | "_srcBlendFactor": 770, 211 | "_dstBlendFactor": 771, 212 | "_atlas": null 213 | }, 214 | { 215 | "__type__": "cc.Widget", 216 | "_name": "", 217 | "_objFlags": 0, 218 | "node": { 219 | "__id__": 3 220 | }, 221 | "_enabled": true, 222 | "_alignFlags": 45, 223 | "_left": 0, 224 | "_right": 0, 225 | "_top": 0, 226 | "_bottom": 0, 227 | "_isAbsLeft": true, 228 | "_isAbsRight": true, 229 | "_isAbsTop": true, 230 | "_isAbsBottom": true, 231 | "_originalWidth": 40, 232 | "_originalHeight": 40 233 | }, 234 | { 235 | "__type__": "cc.PrefabInfo", 236 | "root": { 237 | "__id__": 1 238 | }, 239 | "asset": null, 240 | "fileId": "ed684B0ABhAmqOV5A/Atg+h" 241 | }, 242 | { 243 | "__type__": "cc.Node", 244 | "_name": "cmdEditBox", 245 | "_objFlags": 0, 246 | "_opacity": 255, 247 | "_color": { 248 | "__type__": "cc.Color", 249 | "r": 255, 250 | "g": 255, 251 | "b": 255, 252 | "a": 255 253 | }, 254 | "_cascadeOpacityEnabled": true, 255 | "_parent": { 256 | "__id__": 2 257 | }, 258 | "_anchorPoint": { 259 | "__type__": "cc.Vec2", 260 | "x": 0.5, 261 | "y": 0.5 262 | }, 263 | "_contentSize": { 264 | "__type__": "cc.Size", 265 | "width": 960, 266 | "height": 30 267 | }, 268 | "_children": [], 269 | "_rotationX": 0, 270 | "_rotationY": 0, 271 | "_scaleX": 1, 272 | "_scaleY": 1, 273 | "_position": { 274 | "__type__": "cc.Vec2", 275 | "x": 480, 276 | "y": -115 277 | }, 278 | "_skewX": 0, 279 | "_skewY": 0, 280 | "_localZOrder": 0, 281 | "_globalZOrder": 0, 282 | "_tag": -1, 283 | "_opacityModifyRGB": false, 284 | "_id": "", 285 | "_active": true, 286 | "_components": [ 287 | { 288 | "__id__": 8 289 | }, 290 | { 291 | "__id__": 10 292 | } 293 | ], 294 | "_prefab": { 295 | "__id__": 11 296 | } 297 | }, 298 | { 299 | "__type__": "cc.EditBox", 300 | "_name": "", 301 | "_objFlags": 0, 302 | "node": { 303 | "__id__": 7 304 | }, 305 | "_enabled": true, 306 | "_useOriginalSize": false, 307 | "_string": "", 308 | "editingDidBegan": [], 309 | "textChanged": [], 310 | "editingDidEnded": [ 311 | { 312 | "__id__": 9 313 | } 314 | ], 315 | "_N$backgroundImage": null, 316 | "_N$returnType": 0, 317 | "_N$inputFlag": 3, 318 | "_N$inputMode": 6, 319 | "_N$fontSize": 20, 320 | "_N$lineHeight": 20, 321 | "_N$fontColor": { 322 | "__type__": "cc.Color", 323 | "r": 235, 324 | "g": 255, 325 | "b": 0, 326 | "a": 255 327 | }, 328 | "_N$placeholder": "Enter command here (Enter 'Help' for more info)...", 329 | "_N$placeholderFontSize": 20, 330 | "_N$placeholderFontColor": { 331 | "__type__": "cc.Color", 332 | "r": 255, 333 | "g": 153, 334 | "b": 0, 335 | "a": 255 336 | }, 337 | "_N$maxLength": 50 338 | }, 339 | { 340 | "__type__": "cc.ClickEvent", 341 | "target": { 342 | "__id__": 1 343 | }, 344 | "component": "Console", 345 | "handler": "commandSubmit" 346 | }, 347 | { 348 | "__type__": "cc.Widget", 349 | "_name": "", 350 | "_objFlags": 0, 351 | "node": { 352 | "__id__": 7 353 | }, 354 | "_enabled": true, 355 | "_alignFlags": 44, 356 | "_left": 0, 357 | "_right": 0, 358 | "_top": 0, 359 | "_bottom": -30, 360 | "_isAbsLeft": true, 361 | "_isAbsRight": true, 362 | "_isAbsTop": true, 363 | "_isAbsBottom": true, 364 | "_originalWidth": 160, 365 | "_originalHeight": 0 366 | }, 367 | { 368 | "__type__": "cc.PrefabInfo", 369 | "root": { 370 | "__id__": 1 371 | }, 372 | "asset": null, 373 | "fileId": "3384fC0NTFKbbyqSsQGmCpj" 374 | }, 375 | { 376 | "__type__": "cc.Node", 377 | "_name": "dragBar", 378 | "_objFlags": 0, 379 | "_opacity": 255, 380 | "_color": { 381 | "__type__": "cc.Color", 382 | "r": 255, 383 | "g": 255, 384 | "b": 255, 385 | "a": 255 386 | }, 387 | "_cascadeOpacityEnabled": true, 388 | "_parent": { 389 | "__id__": 2 390 | }, 391 | "_anchorPoint": { 392 | "__type__": "cc.Vec2", 393 | "x": 0.5, 394 | "y": 1 395 | }, 396 | "_contentSize": { 397 | "__type__": "cc.Size", 398 | "width": 960, 399 | "height": -15 400 | }, 401 | "_children": [], 402 | "_rotationX": 0, 403 | "_rotationY": 0, 404 | "_scaleX": 1, 405 | "_scaleY": 1, 406 | "_position": { 407 | "__type__": "cc.Vec2", 408 | "x": 480, 409 | "y": 0 410 | }, 411 | "_skewX": 0, 412 | "_skewY": 0, 413 | "_localZOrder": 0, 414 | "_globalZOrder": 0, 415 | "_tag": -1, 416 | "_opacityModifyRGB": false, 417 | "_id": "", 418 | "_active": true, 419 | "_components": [ 420 | { 421 | "__id__": 13 422 | }, 423 | { 424 | "__id__": 14 425 | } 426 | ], 427 | "_prefab": { 428 | "__id__": 15 429 | } 430 | }, 431 | { 432 | "__type__": "cc.Sprite", 433 | "_name": "", 434 | "_objFlags": 0, 435 | "node": { 436 | "__id__": 12 437 | }, 438 | "_enabled": true, 439 | "_spriteFrame": { 440 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 441 | }, 442 | "_type": 0, 443 | "_useOriginalSize": true, 444 | "_sizeMode": 0, 445 | "_fillType": 0, 446 | "_fillCenter": { 447 | "__type__": "cc.Vec2", 448 | "x": 0, 449 | "y": 0 450 | }, 451 | "_fillStart": 0, 452 | "_fillRange": 0, 453 | "_isTrimmedMode": true, 454 | "_srcBlendFactor": 770, 455 | "_dstBlendFactor": 771, 456 | "_atlas": null 457 | }, 458 | { 459 | "__type__": "cc.Widget", 460 | "_name": "", 461 | "_objFlags": 0, 462 | "node": { 463 | "__id__": 12 464 | }, 465 | "_enabled": true, 466 | "_alignFlags": 41, 467 | "_left": 0, 468 | "_right": 0, 469 | "_top": 0, 470 | "_bottom": 0, 471 | "_isAbsLeft": true, 472 | "_isAbsRight": true, 473 | "_isAbsTop": true, 474 | "_isAbsBottom": true, 475 | "_originalWidth": 40, 476 | "_originalHeight": 0 477 | }, 478 | { 479 | "__type__": "cc.PrefabInfo", 480 | "root": { 481 | "__id__": 1 482 | }, 483 | "asset": null, 484 | "fileId": "20a23RmQY1LioCwVkUOlrOU" 485 | }, 486 | { 487 | "__type__": "cc.Node", 488 | "_name": "resizeBtn", 489 | "_objFlags": 0, 490 | "_opacity": 255, 491 | "_color": { 492 | "__type__": "cc.Color", 493 | "r": 255, 494 | "g": 255, 495 | "b": 255, 496 | "a": 255 497 | }, 498 | "_cascadeOpacityEnabled": true, 499 | "_parent": { 500 | "__id__": 2 501 | }, 502 | "_anchorPoint": { 503 | "__type__": "cc.Vec2", 504 | "x": 0.5, 505 | "y": 0.5 506 | }, 507 | "_contentSize": { 508 | "__type__": "cc.Size", 509 | "width": 15, 510 | "height": 15 511 | }, 512 | "_children": [], 513 | "_rotationX": 0, 514 | "_rotationY": 0, 515 | "_scaleX": 1, 516 | "_scaleY": 1, 517 | "_position": { 518 | "__type__": "cc.Vec2", 519 | "x": 952.5, 520 | "y": -92.5 521 | }, 522 | "_skewX": 0, 523 | "_skewY": 0, 524 | "_localZOrder": 0, 525 | "_globalZOrder": 0, 526 | "_tag": -1, 527 | "_opacityModifyRGB": false, 528 | "_id": "", 529 | "_active": true, 530 | "_components": [ 531 | { 532 | "__id__": 17 533 | }, 534 | { 535 | "__id__": 18 536 | } 537 | ], 538 | "_prefab": { 539 | "__id__": 19 540 | } 541 | }, 542 | { 543 | "__type__": "cc.Sprite", 544 | "_name": "", 545 | "_objFlags": 0, 546 | "node": { 547 | "__id__": 16 548 | }, 549 | "_enabled": true, 550 | "_spriteFrame": { 551 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 552 | }, 553 | "_type": 0, 554 | "_useOriginalSize": true, 555 | "_sizeMode": 0, 556 | "_fillType": 0, 557 | "_fillCenter": { 558 | "__type__": "cc.Vec2", 559 | "x": 0, 560 | "y": 0 561 | }, 562 | "_fillStart": 0, 563 | "_fillRange": 0, 564 | "_isTrimmedMode": true, 565 | "_srcBlendFactor": 770, 566 | "_dstBlendFactor": 771, 567 | "_atlas": null 568 | }, 569 | { 570 | "__type__": "cc.Widget", 571 | "_name": "", 572 | "_objFlags": 0, 573 | "node": { 574 | "__id__": 16 575 | }, 576 | "_enabled": true, 577 | "_alignFlags": 36, 578 | "_left": 445.1, 579 | "_right": 0, 580 | "_top": 99.2, 581 | "_bottom": 0, 582 | "_isAbsLeft": true, 583 | "_isAbsRight": true, 584 | "_isAbsTop": true, 585 | "_isAbsBottom": true, 586 | "_originalWidth": 40, 587 | "_originalHeight": 0 588 | }, 589 | { 590 | "__type__": "cc.PrefabInfo", 591 | "root": { 592 | "__id__": 1 593 | }, 594 | "asset": null, 595 | "fileId": "ea8149c8plFKJfeKvW51xK6" 596 | }, 597 | { 598 | "__type__": "cc.Node", 599 | "_name": "view", 600 | "_objFlags": 0, 601 | "_opacity": 255, 602 | "_color": { 603 | "__type__": "cc.Color", 604 | "r": 255, 605 | "g": 255, 606 | "b": 255, 607 | "a": 255 608 | }, 609 | "_cascadeOpacityEnabled": true, 610 | "_parent": { 611 | "__id__": 2 612 | }, 613 | "_anchorPoint": { 614 | "__type__": "cc.Vec2", 615 | "x": 0, 616 | "y": 0 617 | }, 618 | "_contentSize": { 619 | "__type__": "cc.Size", 620 | "width": 960, 621 | "height": 100 622 | }, 623 | "_children": [ 624 | { 625 | "__id__": 21 626 | } 627 | ], 628 | "_rotationX": 0, 629 | "_rotationY": 0, 630 | "_scaleX": 1, 631 | "_scaleY": 1, 632 | "_position": { 633 | "__type__": "cc.Vec2", 634 | "x": 0, 635 | "y": -100 636 | }, 637 | "_skewX": 0, 638 | "_skewY": 0, 639 | "_localZOrder": 0, 640 | "_globalZOrder": 0, 641 | "_tag": -1, 642 | "_opacityModifyRGB": false, 643 | "_id": "", 644 | "_active": true, 645 | "_components": [ 646 | { 647 | "__id__": 24 648 | }, 649 | { 650 | "__id__": 25 651 | } 652 | ], 653 | "_prefab": { 654 | "__id__": 26 655 | } 656 | }, 657 | { 658 | "__type__": "cc.Node", 659 | "_name": "content", 660 | "_objFlags": 0, 661 | "_opacity": 255, 662 | "_color": { 663 | "__type__": "cc.Color", 664 | "r": 255, 665 | "g": 255, 666 | "b": 255, 667 | "a": 255 668 | }, 669 | "_cascadeOpacityEnabled": true, 670 | "_parent": { 671 | "__id__": 20 672 | }, 673 | "_anchorPoint": { 674 | "__type__": "cc.Vec2", 675 | "x": 0, 676 | "y": 0 677 | }, 678 | "_contentSize": { 679 | "__type__": "cc.Size", 680 | "width": 945, 681 | "height": 75 682 | }, 683 | "_children": [], 684 | "_rotationX": 0, 685 | "_rotationY": 0, 686 | "_scaleX": 1, 687 | "_scaleY": 1, 688 | "_position": { 689 | "__type__": "cc.Vec2", 690 | "x": 0, 691 | "y": 0 692 | }, 693 | "_skewX": 0, 694 | "_skewY": 0, 695 | "_localZOrder": 0, 696 | "_globalZOrder": 0, 697 | "_tag": -1, 698 | "_opacityModifyRGB": false, 699 | "_id": "", 700 | "_active": true, 701 | "_components": [ 702 | { 703 | "__id__": 22 704 | } 705 | ], 706 | "_prefab": { 707 | "__id__": 23 708 | } 709 | }, 710 | { 711 | "__type__": "cc.Label", 712 | "_name": "", 713 | "_objFlags": 0, 714 | "node": { 715 | "__id__": 21 716 | }, 717 | "_enabled": true, 718 | "_useOriginalSize": false, 719 | "_fontSize": 15, 720 | "_lineHeight": 15, 721 | "_enableWrapText": true, 722 | "_isSystemFontUsed": false, 723 | "_N$string": "Creator Console [Ver 0.9]\nAuthor : Jeason1997\nGithub : https://github.com/jeason1997/CreatorConsole\n\n", 724 | "_N$horizontalAlign": 0, 725 | "_N$verticalAlign": 0, 726 | "_N$overflow": 3, 727 | "_N$file": { 728 | "__uuid__": "f4c31230-3b00-4554-a3c6-b579cd427b94" 729 | } 730 | }, 731 | { 732 | "__type__": "cc.PrefabInfo", 733 | "root": { 734 | "__id__": 1 735 | }, 736 | "asset": null, 737 | "fileId": "824a31Cj49K1b8QuTbmIBzX" 738 | }, 739 | { 740 | "__type__": "cc.Mask", 741 | "_name": "", 742 | "_objFlags": 0, 743 | "node": { 744 | "__id__": 20 745 | }, 746 | "_enabled": true 747 | }, 748 | { 749 | "__type__": "cc.Widget", 750 | "_name": "", 751 | "_objFlags": 0, 752 | "node": { 753 | "__id__": 20 754 | }, 755 | "_enabled": true, 756 | "_alignFlags": 45, 757 | "_left": 0, 758 | "_right": 0, 759 | "_top": 0, 760 | "_bottom": 0, 761 | "_isAbsLeft": true, 762 | "_isAbsRight": true, 763 | "_isAbsTop": true, 764 | "_isAbsBottom": true, 765 | "_originalWidth": 240, 766 | "_originalHeight": 250 767 | }, 768 | { 769 | "__type__": "cc.PrefabInfo", 770 | "root": { 771 | "__id__": 1 772 | }, 773 | "asset": null, 774 | "fileId": "36eab+dVrlOd60WIin5fj0Q" 775 | }, 776 | { 777 | "__type__": "cc.PrefabInfo", 778 | "root": { 779 | "__id__": 1 780 | }, 781 | "asset": null, 782 | "fileId": "bd4ccAFJb1Dnq3rg1vLs3Mw" 783 | }, 784 | { 785 | "__type__": "e6d566uOHFAkbu9fEOY5H1d", 786 | "_name": "", 787 | "_objFlags": 0, 788 | "node": { 789 | "__id__": 1 790 | }, 791 | "_enabled": true, 792 | "content": { 793 | "__id__": 22 794 | }, 795 | "dragBar": { 796 | "__id__": 12 797 | }, 798 | "resizeBtn": { 799 | "__id__": 16 800 | }, 801 | "cmdEditBox": { 802 | "__id__": 8 803 | } 804 | }, 805 | { 806 | "__type__": "cc.PrefabInfo", 807 | "root": { 808 | "__id__": 1 809 | }, 810 | "asset": null, 811 | "fileId": "df9e6rRxg5EtZJczwrdVZDi" 812 | } 813 | ] -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole/Console.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f14bda5c-bbd2-4468-bef2-b32f3279efb3", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole/consola.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeason1997/CreatorConsole/e380d75050aea3e2d6c25e1c8e511006269d561a/assets/Plugins/CreatorConsole/consola.ttf -------------------------------------------------------------------------------- /assets/Plugins/CreatorConsole/consola.ttf.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f4c31230-3b00-4554-a3c6-b579cd427b94", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /build/web-desktop/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |CreatorConsole
28 | 29 |