├── .gitignore ├── assets ├── launch.fire ├── launch.fire.meta ├── res.meta ├── res │ ├── default-sprite.png │ └── default-sprite.png.meta ├── scripts.meta └── scripts │ ├── base64.js │ ├── base64.js.meta │ ├── main.js │ └── main.js.meta ├── project.json └── settings └── project.json /.gitignore: -------------------------------------------------------------------------------- 1 | #///////////////////////////////////////////////////////////////////////////// 2 | # Fireball Projects 3 | #///////////////////////////////////////////////////////////////////////////// 4 | 5 | library/ 6 | temp/ 7 | local/ 8 | build/ 9 | 10 | #///////////////////////////////////////////////////////////////////////////// 11 | # Logs and databases 12 | #///////////////////////////////////////////////////////////////////////////// 13 | 14 | *.log 15 | *.sql 16 | *.sqlite 17 | 18 | #///////////////////////////////////////////////////////////////////////////// 19 | # files for debugger 20 | #///////////////////////////////////////////////////////////////////////////// 21 | 22 | *.sln 23 | *.csproj 24 | *.pidb 25 | *.unityproj 26 | *.suo 27 | 28 | #///////////////////////////////////////////////////////////////////////////// 29 | # OS generated files 30 | #///////////////////////////////////////////////////////////////////////////// 31 | 32 | .DS_Store 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | #///////////////////////////////////////////////////////////////////////////// 37 | # exvim files 38 | #///////////////////////////////////////////////////////////////////////////// 39 | 40 | *UnityVS.meta 41 | *.err 42 | *.err.meta 43 | *.exvim 44 | *.exvim.meta 45 | *.vimentry 46 | *.vimentry.meta 47 | *.vimproject 48 | *.vimproject.meta 49 | .vimfiles.*/ 50 | .exvim.*/ 51 | quick_gen_project_*_autogen.bat 52 | quick_gen_project_*_autogen.bat.meta 53 | quick_gen_project_*_autogen.sh 54 | quick_gen_project_*_autogen.sh.meta 55 | .exvim.app 56 | 57 | #///////////////////////////////////////////////////////////////////////////// 58 | # webstorm files 59 | #///////////////////////////////////////////////////////////////////////////// 60 | 61 | .idea/ 62 | 63 | 64 | #///////////////////////////////////////////////////////////////////////////// 65 | # publish folders 66 | #///////////////////////////////////////////////////////////////////////////// 67 | 68 | jsb/ 69 | -------------------------------------------------------------------------------- /assets/launch.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 | "_localZOrder": 0, 41 | "_globalZOrder": 0, 42 | "_ignoreAnchorPointForPosition": false, 43 | "_tag": -1, 44 | "_opacityModifyRGB": false, 45 | "_id": "2c9567ca-078b-45a6-b257-3adad41ffe3a" 46 | }, 47 | { 48 | "__type__": "cc.Node", 49 | "_name": "Canvas", 50 | "_objFlags": 0, 51 | "_opacity": 255, 52 | "_color": { 53 | "__type__": "cc.Color", 54 | "r": 255, 55 | "g": 255, 56 | "b": 255, 57 | "a": 255 58 | }, 59 | "_cascadeOpacityEnabled": true, 60 | "_parent": { 61 | "__id__": 1 62 | }, 63 | "_anchorPoint": { 64 | "__type__": "cc.Vec2", 65 | "x": 0.5, 66 | "y": 0.5 67 | }, 68 | "_contentSize": { 69 | "__type__": "cc.Size", 70 | "width": 960, 71 | "height": 640 72 | }, 73 | "_children": [ 74 | { 75 | "__id__": 3 76 | }, 77 | { 78 | "__id__": 7 79 | }, 80 | { 81 | "__id__": 37 82 | }, 83 | { 84 | "__id__": 42 85 | }, 86 | { 87 | "__id__": 47 88 | }, 89 | { 90 | "__id__": 52 91 | } 92 | ], 93 | "_rotationX": 0, 94 | "_rotationY": 0, 95 | "_scaleX": 1, 96 | "_scaleY": 1, 97 | "_position": { 98 | "__type__": "cc.Vec2", 99 | "x": 480, 100 | "y": 320 101 | }, 102 | "_skewX": 0, 103 | "_skewY": 0, 104 | "_localZOrder": 0, 105 | "_globalZOrder": 0, 106 | "_ignoreAnchorPointForPosition": false, 107 | "_tag": -1, 108 | "_opacityModifyRGB": false, 109 | "_id": "c898fToNyhEXKBpAYFPPAGt", 110 | "_active": true, 111 | "_components": [ 112 | { 113 | "__id__": 67 114 | }, 115 | { 116 | "__id__": 68 117 | } 118 | ], 119 | "_prefab": null 120 | }, 121 | { 122 | "__type__": "cc.Node", 123 | "_name": "title", 124 | "_objFlags": 0, 125 | "_opacity": 255, 126 | "_color": { 127 | "__type__": "cc.Color", 128 | "r": 255, 129 | "g": 255, 130 | "b": 255, 131 | "a": 255 132 | }, 133 | "_cascadeOpacityEnabled": true, 134 | "_parent": { 135 | "__id__": 2 136 | }, 137 | "_anchorPoint": { 138 | "__type__": "cc.Vec2", 139 | "x": 0.5, 140 | "y": 0.5 141 | }, 142 | "_contentSize": { 143 | "__type__": "cc.Size", 144 | "width": 446.484375, 145 | "height": 110 146 | }, 147 | "_children": [ 148 | { 149 | "__id__": 4 150 | } 151 | ], 152 | "_rotationX": 0, 153 | "_rotationY": 0, 154 | "_scaleX": 1, 155 | "_scaleY": 1, 156 | "_position": { 157 | "__type__": "cc.Vec2", 158 | "x": 0, 159 | "y": 246 160 | }, 161 | "_skewX": 0, 162 | "_skewY": 0, 163 | "_localZOrder": 0, 164 | "_globalZOrder": 0, 165 | "_ignoreAnchorPointForPosition": false, 166 | "_tag": -1, 167 | "_opacityModifyRGB": false, 168 | "_id": "35614k0bRlLEIWr33TLqBen", 169 | "_active": true, 170 | "_components": [ 171 | { 172 | "__id__": 6 173 | } 174 | ], 175 | "_prefab": null 176 | }, 177 | { 178 | "__type__": "cc.Node", 179 | "_name": "bg", 180 | "_objFlags": 0, 181 | "_opacity": 255, 182 | "_color": { 183 | "__type__": "cc.Color", 184 | "r": 167, 185 | "g": 167, 186 | "b": 167, 187 | "a": 255 188 | }, 189 | "_cascadeOpacityEnabled": true, 190 | "_parent": { 191 | "__id__": 3 192 | }, 193 | "_anchorPoint": { 194 | "__type__": "cc.Vec2", 195 | "x": 0.5, 196 | "y": 0.5 197 | }, 198 | "_contentSize": { 199 | "__type__": "cc.Size", 200 | "width": 900, 201 | "height": 450 202 | }, 203 | "_children": [], 204 | "_rotationX": 0, 205 | "_rotationY": 0, 206 | "_scaleX": 1, 207 | "_scaleY": 1, 208 | "_position": { 209 | "__type__": "cc.Vec2", 210 | "x": 0, 211 | "y": -308 212 | }, 213 | "_skewX": 0, 214 | "_skewY": 0, 215 | "_localZOrder": 0, 216 | "_globalZOrder": 0, 217 | "_ignoreAnchorPointForPosition": false, 218 | "_tag": -1, 219 | "_opacityModifyRGB": false, 220 | "_id": "16e27iAullJdaxHpOqzV1Mo", 221 | "_active": true, 222 | "_components": [ 223 | { 224 | "__id__": 5 225 | } 226 | ], 227 | "_prefab": null 228 | }, 229 | { 230 | "__type__": "cc.Sprite", 231 | "_name": "", 232 | "_objFlags": 0, 233 | "node": { 234 | "__id__": 4 235 | }, 236 | "_enabled": true, 237 | "_spriteFrame": { 238 | "__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69" 239 | }, 240 | "_type": 1, 241 | "_useOriginalSize": false, 242 | "_sizeMode": 0, 243 | "_fillType": 0, 244 | "_fillCenter": { 245 | "__type__": "cc.Vec2", 246 | "x": 0, 247 | "y": 0 248 | }, 249 | "_fillStart": 0, 250 | "_fillRange": 0, 251 | "_isTrimmedMode": true, 252 | "_atlas": null 253 | }, 254 | { 255 | "__type__": "cc.Label", 256 | "_name": "", 257 | "_objFlags": 0, 258 | "node": { 259 | "__id__": 3 260 | }, 261 | "_enabled": true, 262 | "_useOriginalSize": false, 263 | "_fontSize": 80, 264 | "_lineHeight": 110, 265 | "_enableWrapText": true, 266 | "_isSystemFontUsed": false, 267 | "_N$string": "Local Storage", 268 | "_N$horizontalAlign": 1, 269 | "_N$verticalAlign": 1, 270 | "_N$overflow": 0 271 | }, 272 | { 273 | "__type__": "cc.Node", 274 | "_name": "layout", 275 | "_objFlags": 0, 276 | "_opacity": 255, 277 | "_color": { 278 | "__type__": "cc.Color", 279 | "r": 167, 280 | "g": 167, 281 | "b": 167, 282 | "a": 255 283 | }, 284 | "_cascadeOpacityEnabled": true, 285 | "_parent": { 286 | "__id__": 2 287 | }, 288 | "_anchorPoint": { 289 | "__type__": "cc.Vec2", 290 | "x": 0.5, 291 | "y": 0.5 292 | }, 293 | "_contentSize": { 294 | "__type__": "cc.Size", 295 | "width": 215, 296 | "height": 160 297 | }, 298 | "_children": [ 299 | { 300 | "__id__": 8 301 | }, 302 | { 303 | "__id__": 15 304 | }, 305 | { 306 | "__id__": 22 307 | }, 308 | { 309 | "__id__": 29 310 | } 311 | ], 312 | "_rotationX": 0, 313 | "_rotationY": 0, 314 | "_scaleX": 1, 315 | "_scaleY": 1, 316 | "_position": { 317 | "__type__": "cc.Vec2", 318 | "x": -327, 319 | "y": -191 320 | }, 321 | "_skewX": 0, 322 | "_skewY": 0, 323 | "_localZOrder": 0, 324 | "_globalZOrder": 0, 325 | "_ignoreAnchorPointForPosition": false, 326 | "_tag": -1, 327 | "_opacityModifyRGB": false, 328 | "_id": "58399VM2/9Bq4g/e7DzhZBf", 329 | "_active": true, 330 | "_components": [ 331 | { 332 | "__id__": 36 333 | } 334 | ], 335 | "_prefab": null 336 | }, 337 | { 338 | "__type__": "cc.Node", 339 | "_name": "btn_storage", 340 | "_objFlags": 0, 341 | "_opacity": 255, 342 | "_color": { 343 | "__type__": "cc.Color", 344 | "r": 255, 345 | "g": 255, 346 | "b": 255, 347 | "a": 255 348 | }, 349 | "_cascadeOpacityEnabled": true, 350 | "_parent": { 351 | "__id__": 7 352 | }, 353 | "_anchorPoint": { 354 | "__type__": "cc.Vec2", 355 | "x": 0.5, 356 | "y": 0.5 357 | }, 358 | "_contentSize": { 359 | "__type__": "cc.Size", 360 | "width": 210, 361 | "height": 40 362 | }, 363 | "_children": [ 364 | { 365 | "__id__": 9 366 | } 367 | ], 368 | "_rotationX": 0, 369 | "_rotationY": 0, 370 | "_scaleX": 1, 371 | "_scaleY": 1, 372 | "_position": { 373 | "__type__": "cc.Vec2", 374 | "x": 0, 375 | "y": 60 376 | }, 377 | "_skewX": 0, 378 | "_skewY": 0, 379 | "_localZOrder": 0, 380 | "_globalZOrder": 0, 381 | "_ignoreAnchorPointForPosition": false, 382 | "_tag": -1, 383 | "_opacityModifyRGB": false, 384 | "_id": "c31427S6IBAqavOD+O7ROwV", 385 | "_active": true, 386 | "_components": [ 387 | { 388 | "__id__": 11 389 | }, 390 | { 391 | "__id__": 12 392 | }, 393 | { 394 | "__id__": 13 395 | } 396 | ], 397 | "_prefab": null 398 | }, 399 | { 400 | "__type__": "cc.Node", 401 | "_name": "Label", 402 | "_objFlags": 0, 403 | "_opacity": 255, 404 | "_color": { 405 | "__type__": "cc.Color", 406 | "r": 0, 407 | "g": 0, 408 | "b": 0, 409 | "a": 255 410 | }, 411 | "_cascadeOpacityEnabled": true, 412 | "_parent": { 413 | "__id__": 8 414 | }, 415 | "_anchorPoint": { 416 | "__type__": "cc.Vec2", 417 | "x": 0.5, 418 | "y": 0.5 419 | }, 420 | "_contentSize": { 421 | "__type__": "cc.Size", 422 | "width": 100, 423 | "height": 40 424 | }, 425 | "_children": [], 426 | "_rotationX": 0, 427 | "_rotationY": 0, 428 | "_scaleX": 1, 429 | "_scaleY": 1, 430 | "_position": { 431 | "__type__": "cc.Vec2", 432 | "x": 1.1368683772161603e-13, 433 | "y": 0 434 | }, 435 | "_skewX": 0, 436 | "_skewY": 0, 437 | "_localZOrder": 0, 438 | "_globalZOrder": 0, 439 | "_ignoreAnchorPointForPosition": false, 440 | "_tag": -1, 441 | "_opacityModifyRGB": false, 442 | "_id": "46bb6XJTDFMTYOdn1fkUK3b", 443 | "_active": true, 444 | "_components": [ 445 | { 446 | "__id__": 10 447 | } 448 | ], 449 | "_prefab": null 450 | }, 451 | { 452 | "__type__": "cc.Label", 453 | "_name": "", 454 | "_objFlags": 0, 455 | "node": { 456 | "__id__": 9 457 | }, 458 | "_enabled": true, 459 | "_useOriginalSize": false, 460 | "_fontSize": 20, 461 | "_lineHeight": 40, 462 | "_enableWrapText": false, 463 | "_isSystemFontUsed": false, 464 | "_N$string": "存储", 465 | "_N$horizontalAlign": 1, 466 | "_N$verticalAlign": 1, 467 | "_N$overflow": 1, 468 | "_N$file": { 469 | "__uuid__": "ec2260e2-992b-4c8d-b405-cf232c95d623" 470 | } 471 | }, 472 | { 473 | "__type__": "cc.Widget", 474 | "_name": "", 475 | "_objFlags": 0, 476 | "node": { 477 | "__id__": 8 478 | }, 479 | "_enabled": true, 480 | "_alignFlags": 0, 481 | "_left": 0, 482 | "_right": 0, 483 | "_top": 0, 484 | "_bottom": 0, 485 | "_isAbsLeft": true, 486 | "_isAbsRight": true, 487 | "_isAbsTop": true, 488 | "_isAbsBottom": true, 489 | "_originalWidth": 0, 490 | "_originalHeight": 0 491 | }, 492 | { 493 | "__type__": "cc.Sprite", 494 | "_name": "", 495 | "_objFlags": 0, 496 | "node": { 497 | "__id__": 8 498 | }, 499 | "_enabled": true, 500 | "_spriteFrame": { 501 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 502 | }, 503 | "_type": 1, 504 | "_useOriginalSize": false, 505 | "_sizeMode": 0, 506 | "_fillType": 0, 507 | "_fillCenter": { 508 | "__type__": "cc.Vec2", 509 | "x": 0, 510 | "y": 0 511 | }, 512 | "_fillStart": 0, 513 | "_fillRange": 0, 514 | "_isTrimmedMode": true, 515 | "_atlas": null 516 | }, 517 | { 518 | "__type__": "cc.Button", 519 | "_name": "", 520 | "_objFlags": 0, 521 | "node": { 522 | "__id__": 8 523 | }, 524 | "_enabled": true, 525 | "transition": 1, 526 | "pressedColor": { 527 | "__type__": "cc.Color", 528 | "r": 185, 529 | "g": 185, 530 | "b": 185, 531 | "a": 255 532 | }, 533 | "hoverColor": { 534 | "__type__": "cc.Color", 535 | "r": 255, 536 | "g": 255, 537 | "b": 255, 538 | "a": 255 539 | }, 540 | "duration": 0.1, 541 | "pressedSprite": { 542 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 543 | }, 544 | "hoverSprite": { 545 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 546 | }, 547 | "clickEvents": [ 548 | { 549 | "__id__": 14 550 | } 551 | ], 552 | "_N$interactable": true, 553 | "_N$normalColor": { 554 | "__type__": "cc.Color", 555 | "r": 255, 556 | "g": 255, 557 | "b": 255, 558 | "a": 255 559 | }, 560 | "_N$disabledColor": { 561 | "__type__": "cc.Color", 562 | "r": 255, 563 | "g": 255, 564 | "b": 255, 565 | "a": 255 566 | }, 567 | "_N$normalSprite": { 568 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 569 | }, 570 | "_N$disabledSprite": { 571 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 572 | }, 573 | "_N$target": { 574 | "__id__": 8 575 | } 576 | }, 577 | { 578 | "__type__": "cc.ClickEvent", 579 | "target": { 580 | "__id__": 2 581 | }, 582 | "component": "main", 583 | "handler": "saveUserDataEvent" 584 | }, 585 | { 586 | "__type__": "cc.Node", 587 | "_name": "btn_read", 588 | "_objFlags": 0, 589 | "_opacity": 255, 590 | "_color": { 591 | "__type__": "cc.Color", 592 | "r": 255, 593 | "g": 255, 594 | "b": 255, 595 | "a": 255 596 | }, 597 | "_cascadeOpacityEnabled": true, 598 | "_parent": { 599 | "__id__": 7 600 | }, 601 | "_anchorPoint": { 602 | "__type__": "cc.Vec2", 603 | "x": 0.5, 604 | "y": 0.5 605 | }, 606 | "_contentSize": { 607 | "__type__": "cc.Size", 608 | "width": 210, 609 | "height": 40 610 | }, 611 | "_children": [ 612 | { 613 | "__id__": 16 614 | } 615 | ], 616 | "_rotationX": 0, 617 | "_rotationY": 0, 618 | "_scaleX": 1, 619 | "_scaleY": 1, 620 | "_position": { 621 | "__type__": "cc.Vec2", 622 | "x": 0, 623 | "y": 20 624 | }, 625 | "_skewX": 0, 626 | "_skewY": 0, 627 | "_localZOrder": 0, 628 | "_globalZOrder": 0, 629 | "_ignoreAnchorPointForPosition": false, 630 | "_tag": -1, 631 | "_opacityModifyRGB": false, 632 | "_id": "9d3ceh28qtEc79SJFzL0Il2", 633 | "_active": true, 634 | "_components": [ 635 | { 636 | "__id__": 18 637 | }, 638 | { 639 | "__id__": 19 640 | }, 641 | { 642 | "__id__": 20 643 | } 644 | ], 645 | "_prefab": null 646 | }, 647 | { 648 | "__type__": "cc.Node", 649 | "_name": "Label", 650 | "_objFlags": 0, 651 | "_opacity": 255, 652 | "_color": { 653 | "__type__": "cc.Color", 654 | "r": 0, 655 | "g": 0, 656 | "b": 0, 657 | "a": 255 658 | }, 659 | "_cascadeOpacityEnabled": true, 660 | "_parent": { 661 | "__id__": 15 662 | }, 663 | "_anchorPoint": { 664 | "__type__": "cc.Vec2", 665 | "x": 0.5, 666 | "y": 0.5 667 | }, 668 | "_contentSize": { 669 | "__type__": "cc.Size", 670 | "width": 100, 671 | "height": 40 672 | }, 673 | "_children": [], 674 | "_rotationX": 0, 675 | "_rotationY": 0, 676 | "_scaleX": 1, 677 | "_scaleY": 1, 678 | "_position": { 679 | "__type__": "cc.Vec2", 680 | "x": 1.1368683772161603e-13, 681 | "y": 0 682 | }, 683 | "_skewX": 0, 684 | "_skewY": 0, 685 | "_localZOrder": 0, 686 | "_globalZOrder": 0, 687 | "_ignoreAnchorPointForPosition": false, 688 | "_tag": -1, 689 | "_opacityModifyRGB": false, 690 | "_id": "1a1e9zcmYtAL6DmjVc7Z8Jn", 691 | "_active": true, 692 | "_components": [ 693 | { 694 | "__id__": 17 695 | } 696 | ], 697 | "_prefab": null 698 | }, 699 | { 700 | "__type__": "cc.Label", 701 | "_name": "", 702 | "_objFlags": 0, 703 | "node": { 704 | "__id__": 16 705 | }, 706 | "_enabled": true, 707 | "_useOriginalSize": false, 708 | "_fontSize": 20, 709 | "_lineHeight": 40, 710 | "_enableWrapText": false, 711 | "_isSystemFontUsed": false, 712 | "_N$string": "读取", 713 | "_N$horizontalAlign": 1, 714 | "_N$verticalAlign": 1, 715 | "_N$overflow": 1, 716 | "_N$file": { 717 | "__uuid__": "ec2260e2-992b-4c8d-b405-cf232c95d623" 718 | } 719 | }, 720 | { 721 | "__type__": "cc.Widget", 722 | "_name": "", 723 | "_objFlags": 0, 724 | "node": { 725 | "__id__": 15 726 | }, 727 | "_enabled": true, 728 | "_alignFlags": 0, 729 | "_left": 0, 730 | "_right": 0, 731 | "_top": 0, 732 | "_bottom": 0, 733 | "_isAbsLeft": true, 734 | "_isAbsRight": true, 735 | "_isAbsTop": true, 736 | "_isAbsBottom": true, 737 | "_originalWidth": 0, 738 | "_originalHeight": 0 739 | }, 740 | { 741 | "__type__": "cc.Sprite", 742 | "_name": "", 743 | "_objFlags": 0, 744 | "node": { 745 | "__id__": 15 746 | }, 747 | "_enabled": true, 748 | "_spriteFrame": { 749 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 750 | }, 751 | "_type": 1, 752 | "_useOriginalSize": false, 753 | "_sizeMode": 0, 754 | "_fillType": 0, 755 | "_fillCenter": { 756 | "__type__": "cc.Vec2", 757 | "x": 0, 758 | "y": 0 759 | }, 760 | "_fillStart": 0, 761 | "_fillRange": 0, 762 | "_isTrimmedMode": true, 763 | "_atlas": null 764 | }, 765 | { 766 | "__type__": "cc.Button", 767 | "_name": "", 768 | "_objFlags": 0, 769 | "node": { 770 | "__id__": 15 771 | }, 772 | "_enabled": true, 773 | "transition": 1, 774 | "pressedColor": { 775 | "__type__": "cc.Color", 776 | "r": 185, 777 | "g": 185, 778 | "b": 185, 779 | "a": 255 780 | }, 781 | "hoverColor": { 782 | "__type__": "cc.Color", 783 | "r": 255, 784 | "g": 255, 785 | "b": 255, 786 | "a": 255 787 | }, 788 | "duration": 0.1, 789 | "pressedSprite": { 790 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 791 | }, 792 | "hoverSprite": { 793 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 794 | }, 795 | "clickEvents": [ 796 | { 797 | "__id__": 21 798 | } 799 | ], 800 | "_N$interactable": true, 801 | "_N$normalColor": { 802 | "__type__": "cc.Color", 803 | "r": 255, 804 | "g": 255, 805 | "b": 255, 806 | "a": 255 807 | }, 808 | "_N$disabledColor": { 809 | "__type__": "cc.Color", 810 | "r": 255, 811 | "g": 255, 812 | "b": 255, 813 | "a": 255 814 | }, 815 | "_N$normalSprite": { 816 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 817 | }, 818 | "_N$disabledSprite": { 819 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 820 | }, 821 | "_N$target": { 822 | "__id__": 15 823 | } 824 | }, 825 | { 826 | "__type__": "cc.ClickEvent", 827 | "target": { 828 | "__id__": 2 829 | }, 830 | "component": "main", 831 | "handler": "readUserDataEvent" 832 | }, 833 | { 834 | "__type__": "cc.Node", 835 | "_name": "btn_remove", 836 | "_objFlags": 0, 837 | "_opacity": 255, 838 | "_color": { 839 | "__type__": "cc.Color", 840 | "r": 255, 841 | "g": 255, 842 | "b": 255, 843 | "a": 255 844 | }, 845 | "_cascadeOpacityEnabled": true, 846 | "_parent": { 847 | "__id__": 7 848 | }, 849 | "_anchorPoint": { 850 | "__type__": "cc.Vec2", 851 | "x": 0.5, 852 | "y": 0.5 853 | }, 854 | "_contentSize": { 855 | "__type__": "cc.Size", 856 | "width": 210, 857 | "height": 40 858 | }, 859 | "_children": [ 860 | { 861 | "__id__": 23 862 | } 863 | ], 864 | "_rotationX": 0, 865 | "_rotationY": 0, 866 | "_scaleX": 1, 867 | "_scaleY": 1, 868 | "_position": { 869 | "__type__": "cc.Vec2", 870 | "x": 0, 871 | "y": -20 872 | }, 873 | "_skewX": 0, 874 | "_skewY": 0, 875 | "_localZOrder": 0, 876 | "_globalZOrder": 0, 877 | "_ignoreAnchorPointForPosition": false, 878 | "_tag": -1, 879 | "_opacityModifyRGB": false, 880 | "_id": "f8d07cq5WVFdKFgkm8Hsl/t", 881 | "_active": true, 882 | "_components": [ 883 | { 884 | "__id__": 25 885 | }, 886 | { 887 | "__id__": 26 888 | }, 889 | { 890 | "__id__": 27 891 | } 892 | ], 893 | "_prefab": null 894 | }, 895 | { 896 | "__type__": "cc.Node", 897 | "_name": "Label", 898 | "_objFlags": 0, 899 | "_opacity": 255, 900 | "_color": { 901 | "__type__": "cc.Color", 902 | "r": 0, 903 | "g": 0, 904 | "b": 0, 905 | "a": 255 906 | }, 907 | "_cascadeOpacityEnabled": true, 908 | "_parent": { 909 | "__id__": 22 910 | }, 911 | "_anchorPoint": { 912 | "__type__": "cc.Vec2", 913 | "x": 0.5, 914 | "y": 0.5 915 | }, 916 | "_contentSize": { 917 | "__type__": "cc.Size", 918 | "width": 215, 919 | "height": 40 920 | }, 921 | "_children": [], 922 | "_rotationX": 0, 923 | "_rotationY": 0, 924 | "_scaleX": 1, 925 | "_scaleY": 1, 926 | "_position": { 927 | "__type__": "cc.Vec2", 928 | "x": 1.1368683772161603e-13, 929 | "y": 0 930 | }, 931 | "_skewX": 0, 932 | "_skewY": 0, 933 | "_localZOrder": 0, 934 | "_globalZOrder": 0, 935 | "_ignoreAnchorPointForPosition": false, 936 | "_tag": -1, 937 | "_opacityModifyRGB": false, 938 | "_id": "c1183e7SexC3ZDhNOcuoM5h", 939 | "_active": true, 940 | "_components": [ 941 | { 942 | "__id__": 24 943 | } 944 | ], 945 | "_prefab": null 946 | }, 947 | { 948 | "__type__": "cc.Label", 949 | "_name": "", 950 | "_objFlags": 0, 951 | "node": { 952 | "__id__": 23 953 | }, 954 | "_enabled": true, 955 | "_useOriginalSize": false, 956 | "_fontSize": 20, 957 | "_lineHeight": 40, 958 | "_enableWrapText": false, 959 | "_isSystemFontUsed": false, 960 | "_N$string": "移除 Vip字段", 961 | "_N$horizontalAlign": 1, 962 | "_N$verticalAlign": 1, 963 | "_N$overflow": 1, 964 | "_N$file": { 965 | "__uuid__": "ec2260e2-992b-4c8d-b405-cf232c95d623" 966 | } 967 | }, 968 | { 969 | "__type__": "cc.Widget", 970 | "_name": "", 971 | "_objFlags": 0, 972 | "node": { 973 | "__id__": 22 974 | }, 975 | "_enabled": true, 976 | "_alignFlags": 0, 977 | "_left": 0, 978 | "_right": 0, 979 | "_top": 0, 980 | "_bottom": 0, 981 | "_isAbsLeft": true, 982 | "_isAbsRight": true, 983 | "_isAbsTop": true, 984 | "_isAbsBottom": true, 985 | "_originalWidth": 0, 986 | "_originalHeight": 0 987 | }, 988 | { 989 | "__type__": "cc.Sprite", 990 | "_name": "", 991 | "_objFlags": 0, 992 | "node": { 993 | "__id__": 22 994 | }, 995 | "_enabled": true, 996 | "_spriteFrame": { 997 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 998 | }, 999 | "_type": 1, 1000 | "_useOriginalSize": false, 1001 | "_sizeMode": 0, 1002 | "_fillType": 0, 1003 | "_fillCenter": { 1004 | "__type__": "cc.Vec2", 1005 | "x": 0, 1006 | "y": 0 1007 | }, 1008 | "_fillStart": 0, 1009 | "_fillRange": 0, 1010 | "_isTrimmedMode": true, 1011 | "_atlas": null 1012 | }, 1013 | { 1014 | "__type__": "cc.Button", 1015 | "_name": "", 1016 | "_objFlags": 0, 1017 | "node": { 1018 | "__id__": 22 1019 | }, 1020 | "_enabled": true, 1021 | "transition": 1, 1022 | "pressedColor": { 1023 | "__type__": "cc.Color", 1024 | "r": 185, 1025 | "g": 185, 1026 | "b": 185, 1027 | "a": 255 1028 | }, 1029 | "hoverColor": { 1030 | "__type__": "cc.Color", 1031 | "r": 255, 1032 | "g": 255, 1033 | "b": 255, 1034 | "a": 255 1035 | }, 1036 | "duration": 0.1, 1037 | "pressedSprite": { 1038 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1039 | }, 1040 | "hoverSprite": { 1041 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1042 | }, 1043 | "clickEvents": [ 1044 | { 1045 | "__id__": 28 1046 | } 1047 | ], 1048 | "_N$interactable": true, 1049 | "_N$normalColor": { 1050 | "__type__": "cc.Color", 1051 | "r": 255, 1052 | "g": 255, 1053 | "b": 255, 1054 | "a": 255 1055 | }, 1056 | "_N$disabledColor": { 1057 | "__type__": "cc.Color", 1058 | "r": 255, 1059 | "g": 255, 1060 | "b": 255, 1061 | "a": 255 1062 | }, 1063 | "_N$normalSprite": { 1064 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1065 | }, 1066 | "_N$disabledSprite": { 1067 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 1068 | }, 1069 | "_N$target": { 1070 | "__id__": 22 1071 | } 1072 | }, 1073 | { 1074 | "__type__": "cc.ClickEvent", 1075 | "target": { 1076 | "__id__": 2 1077 | }, 1078 | "component": "main", 1079 | "handler": "removeUserDataEvent" 1080 | }, 1081 | { 1082 | "__type__": "cc.Node", 1083 | "_name": "btn_clear", 1084 | "_objFlags": 0, 1085 | "_opacity": 255, 1086 | "_color": { 1087 | "__type__": "cc.Color", 1088 | "r": 255, 1089 | "g": 255, 1090 | "b": 255, 1091 | "a": 255 1092 | }, 1093 | "_cascadeOpacityEnabled": true, 1094 | "_parent": { 1095 | "__id__": 7 1096 | }, 1097 | "_anchorPoint": { 1098 | "__type__": "cc.Vec2", 1099 | "x": 0.5, 1100 | "y": 0.5 1101 | }, 1102 | "_contentSize": { 1103 | "__type__": "cc.Size", 1104 | "width": 210, 1105 | "height": 40 1106 | }, 1107 | "_children": [ 1108 | { 1109 | "__id__": 30 1110 | } 1111 | ], 1112 | "_rotationX": 0, 1113 | "_rotationY": 0, 1114 | "_scaleX": 1, 1115 | "_scaleY": 1, 1116 | "_position": { 1117 | "__type__": "cc.Vec2", 1118 | "x": 0, 1119 | "y": -60 1120 | }, 1121 | "_skewX": 0, 1122 | "_skewY": 0, 1123 | "_localZOrder": 0, 1124 | "_globalZOrder": 0, 1125 | "_ignoreAnchorPointForPosition": false, 1126 | "_tag": -1, 1127 | "_opacityModifyRGB": false, 1128 | "_id": "e0bec2meBtCUb40pbOy0IG6", 1129 | "_active": true, 1130 | "_components": [ 1131 | { 1132 | "__id__": 32 1133 | }, 1134 | { 1135 | "__id__": 33 1136 | }, 1137 | { 1138 | "__id__": 34 1139 | } 1140 | ], 1141 | "_prefab": null 1142 | }, 1143 | { 1144 | "__type__": "cc.Node", 1145 | "_name": "Label", 1146 | "_objFlags": 0, 1147 | "_opacity": 255, 1148 | "_color": { 1149 | "__type__": "cc.Color", 1150 | "r": 0, 1151 | "g": 0, 1152 | "b": 0, 1153 | "a": 255 1154 | }, 1155 | "_cascadeOpacityEnabled": true, 1156 | "_parent": { 1157 | "__id__": 29 1158 | }, 1159 | "_anchorPoint": { 1160 | "__type__": "cc.Vec2", 1161 | "x": 0.5, 1162 | "y": 0.5 1163 | }, 1164 | "_contentSize": { 1165 | "__type__": "cc.Size", 1166 | "width": 100, 1167 | "height": 40 1168 | }, 1169 | "_children": [], 1170 | "_rotationX": 0, 1171 | "_rotationY": 0, 1172 | "_scaleX": 1, 1173 | "_scaleY": 1, 1174 | "_position": { 1175 | "__type__": "cc.Vec2", 1176 | "x": 1.1368683772161603e-13, 1177 | "y": 0 1178 | }, 1179 | "_skewX": 0, 1180 | "_skewY": 0, 1181 | "_localZOrder": 0, 1182 | "_globalZOrder": 0, 1183 | "_ignoreAnchorPointForPosition": false, 1184 | "_tag": -1, 1185 | "_opacityModifyRGB": false, 1186 | "_id": "0288383nXlN5YzRMAs3cHwc", 1187 | "_active": true, 1188 | "_components": [ 1189 | { 1190 | "__id__": 31 1191 | } 1192 | ], 1193 | "_prefab": null 1194 | }, 1195 | { 1196 | "__type__": "cc.Label", 1197 | "_name": "", 1198 | "_objFlags": 0, 1199 | "node": { 1200 | "__id__": 30 1201 | }, 1202 | "_enabled": true, 1203 | "_useOriginalSize": false, 1204 | "_fontSize": 20, 1205 | "_lineHeight": 40, 1206 | "_enableWrapText": false, 1207 | "_isSystemFontUsed": false, 1208 | "_N$string": "清空", 1209 | "_N$horizontalAlign": 1, 1210 | "_N$verticalAlign": 1, 1211 | "_N$overflow": 1, 1212 | "_N$file": { 1213 | "__uuid__": "ec2260e2-992b-4c8d-b405-cf232c95d623" 1214 | } 1215 | }, 1216 | { 1217 | "__type__": "cc.Widget", 1218 | "_name": "", 1219 | "_objFlags": 0, 1220 | "node": { 1221 | "__id__": 29 1222 | }, 1223 | "_enabled": true, 1224 | "_alignFlags": 0, 1225 | "_left": 0, 1226 | "_right": 0, 1227 | "_top": 0, 1228 | "_bottom": 0, 1229 | "_isAbsLeft": true, 1230 | "_isAbsRight": true, 1231 | "_isAbsTop": true, 1232 | "_isAbsBottom": true, 1233 | "_originalWidth": 0, 1234 | "_originalHeight": 0 1235 | }, 1236 | { 1237 | "__type__": "cc.Sprite", 1238 | "_name": "", 1239 | "_objFlags": 0, 1240 | "node": { 1241 | "__id__": 29 1242 | }, 1243 | "_enabled": true, 1244 | "_spriteFrame": { 1245 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1246 | }, 1247 | "_type": 1, 1248 | "_useOriginalSize": false, 1249 | "_sizeMode": 0, 1250 | "_fillType": 0, 1251 | "_fillCenter": { 1252 | "__type__": "cc.Vec2", 1253 | "x": 0, 1254 | "y": 0 1255 | }, 1256 | "_fillStart": 0, 1257 | "_fillRange": 0, 1258 | "_isTrimmedMode": true, 1259 | "_atlas": null 1260 | }, 1261 | { 1262 | "__type__": "cc.Button", 1263 | "_name": "", 1264 | "_objFlags": 0, 1265 | "node": { 1266 | "__id__": 29 1267 | }, 1268 | "_enabled": true, 1269 | "transition": 1, 1270 | "pressedColor": { 1271 | "__type__": "cc.Color", 1272 | "r": 185, 1273 | "g": 185, 1274 | "b": 185, 1275 | "a": 255 1276 | }, 1277 | "hoverColor": { 1278 | "__type__": "cc.Color", 1279 | "r": 255, 1280 | "g": 255, 1281 | "b": 255, 1282 | "a": 255 1283 | }, 1284 | "duration": 0.1, 1285 | "pressedSprite": { 1286 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1287 | }, 1288 | "hoverSprite": { 1289 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1290 | }, 1291 | "clickEvents": [ 1292 | { 1293 | "__id__": 35 1294 | } 1295 | ], 1296 | "_N$interactable": true, 1297 | "_N$normalColor": { 1298 | "__type__": "cc.Color", 1299 | "r": 255, 1300 | "g": 255, 1301 | "b": 255, 1302 | "a": 255 1303 | }, 1304 | "_N$disabledColor": { 1305 | "__type__": "cc.Color", 1306 | "r": 255, 1307 | "g": 255, 1308 | "b": 255, 1309 | "a": 255 1310 | }, 1311 | "_N$normalSprite": { 1312 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1313 | }, 1314 | "_N$disabledSprite": { 1315 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 1316 | }, 1317 | "_N$target": { 1318 | "__id__": 29 1319 | } 1320 | }, 1321 | { 1322 | "__type__": "cc.ClickEvent", 1323 | "target": { 1324 | "__id__": 2 1325 | }, 1326 | "component": "main", 1327 | "handler": "clearUserDataEvent" 1328 | }, 1329 | { 1330 | "__type__": "cc.Layout", 1331 | "_name": "", 1332 | "_objFlags": 0, 1333 | "node": { 1334 | "__id__": 7 1335 | }, 1336 | "_enabled": true, 1337 | "_layoutSize": { 1338 | "__type__": "cc.Size", 1339 | "width": 215, 1340 | "height": 160 1341 | }, 1342 | "_resize": 1, 1343 | "_N$layoutType": 2, 1344 | "_N$cellSize": { 1345 | "__type__": "cc.Size", 1346 | "width": 40, 1347 | "height": 40 1348 | }, 1349 | "_N$startAxis": 1, 1350 | "_N$padding": 0, 1351 | "_N$spacingX": 10, 1352 | "_N$spacingY": 0, 1353 | "_N$verticalDirection": 1, 1354 | "_N$horizontalDirection": 0 1355 | }, 1356 | { 1357 | "__type__": "cc.Node", 1358 | "_name": "node_control", 1359 | "_objFlags": 0, 1360 | "_opacity": 255, 1361 | "_color": { 1362 | "__type__": "cc.Color", 1363 | "r": 255, 1364 | "g": 255, 1365 | "b": 255, 1366 | "a": 255 1367 | }, 1368 | "_cascadeOpacityEnabled": true, 1369 | "_parent": { 1370 | "__id__": 2 1371 | }, 1372 | "_anchorPoint": { 1373 | "__type__": "cc.Vec2", 1374 | "x": 0.5, 1375 | "y": 0.5 1376 | }, 1377 | "_contentSize": { 1378 | "__type__": "cc.Size", 1379 | "width": 0, 1380 | "height": 0 1381 | }, 1382 | "_children": [ 1383 | { 1384 | "__id__": 38 1385 | }, 1386 | { 1387 | "__id__": 40 1388 | } 1389 | ], 1390 | "_rotationX": 0, 1391 | "_rotationY": 0, 1392 | "_scaleX": 1, 1393 | "_scaleY": 1, 1394 | "_position": { 1395 | "__type__": "cc.Vec2", 1396 | "x": -393, 1397 | "y": -91 1398 | }, 1399 | "_skewX": 0, 1400 | "_skewY": 0, 1401 | "_localZOrder": 0, 1402 | "_globalZOrder": 0, 1403 | "_ignoreAnchorPointForPosition": false, 1404 | "_tag": -1, 1405 | "_opacityModifyRGB": false, 1406 | "_id": "70fe8AiLT9MArE2gW75wm3k", 1407 | "_active": true, 1408 | "_components": [], 1409 | "_prefab": null 1410 | }, 1411 | { 1412 | "__type__": "cc.Node", 1413 | "_name": "title", 1414 | "_objFlags": 0, 1415 | "_opacity": 255, 1416 | "_color": { 1417 | "__type__": "cc.Color", 1418 | "r": 255, 1419 | "g": 255, 1420 | "b": 255, 1421 | "a": 255 1422 | }, 1423 | "_cascadeOpacityEnabled": true, 1424 | "_parent": { 1425 | "__id__": 37 1426 | }, 1427 | "_anchorPoint": { 1428 | "__type__": "cc.Vec2", 1429 | "x": 0.5, 1430 | "y": 0.5 1431 | }, 1432 | "_contentSize": { 1433 | "__type__": "cc.Size", 1434 | "width": 85.556640625, 1435 | "height": 30 1436 | }, 1437 | "_children": [], 1438 | "_rotationX": 0, 1439 | "_rotationY": 0, 1440 | "_scaleX": 1, 1441 | "_scaleY": 1, 1442 | "_position": { 1443 | "__type__": "cc.Vec2", 1444 | "x": 0, 1445 | "y": 0 1446 | }, 1447 | "_skewX": 0, 1448 | "_skewY": 0, 1449 | "_localZOrder": 0, 1450 | "_globalZOrder": 0, 1451 | "_ignoreAnchorPointForPosition": false, 1452 | "_tag": -1, 1453 | "_opacityModifyRGB": false, 1454 | "_id": "2a13acqxylMeL4xCm4zgxMQ", 1455 | "_active": true, 1456 | "_components": [ 1457 | { 1458 | "__id__": 39 1459 | } 1460 | ], 1461 | "_prefab": null 1462 | }, 1463 | { 1464 | "__type__": "cc.Label", 1465 | "_name": "", 1466 | "_objFlags": 0, 1467 | "node": { 1468 | "__id__": 38 1469 | }, 1470 | "_enabled": true, 1471 | "_useOriginalSize": false, 1472 | "_fontSize": 20, 1473 | "_lineHeight": 30, 1474 | "_enableWrapText": true, 1475 | "_isSystemFontUsed": false, 1476 | "_N$string": "当前操作:", 1477 | "_N$horizontalAlign": 1, 1478 | "_N$verticalAlign": 1, 1479 | "_N$overflow": 0 1480 | }, 1481 | { 1482 | "__type__": "cc.Node", 1483 | "_name": "label_control", 1484 | "_objFlags": 0, 1485 | "_opacity": 255, 1486 | "_color": { 1487 | "__type__": "cc.Color", 1488 | "r": 255, 1489 | "g": 255, 1490 | "b": 255, 1491 | "a": 255 1492 | }, 1493 | "_cascadeOpacityEnabled": true, 1494 | "_parent": { 1495 | "__id__": 37 1496 | }, 1497 | "_anchorPoint": { 1498 | "__type__": "cc.Vec2", 1499 | "x": 0, 1500 | "y": 0.5 1501 | }, 1502 | "_contentSize": { 1503 | "__type__": "cc.Size", 1504 | "width": 40, 1505 | "height": 30 1506 | }, 1507 | "_children": [], 1508 | "_rotationX": 0, 1509 | "_rotationY": 0, 1510 | "_scaleX": 1, 1511 | "_scaleY": 1, 1512 | "_position": { 1513 | "__type__": "cc.Vec2", 1514 | "x": 51, 1515 | "y": 0 1516 | }, 1517 | "_skewX": 0, 1518 | "_skewY": 0, 1519 | "_localZOrder": 0, 1520 | "_globalZOrder": 0, 1521 | "_ignoreAnchorPointForPosition": false, 1522 | "_tag": -1, 1523 | "_opacityModifyRGB": false, 1524 | "_id": "06eda76HMND1JRDPAEqbV9F", 1525 | "_active": true, 1526 | "_components": [ 1527 | { 1528 | "__id__": 41 1529 | } 1530 | ], 1531 | "_prefab": null 1532 | }, 1533 | { 1534 | "__type__": "cc.Label", 1535 | "_name": "", 1536 | "_objFlags": 0, 1537 | "node": { 1538 | "__id__": 40 1539 | }, 1540 | "_enabled": true, 1541 | "_useOriginalSize": false, 1542 | "_fontSize": 20, 1543 | "_lineHeight": 30, 1544 | "_enableWrapText": true, 1545 | "_isSystemFontUsed": false, 1546 | "_N$string": "存储", 1547 | "_N$horizontalAlign": 0, 1548 | "_N$verticalAlign": 1, 1549 | "_N$overflow": 0 1550 | }, 1551 | { 1552 | "__type__": "cc.Node", 1553 | "_name": "node_cipherData", 1554 | "_objFlags": 0, 1555 | "_opacity": 255, 1556 | "_color": { 1557 | "__type__": "cc.Color", 1558 | "r": 255, 1559 | "g": 255, 1560 | "b": 255, 1561 | "a": 255 1562 | }, 1563 | "_cascadeOpacityEnabled": true, 1564 | "_parent": { 1565 | "__id__": 2 1566 | }, 1567 | "_anchorPoint": { 1568 | "__type__": "cc.Vec2", 1569 | "x": 0, 1570 | "y": 1 1571 | }, 1572 | "_contentSize": { 1573 | "__type__": "cc.Size", 1574 | "width": 0, 1575 | "height": 0 1576 | }, 1577 | "_children": [ 1578 | { 1579 | "__id__": 43 1580 | }, 1581 | { 1582 | "__id__": 45 1583 | } 1584 | ], 1585 | "_rotationX": 0, 1586 | "_rotationY": 0, 1587 | "_scaleX": 1, 1588 | "_scaleY": 1, 1589 | "_position": { 1590 | "__type__": "cc.Vec2", 1591 | "x": -60, 1592 | "y": 107 1593 | }, 1594 | "_skewX": 0, 1595 | "_skewY": 0, 1596 | "_localZOrder": 0, 1597 | "_globalZOrder": 0, 1598 | "_ignoreAnchorPointForPosition": false, 1599 | "_tag": -1, 1600 | "_opacityModifyRGB": false, 1601 | "_id": "94399vlZpBMrYgZeFVFMRER", 1602 | "_active": true, 1603 | "_components": [], 1604 | "_prefab": null 1605 | }, 1606 | { 1607 | "__type__": "cc.Node", 1608 | "_name": "title", 1609 | "_objFlags": 0, 1610 | "_opacity": 255, 1611 | "_color": { 1612 | "__type__": "cc.Color", 1613 | "r": 255, 1614 | "g": 255, 1615 | "b": 255, 1616 | "a": 255 1617 | }, 1618 | "_cascadeOpacityEnabled": true, 1619 | "_parent": { 1620 | "__id__": 42 1621 | }, 1622 | "_anchorPoint": { 1623 | "__type__": "cc.Vec2", 1624 | "x": 0.5, 1625 | "y": 0.5 1626 | }, 1627 | "_contentSize": { 1628 | "__type__": "cc.Size", 1629 | "width": 45.556640625, 1630 | "height": 30 1631 | }, 1632 | "_children": [], 1633 | "_rotationX": 0, 1634 | "_rotationY": 0, 1635 | "_scaleX": 1, 1636 | "_scaleY": 1, 1637 | "_position": { 1638 | "__type__": "cc.Vec2", 1639 | "x": 0, 1640 | "y": 10 1641 | }, 1642 | "_skewX": 0, 1643 | "_skewY": 0, 1644 | "_localZOrder": 0, 1645 | "_globalZOrder": 0, 1646 | "_ignoreAnchorPointForPosition": false, 1647 | "_tag": -1, 1648 | "_opacityModifyRGB": false, 1649 | "_id": "6f0abW8d2lJJ4wSmcyeRiAW", 1650 | "_active": true, 1651 | "_components": [ 1652 | { 1653 | "__id__": 44 1654 | } 1655 | ], 1656 | "_prefab": null 1657 | }, 1658 | { 1659 | "__type__": "cc.Label", 1660 | "_name": "", 1661 | "_objFlags": 0, 1662 | "node": { 1663 | "__id__": 43 1664 | }, 1665 | "_enabled": true, 1666 | "_useOriginalSize": false, 1667 | "_fontSize": 20, 1668 | "_lineHeight": 30, 1669 | "_enableWrapText": true, 1670 | "_isSystemFontUsed": false, 1671 | "_N$string": "加密:", 1672 | "_N$horizontalAlign": 1, 1673 | "_N$verticalAlign": 1, 1674 | "_N$overflow": 0 1675 | }, 1676 | { 1677 | "__type__": "cc.Node", 1678 | "_name": "label_cipherData", 1679 | "_objFlags": 0, 1680 | "_opacity": 255, 1681 | "_color": { 1682 | "__type__": "cc.Color", 1683 | "r": 255, 1684 | "g": 255, 1685 | "b": 255, 1686 | "a": 255 1687 | }, 1688 | "_cascadeOpacityEnabled": true, 1689 | "_parent": { 1690 | "__id__": 42 1691 | }, 1692 | "_anchorPoint": { 1693 | "__type__": "cc.Vec2", 1694 | "x": 0, 1695 | "y": 1 1696 | }, 1697 | "_contentSize": { 1698 | "__type__": "cc.Size", 1699 | "width": 490, 1700 | "height": 30 1701 | }, 1702 | "_children": [], 1703 | "_rotationX": 0, 1704 | "_rotationY": 0, 1705 | "_scaleX": 1, 1706 | "_scaleY": 1, 1707 | "_position": { 1708 | "__type__": "cc.Vec2", 1709 | "x": 0, 1710 | "y": -7 1711 | }, 1712 | "_skewX": 0, 1713 | "_skewY": 0, 1714 | "_localZOrder": 0, 1715 | "_globalZOrder": 0, 1716 | "_ignoreAnchorPointForPosition": false, 1717 | "_tag": -1, 1718 | "_opacityModifyRGB": false, 1719 | "_id": "c4821szzBBGcKgBjO//5Uel", 1720 | "_active": true, 1721 | "_components": [ 1722 | { 1723 | "__id__": 46 1724 | } 1725 | ], 1726 | "_prefab": null 1727 | }, 1728 | { 1729 | "__type__": "cc.Label", 1730 | "_name": "", 1731 | "_objFlags": 0, 1732 | "node": { 1733 | "__id__": 45 1734 | }, 1735 | "_enabled": true, 1736 | "_useOriginalSize": false, 1737 | "_fontSize": 20, 1738 | "_lineHeight": 30, 1739 | "_enableWrapText": true, 1740 | "_isSystemFontUsed": false, 1741 | "_N$string": "", 1742 | "_N$horizontalAlign": 0, 1743 | "_N$verticalAlign": 1, 1744 | "_N$overflow": 3 1745 | }, 1746 | { 1747 | "__type__": "cc.Node", 1748 | "_name": "node_decryptionData", 1749 | "_objFlags": 0, 1750 | "_opacity": 255, 1751 | "_color": { 1752 | "__type__": "cc.Color", 1753 | "r": 255, 1754 | "g": 255, 1755 | "b": 255, 1756 | "a": 255 1757 | }, 1758 | "_cascadeOpacityEnabled": true, 1759 | "_parent": { 1760 | "__id__": 2 1761 | }, 1762 | "_anchorPoint": { 1763 | "__type__": "cc.Vec2", 1764 | "x": 0, 1765 | "y": 1 1766 | }, 1767 | "_contentSize": { 1768 | "__type__": "cc.Size", 1769 | "width": 0, 1770 | "height": 0 1771 | }, 1772 | "_children": [ 1773 | { 1774 | "__id__": 48 1775 | }, 1776 | { 1777 | "__id__": 50 1778 | } 1779 | ], 1780 | "_rotationX": 0, 1781 | "_rotationY": 0, 1782 | "_scaleX": 1, 1783 | "_scaleY": 1, 1784 | "_position": { 1785 | "__type__": "cc.Vec2", 1786 | "x": -60, 1787 | "y": -99 1788 | }, 1789 | "_skewX": 0, 1790 | "_skewY": 0, 1791 | "_localZOrder": 0, 1792 | "_globalZOrder": 0, 1793 | "_ignoreAnchorPointForPosition": false, 1794 | "_tag": -1, 1795 | "_opacityModifyRGB": false, 1796 | "_id": "e2bf94o9iNMp6XEXYJ8J+T7", 1797 | "_active": true, 1798 | "_components": [], 1799 | "_prefab": null 1800 | }, 1801 | { 1802 | "__type__": "cc.Node", 1803 | "_name": "title", 1804 | "_objFlags": 0, 1805 | "_opacity": 255, 1806 | "_color": { 1807 | "__type__": "cc.Color", 1808 | "r": 255, 1809 | "g": 255, 1810 | "b": 255, 1811 | "a": 255 1812 | }, 1813 | "_cascadeOpacityEnabled": true, 1814 | "_parent": { 1815 | "__id__": 47 1816 | }, 1817 | "_anchorPoint": { 1818 | "__type__": "cc.Vec2", 1819 | "x": 0.5, 1820 | "y": 0.5 1821 | }, 1822 | "_contentSize": { 1823 | "__type__": "cc.Size", 1824 | "width": 45.556640625, 1825 | "height": 30 1826 | }, 1827 | "_children": [], 1828 | "_rotationX": 0, 1829 | "_rotationY": 0, 1830 | "_scaleX": 1, 1831 | "_scaleY": 1, 1832 | "_position": { 1833 | "__type__": "cc.Vec2", 1834 | "x": 0, 1835 | "y": 10 1836 | }, 1837 | "_skewX": 0, 1838 | "_skewY": 0, 1839 | "_localZOrder": 0, 1840 | "_globalZOrder": 0, 1841 | "_ignoreAnchorPointForPosition": false, 1842 | "_tag": -1, 1843 | "_opacityModifyRGB": false, 1844 | "_id": "1069cCdrcdIBaImPYoQ1mHX", 1845 | "_active": true, 1846 | "_components": [ 1847 | { 1848 | "__id__": 49 1849 | } 1850 | ], 1851 | "_prefab": null 1852 | }, 1853 | { 1854 | "__type__": "cc.Label", 1855 | "_name": "", 1856 | "_objFlags": 0, 1857 | "node": { 1858 | "__id__": 48 1859 | }, 1860 | "_enabled": true, 1861 | "_useOriginalSize": false, 1862 | "_fontSize": 20, 1863 | "_lineHeight": 30, 1864 | "_enableWrapText": true, 1865 | "_isSystemFontUsed": false, 1866 | "_N$string": "解密:", 1867 | "_N$horizontalAlign": 1, 1868 | "_N$verticalAlign": 1, 1869 | "_N$overflow": 0 1870 | }, 1871 | { 1872 | "__type__": "cc.Node", 1873 | "_name": "label_decryptionData", 1874 | "_objFlags": 0, 1875 | "_opacity": 255, 1876 | "_color": { 1877 | "__type__": "cc.Color", 1878 | "r": 255, 1879 | "g": 255, 1880 | "b": 255, 1881 | "a": 255 1882 | }, 1883 | "_cascadeOpacityEnabled": true, 1884 | "_parent": { 1885 | "__id__": 47 1886 | }, 1887 | "_anchorPoint": { 1888 | "__type__": "cc.Vec2", 1889 | "x": 0, 1890 | "y": 1 1891 | }, 1892 | "_contentSize": { 1893 | "__type__": "cc.Size", 1894 | "width": 490, 1895 | "height": 30 1896 | }, 1897 | "_children": [], 1898 | "_rotationX": 0, 1899 | "_rotationY": 0, 1900 | "_scaleX": 1, 1901 | "_scaleY": 1, 1902 | "_position": { 1903 | "__type__": "cc.Vec2", 1904 | "x": 0, 1905 | "y": -7 1906 | }, 1907 | "_skewX": 0, 1908 | "_skewY": 0, 1909 | "_localZOrder": 0, 1910 | "_globalZOrder": 0, 1911 | "_ignoreAnchorPointForPosition": false, 1912 | "_tag": -1, 1913 | "_opacityModifyRGB": false, 1914 | "_id": "1bc67WQZ3VMJY/AonDXsnhq", 1915 | "_active": true, 1916 | "_components": [ 1917 | { 1918 | "__id__": 51 1919 | } 1920 | ], 1921 | "_prefab": null 1922 | }, 1923 | { 1924 | "__type__": "cc.Label", 1925 | "_name": "", 1926 | "_objFlags": 0, 1927 | "node": { 1928 | "__id__": 50 1929 | }, 1930 | "_enabled": true, 1931 | "_useOriginalSize": false, 1932 | "_fontSize": 20, 1933 | "_lineHeight": 30, 1934 | "_enableWrapText": true, 1935 | "_isSystemFontUsed": false, 1936 | "_N$string": "", 1937 | "_N$horizontalAlign": 0, 1938 | "_N$verticalAlign": 1, 1939 | "_N$overflow": 3 1940 | }, 1941 | { 1942 | "__type__": "cc.Node", 1943 | "_name": "userData", 1944 | "_objFlags": 0, 1945 | "_opacity": 255, 1946 | "_color": { 1947 | "__type__": "cc.Color", 1948 | "r": 255, 1949 | "g": 255, 1950 | "b": 255, 1951 | "a": 255 1952 | }, 1953 | "_cascadeOpacityEnabled": true, 1954 | "_parent": { 1955 | "__id__": 2 1956 | }, 1957 | "_anchorPoint": { 1958 | "__type__": "cc.Vec2", 1959 | "x": 0.5, 1960 | "y": 0.5 1961 | }, 1962 | "_contentSize": { 1963 | "__type__": "cc.Size", 1964 | "width": 0, 1965 | "height": 0 1966 | }, 1967 | "_children": [ 1968 | { 1969 | "__id__": 53 1970 | }, 1971 | { 1972 | "__id__": 55 1973 | }, 1974 | { 1975 | "__id__": 59 1976 | }, 1977 | { 1978 | "__id__": 63 1979 | } 1980 | ], 1981 | "_rotationX": 0, 1982 | "_rotationY": 0, 1983 | "_scaleX": 1, 1984 | "_scaleY": 1, 1985 | "_position": { 1986 | "__type__": "cc.Vec2", 1987 | "x": -322, 1988 | "y": 10 1989 | }, 1990 | "_skewX": 0, 1991 | "_skewY": 0, 1992 | "_localZOrder": 0, 1993 | "_globalZOrder": 0, 1994 | "_ignoreAnchorPointForPosition": false, 1995 | "_tag": -1, 1996 | "_opacityModifyRGB": false, 1997 | "_id": "1d131xx/CFBtZrYWI+R2UyY", 1998 | "_active": true, 1999 | "_components": [], 2000 | "_prefab": null 2001 | }, 2002 | { 2003 | "__type__": "cc.Node", 2004 | "_name": "title", 2005 | "_objFlags": 0, 2006 | "_opacity": 255, 2007 | "_color": { 2008 | "__type__": "cc.Color", 2009 | "r": 255, 2010 | "g": 255, 2011 | "b": 255, 2012 | "a": 255 2013 | }, 2014 | "_cascadeOpacityEnabled": true, 2015 | "_parent": { 2016 | "__id__": 52 2017 | }, 2018 | "_anchorPoint": { 2019 | "__type__": "cc.Vec2", 2020 | "x": 0.5, 2021 | "y": 0.5 2022 | }, 2023 | "_contentSize": { 2024 | "__type__": "cc.Size", 2025 | "width": 140.90576171875, 2026 | "height": 40 2027 | }, 2028 | "_children": [], 2029 | "_rotationX": 0, 2030 | "_rotationY": 0, 2031 | "_scaleX": 1, 2032 | "_scaleY": 1, 2033 | "_position": { 2034 | "__type__": "cc.Vec2", 2035 | "x": 66, 2036 | "y": 116 2037 | }, 2038 | "_skewX": 0, 2039 | "_skewY": 0, 2040 | "_localZOrder": 0, 2041 | "_globalZOrder": 0, 2042 | "_ignoreAnchorPointForPosition": false, 2043 | "_tag": -1, 2044 | "_opacityModifyRGB": false, 2045 | "_id": "48d49vm0xBNhpLpiDqyjaHb", 2046 | "_active": true, 2047 | "_components": [ 2048 | { 2049 | "__id__": 54 2050 | } 2051 | ], 2052 | "_prefab": null 2053 | }, 2054 | { 2055 | "__type__": "cc.Label", 2056 | "_name": "", 2057 | "_objFlags": 0, 2058 | "node": { 2059 | "__id__": 53 2060 | }, 2061 | "_enabled": true, 2062 | "_useOriginalSize": false, 2063 | "_fontSize": 35, 2064 | "_lineHeight": 40, 2065 | "_enableWrapText": true, 2066 | "_isSystemFontUsed": false, 2067 | "_N$string": "User Data", 2068 | "_N$horizontalAlign": 0, 2069 | "_N$verticalAlign": 0, 2070 | "_N$overflow": 0 2071 | }, 2072 | { 2073 | "__type__": "cc.Node", 2074 | "_name": "name", 2075 | "_objFlags": 0, 2076 | "_opacity": 255, 2077 | "_color": { 2078 | "__type__": "cc.Color", 2079 | "r": 255, 2080 | "g": 255, 2081 | "b": 255, 2082 | "a": 255 2083 | }, 2084 | "_cascadeOpacityEnabled": true, 2085 | "_parent": { 2086 | "__id__": 52 2087 | }, 2088 | "_anchorPoint": { 2089 | "__type__": "cc.Vec2", 2090 | "x": 0.5, 2091 | "y": 0.5 2092 | }, 2093 | "_contentSize": { 2094 | "__type__": "cc.Size", 2095 | "width": 200, 2096 | "height": 35 2097 | }, 2098 | "_children": [ 2099 | { 2100 | "__id__": 56 2101 | } 2102 | ], 2103 | "_rotationX": 0, 2104 | "_rotationY": 0, 2105 | "_scaleX": 1, 2106 | "_scaleY": 1, 2107 | "_position": { 2108 | "__type__": "cc.Vec2", 2109 | "x": 91.4, 2110 | "y": 51 2111 | }, 2112 | "_skewX": 0, 2113 | "_skewY": 0, 2114 | "_localZOrder": 0, 2115 | "_globalZOrder": 0, 2116 | "_ignoreAnchorPointForPosition": false, 2117 | "_tag": -1, 2118 | "_opacityModifyRGB": false, 2119 | "_id": "d5125Z6IgZGXbSZOhBNmwWM", 2120 | "_active": true, 2121 | "_components": [ 2122 | { 2123 | "__id__": 58 2124 | } 2125 | ], 2126 | "_prefab": null 2127 | }, 2128 | { 2129 | "__type__": "cc.Node", 2130 | "_name": "label", 2131 | "_objFlags": 0, 2132 | "_opacity": 255, 2133 | "_color": { 2134 | "__type__": "cc.Color", 2135 | "r": 255, 2136 | "g": 255, 2137 | "b": 255, 2138 | "a": 255 2139 | }, 2140 | "_cascadeOpacityEnabled": true, 2141 | "_parent": { 2142 | "__id__": 55 2143 | }, 2144 | "_anchorPoint": { 2145 | "__type__": "cc.Vec2", 2146 | "x": 0.5, 2147 | "y": 0.5 2148 | }, 2149 | "_contentSize": { 2150 | "__type__": "cc.Size", 2151 | "width": 66.63818359375, 2152 | "height": 30 2153 | }, 2154 | "_children": [], 2155 | "_rotationX": 0, 2156 | "_rotationY": 0, 2157 | "_scaleX": 1, 2158 | "_scaleY": 1, 2159 | "_position": { 2160 | "__type__": "cc.Vec2", 2161 | "x": -148.4, 2162 | "y": 0 2163 | }, 2164 | "_skewX": 0, 2165 | "_skewY": 0, 2166 | "_localZOrder": 0, 2167 | "_globalZOrder": 0, 2168 | "_ignoreAnchorPointForPosition": false, 2169 | "_tag": -1, 2170 | "_opacityModifyRGB": false, 2171 | "_id": "9c7a5zu6JRKa4i5yy0voeMB", 2172 | "_active": true, 2173 | "_components": [ 2174 | { 2175 | "__id__": 57 2176 | } 2177 | ], 2178 | "_prefab": null 2179 | }, 2180 | { 2181 | "__type__": "cc.Label", 2182 | "_name": "", 2183 | "_objFlags": 0, 2184 | "node": { 2185 | "__id__": 56 2186 | }, 2187 | "_enabled": true, 2188 | "_useOriginalSize": false, 2189 | "_fontSize": 25, 2190 | "_lineHeight": 30, 2191 | "_enableWrapText": true, 2192 | "_isSystemFontUsed": false, 2193 | "_N$string": "Name:", 2194 | "_N$horizontalAlign": 0, 2195 | "_N$verticalAlign": 0, 2196 | "_N$overflow": 0 2197 | }, 2198 | { 2199 | "__type__": "cc.EditBox", 2200 | "_name": "", 2201 | "_objFlags": 0, 2202 | "node": { 2203 | "__id__": 55 2204 | }, 2205 | "_enabled": true, 2206 | "_string": "", 2207 | "editingDidBegan": [], 2208 | "textChanged": [], 2209 | "editingDidEnded": [], 2210 | "_N$backgroundImage": { 2211 | "__uuid__": "6a076529-05c6-41bc-9ae0-1ef7e084dcc7" 2212 | }, 2213 | "_N$returnType": 0, 2214 | "_N$inputFlag": 1, 2215 | "_N$inputMode": 6, 2216 | "_N$fontSize": 25, 2217 | "_N$fontColor": { 2218 | "__type__": "cc.Color", 2219 | "r": 0, 2220 | "g": 0, 2221 | "b": 0, 2222 | "a": 255 2223 | }, 2224 | "_N$placeHolder": "Enter text here...", 2225 | "_N$placeHolderFontSize": 20, 2226 | "_N$placeHolderFontColor": { 2227 | "__type__": "cc.Color", 2228 | "r": 127.5, 2229 | "g": 127.5, 2230 | "b": 127.5, 2231 | "a": 255 2232 | }, 2233 | "_N$maxLength": 20 2234 | }, 2235 | { 2236 | "__type__": "cc.Node", 2237 | "_name": "level", 2238 | "_objFlags": 0, 2239 | "_opacity": 255, 2240 | "_color": { 2241 | "__type__": "cc.Color", 2242 | "r": 255, 2243 | "g": 255, 2244 | "b": 255, 2245 | "a": 255 2246 | }, 2247 | "_cascadeOpacityEnabled": true, 2248 | "_parent": { 2249 | "__id__": 52 2250 | }, 2251 | "_anchorPoint": { 2252 | "__type__": "cc.Vec2", 2253 | "x": 0.5, 2254 | "y": 0.5 2255 | }, 2256 | "_contentSize": { 2257 | "__type__": "cc.Size", 2258 | "width": 200, 2259 | "height": 35 2260 | }, 2261 | "_children": [ 2262 | { 2263 | "__id__": 60 2264 | } 2265 | ], 2266 | "_rotationX": 0, 2267 | "_rotationY": 0, 2268 | "_scaleX": 1, 2269 | "_scaleY": 1, 2270 | "_position": { 2271 | "__type__": "cc.Vec2", 2272 | "x": 91, 2273 | "y": 5 2274 | }, 2275 | "_skewX": 0, 2276 | "_skewY": 0, 2277 | "_localZOrder": 0, 2278 | "_globalZOrder": 0, 2279 | "_ignoreAnchorPointForPosition": false, 2280 | "_tag": -1, 2281 | "_opacityModifyRGB": false, 2282 | "_id": "1b6194OqjNONqhY5Cbl/Eup", 2283 | "_active": true, 2284 | "_components": [ 2285 | { 2286 | "__id__": 62 2287 | } 2288 | ], 2289 | "_prefab": null 2290 | }, 2291 | { 2292 | "__type__": "cc.Node", 2293 | "_name": "label", 2294 | "_objFlags": 0, 2295 | "_opacity": 255, 2296 | "_color": { 2297 | "__type__": "cc.Color", 2298 | "r": 255, 2299 | "g": 255, 2300 | "b": 255, 2301 | "a": 255 2302 | }, 2303 | "_cascadeOpacityEnabled": true, 2304 | "_parent": { 2305 | "__id__": 59 2306 | }, 2307 | "_anchorPoint": { 2308 | "__type__": "cc.Vec2", 2309 | "x": 0.5, 2310 | "y": 0.5 2311 | }, 2312 | "_contentSize": { 2313 | "__type__": "cc.Size", 2314 | "width": 63.85498046875, 2315 | "height": 30 2316 | }, 2317 | "_children": [], 2318 | "_rotationX": 0, 2319 | "_rotationY": 0, 2320 | "_scaleX": 1, 2321 | "_scaleY": 1, 2322 | "_position": { 2323 | "__type__": "cc.Vec2", 2324 | "x": -148.4, 2325 | "y": 0 2326 | }, 2327 | "_skewX": 0, 2328 | "_skewY": 0, 2329 | "_localZOrder": 0, 2330 | "_globalZOrder": 0, 2331 | "_ignoreAnchorPointForPosition": false, 2332 | "_tag": -1, 2333 | "_opacityModifyRGB": false, 2334 | "_id": "0d8b14NLfpG2rGEUTuGlzBz", 2335 | "_active": true, 2336 | "_components": [ 2337 | { 2338 | "__id__": 61 2339 | } 2340 | ], 2341 | "_prefab": null 2342 | }, 2343 | { 2344 | "__type__": "cc.Label", 2345 | "_name": "", 2346 | "_objFlags": 0, 2347 | "node": { 2348 | "__id__": 60 2349 | }, 2350 | "_enabled": true, 2351 | "_useOriginalSize": false, 2352 | "_fontSize": 25, 2353 | "_lineHeight": 30, 2354 | "_enableWrapText": true, 2355 | "_isSystemFontUsed": false, 2356 | "_N$string": "Level:", 2357 | "_N$horizontalAlign": 0, 2358 | "_N$verticalAlign": 0, 2359 | "_N$overflow": 0 2360 | }, 2361 | { 2362 | "__type__": "cc.EditBox", 2363 | "_name": "", 2364 | "_objFlags": 0, 2365 | "node": { 2366 | "__id__": 59 2367 | }, 2368 | "_enabled": true, 2369 | "_string": "", 2370 | "editingDidBegan": [], 2371 | "textChanged": [], 2372 | "editingDidEnded": [], 2373 | "_N$backgroundImage": { 2374 | "__uuid__": "6a076529-05c6-41bc-9ae0-1ef7e084dcc7" 2375 | }, 2376 | "_N$returnType": 0, 2377 | "_N$inputFlag": 1, 2378 | "_N$inputMode": 6, 2379 | "_N$fontSize": 20, 2380 | "_N$fontColor": { 2381 | "__type__": "cc.Color", 2382 | "r": 0, 2383 | "g": 0, 2384 | "b": 0, 2385 | "a": 255 2386 | }, 2387 | "_N$placeHolder": "Enter text here...", 2388 | "_N$placeHolderFontSize": 20, 2389 | "_N$placeHolderFontColor": { 2390 | "__type__": "cc.Color", 2391 | "r": 127.5, 2392 | "g": 127.5, 2393 | "b": 127.5, 2394 | "a": 255 2395 | }, 2396 | "_N$maxLength": 20 2397 | }, 2398 | { 2399 | "__type__": "cc.Node", 2400 | "_name": "vip", 2401 | "_objFlags": 0, 2402 | "_opacity": 255, 2403 | "_color": { 2404 | "__type__": "cc.Color", 2405 | "r": 255, 2406 | "g": 255, 2407 | "b": 255, 2408 | "a": 255 2409 | }, 2410 | "_cascadeOpacityEnabled": true, 2411 | "_parent": { 2412 | "__id__": 52 2413 | }, 2414 | "_anchorPoint": { 2415 | "__type__": "cc.Vec2", 2416 | "x": 0.5, 2417 | "y": 0.5 2418 | }, 2419 | "_contentSize": { 2420 | "__type__": "cc.Size", 2421 | "width": 200, 2422 | "height": 35 2423 | }, 2424 | "_children": [ 2425 | { 2426 | "__id__": 64 2427 | } 2428 | ], 2429 | "_rotationX": 0, 2430 | "_rotationY": 0, 2431 | "_scaleX": 1, 2432 | "_scaleY": 1, 2433 | "_position": { 2434 | "__type__": "cc.Vec2", 2435 | "x": 91, 2436 | "y": -40 2437 | }, 2438 | "_skewX": 0, 2439 | "_skewY": 0, 2440 | "_localZOrder": 0, 2441 | "_globalZOrder": 0, 2442 | "_ignoreAnchorPointForPosition": false, 2443 | "_tag": -1, 2444 | "_opacityModifyRGB": false, 2445 | "_id": "f9885Ys1QxJz4AoQX4cG/Qx", 2446 | "_active": true, 2447 | "_components": [ 2448 | { 2449 | "__id__": 66 2450 | } 2451 | ], 2452 | "_prefab": null 2453 | }, 2454 | { 2455 | "__type__": "cc.Node", 2456 | "_name": "label", 2457 | "_objFlags": 0, 2458 | "_opacity": 255, 2459 | "_color": { 2460 | "__type__": "cc.Color", 2461 | "r": 255, 2462 | "g": 255, 2463 | "b": 255, 2464 | "a": 255 2465 | }, 2466 | "_cascadeOpacityEnabled": true, 2467 | "_parent": { 2468 | "__id__": 63 2469 | }, 2470 | "_anchorPoint": { 2471 | "__type__": "cc.Vec2", 2472 | "x": 0.5, 2473 | "y": 0.5 2474 | }, 2475 | "_contentSize": { 2476 | "__type__": "cc.Size", 2477 | "width": 38.8916015625, 2478 | "height": 30 2479 | }, 2480 | "_children": [], 2481 | "_rotationX": 0, 2482 | "_rotationY": 0, 2483 | "_scaleX": 1, 2484 | "_scaleY": 1, 2485 | "_position": { 2486 | "__type__": "cc.Vec2", 2487 | "x": -133, 2488 | "y": 0 2489 | }, 2490 | "_skewX": 0, 2491 | "_skewY": 0, 2492 | "_localZOrder": 0, 2493 | "_globalZOrder": 0, 2494 | "_ignoreAnchorPointForPosition": false, 2495 | "_tag": -1, 2496 | "_opacityModifyRGB": false, 2497 | "_id": "4a417G8Df1OUrYBJCRG2r6y", 2498 | "_active": true, 2499 | "_components": [ 2500 | { 2501 | "__id__": 65 2502 | } 2503 | ], 2504 | "_prefab": null 2505 | }, 2506 | { 2507 | "__type__": "cc.Label", 2508 | "_name": "", 2509 | "_objFlags": 0, 2510 | "node": { 2511 | "__id__": 64 2512 | }, 2513 | "_enabled": true, 2514 | "_useOriginalSize": false, 2515 | "_fontSize": 25, 2516 | "_lineHeight": 30, 2517 | "_enableWrapText": true, 2518 | "_isSystemFontUsed": false, 2519 | "_N$string": "vip:", 2520 | "_N$horizontalAlign": 0, 2521 | "_N$verticalAlign": 0, 2522 | "_N$overflow": 0 2523 | }, 2524 | { 2525 | "__type__": "cc.EditBox", 2526 | "_name": "", 2527 | "_objFlags": 0, 2528 | "node": { 2529 | "__id__": 63 2530 | }, 2531 | "_enabled": true, 2532 | "_string": "", 2533 | "editingDidBegan": [], 2534 | "textChanged": [], 2535 | "editingDidEnded": [], 2536 | "_N$backgroundImage": { 2537 | "__uuid__": "6a076529-05c6-41bc-9ae0-1ef7e084dcc7" 2538 | }, 2539 | "_N$returnType": 0, 2540 | "_N$inputFlag": 1, 2541 | "_N$inputMode": 6, 2542 | "_N$fontSize": 20, 2543 | "_N$fontColor": { 2544 | "__type__": "cc.Color", 2545 | "r": 0, 2546 | "g": 0, 2547 | "b": 0, 2548 | "a": 255 2549 | }, 2550 | "_N$placeHolder": "Enter text here...", 2551 | "_N$placeHolderFontSize": 20, 2552 | "_N$placeHolderFontColor": { 2553 | "__type__": "cc.Color", 2554 | "r": 127.5, 2555 | "g": 127.5, 2556 | "b": 127.5, 2557 | "a": 255 2558 | }, 2559 | "_N$maxLength": 20 2560 | }, 2561 | { 2562 | "__type__": "cc.Canvas", 2563 | "_name": "", 2564 | "_objFlags": 1835008, 2565 | "node": { 2566 | "__id__": 2 2567 | }, 2568 | "_enabled": true, 2569 | "_designResolution": { 2570 | "__type__": "cc.Size", 2571 | "width": 960, 2572 | "height": 640 2573 | }, 2574 | "_fitWidth": false, 2575 | "_fitHeight": true 2576 | }, 2577 | { 2578 | "__type__": "f1d75M6tu5MsJPahVa8hIMs", 2579 | "_name": "", 2580 | "_objFlags": 0, 2581 | "node": { 2582 | "__id__": 2 2583 | }, 2584 | "_enabled": true, 2585 | "btn_storage": { 2586 | "__id__": 13 2587 | }, 2588 | "btn_read": { 2589 | "__id__": 20 2590 | }, 2591 | "btn_remove": { 2592 | "__id__": 27 2593 | }, 2594 | "btn_clear": { 2595 | "__id__": 34 2596 | }, 2597 | "label_control": { 2598 | "__id__": 41 2599 | }, 2600 | "label_cipherData": { 2601 | "__id__": 46 2602 | }, 2603 | "label_decryptionData": { 2604 | "__id__": 51 2605 | }, 2606 | "userdata_name": { 2607 | "__id__": 58 2608 | }, 2609 | "userdata_level": { 2610 | "__id__": 62 2611 | }, 2612 | "userdata_vip": { 2613 | "__id__": 66 2614 | } 2615 | } 2616 | ] -------------------------------------------------------------------------------- /assets/launch.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "2c9567ca-078b-45a6-b257-3adad41ffe3a", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "e3eb1df5-8e22-410f-bf58-a8ffd60199d7", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/default-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cocos-creator/cocos-tutorial-storage/204462536c830a24ae38533511b5979402b1b5f8/assets/res/default-sprite.png -------------------------------------------------------------------------------- /assets/res/default-sprite.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "0480ef51-6c04-4022-a1bc-81881b2e4ad2", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "default-sprite": { 9 | "ver": "1.0.2", 10 | "uuid": "6a076529-05c6-41bc-9ae0-1ef7e084dcc7", 11 | "rawTextureUuid": "0480ef51-6c04-4022-a1bc-81881b2e4ad2", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 2, 20 | "height": 2, 21 | "borderTop": 0, 22 | "borderBottom": 0, 23 | "borderLeft": 0, 24 | "borderRight": 0, 25 | "subMetas": {} 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /assets/scripts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "e0dc1f9b-37fe-4a4d-89d0-cf46d30bf4c2", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/scripts/base64.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @preserve base64.js v0.2.1 (c) 2012 knowledgecode | MIT licensed 3 | */ 4 | /*global escape, unescape */ 5 | /*jslint bitwise: true, browser: true, plusplus: true */ 6 | (function () { 7 | 'use strict'; 8 | 9 | var id = 'base64', 10 | m = {}, 11 | b64e = [ 12 | 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 13 | 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 14 | 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 15 | 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 16 | '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/', '=' 17 | ], 18 | b64d = { 19 | 'A': 0, 20 | 'B': 1, 21 | 'C': 2, 22 | 'D': 3, 23 | 'E': 4, 24 | 'F': 5, 25 | 'G': 6, 26 | 'H': 7, 27 | 'I': 8, 28 | 'J': 9, 29 | 'K': 10, 30 | 'L': 11, 31 | 'M': 12, 32 | 'N': 13, 33 | 'O': 14, 34 | 'P': 15, 35 | 'Q': 16, 36 | 'R': 17, 37 | 'S': 18, 38 | 'T': 19, 39 | 'U': 20, 40 | 'V': 21, 41 | 'W': 22, 42 | 'X': 23, 43 | 'Y': 24, 44 | 'Z': 25, 45 | 'a': 26, 46 | 'b': 27, 47 | 'c': 28, 48 | 'd': 29, 49 | 'e': 30, 50 | 'f': 31, 51 | 'g': 32, 52 | 'h': 33, 53 | 'i': 34, 54 | 'j': 35, 55 | 'k': 36, 56 | 'l': 37, 57 | 'm': 38, 58 | 'n': 39, 59 | 'o': 40, 60 | 'p': 41, 61 | 'q': 42, 62 | 'r': 43, 63 | 's': 44, 64 | 't': 45, 65 | 'u': 46, 66 | 'v': 47, 67 | 'w': 48, 68 | 'x': 49, 69 | 'y': 50, 70 | 'z': 51, 71 | '0': 52, 72 | '1': 53, 73 | '2': 54, 74 | '3': 55, 75 | '4': 56, 76 | '5': 57, 77 | '6': 58, 78 | '7': 59, 79 | '8': 60, 80 | '9': 61, 81 | '+': 62, 82 | '/': 63 83 | }; 84 | 85 | /** 86 | * @name encode 87 | * @function 88 | * @param {string} str 89 | * @return {string} encoded string 90 | */ 91 | m.encode = (function () { 92 | if (window.btoa) { 93 | return function (str) { 94 | return window.btoa(unescape(encodeURIComponent(str))); 95 | }; 96 | } 97 | return function (str) { 98 | var i = 0, j = 0, len, a1, a2, a3, b1, b2, b3, b4, value = []; 99 | 100 | str = unescape(encodeURIComponent(str)); 101 | len = str.length; 102 | while (i < len) { 103 | a1 = str.charCodeAt(i++) || 0; 104 | a2 = str.charCodeAt(i++) || 0; 105 | a3 = str.charCodeAt(i++) || 0; 106 | 107 | b1 = (a1 >> 2) & 0x3F; 108 | b2 = ((a1 & 0x03) << 4) | ((a2 >> 4) & 0x0F); 109 | b3 = ((a2 & 0x0F) << 2) | ((a3 >> 6) & 0x03); 110 | b4 = a3 & 0x3F; 111 | 112 | if (!a3) { 113 | b4 = 64; 114 | if (!a2) { 115 | b3 = 64; 116 | } 117 | } 118 | value[j++] = b64e[b1]; 119 | value[j++] = b64e[b2]; 120 | value[j++] = b64e[b3]; 121 | value[j++] = b64e[b4]; 122 | } 123 | return value.join(''); 124 | }; 125 | }()); 126 | 127 | /** 128 | * @name decode 129 | * @function 130 | * @param {string} str 131 | * @return {string} decoded string 132 | */ 133 | m.decode = (function () { 134 | if (window.atob) { 135 | return function (str) { 136 | return decodeURIComponent(escape(window.atob(str))); 137 | }; 138 | } 139 | return function (str) { 140 | var i = 0, j = 0, len, b1, b2, b3, b4, a1, a2, a3, value = []; 141 | 142 | str = str.replace(/\=+$/, '').split(''); 143 | len = str.length; 144 | while (i < len) { 145 | b1 = b64d[str[i++]] || ''; 146 | b2 = b64d[str[i++]] || ''; 147 | b3 = b64d[str[i++]] || ''; 148 | b4 = b64d[str[i++]] || ''; 149 | 150 | a1 = ((b1 & 0x3F) << 2) | ((b2 >> 4) & 0x03); 151 | a2 = ((b2 & 0x0F) << 4) | ((b3 >> 2) & 0x0F); 152 | a3 = ((b3 & 0x03) << 6) | (b4 & 0x3F); 153 | 154 | value[j++] = String.fromCharCode(a1); 155 | if (a2) { 156 | value[j++] = String.fromCharCode(a2); 157 | if (a3) { 158 | value[j++] = String.fromCharCode(a3); 159 | } 160 | } 161 | } 162 | return decodeURIComponent(escape(value.join(''))); 163 | }; 164 | }()); 165 | 166 | /** 167 | * @name encodeSafe 168 | * @function 169 | * @param {string} str 170 | * @return {string} encoded string (web safe) 171 | */ 172 | m.encodeSafe = function (str) { 173 | return m.encode(str). 174 | replace(/\+/g, '-').replace(/\//g, '_').replace(/\=/g, '.'); 175 | }; 176 | 177 | /** 178 | * @name decodeSafe 179 | * @function 180 | * @param {string} str 181 | * @return {string} decoded string (web safe) 182 | */ 183 | m.decodeSafe = function (str) { 184 | return m.decode( 185 | str.replace(/-/g, '+').replace(/_/g, '/').replace(/\./g, '=') 186 | ); 187 | }; 188 | 189 | // Exposing module 190 | /*global lego, module */ 191 | if (typeof lego === 'object' && lego.define) { 192 | // lego.js 193 | /*jslint unparam: true */ 194 | lego.define(id, [], function (require, exports, module) { 195 | module.exports = m; 196 | }); 197 | } else if (typeof module === 'object' && module.exports) { 198 | // CommonJS 199 | module.exports = m; 200 | } else { 201 | // Browser 202 | window[id] = m; 203 | } 204 | 205 | }()); -------------------------------------------------------------------------------- /assets/scripts/base64.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "7262954a-8028-4a1f-8bef-1be354d57a75", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/scripts/main.js: -------------------------------------------------------------------------------- 1 | 2 | var UserData = { 3 | name: "小逗逼", 4 | level: 1, 5 | vip: false 6 | }; 7 | 8 | var Base64; 9 | 10 | cc.Class({ 11 | extends: cc.Component, 12 | 13 | properties: { 14 | btn_storage:{ 15 | default: null, 16 | type: cc.Button 17 | }, 18 | btn_read: { 19 | default: null, 20 | type: cc.Button 21 | }, 22 | btn_remove: { 23 | default: null, 24 | type: cc.Button 25 | }, 26 | btn_clear: { 27 | default: null, 28 | type: cc.Button 29 | }, 30 | label_control: { 31 | default: null, 32 | type: cc.Label 33 | }, 34 | label_cipherData: { 35 | default: null, 36 | type: cc.Label 37 | }, 38 | label_decryptionData: { 39 | default: null, 40 | type: cc.Label 41 | }, 42 | userdata_name:{ 43 | default: null, 44 | type: cc.EditBox 45 | }, 46 | userdata_level:{ 47 | default: null, 48 | type: cc.EditBox 49 | }, 50 | userdata_vip:{ 51 | default: null, 52 | type: cc.EditBox 53 | } 54 | }, 55 | 56 | // use this for initialization 57 | onLoad: function () { 58 | this.userdata_name.string = UserData.name; 59 | this.userdata_level.string = UserData.level; 60 | this.userdata_vip.string = UserData.vip; 61 | Base64 = require("base64"); 62 | }, 63 | 64 | _readData: function () { 65 | var label_cipherData_text = ""; 66 | var label_decryptionData_text = ""; 67 | var dataText, decryptionText; 68 | for(var k in UserData) { 69 | var dataText = cc.sys.localStorage.getItem(k); 70 | if (dataText === null) { 71 | break; 72 | } 73 | decryptionText = decodeURI(atob(dataText)); 74 | // Decrypt 75 | label_cipherData_text += k + ":" + dataText + "\n"; 76 | label_decryptionData_text += k + ":" + decryptionText + "\n"; 77 | } 78 | this.label_cipherData.string = label_cipherData_text; 79 | this.label_decryptionData.string = label_decryptionData_text; 80 | }, 81 | 82 | saveUserDataEvent: function () { 83 | UserData.name = this.userdata_name.string; 84 | UserData.level = this.userdata_level.string; 85 | UserData.vip = this.userdata_vip.string; 86 | // Encrypt 87 | var dataText = JSON.stringify(UserData); 88 | var ciphertext; 89 | for(var k in UserData) { 90 | ciphertext = btoa(encodeURI(UserData[k])); 91 | cc.sys.localStorage.setItem(k, ciphertext); 92 | } 93 | this.label_control.string = "存储用户数据"; 94 | this.label_cipherData.string = "存储完毕"; 95 | this.label_decryptionData.string = "存储完毕"; 96 | }, 97 | 98 | readUserDataEvent: function () { 99 | this.label_control.string = "读取用户数据"; 100 | this._readData(); 101 | }, 102 | 103 | removeUserDataEvent: function () { 104 | cc.sys.localStorage.removeItem("vip"); 105 | this.label_control.string = "移除用户数据"; 106 | this._readData(); 107 | }, 108 | 109 | clearUserDataEvent: function () { 110 | cc.sys.localStorage.clear(); 111 | this.label_control.string = "清空用户数据"; 112 | this._readData(); 113 | } 114 | 115 | // called every frame, uncomment this function to activate update callback 116 | // update: function (dt) { 117 | 118 | // }, 119 | }); 120 | -------------------------------------------------------------------------------- /assets/scripts/main.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f1d7533a-b6ee-4cb0-93da-8556bc84832c", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos2d-html5", 3 | "packages": "packages" 4 | } -------------------------------------------------------------------------------- /settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "start-scene": "" 3 | } --------------------------------------------------------------------------------