Commit 11781193 authored by haiyoucuv's avatar haiyoucuv

init

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