Commit 11781193 authored by haiyoucuv's avatar haiyoucuv

init

parent 4fa461c8
This diff is collapsed.
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "21efbe66-8698-46c0-9f61-bc692c8dd437",
"uuid": "8eab1323-3634-42c9-be4e-2256a31185be",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "21efbe66-8698-46c0-9f61-bc692c8dd437@6c48a",
"uuid": "8eab1323-3634-42c9-be4e-2256a31185be@6c48a",
"displayName": "阶段一",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "21efbe66-8698-46c0-9f61-bc692c8dd437",
"imageUuidOrDatabaseUri": "8eab1323-3634-42c9-be4e-2256a31185be",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,7 +34,7 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "21efbe66-8698-46c0-9f61-bc692c8dd437@f9941",
"uuid": "8eab1323-3634-42c9-be4e-2256a31185be@f9941",
"displayName": "阶段一",
"id": "f9941",
"name": "spriteFrame",
......@@ -43,13 +43,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -6,
"offsetY": 0,
"trimX": 0,
"trimY": 72,
"width": 1620,
"height": 450,
"rawWidth": 1620,
"rawHeight": 582,
"trimY": 0,
"width": 313,
"height": 117,
"rawWidth": 313,
"rawHeight": 117,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-810,
-225,
-156.5,
-58.5,
0,
810,
-225,
156.5,
-58.5,
0,
-810,
225,
-156.5,
58.5,
0,
810,
225,
156.5,
58.5,
0
],
"indexes": [
......@@ -84,37 +84,37 @@
],
"uv": [
0,
510,
1620,
510,
117,
313,
117,
0,
60,
1620,
60
0,
313,
0
],
"nuv": [
0,
0.10309278350515463,
0,
1,
0.10309278350515463,
0,
0.8762886597938144,
0,
1,
1,
0.8762886597938144
1
],
"minPos": [
-810,
-225,
-156.5,
-58.5,
0
],
"maxPos": [
810,
225,
156.5,
58.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "21efbe66-8698-46c0-9f61-bc692c8dd437@6c48a",
"imageUuidOrDatabaseUri": "8eab1323-3634-42c9-be4e-2256a31185be@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "21efbe66-8698-46c0-9f61-bc692c8dd437@6c48a"
"redirect": "8eab1323-3634-42c9-be4e-2256a31185be@6c48a"
}
}
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e5f47f46-1a47-4768-8a93-9be94a13ce63",
"uuid": "41b51755-7b02-4f70-a04f-f3730b56b605",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e5f47f46-1a47-4768-8a93-9be94a13ce63@6c48a",
"uuid": "41b51755-7b02-4f70-a04f-f3730b56b605@6c48a",
"displayName": "阶段二",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "e5f47f46-1a47-4768-8a93-9be94a13ce63",
"imageUuidOrDatabaseUri": "41b51755-7b02-4f70-a04f-f3730b56b605",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,7 +34,7 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "e5f47f46-1a47-4768-8a93-9be94a13ce63@f9941",
"uuid": "41b51755-7b02-4f70-a04f-f3730b56b605@f9941",
"displayName": "阶段二",
"id": "f9941",
"name": "spriteFrame",
......@@ -43,13 +43,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -6,
"offsetY": 0,
"trimX": 0,
"trimY": 102,
"width": 1620,
"height": 450,
"rawWidth": 1620,
"rawHeight": 642,
"trimY": 0,
"width": 313,
"height": 117,
"rawWidth": 313,
"rawHeight": 117,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-810,
-225,
-156.5,
-58.5,
0,
810,
-225,
156.5,
-58.5,
0,
-810,
225,
-156.5,
58.5,
0,
810,
225,
156.5,
58.5,
0
],
"indexes": [
......@@ -84,37 +84,37 @@
],
"uv": [
0,
540,
1620,
540,
117,
313,
117,
0,
90,
1620,
90
0,
313,
0
],
"nuv": [
0,
0.14018691588785046,
0,
1,
0.14018691588785046,
0,
0.8411214953271028,
0,
1,
1,
0.8411214953271028
1
],
"minPos": [
-810,
-225,
-156.5,
-58.5,
0
],
"maxPos": [
810,
225,
156.5,
58.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "e5f47f46-1a47-4768-8a93-9be94a13ce63@6c48a",
"imageUuidOrDatabaseUri": "41b51755-7b02-4f70-a04f-f3730b56b605@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "e5f47f46-1a47-4768-8a93-9be94a13ce63@6c48a"
"redirect": "41b51755-7b02-4f70-a04f-f3730b56b605@6c48a"
}
}
import { _decorator, Component, easing, Graphics, Label, Animation, misc, Node, Tween, tween, v3 } from "cc";
import { _decorator, Component, easing, Graphics, Label, Animation, misc, Node, Tween, tween, v3, UIOpacity } from "cc";
import { Global } from "../Global";
import Svga from "../../../../Component/Svga/Svga";
const { ccclass, property, executeInEditMode } = _decorator;
......@@ -22,6 +23,11 @@ export class Target extends Component {
@property(Node) mask: Node = null;
@property(Node) svga: Node = null;
@property(Node) bannerBg: Node = null;
@property(Node) banner: Node = null;
@property([Node]) bannerArr: Node[] = [];
constructor() {
......@@ -51,8 +57,23 @@ export class Target extends Component {
async showBanner(bannerNode: Node) {
await new Promise<void>((resolve) => {
bannerNode.active = true;
this.bannerBg.active = false;
this.banner.active = true;
this.mask.active = true;
tween(bannerNode)
this.svga.active = true;
this.svga.getComponent(Svga).play();
const bannerOpacity = this.banner.getComponent(UIOpacity);
bannerOpacity.opacity = 0;
tween(bannerOpacity)
.to(0.466, { opacity: 255 })
.call(() => {
this.svga.active = false;
this.bannerBg.active = true;
})
.start();
tween(this.banner)
.delay(2.666)
.to(0.666, {
position: v3(0, 345, 0),
......@@ -60,7 +81,9 @@ export class Target extends Component {
}, { easing: easing.quadInOut })
.delay(0.1)
.call(() => {
this.banner.active = false;
this.mask.active = false;
this.svga.active = false;
bannerNode.active = false;
resolve();
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment