├── Dropdown ├── .gitignore ├── README.md ├── assets │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── DropDownBox.prefab │ │ └── DropDownBox.prefab.meta │ ├── Scene.meta │ ├── Scene │ │ ├── helloworld.fire │ │ └── helloworld.fire.meta │ ├── Script.meta │ ├── Script │ │ ├── DropDown.ts │ │ ├── DropDown.ts.meta │ │ ├── DropDownItem.ts │ │ ├── DropDownItem.ts.meta │ │ ├── DropDownOptionData.ts │ │ ├── DropDownOptionData.ts.meta │ │ ├── Helloworld.ts │ │ └── Helloworld.ts.meta │ ├── Texture.meta │ └── Texture │ │ ├── singleColor.png │ │ ├── singleColor.png.meta │ │ ├── 中国.jpg │ │ ├── 中国.jpg.meta │ │ ├── 俄罗斯.jpg │ │ ├── 俄罗斯.jpg.meta │ │ ├── 日本.jpg │ │ └── 日本.jpg.meta ├── creator.d.ts ├── jsconfig.json ├── project.json ├── settings │ ├── builder.json │ ├── builder.panel.json │ └── project.json ├── template-banner.png ├── template.json └── tsconfig.json ├── LICENSE ├── README.md └── ezgif-3-de2a1983dad9.gif /Dropdown/.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 | # VS Code 65 | #////////////////////////// 66 | 67 | .vscode/ -------------------------------------------------------------------------------- /Dropdown/README.md: -------------------------------------------------------------------------------- 1 | # hello-world 2 | Hello world new project template. 3 | -------------------------------------------------------------------------------- /Dropdown/assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "2400ff1f-5e25-4841-8aa6-8102328aeaa5", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /Dropdown/assets/Prefabs/DropDownBox.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false, 12 | "readonly": false 13 | }, 14 | { 15 | "__type__": "cc.Node", 16 | "_name": "DropDownBox", 17 | "_objFlags": 0, 18 | "_parent": null, 19 | "_children": [ 20 | { 21 | "__id__": 2 22 | }, 23 | { 24 | "__id__": 5 25 | }, 26 | { 27 | "__id__": 8 28 | }, 29 | { 30 | "__id__": 11 31 | } 32 | ], 33 | "_active": true, 34 | "_level": 1, 35 | "_components": [ 36 | { 37 | "__id__": 43 38 | }, 39 | { 40 | "__id__": 44 41 | } 42 | ], 43 | "_prefab": { 44 | "__id__": 48 45 | }, 46 | "_opacity": 255, 47 | "_color": { 48 | "__type__": "cc.Color", 49 | "r": 255, 50 | "g": 255, 51 | "b": 255, 52 | "a": 255 53 | }, 54 | "_contentSize": { 55 | "__type__": "cc.Size", 56 | "width": 193, 57 | "height": 35 58 | }, 59 | "_anchorPoint": { 60 | "__type__": "cc.Vec2", 61 | "x": 0.5, 62 | "y": 0.5 63 | }, 64 | "_position": { 65 | "__type__": "cc.Vec3", 66 | "x": 479, 67 | "y": 978, 68 | "z": 0 69 | }, 70 | "_scale": { 71 | "__type__": "cc.Vec3", 72 | "x": 1, 73 | "y": 1, 74 | "z": 1 75 | }, 76 | "_quat": { 77 | "__type__": "cc.Quat", 78 | "x": 0, 79 | "y": 0, 80 | "z": 0, 81 | "w": 1 82 | }, 83 | "_skewX": 0, 84 | "_skewY": 0, 85 | "_zIndex": 0, 86 | "_is3DNode": false, 87 | "groupIndex": 0, 88 | "_rotationX": 0, 89 | "_rotationY": 0, 90 | "_id": "" 91 | }, 92 | { 93 | "__type__": "cc.Node", 94 | "_name": "LabelCaption", 95 | "_objFlags": 0, 96 | "_parent": { 97 | "__id__": 1 98 | }, 99 | "_children": [], 100 | "_active": true, 101 | "_level": 2, 102 | "_components": [ 103 | { 104 | "__id__": 3 105 | } 106 | ], 107 | "_prefab": { 108 | "__id__": 4 109 | }, 110 | "_opacity": 255, 111 | "_color": { 112 | "__type__": "cc.Color", 113 | "r": 0, 114 | "g": 0, 115 | "b": 0, 116 | "a": 255 117 | }, 118 | "_contentSize": { 119 | "__type__": "cc.Size", 120 | "width": 116.73, 121 | "height": 35 122 | }, 123 | "_anchorPoint": { 124 | "__type__": "cc.Vec2", 125 | "x": 0, 126 | "y": 0.5 127 | }, 128 | "_position": { 129 | "__type__": "cc.Vec3", 130 | "x": -65.3, 131 | "y": 0, 132 | "z": 0 133 | }, 134 | "_scale": { 135 | "__type__": "cc.Vec3", 136 | "x": 1, 137 | "y": 1, 138 | "z": 1 139 | }, 140 | "_quat": { 141 | "__type__": "cc.Quat", 142 | "x": 0, 143 | "y": 0, 144 | "z": 0, 145 | "w": 1 146 | }, 147 | "_skewX": 0, 148 | "_skewY": 0, 149 | "_zIndex": 0, 150 | "_is3DNode": false, 151 | "groupIndex": 0, 152 | "_rotationX": 0, 153 | "_rotationY": 0, 154 | "_id": "" 155 | }, 156 | { 157 | "__type__": "cc.Label", 158 | "_name": "", 159 | "_objFlags": 0, 160 | "node": { 161 | "__id__": 2 162 | }, 163 | "_enabled": true, 164 | "_srcBlendFactor": 1, 165 | "_dstBlendFactor": 771, 166 | "_useOriginalSize": false, 167 | "_string": "Option A", 168 | "_N$string": "Option A", 169 | "_fontSize": 30, 170 | "_lineHeight": 35, 171 | "_enableWrapText": true, 172 | "_N$file": null, 173 | "_isSystemFontUsed": true, 174 | "_spacingX": 0, 175 | "_N$horizontalAlign": 1, 176 | "_N$verticalAlign": 1, 177 | "_N$fontFamily": "Arial", 178 | "_N$overflow": 0, 179 | "_id": "" 180 | }, 181 | { 182 | "__type__": "cc.PrefabInfo", 183 | "root": { 184 | "__id__": 1 185 | }, 186 | "asset": { 187 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 188 | }, 189 | "fileId": "47qce1uNlCi60rlIDMRft8", 190 | "sync": false 191 | }, 192 | { 193 | "__type__": "cc.Node", 194 | "_name": "SpriteCaption", 195 | "_objFlags": 0, 196 | "_parent": { 197 | "__id__": 1 198 | }, 199 | "_children": [], 200 | "_active": true, 201 | "_level": 2, 202 | "_components": [ 203 | { 204 | "__id__": 6 205 | } 206 | ], 207 | "_prefab": { 208 | "__id__": 7 209 | }, 210 | "_opacity": 255, 211 | "_color": { 212 | "__type__": "cc.Color", 213 | "r": 255, 214 | "g": 255, 215 | "b": 255, 216 | "a": 255 217 | }, 218 | "_contentSize": { 219 | "__type__": "cc.Size", 220 | "width": 27.3, 221 | "height": 25.7 222 | }, 223 | "_anchorPoint": { 224 | "__type__": "cc.Vec2", 225 | "x": 0.5, 226 | "y": 0.5 227 | }, 228 | "_position": { 229 | "__type__": "cc.Vec3", 230 | "x": -80.5, 231 | "y": -0.4, 232 | "z": 0 233 | }, 234 | "_scale": { 235 | "__type__": "cc.Vec3", 236 | "x": 1, 237 | "y": 1, 238 | "z": 1 239 | }, 240 | "_quat": { 241 | "__type__": "cc.Quat", 242 | "x": 0, 243 | "y": 0, 244 | "z": 0, 245 | "w": 1 246 | }, 247 | "_skewX": 0, 248 | "_skewY": 0, 249 | "_zIndex": 0, 250 | "_is3DNode": false, 251 | "groupIndex": 0, 252 | "_rotationX": 0, 253 | "_rotationY": 0, 254 | "_id": "" 255 | }, 256 | { 257 | "__type__": "cc.Sprite", 258 | "_name": "", 259 | "_objFlags": 0, 260 | "node": { 261 | "__id__": 5 262 | }, 263 | "_enabled": true, 264 | "_srcBlendFactor": 770, 265 | "_dstBlendFactor": 771, 266 | "_spriteFrame": { 267 | "__uuid__": "112955b0-3be0-4645-9f31-014434de83e3" 268 | }, 269 | "_type": 0, 270 | "_sizeMode": 0, 271 | "_fillType": 0, 272 | "_fillCenter": { 273 | "__type__": "cc.Vec2", 274 | "x": 0, 275 | "y": 0 276 | }, 277 | "_fillStart": 0, 278 | "_fillRange": 0, 279 | "_isTrimmedMode": true, 280 | "_state": 0, 281 | "_atlas": null, 282 | "_id": "" 283 | }, 284 | { 285 | "__type__": "cc.PrefabInfo", 286 | "root": { 287 | "__id__": 1 288 | }, 289 | "asset": { 290 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 291 | }, 292 | "fileId": "0bXZfYL7FLcoqYAYbJmz83", 293 | "sync": false 294 | }, 295 | { 296 | "__type__": "cc.Node", 297 | "_name": "Arrow", 298 | "_objFlags": 0, 299 | "_parent": { 300 | "__id__": 1 301 | }, 302 | "_children": [], 303 | "_active": true, 304 | "_level": 2, 305 | "_components": [ 306 | { 307 | "__id__": 9 308 | } 309 | ], 310 | "_prefab": { 311 | "__id__": 10 312 | }, 313 | "_opacity": 255, 314 | "_color": { 315 | "__type__": "cc.Color", 316 | "r": 182, 317 | "g": 135, 318 | "b": 95, 319 | "a": 255 320 | }, 321 | "_contentSize": { 322 | "__type__": "cc.Size", 323 | "width": 25.55, 324 | "height": 40 325 | }, 326 | "_anchorPoint": { 327 | "__type__": "cc.Vec2", 328 | "x": 0.5, 329 | "y": 0.5 330 | }, 331 | "_position": { 332 | "__type__": "cc.Vec3", 333 | "x": 80, 334 | "y": 1, 335 | "z": 0 336 | }, 337 | "_scale": { 338 | "__type__": "cc.Vec3", 339 | "x": 1, 340 | "y": 1, 341 | "z": 1 342 | }, 343 | "_quat": { 344 | "__type__": "cc.Quat", 345 | "x": 0, 346 | "y": 0, 347 | "z": 0, 348 | "w": 1 349 | }, 350 | "_skewX": 0, 351 | "_skewY": 0, 352 | "_zIndex": 0, 353 | "_is3DNode": false, 354 | "groupIndex": 0, 355 | "_rotationX": 0, 356 | "_rotationY": 0, 357 | "_id": "" 358 | }, 359 | { 360 | "__type__": "cc.Label", 361 | "_name": "", 362 | "_objFlags": 0, 363 | "node": { 364 | "__id__": 8 365 | }, 366 | "_enabled": true, 367 | "_srcBlendFactor": 1, 368 | "_dstBlendFactor": 771, 369 | "_useOriginalSize": false, 370 | "_string": "▾", 371 | "_N$string": "▾", 372 | "_fontSize": 40, 373 | "_lineHeight": 40, 374 | "_enableWrapText": true, 375 | "_N$file": null, 376 | "_isSystemFontUsed": true, 377 | "_spacingX": 0, 378 | "_N$horizontalAlign": 1, 379 | "_N$verticalAlign": 1, 380 | "_N$fontFamily": "Arial", 381 | "_N$overflow": 0, 382 | "_id": "" 383 | }, 384 | { 385 | "__type__": "cc.PrefabInfo", 386 | "root": { 387 | "__id__": 1 388 | }, 389 | "asset": { 390 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 391 | }, 392 | "fileId": "01d/gD8dNDzIJDK8FY0jY6", 393 | "sync": false 394 | }, 395 | { 396 | "__type__": "cc.Node", 397 | "_name": "Template", 398 | "_objFlags": 0, 399 | "_parent": { 400 | "__id__": 1 401 | }, 402 | "_children": [ 403 | { 404 | "__id__": 12 405 | } 406 | ], 407 | "_active": true, 408 | "_level": 2, 409 | "_components": [ 410 | { 411 | "__id__": 39 412 | }, 413 | { 414 | "__id__": 40 415 | }, 416 | { 417 | "__id__": 41 418 | } 419 | ], 420 | "_prefab": { 421 | "__id__": 42 422 | }, 423 | "_opacity": 255, 424 | "_color": { 425 | "__type__": "cc.Color", 426 | "r": 255, 427 | "g": 255, 428 | "b": 255, 429 | "a": 255 430 | }, 431 | "_contentSize": { 432 | "__type__": "cc.Size", 433 | "width": 193, 434 | "height": 94 435 | }, 436 | "_anchorPoint": { 437 | "__type__": "cc.Vec2", 438 | "x": 0.5, 439 | "y": 0.5 440 | }, 441 | "_position": { 442 | "__type__": "cc.Vec3", 443 | "x": 0, 444 | "y": -65, 445 | "z": 0 446 | }, 447 | "_scale": { 448 | "__type__": "cc.Vec3", 449 | "x": 1, 450 | "y": 1, 451 | "z": 1 452 | }, 453 | "_quat": { 454 | "__type__": "cc.Quat", 455 | "x": 0, 456 | "y": 0, 457 | "z": 0, 458 | "w": 1 459 | }, 460 | "_skewX": 0, 461 | "_skewY": 0, 462 | "_zIndex": 0, 463 | "_is3DNode": false, 464 | "groupIndex": 0, 465 | "_rotationX": 0, 466 | "_rotationY": 0, 467 | "_id": "" 468 | }, 469 | { 470 | "__type__": "cc.Node", 471 | "_name": "view", 472 | "_objFlags": 0, 473 | "_parent": { 474 | "__id__": 11 475 | }, 476 | "_children": [ 477 | { 478 | "__id__": 13 479 | } 480 | ], 481 | "_active": true, 482 | "_level": 0, 483 | "_components": [ 484 | { 485 | "__id__": 36 486 | }, 487 | { 488 | "__id__": 37 489 | } 490 | ], 491 | "_prefab": { 492 | "__id__": 38 493 | }, 494 | "_opacity": 255, 495 | "_color": { 496 | "__type__": "cc.Color", 497 | "r": 255, 498 | "g": 255, 499 | "b": 255, 500 | "a": 255 501 | }, 502 | "_contentSize": { 503 | "__type__": "cc.Size", 504 | "width": 193, 505 | "height": 94 506 | }, 507 | "_anchorPoint": { 508 | "__type__": "cc.Vec2", 509 | "x": 0.5, 510 | "y": 0.5 511 | }, 512 | "_position": { 513 | "__type__": "cc.Vec3", 514 | "x": 0, 515 | "y": 0, 516 | "z": 0 517 | }, 518 | "_scale": { 519 | "__type__": "cc.Vec3", 520 | "x": 1, 521 | "y": 1, 522 | "z": 1 523 | }, 524 | "_quat": { 525 | "__type__": "cc.Quat", 526 | "x": 0, 527 | "y": 0, 528 | "z": 0, 529 | "w": 1 530 | }, 531 | "_skewX": 0, 532 | "_skewY": 0, 533 | "_zIndex": 0, 534 | "_is3DNode": false, 535 | "groupIndex": 0, 536 | "_rotationX": 0, 537 | "_rotationY": 0, 538 | "_id": "" 539 | }, 540 | { 541 | "__type__": "cc.Node", 542 | "_name": "content", 543 | "_objFlags": 0, 544 | "_parent": { 545 | "__id__": 12 546 | }, 547 | "_children": [ 548 | { 549 | "__id__": 14 550 | } 551 | ], 552 | "_active": true, 553 | "_level": 0, 554 | "_components": [ 555 | { 556 | "__id__": 32 557 | }, 558 | { 559 | "__id__": 33 560 | }, 561 | { 562 | "__id__": 34 563 | } 564 | ], 565 | "_prefab": { 566 | "__id__": 35 567 | }, 568 | "_opacity": 255, 569 | "_color": { 570 | "__type__": "cc.Color", 571 | "r": 255, 572 | "g": 255, 573 | "b": 255, 574 | "a": 255 575 | }, 576 | "_contentSize": { 577 | "__type__": "cc.Size", 578 | "width": 193, 579 | "height": 125 580 | }, 581 | "_anchorPoint": { 582 | "__type__": "cc.Vec2", 583 | "x": 0.5, 584 | "y": 1 585 | }, 586 | "_position": { 587 | "__type__": "cc.Vec3", 588 | "x": 0, 589 | "y": 47, 590 | "z": 0 591 | }, 592 | "_scale": { 593 | "__type__": "cc.Vec3", 594 | "x": 1, 595 | "y": 1, 596 | "z": 1 597 | }, 598 | "_quat": { 599 | "__type__": "cc.Quat", 600 | "x": 0, 601 | "y": 0, 602 | "z": 0, 603 | "w": 1 604 | }, 605 | "_skewX": 0, 606 | "_skewY": 0, 607 | "_zIndex": 0, 608 | "_is3DNode": false, 609 | "groupIndex": 0, 610 | "_rotationX": 0, 611 | "_rotationY": 0, 612 | "_id": "" 613 | }, 614 | { 615 | "__type__": "cc.Node", 616 | "_name": "item", 617 | "_objFlags": 0, 618 | "_parent": { 619 | "__id__": 13 620 | }, 621 | "_children": [ 622 | { 623 | "__id__": 15 624 | }, 625 | { 626 | "__id__": 19 627 | }, 628 | { 629 | "__id__": 23 630 | }, 631 | { 632 | "__id__": 26 633 | } 634 | ], 635 | "_active": true, 636 | "_level": 0, 637 | "_components": [ 638 | { 639 | "__id__": 29 640 | }, 641 | { 642 | "__id__": 30 643 | } 644 | ], 645 | "_prefab": { 646 | "__id__": 31 647 | }, 648 | "_opacity": 255, 649 | "_color": { 650 | "__type__": "cc.Color", 651 | "r": 255, 652 | "g": 255, 653 | "b": 255, 654 | "a": 255 655 | }, 656 | "_contentSize": { 657 | "__type__": "cc.Size", 658 | "width": 193, 659 | "height": 38.6 660 | }, 661 | "_anchorPoint": { 662 | "__type__": "cc.Vec2", 663 | "x": 0.5, 664 | "y": 0.5 665 | }, 666 | "_position": { 667 | "__type__": "cc.Vec3", 668 | "x": 0, 669 | "y": -19.3, 670 | "z": 0 671 | }, 672 | "_scale": { 673 | "__type__": "cc.Vec3", 674 | "x": 1, 675 | "y": 1, 676 | "z": 1 677 | }, 678 | "_quat": { 679 | "__type__": "cc.Quat", 680 | "x": 0, 681 | "y": 0, 682 | "z": 0, 683 | "w": 1 684 | }, 685 | "_skewX": 0, 686 | "_skewY": 0, 687 | "_zIndex": 0, 688 | "_is3DNode": false, 689 | "groupIndex": 0, 690 | "_rotationX": 0, 691 | "_rotationY": 0, 692 | "_id": "" 693 | }, 694 | { 695 | "__type__": "cc.Node", 696 | "_name": "Background", 697 | "_objFlags": 0, 698 | "_parent": { 699 | "__id__": 14 700 | }, 701 | "_children": [], 702 | "_active": true, 703 | "_level": 1, 704 | "_components": [ 705 | { 706 | "__id__": 16 707 | }, 708 | { 709 | "__id__": 17 710 | } 711 | ], 712 | "_prefab": { 713 | "__id__": 18 714 | }, 715 | "_opacity": 255, 716 | "_color": { 717 | "__type__": "cc.Color", 718 | "r": 253, 719 | "g": 166, 720 | "b": 166, 721 | "a": 255 722 | }, 723 | "_contentSize": { 724 | "__type__": "cc.Size", 725 | "width": 193, 726 | "height": 38.6 727 | }, 728 | "_anchorPoint": { 729 | "__type__": "cc.Vec2", 730 | "x": 0.5, 731 | "y": 0.5 732 | }, 733 | "_position": { 734 | "__type__": "cc.Vec3", 735 | "x": 0, 736 | "y": 0, 737 | "z": 0 738 | }, 739 | "_scale": { 740 | "__type__": "cc.Vec3", 741 | "x": 1, 742 | "y": 1, 743 | "z": 1 744 | }, 745 | "_quat": { 746 | "__type__": "cc.Quat", 747 | "x": 0, 748 | "y": 0, 749 | "z": 0, 750 | "w": 1 751 | }, 752 | "_skewX": 0, 753 | "_skewY": 0, 754 | "_zIndex": 0, 755 | "_is3DNode": false, 756 | "groupIndex": 0, 757 | "_rotationX": 0, 758 | "_rotationY": 0, 759 | "_id": "" 760 | }, 761 | { 762 | "__type__": "cc.Sprite", 763 | "_name": "", 764 | "_objFlags": 0, 765 | "node": { 766 | "__id__": 15 767 | }, 768 | "_enabled": true, 769 | "_srcBlendFactor": 770, 770 | "_dstBlendFactor": 771, 771 | "_spriteFrame": null, 772 | "_type": 1, 773 | "_sizeMode": 0, 774 | "_fillType": 0, 775 | "_fillCenter": { 776 | "__type__": "cc.Vec2", 777 | "x": 0, 778 | "y": 0 779 | }, 780 | "_fillStart": 0, 781 | "_fillRange": 0, 782 | "_isTrimmedMode": false, 783 | "_state": 0, 784 | "_atlas": null, 785 | "_id": "" 786 | }, 787 | { 788 | "__type__": "cc.Widget", 789 | "_name": "", 790 | "_objFlags": 0, 791 | "node": { 792 | "__id__": 15 793 | }, 794 | "_enabled": true, 795 | "alignMode": 1, 796 | "_target": null, 797 | "_alignFlags": 45, 798 | "_left": 0, 799 | "_right": 0, 800 | "_top": 0, 801 | "_bottom": 0, 802 | "_verticalCenter": 0, 803 | "_horizontalCenter": 0, 804 | "_isAbsLeft": true, 805 | "_isAbsRight": true, 806 | "_isAbsTop": true, 807 | "_isAbsBottom": true, 808 | "_isAbsHorizontalCenter": true, 809 | "_isAbsVerticalCenter": true, 810 | "_originalWidth": 32, 811 | "_originalHeight": 21.1, 812 | "_id": "" 813 | }, 814 | { 815 | "__type__": "cc.PrefabInfo", 816 | "root": { 817 | "__id__": 1 818 | }, 819 | "asset": { 820 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 821 | }, 822 | "fileId": "f23/QtIKlJfZIVpkMovbrE", 823 | "sync": false 824 | }, 825 | { 826 | "__type__": "cc.Node", 827 | "_name": "CheckMark", 828 | "_objFlags": 0, 829 | "_parent": { 830 | "__id__": 14 831 | }, 832 | "_children": [], 833 | "_active": true, 834 | "_level": 1, 835 | "_components": [ 836 | { 837 | "__id__": 20 838 | }, 839 | { 840 | "__id__": 21 841 | } 842 | ], 843 | "_prefab": { 844 | "__id__": 22 845 | }, 846 | "_opacity": 255, 847 | "_color": { 848 | "__type__": "cc.Color", 849 | "r": 1, 850 | "g": 251, 851 | "b": 79, 852 | "a": 255 853 | }, 854 | "_contentSize": { 855 | "__type__": "cc.Size", 856 | "width": 193, 857 | "height": 38.6 858 | }, 859 | "_anchorPoint": { 860 | "__type__": "cc.Vec2", 861 | "x": 0.5, 862 | "y": 0.5 863 | }, 864 | "_position": { 865 | "__type__": "cc.Vec3", 866 | "x": 0, 867 | "y": 0, 868 | "z": 0 869 | }, 870 | "_scale": { 871 | "__type__": "cc.Vec3", 872 | "x": 1, 873 | "y": 1, 874 | "z": 1 875 | }, 876 | "_quat": { 877 | "__type__": "cc.Quat", 878 | "x": 0, 879 | "y": 0, 880 | "z": 0, 881 | "w": 1 882 | }, 883 | "_skewX": 0, 884 | "_skewY": 0, 885 | "_zIndex": 0, 886 | "_is3DNode": false, 887 | "groupIndex": 0, 888 | "_rotationX": 0, 889 | "_rotationY": 0, 890 | "_id": "" 891 | }, 892 | { 893 | "__type__": "cc.Sprite", 894 | "_name": "", 895 | "_objFlags": 0, 896 | "node": { 897 | "__id__": 19 898 | }, 899 | "_enabled": true, 900 | "_srcBlendFactor": 770, 901 | "_dstBlendFactor": 771, 902 | "_spriteFrame": null, 903 | "_type": 1, 904 | "_sizeMode": 0, 905 | "_fillType": 0, 906 | "_fillCenter": { 907 | "__type__": "cc.Vec2", 908 | "x": 0, 909 | "y": 0 910 | }, 911 | "_fillStart": 0, 912 | "_fillRange": 0, 913 | "_isTrimmedMode": false, 914 | "_state": 0, 915 | "_atlas": null, 916 | "_id": "" 917 | }, 918 | { 919 | "__type__": "cc.Widget", 920 | "_name": "", 921 | "_objFlags": 0, 922 | "node": { 923 | "__id__": 19 924 | }, 925 | "_enabled": true, 926 | "alignMode": 1, 927 | "_target": null, 928 | "_alignFlags": 45, 929 | "_left": 0, 930 | "_right": 0, 931 | "_top": 0, 932 | "_bottom": 0, 933 | "_verticalCenter": 0, 934 | "_horizontalCenter": 0, 935 | "_isAbsLeft": true, 936 | "_isAbsRight": true, 937 | "_isAbsTop": true, 938 | "_isAbsBottom": true, 939 | "_isAbsHorizontalCenter": true, 940 | "_isAbsVerticalCenter": true, 941 | "_originalWidth": 32, 942 | "_originalHeight": 21.1, 943 | "_id": "" 944 | }, 945 | { 946 | "__type__": "cc.PrefabInfo", 947 | "root": { 948 | "__id__": 1 949 | }, 950 | "asset": { 951 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 952 | }, 953 | "fileId": "25iWPAP5BAzZjQ9H+U0dgt", 954 | "sync": false 955 | }, 956 | { 957 | "__type__": "cc.Node", 958 | "_name": "Label", 959 | "_objFlags": 0, 960 | "_parent": { 961 | "__id__": 14 962 | }, 963 | "_children": [], 964 | "_active": true, 965 | "_level": 1, 966 | "_components": [ 967 | { 968 | "__id__": 24 969 | } 970 | ], 971 | "_prefab": { 972 | "__id__": 25 973 | }, 974 | "_opacity": 255, 975 | "_color": { 976 | "__type__": "cc.Color", 977 | "r": 0, 978 | "g": 0, 979 | "b": 0, 980 | "a": 255 981 | }, 982 | "_contentSize": { 983 | "__type__": "cc.Size", 984 | "width": 48.94, 985 | "height": 22 986 | }, 987 | "_anchorPoint": { 988 | "__type__": "cc.Vec2", 989 | "x": 0.5, 990 | "y": 0.5 991 | }, 992 | "_position": { 993 | "__type__": "cc.Vec3", 994 | "x": 0, 995 | "y": 0, 996 | "z": 0 997 | }, 998 | "_scale": { 999 | "__type__": "cc.Vec3", 1000 | "x": 1, 1001 | "y": 1, 1002 | "z": 1 1003 | }, 1004 | "_quat": { 1005 | "__type__": "cc.Quat", 1006 | "x": 0, 1007 | "y": 0, 1008 | "z": 0, 1009 | "w": 1 1010 | }, 1011 | "_skewX": 0, 1012 | "_skewY": 0, 1013 | "_zIndex": 0, 1014 | "_is3DNode": false, 1015 | "groupIndex": 0, 1016 | "_rotationX": 0, 1017 | "_rotationY": 0, 1018 | "_id": "" 1019 | }, 1020 | { 1021 | "__type__": "cc.Label", 1022 | "_name": "", 1023 | "_objFlags": 0, 1024 | "node": { 1025 | "__id__": 23 1026 | }, 1027 | "_enabled": true, 1028 | "_srcBlendFactor": 1, 1029 | "_dstBlendFactor": 771, 1030 | "_useOriginalSize": false, 1031 | "_string": "Label", 1032 | "_N$string": "Label", 1033 | "_fontSize": 20, 1034 | "_lineHeight": 22, 1035 | "_enableWrapText": true, 1036 | "_N$file": null, 1037 | "_isSystemFontUsed": true, 1038 | "_spacingX": 0, 1039 | "_N$horizontalAlign": 1, 1040 | "_N$verticalAlign": 1, 1041 | "_N$fontFamily": "Arial", 1042 | "_N$overflow": 0, 1043 | "_id": "" 1044 | }, 1045 | { 1046 | "__type__": "cc.PrefabInfo", 1047 | "root": { 1048 | "__id__": 1 1049 | }, 1050 | "asset": { 1051 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1052 | }, 1053 | "fileId": "1eAInmc6JPBotCti71KVBK", 1054 | "sync": false 1055 | }, 1056 | { 1057 | "__type__": "cc.Node", 1058 | "_name": "Sprite", 1059 | "_objFlags": 0, 1060 | "_parent": { 1061 | "__id__": 14 1062 | }, 1063 | "_children": [], 1064 | "_active": true, 1065 | "_level": 1, 1066 | "_components": [ 1067 | { 1068 | "__id__": 27 1069 | } 1070 | ], 1071 | "_prefab": { 1072 | "__id__": 28 1073 | }, 1074 | "_opacity": 255, 1075 | "_color": { 1076 | "__type__": "cc.Color", 1077 | "r": 255, 1078 | "g": 255, 1079 | "b": 255, 1080 | "a": 255 1081 | }, 1082 | "_contentSize": { 1083 | "__type__": "cc.Size", 1084 | "width": 24, 1085 | "height": 24 1086 | }, 1087 | "_anchorPoint": { 1088 | "__type__": "cc.Vec2", 1089 | "x": 0.5, 1090 | "y": 0.5 1091 | }, 1092 | "_position": { 1093 | "__type__": "cc.Vec3", 1094 | "x": -78.5, 1095 | "y": 0.2, 1096 | "z": 0 1097 | }, 1098 | "_scale": { 1099 | "__type__": "cc.Vec3", 1100 | "x": 0.85, 1101 | "y": 0.85, 1102 | "z": 1 1103 | }, 1104 | "_quat": { 1105 | "__type__": "cc.Quat", 1106 | "x": 0, 1107 | "y": 0, 1108 | "z": 0, 1109 | "w": 1 1110 | }, 1111 | "_skewX": 0, 1112 | "_skewY": 0, 1113 | "_zIndex": 0, 1114 | "_is3DNode": false, 1115 | "groupIndex": 0, 1116 | "_rotationX": 0, 1117 | "_rotationY": 0, 1118 | "_id": "" 1119 | }, 1120 | { 1121 | "__type__": "cc.Sprite", 1122 | "_name": "", 1123 | "_objFlags": 0, 1124 | "node": { 1125 | "__id__": 26 1126 | }, 1127 | "_enabled": true, 1128 | "_srcBlendFactor": 770, 1129 | "_dstBlendFactor": 771, 1130 | "_spriteFrame": { 1131 | "__uuid__": "112955b0-3be0-4645-9f31-014434de83e3" 1132 | }, 1133 | "_type": 0, 1134 | "_sizeMode": 0, 1135 | "_fillType": 0, 1136 | "_fillCenter": { 1137 | "__type__": "cc.Vec2", 1138 | "x": 0, 1139 | "y": 0 1140 | }, 1141 | "_fillStart": 0, 1142 | "_fillRange": 0, 1143 | "_isTrimmedMode": true, 1144 | "_state": 0, 1145 | "_atlas": null, 1146 | "_id": "" 1147 | }, 1148 | { 1149 | "__type__": "cc.PrefabInfo", 1150 | "root": { 1151 | "__id__": 1 1152 | }, 1153 | "asset": { 1154 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1155 | }, 1156 | "fileId": "9eGSCIl49Ge463d9xn0YES", 1157 | "sync": false 1158 | }, 1159 | { 1160 | "__type__": "cc.Toggle", 1161 | "_name": "", 1162 | "_objFlags": 0, 1163 | "node": { 1164 | "__id__": 14 1165 | }, 1166 | "_enabled": true, 1167 | "duration": 0.1, 1168 | "zoomScale": 1.2, 1169 | "clickEvents": [], 1170 | "_N$interactable": true, 1171 | "_N$enableAutoGrayEffect": false, 1172 | "_N$transition": 0, 1173 | "transition": 0, 1174 | "_N$normalColor": { 1175 | "__type__": "cc.Color", 1176 | "r": 214, 1177 | "g": 214, 1178 | "b": 214, 1179 | "a": 255 1180 | }, 1181 | "_N$pressedColor": { 1182 | "__type__": "cc.Color", 1183 | "r": 211, 1184 | "g": 211, 1185 | "b": 211, 1186 | "a": 255 1187 | }, 1188 | "pressedColor": { 1189 | "__type__": "cc.Color", 1190 | "r": 211, 1191 | "g": 211, 1192 | "b": 211, 1193 | "a": 255 1194 | }, 1195 | "_N$hoverColor": { 1196 | "__type__": "cc.Color", 1197 | "r": 255, 1198 | "g": 255, 1199 | "b": 255, 1200 | "a": 255 1201 | }, 1202 | "hoverColor": { 1203 | "__type__": "cc.Color", 1204 | "r": 255, 1205 | "g": 255, 1206 | "b": 255, 1207 | "a": 255 1208 | }, 1209 | "_N$disabledColor": { 1210 | "__type__": "cc.Color", 1211 | "r": 124, 1212 | "g": 124, 1213 | "b": 124, 1214 | "a": 255 1215 | }, 1216 | "_N$normalSprite": null, 1217 | "_N$pressedSprite": null, 1218 | "pressedSprite": null, 1219 | "_N$hoverSprite": null, 1220 | "hoverSprite": null, 1221 | "_N$disabledSprite": null, 1222 | "_N$target": null, 1223 | "_N$isChecked": true, 1224 | "toggleGroup": null, 1225 | "checkMark": { 1226 | "__id__": 20 1227 | }, 1228 | "checkEvents": [], 1229 | "_id": "" 1230 | }, 1231 | { 1232 | "__type__": "cc.Widget", 1233 | "_name": "", 1234 | "_objFlags": 0, 1235 | "node": { 1236 | "__id__": 14 1237 | }, 1238 | "_enabled": true, 1239 | "alignMode": 1, 1240 | "_target": null, 1241 | "_alignFlags": 40, 1242 | "_left": 0, 1243 | "_right": 0, 1244 | "_top": 0, 1245 | "_bottom": 0, 1246 | "_verticalCenter": 0, 1247 | "_horizontalCenter": 0, 1248 | "_isAbsLeft": true, 1249 | "_isAbsRight": true, 1250 | "_isAbsTop": true, 1251 | "_isAbsBottom": true, 1252 | "_isAbsHorizontalCenter": true, 1253 | "_isAbsVerticalCenter": true, 1254 | "_originalWidth": 190, 1255 | "_originalHeight": 0, 1256 | "_id": "" 1257 | }, 1258 | { 1259 | "__type__": "cc.PrefabInfo", 1260 | "root": { 1261 | "__id__": 1 1262 | }, 1263 | "asset": { 1264 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1265 | }, 1266 | "fileId": "74ebEtxoRKRpzsPvbk0SML", 1267 | "sync": false 1268 | }, 1269 | { 1270 | "__type__": "cc.Widget", 1271 | "_name": "", 1272 | "_objFlags": 0, 1273 | "node": { 1274 | "__id__": 13 1275 | }, 1276 | "_enabled": true, 1277 | "alignMode": 1, 1278 | "_target": null, 1279 | "_alignFlags": 41, 1280 | "_left": 0, 1281 | "_right": 0, 1282 | "_top": 0, 1283 | "_bottom": 0, 1284 | "_verticalCenter": 0, 1285 | "_horizontalCenter": 0, 1286 | "_isAbsLeft": true, 1287 | "_isAbsRight": true, 1288 | "_isAbsTop": true, 1289 | "_isAbsBottom": true, 1290 | "_isAbsHorizontalCenter": true, 1291 | "_isAbsVerticalCenter": true, 1292 | "_originalWidth": 220, 1293 | "_originalHeight": 125, 1294 | "_id": "" 1295 | }, 1296 | { 1297 | "__type__": "cc.Layout", 1298 | "_name": "", 1299 | "_objFlags": 0, 1300 | "node": { 1301 | "__id__": 13 1302 | }, 1303 | "_enabled": true, 1304 | "_layoutSize": { 1305 | "__type__": "cc.Size", 1306 | "width": 300, 1307 | "height": 200 1308 | }, 1309 | "_resize": 0, 1310 | "_N$layoutType": 2, 1311 | "_N$padding": 0, 1312 | "_N$cellSize": { 1313 | "__type__": "cc.Size", 1314 | "width": 40, 1315 | "height": 40 1316 | }, 1317 | "_N$startAxis": 0, 1318 | "_N$paddingLeft": 0, 1319 | "_N$paddingRight": 0, 1320 | "_N$paddingTop": 0, 1321 | "_N$paddingBottom": 0, 1322 | "_N$spacingX": 0, 1323 | "_N$spacingY": 0, 1324 | "_N$verticalDirection": 1, 1325 | "_N$horizontalDirection": 0, 1326 | "_N$affectedByScale": false, 1327 | "_id": "" 1328 | }, 1329 | { 1330 | "__type__": "cc.ToggleContainer", 1331 | "_name": "", 1332 | "_objFlags": 0, 1333 | "node": { 1334 | "__id__": 13 1335 | }, 1336 | "_enabled": true, 1337 | "allowSwitchOff": false, 1338 | "checkEvents": [], 1339 | "_id": "" 1340 | }, 1341 | { 1342 | "__type__": "cc.PrefabInfo", 1343 | "root": { 1344 | "__id__": 1 1345 | }, 1346 | "asset": { 1347 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1348 | }, 1349 | "fileId": "2cALaPFGNGH6bGdS3hjLN0", 1350 | "sync": false 1351 | }, 1352 | { 1353 | "__type__": "cc.Mask", 1354 | "_name": "", 1355 | "_objFlags": 0, 1356 | "node": { 1357 | "__id__": 12 1358 | }, 1359 | "_enabled": true, 1360 | "_srcBlendFactor": 770, 1361 | "_dstBlendFactor": 771, 1362 | "_spriteFrame": null, 1363 | "_type": 0, 1364 | "_segments": 64, 1365 | "_N$alphaThreshold": 0, 1366 | "_N$inverted": false, 1367 | "_id": "" 1368 | }, 1369 | { 1370 | "__type__": "cc.Widget", 1371 | "_name": "", 1372 | "_objFlags": 0, 1373 | "node": { 1374 | "__id__": 12 1375 | }, 1376 | "_enabled": true, 1377 | "alignMode": 1, 1378 | "_target": null, 1379 | "_alignFlags": 45, 1380 | "_left": 0, 1381 | "_right": 0, 1382 | "_top": 0, 1383 | "_bottom": 0, 1384 | "_verticalCenter": 0, 1385 | "_horizontalCenter": 0, 1386 | "_isAbsLeft": true, 1387 | "_isAbsRight": true, 1388 | "_isAbsTop": true, 1389 | "_isAbsBottom": true, 1390 | "_isAbsHorizontalCenter": true, 1391 | "_isAbsVerticalCenter": true, 1392 | "_originalWidth": 240, 1393 | "_originalHeight": 250, 1394 | "_id": "" 1395 | }, 1396 | { 1397 | "__type__": "cc.PrefabInfo", 1398 | "root": { 1399 | "__id__": 1 1400 | }, 1401 | "asset": { 1402 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1403 | }, 1404 | "fileId": "2cHOYz901DiabK3HFqDSWZ", 1405 | "sync": false 1406 | }, 1407 | { 1408 | "__type__": "cc.Sprite", 1409 | "_name": "", 1410 | "_objFlags": 0, 1411 | "node": { 1412 | "__id__": 11 1413 | }, 1414 | "_enabled": true, 1415 | "_srcBlendFactor": 770, 1416 | "_dstBlendFactor": 771, 1417 | "_spriteFrame": { 1418 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 1419 | }, 1420 | "_type": 1, 1421 | "_sizeMode": 0, 1422 | "_fillType": 0, 1423 | "_fillCenter": { 1424 | "__type__": "cc.Vec2", 1425 | "x": 0, 1426 | "y": 0 1427 | }, 1428 | "_fillStart": 0, 1429 | "_fillRange": 0, 1430 | "_isTrimmedMode": true, 1431 | "_state": 0, 1432 | "_atlas": null, 1433 | "_id": "" 1434 | }, 1435 | { 1436 | "__type__": "cc.ScrollView", 1437 | "_name": "", 1438 | "_objFlags": 0, 1439 | "node": { 1440 | "__id__": 11 1441 | }, 1442 | "_enabled": true, 1443 | "horizontal": false, 1444 | "vertical": true, 1445 | "inertia": true, 1446 | "brake": 1, 1447 | "elastic": true, 1448 | "bounceDuration": 0.1, 1449 | "scrollEvents": [], 1450 | "cancelInnerEvents": true, 1451 | "_N$content": { 1452 | "__id__": 13 1453 | }, 1454 | "content": { 1455 | "__id__": 13 1456 | }, 1457 | "_N$horizontalScrollBar": null, 1458 | "_N$verticalScrollBar": null, 1459 | "_id": "" 1460 | }, 1461 | { 1462 | "__type__": "cc.Widget", 1463 | "_name": "", 1464 | "_objFlags": 0, 1465 | "node": { 1466 | "__id__": 11 1467 | }, 1468 | "_enabled": true, 1469 | "alignMode": 1, 1470 | "_target": null, 1471 | "_alignFlags": 45, 1472 | "_left": 0, 1473 | "_right": 0, 1474 | "_top": 35.50000000000001, 1475 | "_bottom": -94.5, 1476 | "_verticalCenter": 0, 1477 | "_horizontalCenter": 0, 1478 | "_isAbsLeft": true, 1479 | "_isAbsRight": true, 1480 | "_isAbsTop": true, 1481 | "_isAbsBottom": true, 1482 | "_isAbsHorizontalCenter": true, 1483 | "_isAbsVerticalCenter": true, 1484 | "_originalWidth": 240, 1485 | "_originalHeight": 250, 1486 | "_id": "" 1487 | }, 1488 | { 1489 | "__type__": "cc.PrefabInfo", 1490 | "root": { 1491 | "__id__": 1 1492 | }, 1493 | "asset": { 1494 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1495 | }, 1496 | "fileId": "29dABHMsVCiZUjyfU2QoJo", 1497 | "sync": false 1498 | }, 1499 | { 1500 | "__type__": "cc.Sprite", 1501 | "_name": "", 1502 | "_objFlags": 0, 1503 | "node": { 1504 | "__id__": 1 1505 | }, 1506 | "_enabled": true, 1507 | "_srcBlendFactor": 770, 1508 | "_dstBlendFactor": 771, 1509 | "_spriteFrame": { 1510 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 1511 | }, 1512 | "_type": 1, 1513 | "_sizeMode": 0, 1514 | "_fillType": 0, 1515 | "_fillCenter": { 1516 | "__type__": "cc.Vec2", 1517 | "x": 0, 1518 | "y": 0 1519 | }, 1520 | "_fillStart": 0, 1521 | "_fillRange": 0, 1522 | "_isTrimmedMode": true, 1523 | "_state": 0, 1524 | "_atlas": null, 1525 | "_id": "" 1526 | }, 1527 | { 1528 | "__type__": "4c73768DrRIEpBrhG+kF/zC", 1529 | "_name": "", 1530 | "_objFlags": 0, 1531 | "node": { 1532 | "__id__": 1 1533 | }, 1534 | "_enabled": true, 1535 | "template": { 1536 | "__id__": 11 1537 | }, 1538 | "labelCaption": { 1539 | "__id__": 3 1540 | }, 1541 | "spriteCaption": { 1542 | "__id__": 6 1543 | }, 1544 | "labelItem": { 1545 | "__id__": 24 1546 | }, 1547 | "spriteItem": { 1548 | "__id__": 27 1549 | }, 1550 | "optionDatas": [ 1551 | { 1552 | "__id__": 45 1553 | }, 1554 | { 1555 | "__id__": 46 1556 | }, 1557 | { 1558 | "__id__": 47 1559 | } 1560 | ], 1561 | "_id": "" 1562 | }, 1563 | { 1564 | "__type__": "DropDownOptionData", 1565 | "optionString": "Option_1" 1566 | }, 1567 | { 1568 | "__type__": "DropDownOptionData", 1569 | "optionString": "Option_2" 1570 | }, 1571 | { 1572 | "__type__": "DropDownOptionData", 1573 | "optionString": "Option_3" 1574 | }, 1575 | { 1576 | "__type__": "cc.PrefabInfo", 1577 | "root": { 1578 | "__id__": 1 1579 | }, 1580 | "asset": { 1581 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1582 | }, 1583 | "fileId": "1eE96+5m1KgbaP6f+XoFFo", 1584 | "sync": false 1585 | } 1586 | ] -------------------------------------------------------------------------------- /Dropdown/assets/Prefabs/DropDownBox.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "c8f21621-97c3-42e1-9b03-17a47d283d99", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /Dropdown/assets/Scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /Dropdown/assets/Scene/helloworld.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_objFlags": 0, 14 | "_parent": null, 15 | "_children": [ 16 | { 17 | "__id__": 2 18 | } 19 | ], 20 | "_active": true, 21 | "_level": 0, 22 | "_components": [], 23 | "_prefab": null, 24 | "_opacity": 255, 25 | "_color": { 26 | "__type__": "cc.Color", 27 | "r": 255, 28 | "g": 255, 29 | "b": 255, 30 | "a": 255 31 | }, 32 | "_contentSize": { 33 | "__type__": "cc.Size", 34 | "width": 0, 35 | "height": 0 36 | }, 37 | "_anchorPoint": { 38 | "__type__": "cc.Vec2", 39 | "x": 0, 40 | "y": 0 41 | }, 42 | "_scale": { 43 | "__type__": "cc.Vec3", 44 | "x": 0.6657958984375, 45 | "y": 0.6657958984375, 46 | "z": 0.6657958984375 47 | }, 48 | "_quat": { 49 | "__type__": "cc.Quat", 50 | "x": 0, 51 | "y": 0, 52 | "z": 0, 53 | "w": 1 54 | }, 55 | "_zIndex": 0, 56 | "_is3DNode": true, 57 | "groupIndex": 0, 58 | "autoReleaseAssets": false, 59 | "_id": "2d2f792f-a40c-49bb-a189-ed176a246e49" 60 | }, 61 | { 62 | "__type__": "cc.Node", 63 | "_name": "Canvas", 64 | "_objFlags": 0, 65 | "_parent": { 66 | "__id__": 1 67 | }, 68 | "_children": [ 69 | { 70 | "__id__": 3 71 | }, 72 | { 73 | "__id__": 5 74 | }, 75 | { 76 | "__id__": 8 77 | } 78 | ], 79 | "_active": true, 80 | "_level": 0, 81 | "_components": [ 82 | { 83 | "__id__": 58 84 | }, 85 | { 86 | "__id__": 59 87 | } 88 | ], 89 | "_prefab": null, 90 | "_opacity": 255, 91 | "_color": { 92 | "__type__": "cc.Color", 93 | "r": 252, 94 | "g": 252, 95 | "b": 252, 96 | "a": 255 97 | }, 98 | "_contentSize": { 99 | "__type__": "cc.Size", 100 | "width": 960, 101 | "height": 640 102 | }, 103 | "_anchorPoint": { 104 | "__type__": "cc.Vec2", 105 | "x": 0.5, 106 | "y": 0.5 107 | }, 108 | "_position": { 109 | "__type__": "cc.Vec3", 110 | "x": 480, 111 | "y": 320, 112 | "z": 0 113 | }, 114 | "_scale": { 115 | "__type__": "cc.Vec3", 116 | "x": 1, 117 | "y": 1, 118 | "z": 1 119 | }, 120 | "_quat": { 121 | "__type__": "cc.Quat", 122 | "x": 0, 123 | "y": 0, 124 | "z": 0, 125 | "w": 1 126 | }, 127 | "_skewX": 0, 128 | "_skewY": 0, 129 | "_zIndex": 0, 130 | "_is3DNode": false, 131 | "groupIndex": 0, 132 | "_rotationX": 0, 133 | "_rotationY": 0, 134 | "_id": "a286bbGknJLZpRpxROV6M94" 135 | }, 136 | { 137 | "__type__": "cc.Node", 138 | "_name": "Main Camera", 139 | "_objFlags": 0, 140 | "_parent": { 141 | "__id__": 2 142 | }, 143 | "_children": [], 144 | "_active": true, 145 | "_level": 1, 146 | "_components": [ 147 | { 148 | "__id__": 4 149 | } 150 | ], 151 | "_prefab": null, 152 | "_opacity": 255, 153 | "_color": { 154 | "__type__": "cc.Color", 155 | "r": 255, 156 | "g": 255, 157 | "b": 255, 158 | "a": 255 159 | }, 160 | "_contentSize": { 161 | "__type__": "cc.Size", 162 | "width": 0, 163 | "height": 0 164 | }, 165 | "_anchorPoint": { 166 | "__type__": "cc.Vec2", 167 | "x": 0.5, 168 | "y": 0.5 169 | }, 170 | "_position": { 171 | "__type__": "cc.Vec3", 172 | "x": 0, 173 | "y": 0, 174 | "z": 0 175 | }, 176 | "_scale": { 177 | "__type__": "cc.Vec3", 178 | "x": 1, 179 | "y": 1, 180 | "z": 1 181 | }, 182 | "_quat": { 183 | "__type__": "cc.Quat", 184 | "x": 0, 185 | "y": 0, 186 | "z": 0, 187 | "w": 1 188 | }, 189 | "_skewX": 0, 190 | "_skewY": 0, 191 | "_zIndex": 0, 192 | "_is3DNode": false, 193 | "groupIndex": 0, 194 | "_id": "05nn0yvyxP0LIh6uoR/KA9" 195 | }, 196 | { 197 | "__type__": "cc.Camera", 198 | "_name": "", 199 | "_objFlags": 0, 200 | "node": { 201 | "__id__": 3 202 | }, 203 | "_enabled": true, 204 | "_cullingMask": 4294967295, 205 | "_clearFlags": 7, 206 | "_backgroundColor": { 207 | "__type__": "cc.Color", 208 | "r": 0, 209 | "g": 0, 210 | "b": 0, 211 | "a": 255 212 | }, 213 | "_depth": -1, 214 | "_zoomRatio": 1, 215 | "_targetTexture": null, 216 | "_fov": 60, 217 | "_orthoSize": 10, 218 | "_nearClip": 0.1, 219 | "_farClip": 4096, 220 | "_ortho": true, 221 | "_rect": { 222 | "__type__": "cc.Rect", 223 | "x": 0, 224 | "y": 0, 225 | "width": 1, 226 | "height": 1 227 | }, 228 | "_id": "8bV2cAubpDVrBiAjI3m45D" 229 | }, 230 | { 231 | "__type__": "cc.Node", 232 | "_name": "background", 233 | "_objFlags": 0, 234 | "_parent": { 235 | "__id__": 2 236 | }, 237 | "_children": [], 238 | "_active": true, 239 | "_level": 0, 240 | "_components": [ 241 | { 242 | "__id__": 6 243 | }, 244 | { 245 | "__id__": 7 246 | } 247 | ], 248 | "_prefab": null, 249 | "_opacity": 255, 250 | "_color": { 251 | "__type__": "cc.Color", 252 | "r": 27, 253 | "g": 38, 254 | "b": 46, 255 | "a": 255 256 | }, 257 | "_contentSize": { 258 | "__type__": "cc.Size", 259 | "width": 960, 260 | "height": 640 261 | }, 262 | "_anchorPoint": { 263 | "__type__": "cc.Vec2", 264 | "x": 0.5, 265 | "y": 0.5 266 | }, 267 | "_position": { 268 | "__type__": "cc.Vec3", 269 | "x": 0, 270 | "y": 0, 271 | "z": 0 272 | }, 273 | "_scale": { 274 | "__type__": "cc.Vec3", 275 | "x": 1, 276 | "y": 1, 277 | "z": 1 278 | }, 279 | "_quat": { 280 | "__type__": "cc.Quat", 281 | "x": 0, 282 | "y": 0, 283 | "z": 0, 284 | "w": 1 285 | }, 286 | "_skewX": 0, 287 | "_skewY": 0, 288 | "_zIndex": 0, 289 | "_is3DNode": false, 290 | "groupIndex": 0, 291 | "_rotationX": 0, 292 | "_rotationY": 0, 293 | "_id": "e2e0crkOLxGrpMxpbC4iQg1" 294 | }, 295 | { 296 | "__type__": "cc.Widget", 297 | "_name": "", 298 | "_objFlags": 0, 299 | "node": { 300 | "__id__": 5 301 | }, 302 | "_enabled": true, 303 | "alignMode": 0, 304 | "_target": null, 305 | "_alignFlags": 45, 306 | "_left": 0, 307 | "_right": 0, 308 | "_top": 0, 309 | "_bottom": 0, 310 | "_verticalCenter": 0, 311 | "_horizontalCenter": 0, 312 | "_isAbsLeft": true, 313 | "_isAbsRight": true, 314 | "_isAbsTop": true, 315 | "_isAbsBottom": true, 316 | "_isAbsHorizontalCenter": true, 317 | "_isAbsVerticalCenter": true, 318 | "_originalWidth": 200, 319 | "_originalHeight": 150, 320 | "_id": "42hDT+CwxLx7p78ZdmOIsR" 321 | }, 322 | { 323 | "__type__": "cc.Sprite", 324 | "_name": "", 325 | "_objFlags": 0, 326 | "node": { 327 | "__id__": 5 328 | }, 329 | "_enabled": true, 330 | "_srcBlendFactor": 770, 331 | "_dstBlendFactor": 771, 332 | "_spriteFrame": { 333 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 334 | }, 335 | "_type": 1, 336 | "_sizeMode": 0, 337 | "_fillType": 0, 338 | "_fillCenter": { 339 | "__type__": "cc.Vec2", 340 | "x": 0, 341 | "y": 0 342 | }, 343 | "_fillStart": 0, 344 | "_fillRange": 0, 345 | "_isTrimmedMode": true, 346 | "_state": 0, 347 | "_atlas": null, 348 | "_id": "388oyUP95IX5t3uMdZ8VXy" 349 | }, 350 | { 351 | "__type__": "cc.Node", 352 | "_name": "label", 353 | "_objFlags": 0, 354 | "_parent": { 355 | "__id__": 2 356 | }, 357 | "_children": [ 358 | { 359 | "__id__": 9 360 | } 361 | ], 362 | "_active": true, 363 | "_level": 0, 364 | "_components": [ 365 | { 366 | "__id__": 57 367 | } 368 | ], 369 | "_prefab": null, 370 | "_opacity": 255, 371 | "_color": { 372 | "__type__": "cc.Color", 373 | "r": 255, 374 | "g": 255, 375 | "b": 255, 376 | "a": 255 377 | }, 378 | "_contentSize": { 379 | "__type__": "cc.Size", 380 | "width": 342.33, 381 | "height": 60 382 | }, 383 | "_anchorPoint": { 384 | "__type__": "cc.Vec2", 385 | "x": 0.5, 386 | "y": 0.5 387 | }, 388 | "_position": { 389 | "__type__": "cc.Vec3", 390 | "x": 0, 391 | "y": -180, 392 | "z": 0 393 | }, 394 | "_scale": { 395 | "__type__": "cc.Vec3", 396 | "x": 1, 397 | "y": 1, 398 | "z": 1 399 | }, 400 | "_quat": { 401 | "__type__": "cc.Quat", 402 | "x": 0, 403 | "y": 0, 404 | "z": 0, 405 | "w": 1 406 | }, 407 | "_skewX": 0, 408 | "_skewY": 0, 409 | "_zIndex": 0, 410 | "_is3DNode": false, 411 | "groupIndex": 0, 412 | "_rotationX": 0, 413 | "_rotationY": 0, 414 | "_id": "31f1bH7V69Ajr1iXhluMpTB" 415 | }, 416 | { 417 | "__type__": "cc.Node", 418 | "_name": "DropDownBox", 419 | "_objFlags": 0, 420 | "_parent": { 421 | "__id__": 8 422 | }, 423 | "_children": [ 424 | { 425 | "__id__": 10 426 | }, 427 | { 428 | "__id__": 13 429 | }, 430 | { 431 | "__id__": 16 432 | }, 433 | { 434 | "__id__": 19 435 | } 436 | ], 437 | "_active": true, 438 | "_level": 1, 439 | "_components": [ 440 | { 441 | "__id__": 51 442 | }, 443 | { 444 | "__id__": 52 445 | } 446 | ], 447 | "_prefab": { 448 | "__id__": 56 449 | }, 450 | "_opacity": 255, 451 | "_color": { 452 | "__type__": "cc.Color", 453 | "r": 255, 454 | "g": 255, 455 | "b": 255, 456 | "a": 255 457 | }, 458 | "_contentSize": { 459 | "__type__": "cc.Size", 460 | "width": 193, 461 | "height": 35 462 | }, 463 | "_anchorPoint": { 464 | "__type__": "cc.Vec2", 465 | "x": 0.5, 466 | "y": 0.5 467 | }, 468 | "_position": { 469 | "__type__": "cc.Vec3", 470 | "x": 16, 471 | "y": 240, 472 | "z": 0 473 | }, 474 | "_scale": { 475 | "__type__": "cc.Vec3", 476 | "x": 1, 477 | "y": 1, 478 | "z": 1 479 | }, 480 | "_quat": { 481 | "__type__": "cc.Quat", 482 | "x": 0, 483 | "y": 0, 484 | "z": 0, 485 | "w": 1 486 | }, 487 | "_skewX": 0, 488 | "_skewY": 0, 489 | "_zIndex": 0, 490 | "_is3DNode": false, 491 | "groupIndex": 0, 492 | "_rotationX": 0, 493 | "_rotationY": 0, 494 | "_id": "1aybwpGx9NtosJpdCaAsKy" 495 | }, 496 | { 497 | "__type__": "cc.Node", 498 | "_name": "LabelCaption", 499 | "_objFlags": 0, 500 | "_parent": { 501 | "__id__": 9 502 | }, 503 | "_children": [], 504 | "_active": true, 505 | "_level": 2, 506 | "_components": [ 507 | { 508 | "__id__": 11 509 | } 510 | ], 511 | "_prefab": { 512 | "__id__": 12 513 | }, 514 | "_opacity": 255, 515 | "_color": { 516 | "__type__": "cc.Color", 517 | "r": 0, 518 | "g": 0, 519 | "b": 0, 520 | "a": 255 521 | }, 522 | "_contentSize": { 523 | "__type__": "cc.Size", 524 | "width": 116.73, 525 | "height": 35 526 | }, 527 | "_anchorPoint": { 528 | "__type__": "cc.Vec2", 529 | "x": 0, 530 | "y": 0.5 531 | }, 532 | "_position": { 533 | "__type__": "cc.Vec3", 534 | "x": -65.3, 535 | "y": 0, 536 | "z": 0 537 | }, 538 | "_scale": { 539 | "__type__": "cc.Vec3", 540 | "x": 1, 541 | "y": 1, 542 | "z": 1 543 | }, 544 | "_quat": { 545 | "__type__": "cc.Quat", 546 | "x": 0, 547 | "y": 0, 548 | "z": 0, 549 | "w": 1 550 | }, 551 | "_skewX": 0, 552 | "_skewY": 0, 553 | "_zIndex": 0, 554 | "_is3DNode": false, 555 | "groupIndex": 0, 556 | "_rotationX": 0, 557 | "_rotationY": 0, 558 | "_id": "dajXxSSwtImo4bzDXqf1pJ" 559 | }, 560 | { 561 | "__type__": "cc.Label", 562 | "_name": "", 563 | "_objFlags": 0, 564 | "node": { 565 | "__id__": 10 566 | }, 567 | "_enabled": true, 568 | "_srcBlendFactor": 1, 569 | "_dstBlendFactor": 771, 570 | "_useOriginalSize": false, 571 | "_string": "Option A", 572 | "_N$string": "Option A", 573 | "_fontSize": 30, 574 | "_lineHeight": 35, 575 | "_enableWrapText": true, 576 | "_N$file": null, 577 | "_isSystemFontUsed": true, 578 | "_spacingX": 0, 579 | "_N$horizontalAlign": 1, 580 | "_N$verticalAlign": 1, 581 | "_N$fontFamily": "Arial", 582 | "_N$overflow": 0, 583 | "_id": "49MMvmf3xOtbOQsGMp+tsF" 584 | }, 585 | { 586 | "__type__": "cc.PrefabInfo", 587 | "root": { 588 | "__id__": 9 589 | }, 590 | "asset": { 591 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 592 | }, 593 | "fileId": "47qce1uNlCi60rlIDMRft8", 594 | "sync": false 595 | }, 596 | { 597 | "__type__": "cc.Node", 598 | "_name": "SpriteCaption", 599 | "_objFlags": 0, 600 | "_parent": { 601 | "__id__": 9 602 | }, 603 | "_children": [], 604 | "_active": true, 605 | "_level": 2, 606 | "_components": [ 607 | { 608 | "__id__": 14 609 | } 610 | ], 611 | "_prefab": { 612 | "__id__": 15 613 | }, 614 | "_opacity": 255, 615 | "_color": { 616 | "__type__": "cc.Color", 617 | "r": 255, 618 | "g": 255, 619 | "b": 255, 620 | "a": 255 621 | }, 622 | "_contentSize": { 623 | "__type__": "cc.Size", 624 | "width": 27.3, 625 | "height": 25.7 626 | }, 627 | "_anchorPoint": { 628 | "__type__": "cc.Vec2", 629 | "x": 0.5, 630 | "y": 0.5 631 | }, 632 | "_position": { 633 | "__type__": "cc.Vec3", 634 | "x": -80.5, 635 | "y": -0.4, 636 | "z": 0 637 | }, 638 | "_scale": { 639 | "__type__": "cc.Vec3", 640 | "x": 1, 641 | "y": 1, 642 | "z": 1 643 | }, 644 | "_quat": { 645 | "__type__": "cc.Quat", 646 | "x": 0, 647 | "y": 0, 648 | "z": 0, 649 | "w": 1 650 | }, 651 | "_skewX": 0, 652 | "_skewY": 0, 653 | "_zIndex": 0, 654 | "_is3DNode": false, 655 | "groupIndex": 0, 656 | "_rotationX": 0, 657 | "_rotationY": 0, 658 | "_id": "8aDbCcBkJN2Iqzx6XQfGZY" 659 | }, 660 | { 661 | "__type__": "cc.Sprite", 662 | "_name": "", 663 | "_objFlags": 0, 664 | "node": { 665 | "__id__": 13 666 | }, 667 | "_enabled": true, 668 | "_srcBlendFactor": 770, 669 | "_dstBlendFactor": 771, 670 | "_spriteFrame": null, 671 | "_type": 0, 672 | "_sizeMode": 0, 673 | "_fillType": 0, 674 | "_fillCenter": { 675 | "__type__": "cc.Vec2", 676 | "x": 0, 677 | "y": 0 678 | }, 679 | "_fillStart": 0, 680 | "_fillRange": 0, 681 | "_isTrimmedMode": true, 682 | "_state": 0, 683 | "_atlas": null, 684 | "_id": "ec7v94lWVCQIu53DcqOtYR" 685 | }, 686 | { 687 | "__type__": "cc.PrefabInfo", 688 | "root": { 689 | "__id__": 9 690 | }, 691 | "asset": { 692 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 693 | }, 694 | "fileId": "0bXZfYL7FLcoqYAYbJmz83", 695 | "sync": false 696 | }, 697 | { 698 | "__type__": "cc.Node", 699 | "_name": "Arrow", 700 | "_objFlags": 0, 701 | "_parent": { 702 | "__id__": 9 703 | }, 704 | "_children": [], 705 | "_active": true, 706 | "_level": 2, 707 | "_components": [ 708 | { 709 | "__id__": 17 710 | } 711 | ], 712 | "_prefab": { 713 | "__id__": 18 714 | }, 715 | "_opacity": 255, 716 | "_color": { 717 | "__type__": "cc.Color", 718 | "r": 182, 719 | "g": 135, 720 | "b": 95, 721 | "a": 255 722 | }, 723 | "_contentSize": { 724 | "__type__": "cc.Size", 725 | "width": 25.55, 726 | "height": 40 727 | }, 728 | "_anchorPoint": { 729 | "__type__": "cc.Vec2", 730 | "x": 0.5, 731 | "y": 0.5 732 | }, 733 | "_position": { 734 | "__type__": "cc.Vec3", 735 | "x": 80, 736 | "y": 1, 737 | "z": 0 738 | }, 739 | "_scale": { 740 | "__type__": "cc.Vec3", 741 | "x": 1, 742 | "y": 1, 743 | "z": 1 744 | }, 745 | "_quat": { 746 | "__type__": "cc.Quat", 747 | "x": 0, 748 | "y": 0, 749 | "z": 0, 750 | "w": 1 751 | }, 752 | "_skewX": 0, 753 | "_skewY": 0, 754 | "_zIndex": 0, 755 | "_is3DNode": false, 756 | "groupIndex": 0, 757 | "_rotationX": 0, 758 | "_rotationY": 0, 759 | "_id": "79+HR76EVOQJGVjbmpzzPM" 760 | }, 761 | { 762 | "__type__": "cc.Label", 763 | "_name": "", 764 | "_objFlags": 0, 765 | "node": { 766 | "__id__": 16 767 | }, 768 | "_enabled": true, 769 | "_srcBlendFactor": 1, 770 | "_dstBlendFactor": 771, 771 | "_useOriginalSize": false, 772 | "_string": "▾", 773 | "_N$string": "▾", 774 | "_fontSize": 40, 775 | "_lineHeight": 40, 776 | "_enableWrapText": true, 777 | "_N$file": null, 778 | "_isSystemFontUsed": true, 779 | "_spacingX": 0, 780 | "_N$horizontalAlign": 1, 781 | "_N$verticalAlign": 1, 782 | "_N$fontFamily": "Arial", 783 | "_N$overflow": 0, 784 | "_id": "58CsAYexxGxqAzUOxBqpzJ" 785 | }, 786 | { 787 | "__type__": "cc.PrefabInfo", 788 | "root": { 789 | "__id__": 9 790 | }, 791 | "asset": { 792 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 793 | }, 794 | "fileId": "01d/gD8dNDzIJDK8FY0jY6", 795 | "sync": false 796 | }, 797 | { 798 | "__type__": "cc.Node", 799 | "_name": "Template", 800 | "_objFlags": 0, 801 | "_parent": { 802 | "__id__": 9 803 | }, 804 | "_children": [ 805 | { 806 | "__id__": 20 807 | } 808 | ], 809 | "_active": true, 810 | "_level": 2, 811 | "_components": [ 812 | { 813 | "__id__": 47 814 | }, 815 | { 816 | "__id__": 48 817 | }, 818 | { 819 | "__id__": 49 820 | } 821 | ], 822 | "_prefab": { 823 | "__id__": 50 824 | }, 825 | "_opacity": 255, 826 | "_color": { 827 | "__type__": "cc.Color", 828 | "r": 255, 829 | "g": 255, 830 | "b": 255, 831 | "a": 255 832 | }, 833 | "_contentSize": { 834 | "__type__": "cc.Size", 835 | "width": 193, 836 | "height": 94 837 | }, 838 | "_anchorPoint": { 839 | "__type__": "cc.Vec2", 840 | "x": 0.5, 841 | "y": 0.5 842 | }, 843 | "_position": { 844 | "__type__": "cc.Vec3", 845 | "x": 0, 846 | "y": -65, 847 | "z": 0 848 | }, 849 | "_scale": { 850 | "__type__": "cc.Vec3", 851 | "x": 1, 852 | "y": 1, 853 | "z": 1 854 | }, 855 | "_quat": { 856 | "__type__": "cc.Quat", 857 | "x": 0, 858 | "y": 0, 859 | "z": 0, 860 | "w": 1 861 | }, 862 | "_skewX": 0, 863 | "_skewY": 0, 864 | "_zIndex": 0, 865 | "_is3DNode": false, 866 | "groupIndex": 0, 867 | "_rotationX": 0, 868 | "_rotationY": 0, 869 | "_id": "1eK1LpcY5CRYhSMW4DcYbd" 870 | }, 871 | { 872 | "__type__": "cc.Node", 873 | "_name": "view", 874 | "_objFlags": 0, 875 | "_parent": { 876 | "__id__": 19 877 | }, 878 | "_children": [ 879 | { 880 | "__id__": 21 881 | } 882 | ], 883 | "_active": true, 884 | "_level": 0, 885 | "_components": [ 886 | { 887 | "__id__": 44 888 | }, 889 | { 890 | "__id__": 45 891 | } 892 | ], 893 | "_prefab": { 894 | "__id__": 46 895 | }, 896 | "_opacity": 255, 897 | "_color": { 898 | "__type__": "cc.Color", 899 | "r": 255, 900 | "g": 255, 901 | "b": 255, 902 | "a": 255 903 | }, 904 | "_contentSize": { 905 | "__type__": "cc.Size", 906 | "width": 193, 907 | "height": 94 908 | }, 909 | "_anchorPoint": { 910 | "__type__": "cc.Vec2", 911 | "x": 0.5, 912 | "y": 0.5 913 | }, 914 | "_position": { 915 | "__type__": "cc.Vec3", 916 | "x": 0, 917 | "y": 0, 918 | "z": 0 919 | }, 920 | "_scale": { 921 | "__type__": "cc.Vec3", 922 | "x": 1, 923 | "y": 1, 924 | "z": 1 925 | }, 926 | "_quat": { 927 | "__type__": "cc.Quat", 928 | "x": 0, 929 | "y": 0, 930 | "z": 0, 931 | "w": 1 932 | }, 933 | "_skewX": 0, 934 | "_skewY": 0, 935 | "_zIndex": 0, 936 | "_is3DNode": false, 937 | "groupIndex": 0, 938 | "_rotationX": 0, 939 | "_rotationY": 0, 940 | "_id": "c6P85sZctCh4z5azag5r5y" 941 | }, 942 | { 943 | "__type__": "cc.Node", 944 | "_name": "content", 945 | "_objFlags": 0, 946 | "_parent": { 947 | "__id__": 20 948 | }, 949 | "_children": [ 950 | { 951 | "__id__": 22 952 | } 953 | ], 954 | "_active": true, 955 | "_level": 0, 956 | "_components": [ 957 | { 958 | "__id__": 40 959 | }, 960 | { 961 | "__id__": 41 962 | }, 963 | { 964 | "__id__": 42 965 | } 966 | ], 967 | "_prefab": { 968 | "__id__": 43 969 | }, 970 | "_opacity": 255, 971 | "_color": { 972 | "__type__": "cc.Color", 973 | "r": 255, 974 | "g": 255, 975 | "b": 255, 976 | "a": 255 977 | }, 978 | "_contentSize": { 979 | "__type__": "cc.Size", 980 | "width": 193, 981 | "height": 125 982 | }, 983 | "_anchorPoint": { 984 | "__type__": "cc.Vec2", 985 | "x": 0.5, 986 | "y": 1 987 | }, 988 | "_position": { 989 | "__type__": "cc.Vec3", 990 | "x": 0, 991 | "y": 47, 992 | "z": 0 993 | }, 994 | "_scale": { 995 | "__type__": "cc.Vec3", 996 | "x": 1, 997 | "y": 1, 998 | "z": 1 999 | }, 1000 | "_quat": { 1001 | "__type__": "cc.Quat", 1002 | "x": 0, 1003 | "y": 0, 1004 | "z": 0, 1005 | "w": 1 1006 | }, 1007 | "_skewX": 0, 1008 | "_skewY": 0, 1009 | "_zIndex": 0, 1010 | "_is3DNode": false, 1011 | "groupIndex": 0, 1012 | "_rotationX": 0, 1013 | "_rotationY": 0, 1014 | "_id": "badUCu19lMzKAWr7i2zMod" 1015 | }, 1016 | { 1017 | "__type__": "cc.Node", 1018 | "_name": "item", 1019 | "_objFlags": 0, 1020 | "_parent": { 1021 | "__id__": 21 1022 | }, 1023 | "_children": [ 1024 | { 1025 | "__id__": 23 1026 | }, 1027 | { 1028 | "__id__": 27 1029 | }, 1030 | { 1031 | "__id__": 31 1032 | }, 1033 | { 1034 | "__id__": 34 1035 | } 1036 | ], 1037 | "_active": true, 1038 | "_level": 0, 1039 | "_components": [ 1040 | { 1041 | "__id__": 37 1042 | }, 1043 | { 1044 | "__id__": 38 1045 | } 1046 | ], 1047 | "_prefab": { 1048 | "__id__": 39 1049 | }, 1050 | "_opacity": 255, 1051 | "_color": { 1052 | "__type__": "cc.Color", 1053 | "r": 255, 1054 | "g": 255, 1055 | "b": 255, 1056 | "a": 255 1057 | }, 1058 | "_contentSize": { 1059 | "__type__": "cc.Size", 1060 | "width": 193, 1061 | "height": 38.6 1062 | }, 1063 | "_anchorPoint": { 1064 | "__type__": "cc.Vec2", 1065 | "x": 0.5, 1066 | "y": 0.5 1067 | }, 1068 | "_position": { 1069 | "__type__": "cc.Vec3", 1070 | "x": 0, 1071 | "y": -19.3, 1072 | "z": 0 1073 | }, 1074 | "_scale": { 1075 | "__type__": "cc.Vec3", 1076 | "x": 1, 1077 | "y": 1, 1078 | "z": 1 1079 | }, 1080 | "_quat": { 1081 | "__type__": "cc.Quat", 1082 | "x": 0, 1083 | "y": 0, 1084 | "z": 0, 1085 | "w": 1 1086 | }, 1087 | "_skewX": 0, 1088 | "_skewY": 0, 1089 | "_zIndex": 0, 1090 | "_is3DNode": false, 1091 | "groupIndex": 0, 1092 | "_rotationX": 0, 1093 | "_rotationY": 0, 1094 | "_id": "9e1SQilWxCR4ylwl7vY9KF" 1095 | }, 1096 | { 1097 | "__type__": "cc.Node", 1098 | "_name": "Background", 1099 | "_objFlags": 0, 1100 | "_parent": { 1101 | "__id__": 22 1102 | }, 1103 | "_children": [], 1104 | "_active": true, 1105 | "_level": 1, 1106 | "_components": [ 1107 | { 1108 | "__id__": 24 1109 | }, 1110 | { 1111 | "__id__": 25 1112 | } 1113 | ], 1114 | "_prefab": { 1115 | "__id__": 26 1116 | }, 1117 | "_opacity": 255, 1118 | "_color": { 1119 | "__type__": "cc.Color", 1120 | "r": 253, 1121 | "g": 166, 1122 | "b": 166, 1123 | "a": 255 1124 | }, 1125 | "_contentSize": { 1126 | "__type__": "cc.Size", 1127 | "width": 193, 1128 | "height": 38.6 1129 | }, 1130 | "_anchorPoint": { 1131 | "__type__": "cc.Vec2", 1132 | "x": 0.5, 1133 | "y": 0.5 1134 | }, 1135 | "_position": { 1136 | "__type__": "cc.Vec3", 1137 | "x": 0, 1138 | "y": 0, 1139 | "z": 0 1140 | }, 1141 | "_scale": { 1142 | "__type__": "cc.Vec3", 1143 | "x": 1, 1144 | "y": 1, 1145 | "z": 1 1146 | }, 1147 | "_quat": { 1148 | "__type__": "cc.Quat", 1149 | "x": 0, 1150 | "y": 0, 1151 | "z": 0, 1152 | "w": 1 1153 | }, 1154 | "_skewX": 0, 1155 | "_skewY": 0, 1156 | "_zIndex": 0, 1157 | "_is3DNode": false, 1158 | "groupIndex": 0, 1159 | "_rotationX": 0, 1160 | "_rotationY": 0, 1161 | "_id": "9at/FLefhBZpKqWKk3hNrg" 1162 | }, 1163 | { 1164 | "__type__": "cc.Sprite", 1165 | "_name": "", 1166 | "_objFlags": 0, 1167 | "node": { 1168 | "__id__": 23 1169 | }, 1170 | "_enabled": true, 1171 | "_srcBlendFactor": 770, 1172 | "_dstBlendFactor": 771, 1173 | "_spriteFrame": null, 1174 | "_type": 1, 1175 | "_sizeMode": 0, 1176 | "_fillType": 0, 1177 | "_fillCenter": { 1178 | "__type__": "cc.Vec2", 1179 | "x": 0, 1180 | "y": 0 1181 | }, 1182 | "_fillStart": 0, 1183 | "_fillRange": 0, 1184 | "_isTrimmedMode": false, 1185 | "_state": 0, 1186 | "_atlas": null, 1187 | "_id": "d3HmgXY6RAUIVTPWfIwypD" 1188 | }, 1189 | { 1190 | "__type__": "cc.Widget", 1191 | "_name": "", 1192 | "_objFlags": 0, 1193 | "node": { 1194 | "__id__": 23 1195 | }, 1196 | "_enabled": true, 1197 | "alignMode": 1, 1198 | "_target": null, 1199 | "_alignFlags": 45, 1200 | "_left": 0, 1201 | "_right": 0, 1202 | "_top": 0, 1203 | "_bottom": 0, 1204 | "_verticalCenter": 0, 1205 | "_horizontalCenter": 0, 1206 | "_isAbsLeft": true, 1207 | "_isAbsRight": true, 1208 | "_isAbsTop": true, 1209 | "_isAbsBottom": true, 1210 | "_isAbsHorizontalCenter": true, 1211 | "_isAbsVerticalCenter": true, 1212 | "_originalWidth": 32, 1213 | "_originalHeight": 21.1, 1214 | "_id": "9b0JnbD0BJOo+2567a/BbX" 1215 | }, 1216 | { 1217 | "__type__": "cc.PrefabInfo", 1218 | "root": { 1219 | "__id__": 9 1220 | }, 1221 | "asset": { 1222 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1223 | }, 1224 | "fileId": "f23/QtIKlJfZIVpkMovbrE", 1225 | "sync": false 1226 | }, 1227 | { 1228 | "__type__": "cc.Node", 1229 | "_name": "CheckMark", 1230 | "_objFlags": 0, 1231 | "_parent": { 1232 | "__id__": 22 1233 | }, 1234 | "_children": [], 1235 | "_active": true, 1236 | "_level": 1, 1237 | "_components": [ 1238 | { 1239 | "__id__": 28 1240 | }, 1241 | { 1242 | "__id__": 29 1243 | } 1244 | ], 1245 | "_prefab": { 1246 | "__id__": 30 1247 | }, 1248 | "_opacity": 255, 1249 | "_color": { 1250 | "__type__": "cc.Color", 1251 | "r": 1, 1252 | "g": 251, 1253 | "b": 79, 1254 | "a": 255 1255 | }, 1256 | "_contentSize": { 1257 | "__type__": "cc.Size", 1258 | "width": 193, 1259 | "height": 38.6 1260 | }, 1261 | "_anchorPoint": { 1262 | "__type__": "cc.Vec2", 1263 | "x": 0.5, 1264 | "y": 0.5 1265 | }, 1266 | "_position": { 1267 | "__type__": "cc.Vec3", 1268 | "x": 0, 1269 | "y": 0, 1270 | "z": 0 1271 | }, 1272 | "_scale": { 1273 | "__type__": "cc.Vec3", 1274 | "x": 1, 1275 | "y": 1, 1276 | "z": 1 1277 | }, 1278 | "_quat": { 1279 | "__type__": "cc.Quat", 1280 | "x": 0, 1281 | "y": 0, 1282 | "z": 0, 1283 | "w": 1 1284 | }, 1285 | "_skewX": 0, 1286 | "_skewY": 0, 1287 | "_zIndex": 0, 1288 | "_is3DNode": false, 1289 | "groupIndex": 0, 1290 | "_rotationX": 0, 1291 | "_rotationY": 0, 1292 | "_id": "1afZP5GrNOm7+AAQnNzU0B" 1293 | }, 1294 | { 1295 | "__type__": "cc.Sprite", 1296 | "_name": "", 1297 | "_objFlags": 0, 1298 | "node": { 1299 | "__id__": 27 1300 | }, 1301 | "_enabled": true, 1302 | "_srcBlendFactor": 770, 1303 | "_dstBlendFactor": 771, 1304 | "_spriteFrame": { 1305 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 1306 | }, 1307 | "_type": 1, 1308 | "_sizeMode": 0, 1309 | "_fillType": 0, 1310 | "_fillCenter": { 1311 | "__type__": "cc.Vec2", 1312 | "x": 0, 1313 | "y": 0 1314 | }, 1315 | "_fillStart": 0, 1316 | "_fillRange": 0, 1317 | "_isTrimmedMode": false, 1318 | "_state": 0, 1319 | "_atlas": null, 1320 | "_id": "52hlK34udMt7U5afbPYT6c" 1321 | }, 1322 | { 1323 | "__type__": "cc.Widget", 1324 | "_name": "", 1325 | "_objFlags": 0, 1326 | "node": { 1327 | "__id__": 27 1328 | }, 1329 | "_enabled": true, 1330 | "alignMode": 1, 1331 | "_target": null, 1332 | "_alignFlags": 45, 1333 | "_left": 0, 1334 | "_right": 0, 1335 | "_top": 0, 1336 | "_bottom": 0, 1337 | "_verticalCenter": 0, 1338 | "_horizontalCenter": 0, 1339 | "_isAbsLeft": true, 1340 | "_isAbsRight": true, 1341 | "_isAbsTop": true, 1342 | "_isAbsBottom": true, 1343 | "_isAbsHorizontalCenter": true, 1344 | "_isAbsVerticalCenter": true, 1345 | "_originalWidth": 32, 1346 | "_originalHeight": 21.1, 1347 | "_id": "58BbcAih1PW75y33LA8iCh" 1348 | }, 1349 | { 1350 | "__type__": "cc.PrefabInfo", 1351 | "root": { 1352 | "__id__": 9 1353 | }, 1354 | "asset": { 1355 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1356 | }, 1357 | "fileId": "25iWPAP5BAzZjQ9H+U0dgt", 1358 | "sync": false 1359 | }, 1360 | { 1361 | "__type__": "cc.Node", 1362 | "_name": "Label", 1363 | "_objFlags": 0, 1364 | "_parent": { 1365 | "__id__": 22 1366 | }, 1367 | "_children": [], 1368 | "_active": true, 1369 | "_level": 1, 1370 | "_components": [ 1371 | { 1372 | "__id__": 32 1373 | } 1374 | ], 1375 | "_prefab": { 1376 | "__id__": 33 1377 | }, 1378 | "_opacity": 255, 1379 | "_color": { 1380 | "__type__": "cc.Color", 1381 | "r": 0, 1382 | "g": 0, 1383 | "b": 0, 1384 | "a": 255 1385 | }, 1386 | "_contentSize": { 1387 | "__type__": "cc.Size", 1388 | "width": 48.94, 1389 | "height": 22 1390 | }, 1391 | "_anchorPoint": { 1392 | "__type__": "cc.Vec2", 1393 | "x": 0.5, 1394 | "y": 0.5 1395 | }, 1396 | "_position": { 1397 | "__type__": "cc.Vec3", 1398 | "x": 0, 1399 | "y": 0, 1400 | "z": 0 1401 | }, 1402 | "_scale": { 1403 | "__type__": "cc.Vec3", 1404 | "x": 1, 1405 | "y": 1, 1406 | "z": 1 1407 | }, 1408 | "_quat": { 1409 | "__type__": "cc.Quat", 1410 | "x": 0, 1411 | "y": 0, 1412 | "z": 0, 1413 | "w": 1 1414 | }, 1415 | "_skewX": 0, 1416 | "_skewY": 0, 1417 | "_zIndex": 0, 1418 | "_is3DNode": false, 1419 | "groupIndex": 0, 1420 | "_rotationX": 0, 1421 | "_rotationY": 0, 1422 | "_id": "e36Hac3c5NYZm2t+p1s4Cl" 1423 | }, 1424 | { 1425 | "__type__": "cc.Label", 1426 | "_name": "", 1427 | "_objFlags": 0, 1428 | "node": { 1429 | "__id__": 31 1430 | }, 1431 | "_enabled": true, 1432 | "_srcBlendFactor": 1, 1433 | "_dstBlendFactor": 771, 1434 | "_useOriginalSize": false, 1435 | "_string": "Label", 1436 | "_N$string": "Label", 1437 | "_fontSize": 20, 1438 | "_lineHeight": 22, 1439 | "_enableWrapText": true, 1440 | "_N$file": null, 1441 | "_isSystemFontUsed": true, 1442 | "_spacingX": 0, 1443 | "_N$horizontalAlign": 1, 1444 | "_N$verticalAlign": 1, 1445 | "_N$fontFamily": "Arial", 1446 | "_N$overflow": 0, 1447 | "_id": "33ZuN5zkdGRrsZchUJ1+mh" 1448 | }, 1449 | { 1450 | "__type__": "cc.PrefabInfo", 1451 | "root": { 1452 | "__id__": 9 1453 | }, 1454 | "asset": { 1455 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1456 | }, 1457 | "fileId": "1eAInmc6JPBotCti71KVBK", 1458 | "sync": false 1459 | }, 1460 | { 1461 | "__type__": "cc.Node", 1462 | "_name": "Sprite", 1463 | "_objFlags": 0, 1464 | "_parent": { 1465 | "__id__": 22 1466 | }, 1467 | "_children": [], 1468 | "_active": true, 1469 | "_level": 1, 1470 | "_components": [ 1471 | { 1472 | "__id__": 35 1473 | } 1474 | ], 1475 | "_prefab": { 1476 | "__id__": 36 1477 | }, 1478 | "_opacity": 255, 1479 | "_color": { 1480 | "__type__": "cc.Color", 1481 | "r": 255, 1482 | "g": 255, 1483 | "b": 255, 1484 | "a": 255 1485 | }, 1486 | "_contentSize": { 1487 | "__type__": "cc.Size", 1488 | "width": 24, 1489 | "height": 24 1490 | }, 1491 | "_anchorPoint": { 1492 | "__type__": "cc.Vec2", 1493 | "x": 0.5, 1494 | "y": 0.5 1495 | }, 1496 | "_position": { 1497 | "__type__": "cc.Vec3", 1498 | "x": -78.5, 1499 | "y": 0.2, 1500 | "z": 0 1501 | }, 1502 | "_scale": { 1503 | "__type__": "cc.Vec3", 1504 | "x": 0.85, 1505 | "y": 0.85, 1506 | "z": 1 1507 | }, 1508 | "_quat": { 1509 | "__type__": "cc.Quat", 1510 | "x": 0, 1511 | "y": 0, 1512 | "z": 0, 1513 | "w": 1 1514 | }, 1515 | "_skewX": 0, 1516 | "_skewY": 0, 1517 | "_zIndex": 0, 1518 | "_is3DNode": false, 1519 | "groupIndex": 0, 1520 | "_rotationX": 0, 1521 | "_rotationY": 0, 1522 | "_id": "41lR2C1ANP0ru0L23GRcnI" 1523 | }, 1524 | { 1525 | "__type__": "cc.Sprite", 1526 | "_name": "", 1527 | "_objFlags": 0, 1528 | "node": { 1529 | "__id__": 34 1530 | }, 1531 | "_enabled": true, 1532 | "_srcBlendFactor": 770, 1533 | "_dstBlendFactor": 771, 1534 | "_spriteFrame": { 1535 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 1536 | }, 1537 | "_type": 0, 1538 | "_sizeMode": 0, 1539 | "_fillType": 0, 1540 | "_fillCenter": { 1541 | "__type__": "cc.Vec2", 1542 | "x": 0, 1543 | "y": 0 1544 | }, 1545 | "_fillStart": 0, 1546 | "_fillRange": 0, 1547 | "_isTrimmedMode": true, 1548 | "_state": 0, 1549 | "_atlas": null, 1550 | "_id": "81Zkn1I11PZ4Gpg4fMGaz2" 1551 | }, 1552 | { 1553 | "__type__": "cc.PrefabInfo", 1554 | "root": { 1555 | "__id__": 9 1556 | }, 1557 | "asset": { 1558 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1559 | }, 1560 | "fileId": "9eGSCIl49Ge463d9xn0YES", 1561 | "sync": false 1562 | }, 1563 | { 1564 | "__type__": "cc.Toggle", 1565 | "_name": "", 1566 | "_objFlags": 0, 1567 | "node": { 1568 | "__id__": 22 1569 | }, 1570 | "_enabled": true, 1571 | "duration": 0.1, 1572 | "zoomScale": 1.2, 1573 | "clickEvents": [], 1574 | "_N$interactable": true, 1575 | "_N$enableAutoGrayEffect": false, 1576 | "_N$transition": 0, 1577 | "transition": 0, 1578 | "_N$normalColor": { 1579 | "__type__": "cc.Color", 1580 | "r": 214, 1581 | "g": 214, 1582 | "b": 214, 1583 | "a": 255 1584 | }, 1585 | "_N$pressedColor": { 1586 | "__type__": "cc.Color", 1587 | "r": 211, 1588 | "g": 211, 1589 | "b": 211, 1590 | "a": 255 1591 | }, 1592 | "pressedColor": { 1593 | "__type__": "cc.Color", 1594 | "r": 211, 1595 | "g": 211, 1596 | "b": 211, 1597 | "a": 255 1598 | }, 1599 | "_N$hoverColor": { 1600 | "__type__": "cc.Color", 1601 | "r": 255, 1602 | "g": 255, 1603 | "b": 255, 1604 | "a": 255 1605 | }, 1606 | "hoverColor": { 1607 | "__type__": "cc.Color", 1608 | "r": 255, 1609 | "g": 255, 1610 | "b": 255, 1611 | "a": 255 1612 | }, 1613 | "_N$disabledColor": { 1614 | "__type__": "cc.Color", 1615 | "r": 124, 1616 | "g": 124, 1617 | "b": 124, 1618 | "a": 255 1619 | }, 1620 | "_N$normalSprite": null, 1621 | "_N$pressedSprite": null, 1622 | "pressedSprite": null, 1623 | "_N$hoverSprite": null, 1624 | "hoverSprite": null, 1625 | "_N$disabledSprite": null, 1626 | "_N$target": null, 1627 | "_N$isChecked": true, 1628 | "toggleGroup": null, 1629 | "checkMark": { 1630 | "__id__": 28 1631 | }, 1632 | "checkEvents": [], 1633 | "_id": "6bp8m4i5RJe5OPdOMCpQ6E" 1634 | }, 1635 | { 1636 | "__type__": "cc.Widget", 1637 | "_name": "", 1638 | "_objFlags": 0, 1639 | "node": { 1640 | "__id__": 22 1641 | }, 1642 | "_enabled": true, 1643 | "alignMode": 1, 1644 | "_target": null, 1645 | "_alignFlags": 40, 1646 | "_left": 0, 1647 | "_right": 0, 1648 | "_top": 0, 1649 | "_bottom": 0, 1650 | "_verticalCenter": 0, 1651 | "_horizontalCenter": 0, 1652 | "_isAbsLeft": true, 1653 | "_isAbsRight": true, 1654 | "_isAbsTop": true, 1655 | "_isAbsBottom": true, 1656 | "_isAbsHorizontalCenter": true, 1657 | "_isAbsVerticalCenter": true, 1658 | "_originalWidth": 190, 1659 | "_originalHeight": 0, 1660 | "_id": "7eq/AWOAJJsJP5c/PAylwT" 1661 | }, 1662 | { 1663 | "__type__": "cc.PrefabInfo", 1664 | "root": { 1665 | "__id__": 9 1666 | }, 1667 | "asset": { 1668 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1669 | }, 1670 | "fileId": "74ebEtxoRKRpzsPvbk0SML", 1671 | "sync": false 1672 | }, 1673 | { 1674 | "__type__": "cc.Widget", 1675 | "_name": "", 1676 | "_objFlags": 0, 1677 | "node": { 1678 | "__id__": 21 1679 | }, 1680 | "_enabled": true, 1681 | "alignMode": 1, 1682 | "_target": null, 1683 | "_alignFlags": 41, 1684 | "_left": 0, 1685 | "_right": 0, 1686 | "_top": 0, 1687 | "_bottom": 0, 1688 | "_verticalCenter": 0, 1689 | "_horizontalCenter": 0, 1690 | "_isAbsLeft": true, 1691 | "_isAbsRight": true, 1692 | "_isAbsTop": true, 1693 | "_isAbsBottom": true, 1694 | "_isAbsHorizontalCenter": true, 1695 | "_isAbsVerticalCenter": true, 1696 | "_originalWidth": 220, 1697 | "_originalHeight": 125, 1698 | "_id": "4bDCMgv4BGP7CsyEnshnSU" 1699 | }, 1700 | { 1701 | "__type__": "cc.Layout", 1702 | "_name": "", 1703 | "_objFlags": 0, 1704 | "node": { 1705 | "__id__": 21 1706 | }, 1707 | "_enabled": true, 1708 | "_layoutSize": { 1709 | "__type__": "cc.Size", 1710 | "width": 300, 1711 | "height": 200 1712 | }, 1713 | "_resize": 0, 1714 | "_N$layoutType": 2, 1715 | "_N$padding": 0, 1716 | "_N$cellSize": { 1717 | "__type__": "cc.Size", 1718 | "width": 40, 1719 | "height": 40 1720 | }, 1721 | "_N$startAxis": 0, 1722 | "_N$paddingLeft": 0, 1723 | "_N$paddingRight": 0, 1724 | "_N$paddingTop": 0, 1725 | "_N$paddingBottom": 0, 1726 | "_N$spacingX": 0, 1727 | "_N$spacingY": 0, 1728 | "_N$verticalDirection": 1, 1729 | "_N$horizontalDirection": 0, 1730 | "_N$affectedByScale": false, 1731 | "_id": "83ulr6qd9Pcr5w674Bv0UD" 1732 | }, 1733 | { 1734 | "__type__": "cc.ToggleContainer", 1735 | "_name": "", 1736 | "_objFlags": 0, 1737 | "node": { 1738 | "__id__": 21 1739 | }, 1740 | "_enabled": true, 1741 | "allowSwitchOff": false, 1742 | "checkEvents": [], 1743 | "_id": "7bu3bAwUhL/rMF5YQaDgGK" 1744 | }, 1745 | { 1746 | "__type__": "cc.PrefabInfo", 1747 | "root": { 1748 | "__id__": 9 1749 | }, 1750 | "asset": { 1751 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1752 | }, 1753 | "fileId": "2cALaPFGNGH6bGdS3hjLN0", 1754 | "sync": false 1755 | }, 1756 | { 1757 | "__type__": "cc.Mask", 1758 | "_name": "", 1759 | "_objFlags": 0, 1760 | "node": { 1761 | "__id__": 20 1762 | }, 1763 | "_enabled": true, 1764 | "_srcBlendFactor": 770, 1765 | "_dstBlendFactor": 771, 1766 | "_spriteFrame": null, 1767 | "_type": 0, 1768 | "_segments": 64, 1769 | "_N$alphaThreshold": 0, 1770 | "_N$inverted": false, 1771 | "_id": "2d39hGQ/xJia+qfnyxQjQa" 1772 | }, 1773 | { 1774 | "__type__": "cc.Widget", 1775 | "_name": "", 1776 | "_objFlags": 0, 1777 | "node": { 1778 | "__id__": 20 1779 | }, 1780 | "_enabled": true, 1781 | "alignMode": 1, 1782 | "_target": null, 1783 | "_alignFlags": 45, 1784 | "_left": 0, 1785 | "_right": 0, 1786 | "_top": 0, 1787 | "_bottom": 0, 1788 | "_verticalCenter": 0, 1789 | "_horizontalCenter": 0, 1790 | "_isAbsLeft": true, 1791 | "_isAbsRight": true, 1792 | "_isAbsTop": true, 1793 | "_isAbsBottom": true, 1794 | "_isAbsHorizontalCenter": true, 1795 | "_isAbsVerticalCenter": true, 1796 | "_originalWidth": 240, 1797 | "_originalHeight": 250, 1798 | "_id": "1aNGT81wpKy5sv2NJ1aJxo" 1799 | }, 1800 | { 1801 | "__type__": "cc.PrefabInfo", 1802 | "root": { 1803 | "__id__": 9 1804 | }, 1805 | "asset": { 1806 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1807 | }, 1808 | "fileId": "2cHOYz901DiabK3HFqDSWZ", 1809 | "sync": false 1810 | }, 1811 | { 1812 | "__type__": "cc.Sprite", 1813 | "_name": "", 1814 | "_objFlags": 0, 1815 | "node": { 1816 | "__id__": 19 1817 | }, 1818 | "_enabled": true, 1819 | "_srcBlendFactor": 770, 1820 | "_dstBlendFactor": 771, 1821 | "_spriteFrame": { 1822 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 1823 | }, 1824 | "_type": 1, 1825 | "_sizeMode": 0, 1826 | "_fillType": 0, 1827 | "_fillCenter": { 1828 | "__type__": "cc.Vec2", 1829 | "x": 0, 1830 | "y": 0 1831 | }, 1832 | "_fillStart": 0, 1833 | "_fillRange": 0, 1834 | "_isTrimmedMode": true, 1835 | "_state": 0, 1836 | "_atlas": null, 1837 | "_id": "d8SPbTE/FAMr3O2e9jEJON" 1838 | }, 1839 | { 1840 | "__type__": "cc.ScrollView", 1841 | "_name": "", 1842 | "_objFlags": 0, 1843 | "node": { 1844 | "__id__": 19 1845 | }, 1846 | "_enabled": true, 1847 | "horizontal": false, 1848 | "vertical": true, 1849 | "inertia": true, 1850 | "brake": 1, 1851 | "elastic": true, 1852 | "bounceDuration": 0.1, 1853 | "scrollEvents": [], 1854 | "cancelInnerEvents": true, 1855 | "_N$content": { 1856 | "__id__": 21 1857 | }, 1858 | "content": { 1859 | "__id__": 21 1860 | }, 1861 | "_N$horizontalScrollBar": null, 1862 | "_N$verticalScrollBar": null, 1863 | "_id": "bb0sFo1jBK7L9N8BEJirXx" 1864 | }, 1865 | { 1866 | "__type__": "cc.Widget", 1867 | "_name": "", 1868 | "_objFlags": 0, 1869 | "node": { 1870 | "__id__": 19 1871 | }, 1872 | "_enabled": true, 1873 | "alignMode": 1, 1874 | "_target": null, 1875 | "_alignFlags": 45, 1876 | "_left": 0, 1877 | "_right": 0, 1878 | "_top": 35.50000000000001, 1879 | "_bottom": -94.5, 1880 | "_verticalCenter": 0, 1881 | "_horizontalCenter": 0, 1882 | "_isAbsLeft": true, 1883 | "_isAbsRight": true, 1884 | "_isAbsTop": true, 1885 | "_isAbsBottom": true, 1886 | "_isAbsHorizontalCenter": true, 1887 | "_isAbsVerticalCenter": true, 1888 | "_originalWidth": 240, 1889 | "_originalHeight": 250, 1890 | "_id": "eer4Uip2xNGoJUjb7xujh4" 1891 | }, 1892 | { 1893 | "__type__": "cc.PrefabInfo", 1894 | "root": { 1895 | "__id__": 9 1896 | }, 1897 | "asset": { 1898 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1899 | }, 1900 | "fileId": "29dABHMsVCiZUjyfU2QoJo", 1901 | "sync": false 1902 | }, 1903 | { 1904 | "__type__": "cc.Sprite", 1905 | "_name": "", 1906 | "_objFlags": 0, 1907 | "node": { 1908 | "__id__": 9 1909 | }, 1910 | "_enabled": true, 1911 | "_srcBlendFactor": 770, 1912 | "_dstBlendFactor": 771, 1913 | "_spriteFrame": { 1914 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 1915 | }, 1916 | "_type": 1, 1917 | "_sizeMode": 0, 1918 | "_fillType": 0, 1919 | "_fillCenter": { 1920 | "__type__": "cc.Vec2", 1921 | "x": 0, 1922 | "y": 0 1923 | }, 1924 | "_fillStart": 0, 1925 | "_fillRange": 0, 1926 | "_isTrimmedMode": true, 1927 | "_state": 0, 1928 | "_atlas": null, 1929 | "_id": "02sBbwstNE3pZovBzxogWw" 1930 | }, 1931 | { 1932 | "__type__": "4c73768DrRIEpBrhG+kF/zC", 1933 | "_name": "", 1934 | "_objFlags": 0, 1935 | "node": { 1936 | "__id__": 9 1937 | }, 1938 | "_enabled": true, 1939 | "template": { 1940 | "__id__": 19 1941 | }, 1942 | "labelCaption": { 1943 | "__id__": 11 1944 | }, 1945 | "spriteCaption": { 1946 | "__id__": 14 1947 | }, 1948 | "labelItem": { 1949 | "__id__": 32 1950 | }, 1951 | "spriteItem": { 1952 | "__id__": 35 1953 | }, 1954 | "optionDatas": [ 1955 | { 1956 | "__id__": 53 1957 | }, 1958 | { 1959 | "__id__": 54 1960 | }, 1961 | { 1962 | "__id__": 55 1963 | } 1964 | ], 1965 | "_id": "d8+2VGJNlEla7z4fZxE4DU" 1966 | }, 1967 | { 1968 | "__type__": "DropDownOptionData", 1969 | "optionString": "中国", 1970 | "optionSf": { 1971 | "__uuid__": "d4821be3-147c-4dac-b391-d187eb224f6d" 1972 | } 1973 | }, 1974 | { 1975 | "__type__": "DropDownOptionData", 1976 | "optionString": "俄罗斯", 1977 | "optionSf": { 1978 | "__uuid__": "064bb87d-0d74-46c2-ac6c-b4685bec19bd" 1979 | } 1980 | }, 1981 | { 1982 | "__type__": "DropDownOptionData", 1983 | "optionString": "日本", 1984 | "optionSf": { 1985 | "__uuid__": "b745e2ba-ac3f-4e37-b037-147e6101e241" 1986 | } 1987 | }, 1988 | { 1989 | "__type__": "cc.PrefabInfo", 1990 | "root": { 1991 | "__id__": 9 1992 | }, 1993 | "asset": { 1994 | "__uuid__": "c8f21621-97c3-42e1-9b03-17a47d283d99" 1995 | }, 1996 | "fileId": "1eE96+5m1KgbaP6f+XoFFo", 1997 | "sync": false 1998 | }, 1999 | { 2000 | "__type__": "cc.Label", 2001 | "_name": "", 2002 | "_objFlags": 0, 2003 | "node": { 2004 | "__id__": 8 2005 | }, 2006 | "_enabled": true, 2007 | "_srcBlendFactor": 1, 2008 | "_dstBlendFactor": 771, 2009 | "_useOriginalSize": false, 2010 | "_string": "Hello, World!", 2011 | "_N$string": "Hello, World!", 2012 | "_fontSize": 60, 2013 | "_lineHeight": 60, 2014 | "_enableWrapText": true, 2015 | "_N$file": null, 2016 | "_isSystemFontUsed": true, 2017 | "_spacingX": 0, 2018 | "_N$horizontalAlign": 1, 2019 | "_N$verticalAlign": 1, 2020 | "_N$fontFamily": "Arial", 2021 | "_N$overflow": 0, 2022 | "_id": "45pTBwb/dBqKToYTdmS+xB" 2023 | }, 2024 | { 2025 | "__type__": "cc.Canvas", 2026 | "_name": "", 2027 | "_objFlags": 0, 2028 | "node": { 2029 | "__id__": 2 2030 | }, 2031 | "_enabled": true, 2032 | "_designResolution": { 2033 | "__type__": "cc.Size", 2034 | "width": 960, 2035 | "height": 640 2036 | }, 2037 | "_fitWidth": false, 2038 | "_fitHeight": true, 2039 | "_id": "8bDUWAN1FGQabRyqDdfzae" 2040 | }, 2041 | { 2042 | "__type__": "e1b90/rohdEk4SdmmEZANaD", 2043 | "_name": "", 2044 | "_objFlags": 0, 2045 | "node": { 2046 | "__id__": 2 2047 | }, 2048 | "_enabled": true, 2049 | "label": { 2050 | "__id__": 57 2051 | }, 2052 | "text": "hello", 2053 | "_id": "87xAqD9lhJnZ9z8Hkm+3nF" 2054 | } 2055 | ] -------------------------------------------------------------------------------- /Dropdown/assets/Scene/helloworld.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /Dropdown/assets/Script.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /Dropdown/assets/Script/DropDown.ts: -------------------------------------------------------------------------------- 1 | import DropDownOptionData from "./DropDownOptionData"; 2 | import DropDownItem from "./DropDownItem"; 3 | 4 | const { ccclass, property } = cc._decorator; 5 | 6 | @ccclass() 7 | export default class DropDown extends cc.Component { 8 | @property(cc.Node) 9 | private template: cc.Node = undefined; 10 | @property(cc.Label) 11 | private labelCaption: cc.Label = undefined; 12 | @property(cc.Sprite) 13 | private spriteCaption: cc.Sprite = undefined; 14 | @property(cc.Label) 15 | private labelItem: cc.Label = undefined; 16 | @property(cc.Sprite) 17 | private spriteItem: cc.Sprite = undefined; 18 | 19 | @property([DropDownOptionData]) 20 | private optionDatas: DropDownOptionData[] = []; 21 | 22 | private _dropDown: cc.Node; 23 | private validTemplate: boolean = false; 24 | private items: DropDownItem[] = []; 25 | private isShow: boolean = false; 26 | 27 | private _selectedIndex: number = -1; 28 | private get selectedIndex(): number{ 29 | return this._selectedIndex; 30 | } 31 | private set selectedIndex(value: number){ 32 | this._selectedIndex = value; 33 | this.refreshShownValue(); 34 | } 35 | 36 | public addOptionDatas(optionDatas: DropDownOptionData[]) { 37 | optionDatas && optionDatas.forEach(data=>{ 38 | this.optionDatas.push(data); 39 | }); 40 | this.refreshShownValue(); 41 | } 42 | 43 | public clearOptionDatas(){ 44 | cc.js.clear(this.optionDatas); 45 | this.refreshShownValue(); 46 | } 47 | 48 | public show() { 49 | if (!this.validTemplate) { 50 | this.setUpTemplate(); 51 | if (!this.validTemplate) { return; } 52 | } 53 | this.isShow = true; 54 | 55 | this._dropDown = this.createDropDownList(this.template); 56 | this._dropDown.name = "DropDown List"; 57 | this._dropDown.active = true; 58 | this._dropDown.setParent(this.template.parent); 59 | 60 | let itemTemplate = this._dropDown.getComponentInChildren(DropDownItem); 61 | let content = itemTemplate.node.parent; 62 | itemTemplate.node.active = true; 63 | 64 | cc.js.clear(this.items); 65 | 66 | for(let i =0, len = this.optionDatas.length; i < len; i++){ 67 | let data = this.optionDatas[i]; 68 | let item : DropDownItem = this.addItem(data, i == this.selectedIndex, itemTemplate, this.items); 69 | if(!item){ 70 | continue; 71 | } 72 | item.toggle.isChecked = i == this.selectedIndex; 73 | item.toggle.node.on("toggle", this.onSelectedItem, this); 74 | // if(i == this.selectedIndex){ 75 | // this.onSelectedItem(item.toggle); 76 | // } 77 | } 78 | itemTemplate.node.active = false; 79 | 80 | content.height = itemTemplate.node.height * this.optionDatas.length; 81 | } 82 | 83 | private addItem(data: DropDownOptionData, selected: boolean, itemTemplate: DropDownItem, dropDownItems: DropDownItem[]): DropDownItem{ 84 | let item = this.createItem(itemTemplate); 85 | item.node.setParent(itemTemplate.node.parent); 86 | item.node.active = true; 87 | item.node.name = `item_${this.items.length + data.optionString?data.optionString:""}`; 88 | if(item.toggle){ 89 | item.toggle.isChecked = false; 90 | } 91 | if(item.label){ 92 | item.label.string = data.optionString; 93 | } 94 | if(item.sprite){ 95 | item.sprite.spriteFrame = data.optionSf; 96 | item.sprite.enabled = data.optionSf != undefined; 97 | } 98 | this.items.push(item); 99 | return item; 100 | } 101 | 102 | public hide() { 103 | this.isShow = false; 104 | if(this._dropDown != undefined){ 105 | this.delayedDestroyDropdownList(0.15); 106 | } 107 | } 108 | 109 | private async delayedDestroyDropdownList(delay: number) 110 | { 111 | // await WaitUtil.waitForSeconds(delay); 112 | // wait delay; 113 | for (let i = 0, len= this.items.length; i < len; i++) 114 | { 115 | if (this.items[i] != undefined) 116 | this.destroyItem(this.items[i]); 117 | } 118 | cc.js.clear(this.items); 119 | if (this._dropDown != undefined) 120 | this.destroyDropDownList(this._dropDown); 121 | this._dropDown = undefined; 122 | } 123 | 124 | private destroyItem(item){ 125 | 126 | } 127 | 128 | // 设置模板,方便后面item 129 | private setUpTemplate() { 130 | this.validTemplate = false; 131 | 132 | if (!this.template) { 133 | cc.error("The dropdown template is not assigned. The template needs to be assigned and must have a child GameObject with a Toggle component serving as the item"); 134 | return; 135 | } 136 | this.template.active = true; 137 | let itemToggle: cc.Toggle = this.template.getComponentInChildren(cc.Toggle); 138 | this.validTemplate = true; 139 | // 一些判断 140 | if (!itemToggle || itemToggle.node == this.template) { 141 | this.validTemplate = false; 142 | cc.error("The dropdown template is not valid. The template must have a child Node with a Toggle component serving as the item."); 143 | } else if (this.labelItem != undefined && !this.labelItem.node.isChildOf(itemToggle.node)) { 144 | this.validTemplate = false; 145 | cc.error("The dropdown template is not valid. The Item Label must be on the item Node or children of it."); 146 | } else if (this.spriteItem != undefined && !this.spriteItem.node.isChildOf(itemToggle.node)) { 147 | this.validTemplate = false; 148 | cc.error("The dropdown template is not valid. The Item Sprite must be on the item Node or children of it."); 149 | } 150 | 151 | if (!this.validTemplate) 152 | { 153 | this.template.active = false; 154 | return; 155 | } 156 | let item = itemToggle.node.addComponent(DropDownItem); 157 | item.label = this.labelItem; 158 | item.sprite = this.spriteItem; 159 | item.toggle = itemToggle; 160 | item.node = itemToggle.node; 161 | 162 | this.template.active = false; 163 | this.validTemplate = true; 164 | } 165 | 166 | // 刷新显示的选中信息 167 | private refreshShownValue(){ 168 | if(this.optionDatas.length <= 0){ 169 | return; 170 | } 171 | let data = this.optionDatas[this.clamp(this.selectedIndex, 0, this.optionDatas.length -1)]; 172 | if(this.labelCaption){ 173 | if(data && data.optionString){ 174 | this.labelCaption.string = data.optionString; 175 | }else{ 176 | this.labelCaption.string = ""; 177 | } 178 | } 179 | if(this.spriteCaption){ 180 | if(data && data.optionSf){ 181 | this.spriteCaption.spriteFrame = data.optionSf; 182 | }else{ 183 | this.spriteCaption.spriteFrame = undefined; 184 | } 185 | this.spriteCaption.enabled = this.spriteCaption.spriteFrame != undefined; 186 | } 187 | } 188 | 189 | protected createDropDownList(template: cc.Node): cc.Node { 190 | return cc.instantiate(template); 191 | } 192 | 193 | protected destroyDropDownList(dropDownList: cc.Node){ 194 | dropDownList.destroy(); 195 | } 196 | 197 | protected createItem(itemTemplate: DropDownItem): DropDownItem{ 198 | let newItem = cc.instantiate(itemTemplate.node); 199 | return newItem.getComponent(DropDownItem); 200 | } 201 | 202 | /** 当toggle被选中 */ 203 | private onSelectedItem(toggle: cc.Toggle) { 204 | let parent = toggle.node.parent; 205 | for (let i = 0; i max) return max; 241 | return value; 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /Dropdown/assets/Script/DropDown.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "4c737ebc-0eb4-4812-906b-846fa417fcc2", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /Dropdown/assets/Script/DropDownItem.ts: -------------------------------------------------------------------------------- 1 | import DropDown from "./DropDown"; 2 | 3 | const { ccclass, property } = cc._decorator; 4 | @ccclass() 5 | export default class DropDownItem extends cc.Component { 6 | 7 | @property(cc.Label) 8 | public label: cc.Label = undefined; 9 | @property(cc.Sprite) 10 | public sprite: cc.Sprite = undefined; 11 | @property(cc.Toggle) 12 | public toggle: cc.Toggle = undefined; 13 | } -------------------------------------------------------------------------------- /Dropdown/assets/Script/DropDownItem.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "0e0c13b3-60f5-4e7e-910f-290a78df7b6e", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /Dropdown/assets/Script/DropDownOptionData.ts: -------------------------------------------------------------------------------- 1 | const {ccclass, property} = cc._decorator; 2 | 3 | @ccclass("DropDownOptionData") 4 | export default class DropDownOptionData{ 5 | @property(String) 6 | public optionString: string = ""; 7 | @property(cc.SpriteFrame) 8 | public optionSf: cc.SpriteFrame = undefined; 9 | } 10 | -------------------------------------------------------------------------------- /Dropdown/assets/Script/DropDownOptionData.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "fd5cf057-5486-42e0-ab3a-7afcbdca09c5", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /Dropdown/assets/Script/Helloworld.ts: -------------------------------------------------------------------------------- 1 | const {ccclass, property} = cc._decorator; 2 | 3 | @ccclass 4 | export default class Helloworld extends cc.Component { 5 | 6 | @property(cc.Label) 7 | label: cc.Label = null; 8 | 9 | @property 10 | text: string = 'hello'; 11 | 12 | start () { 13 | // init logic 14 | this.label.string = this.text; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Dropdown/assets/Script/Helloworld.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "e1b90feb-a217-4493-849d-9a611900d683", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /Dropdown/assets/Texture.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /Dropdown/assets/Texture/singleColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ETRick/CocosCreator-Dropdown/670780c0256fbc24ca44b06b678341b45b785e52/Dropdown/assets/Texture/singleColor.png -------------------------------------------------------------------------------- /Dropdown/assets/Texture/singleColor.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.0", 3 | "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "platformSettings": {}, 9 | "subMetas": { 10 | "singleColor": { 11 | "ver": "1.0.3", 12 | "uuid": "410fb916-8721-4663-bab8-34397391ace7", 13 | "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 14 | "trimType": "auto", 15 | "trimThreshold": 1, 16 | "rotated": false, 17 | "offsetX": 0, 18 | "offsetY": 0, 19 | "trimX": 0, 20 | "trimY": 0, 21 | "width": 2, 22 | "height": 2, 23 | "rawWidth": 2, 24 | "rawHeight": 2, 25 | "borderTop": 0, 26 | "borderBottom": 0, 27 | "borderLeft": 0, 28 | "borderRight": 0, 29 | "subMetas": {} 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Dropdown/assets/Texture/中国.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ETRick/CocosCreator-Dropdown/670780c0256fbc24ca44b06b678341b45b785e52/Dropdown/assets/Texture/中国.jpg -------------------------------------------------------------------------------- /Dropdown/assets/Texture/中国.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.0", 3 | "uuid": "0504e945-0864-4f9b-8869-6713accf357e", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "platformSettings": {}, 9 | "subMetas": { 10 | "中国": { 11 | "ver": "1.0.3", 12 | "uuid": "d4821be3-147c-4dac-b391-d187eb224f6d", 13 | "rawTextureUuid": "0504e945-0864-4f9b-8869-6713accf357e", 14 | "trimType": "auto", 15 | "trimThreshold": 1, 16 | "rotated": false, 17 | "offsetX": 0, 18 | "offsetY": 0, 19 | "trimX": 0, 20 | "trimY": 0, 21 | "width": 220, 22 | "height": 147, 23 | "rawWidth": 220, 24 | "rawHeight": 147, 25 | "borderTop": 0, 26 | "borderBottom": 0, 27 | "borderLeft": 0, 28 | "borderRight": 0, 29 | "subMetas": {} 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Dropdown/assets/Texture/俄罗斯.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ETRick/CocosCreator-Dropdown/670780c0256fbc24ca44b06b678341b45b785e52/Dropdown/assets/Texture/俄罗斯.jpg -------------------------------------------------------------------------------- /Dropdown/assets/Texture/俄罗斯.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.0", 3 | "uuid": "68fdb5ff-cc25-477b-915f-669416ee71f8", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "platformSettings": {}, 9 | "subMetas": { 10 | "俄罗斯": { 11 | "ver": "1.0.3", 12 | "uuid": "064bb87d-0d74-46c2-ac6c-b4685bec19bd", 13 | "rawTextureUuid": "68fdb5ff-cc25-477b-915f-669416ee71f8", 14 | "trimType": "auto", 15 | "trimThreshold": 1, 16 | "rotated": false, 17 | "offsetX": 0, 18 | "offsetY": 0, 19 | "trimX": 0, 20 | "trimY": 0, 21 | "width": 220, 22 | "height": 146, 23 | "rawWidth": 220, 24 | "rawHeight": 146, 25 | "borderTop": 0, 26 | "borderBottom": 0, 27 | "borderLeft": 0, 28 | "borderRight": 0, 29 | "subMetas": {} 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Dropdown/assets/Texture/日本.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ETRick/CocosCreator-Dropdown/670780c0256fbc24ca44b06b678341b45b785e52/Dropdown/assets/Texture/日本.jpg -------------------------------------------------------------------------------- /Dropdown/assets/Texture/日本.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.0", 3 | "uuid": "120fd4ee-431e-45a6-ae6c-5d26090294df", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "platformSettings": {}, 9 | "subMetas": { 10 | "日本": { 11 | "ver": "1.0.3", 12 | "uuid": "b745e2ba-ac3f-4e37-b037-147e6101e241", 13 | "rawTextureUuid": "120fd4ee-431e-45a6-ae6c-5d26090294df", 14 | "trimType": "auto", 15 | "trimThreshold": 1, 16 | "rotated": false, 17 | "offsetX": 0, 18 | "offsetY": 0, 19 | "trimX": 0, 20 | "trimY": 0, 21 | "width": 204, 22 | "height": 130, 23 | "rawWidth": 204, 24 | "rawHeight": 130, 25 | "borderTop": 0, 26 | "borderBottom": 0, 27 | "borderLeft": 0, 28 | "borderRight": 0, 29 | "subMetas": {} 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Dropdown/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "experimentalDecorators": true 6 | }, 7 | "exclude": [ 8 | "node_modules", 9 | ".vscode", 10 | "library", 11 | "local", 12 | "settings", 13 | "temp" 14 | ] 15 | } -------------------------------------------------------------------------------- /Dropdown/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos2d-html5", 3 | "packages": "packages" 4 | } -------------------------------------------------------------------------------- /Dropdown/settings/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "orientation": { 4 | "landscapeLeft": true, 5 | "landscapeRight": true, 6 | "portrait": false, 7 | "upsideDown": false 8 | }, 9 | "packageName": "org.cocos2d.helloworld", 10 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 11 | "title": "hello_world", 12 | "webOrientation": "auto" 13 | } -------------------------------------------------------------------------------- /Dropdown/settings/builder.panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "packageName": "org.cocos2d.helloworld", 4 | "platform": "web-mobile", 5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 6 | "title": "HelloWorld" 7 | } -------------------------------------------------------------------------------- /Dropdown/settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "collision-matrix": [ 3 | [ 4 | true 5 | ] 6 | ], 7 | "excluded-modules": [], 8 | "group-list": [ 9 | "default" 10 | ], 11 | "start-scene": "current", 12 | "design-resolution-width": 960, 13 | "design-resolution-height": 640, 14 | "fit-width": false, 15 | "fit-height": true, 16 | "use-project-simulator-setting": false, 17 | "simulator-orientation": false, 18 | "use-customize-simulator": false, 19 | "simulator-resolution": { 20 | "width": 960, 21 | "height": 640 22 | }, 23 | "cocos-analytics": { 24 | "enable": false, 25 | "appID": "13798", 26 | "appSecret": "959b3ac0037d0f3c2fdce94f8421a9b2" 27 | } 28 | } -------------------------------------------------------------------------------- /Dropdown/template-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ETRick/CocosCreator-Dropdown/670780c0256fbc24ca44b06b678341b45b785e52/Dropdown/template-banner.png -------------------------------------------------------------------------------- /Dropdown/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TEMPLATES.helloworld-ts.name", 3 | "desc": "TEMPLATES.helloworld-ts.desc", 4 | "banner": "template-banner.png" 5 | } -------------------------------------------------------------------------------- /Dropdown/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ "dom", "es5", "es2015.promise" ], 5 | "target": "es5", 6 | "allowJs": true, 7 | "experimentalDecorators": true, 8 | "skipLibCheck": true 9 | }, 10 | "exclude": [ 11 | "node_modules", 12 | "library", 13 | "local", 14 | "temp", 15 | "build", 16 | "settings" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CocosCreator-Dropdown 2 | Cocos Creator 下拉框组件 3 | 4 | 模仿Unity UGUI中的Dropdown做了一个简单的实现: 5 | 东西比较简单,代码也不多。 6 | 7 | ![avatar](./ezgif-3-de2a1983dad9.gif) -------------------------------------------------------------------------------- /ezgif-3-de2a1983dad9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ETRick/CocosCreator-Dropdown/670780c0256fbc24ca44b06b678341b45b785e52/ezgif-3-de2a1983dad9.gif --------------------------------------------------------------------------------