Commit db21dcd0 authored by wjf's avatar wjf

l

parent 478e3587
...@@ -8,16 +8,17 @@ export class CrossAni extends Ani { ...@@ -8,16 +8,17 @@ export class CrossAni extends Ani {
constructor() { constructor() {
super() super()
this.aniName = "CrossAni"; this.aniName = "CrossAni";
this.showImage = new eui.Image("lineLight_png"); var texture: egret.Texture = RES.getRes("lineLight_png")
this.showImage = new eui.Image(texture);
this.addChild(this.showImage); this.addChild(this.showImage);
this.showImage.anchorOffsetX = 147 / 2; this.showImage.anchorOffsetX = texture.textureWidth / 2;
this.showImage.anchorOffsetY = 690; this.showImage.anchorOffsetY = texture.textureHeight / 2;
this.showImage.scaleY = 0.1; this.showImage.scaleY = 0.1;
this.showImage2 = new eui.Image("lineLight_png"); this.showImage2 = new eui.Image(texture);
this.addChild(this.showImage2); this.addChild(this.showImage2);
this.showImage2.anchorOffsetX = 147 / 2; this.showImage2.anchorOffsetX = texture.textureWidth / 2;
this.showImage2.anchorOffsetY = 690; this.showImage2.anchorOffsetY = texture.textureHeight / 2;
this.showImage2.scaleY = 0.1; this.showImage2.scaleY = 0.1;
this.showImage2.rotation = 90; this.showImage2.rotation = 90;
} }
...@@ -29,11 +30,11 @@ export class CrossAni extends Ani { ...@@ -29,11 +30,11 @@ export class CrossAni extends Ani {
this.showImage2.scaleY = 0.1; this.showImage2.scaleY = 0.1;
this.showImage2.alpha = 1; this.showImage2.alpha = 1;
egret.Tween.get(this.showImage) egret.Tween.get(this.showImage)
.to({ scaleY: 1.2 }, 300) .to({ scaleY: 2.4 }, 300)
.to({ alpha: 0 }, 100) .to({ alpha: 0 }, 100)
egret.Tween.get(this.showImage2) egret.Tween.get(this.showImage2)
.to({ scaleY: 1.2 }, 300) .to({ scaleY: 2.4 }, 300)
.to({ alpha: 0 }, 100) .to({ alpha: 0 }, 100)
.call(() => { .call(() => {
this.recover(); this.recover();
......
...@@ -7,10 +7,11 @@ export class HorizontalAni extends Ani { ...@@ -7,10 +7,11 @@ export class HorizontalAni extends Ani {
constructor() { constructor() {
super() super()
this.aniName = "HorizontalAni"; this.aniName = "HorizontalAni";
this.showImage = new eui.Image("lineLight_png"); var texture: egret.Texture = RES.getRes("lineLight_png")
this.showImage = new eui.Image(texture);
this.addChild(this.showImage); this.addChild(this.showImage);
this.showImage.anchorOffsetX = 147 / 2; this.showImage.anchorOffsetX = texture.textureWidth / 2;
this.showImage.anchorOffsetY = 690; this.showImage.anchorOffsetY = texture.textureHeight / 2;
// this.showImage.x = -147 / 2; // this.showImage.x = -147 / 2;
// this.showImage.y = -690; // this.showImage.y = -690;
this.showImage.scaleY = 0.1; this.showImage.scaleY = 0.1;
...@@ -22,7 +23,7 @@ export class HorizontalAni extends Ani { ...@@ -22,7 +23,7 @@ export class HorizontalAni extends Ani {
this.showImage.scaleY = 0.1; this.showImage.scaleY = 0.1;
this.showImage.alpha = 1; this.showImage.alpha = 1;
egret.Tween.get(this.showImage) egret.Tween.get(this.showImage)
.to({ scaleY: 1.2 }, 300) .to({ scaleY: 2.4 }, 300)
.to({ alpha: 0 }, 100) .to({ alpha: 0 }, 100)
.call(() => { .call(() => {
this.recover(); this.recover();
......
...@@ -7,10 +7,11 @@ export class VerticalAni extends Ani { ...@@ -7,10 +7,11 @@ export class VerticalAni extends Ani {
constructor() { constructor() {
super() super()
this.aniName = "VerticalAni"; this.aniName = "VerticalAni";
this.showImage = new eui.Image("lineLight_png"); var texture: egret.Texture = RES.getRes("lineLight_png")
this.showImage = new eui.Image(texture);
this.addChild(this.showImage); this.addChild(this.showImage);
this.showImage.anchorOffsetX = 147 / 2; this.showImage.anchorOffsetX = texture.textureWidth / 2;
this.showImage.anchorOffsetY = 690; this.showImage.anchorOffsetY = texture.textureHeight / 2;
// this.showImage.x = -147 / 2; // this.showImage.x = -147 / 2;
// this.showImage.y = -690; // this.showImage.y = -690;
this.showImage.scaleY = 0.1; this.showImage.scaleY = 0.1;
...@@ -22,7 +23,7 @@ export class VerticalAni extends Ani { ...@@ -22,7 +23,7 @@ export class VerticalAni extends Ani {
this.showImage.scaleY = 0.1; this.showImage.scaleY = 0.1;
this.showImage.alpha = 1; this.showImage.alpha = 1;
egret.Tween.get(this.showImage) egret.Tween.get(this.showImage)
.to({ scaleY: 1.2 }, 300) .to({ scaleY: 2.4 }, 300)
.to({ alpha: 0 }, 100) .to({ alpha: 0 }, 100)
.call(() => { .call(() => {
this.recover(); this.recover();
......
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