|
@@ -124,7 +124,7 @@ export default class Guide extends cc.Component {
|
|
|
this.node_display.height = this.node.height;
|
|
this.node_display.height = this.node.height;
|
|
|
//动画
|
|
//动画
|
|
|
cc.tween(this.node_display)
|
|
cc.tween(this.node_display)
|
|
|
- .to(0.3, { x: x, y: y, width: w, height: h }, {
|
|
|
|
|
|
|
+ .to(0.1, { x: x, y: y, width: w, height: h }, {
|
|
|
onUpdate: () => {
|
|
onUpdate: () => {
|
|
|
this.node_bg.x = -this.node_display.x;
|
|
this.node_bg.x = -this.node_display.x;
|
|
|
this.node_bg.y = -this.node_display.y;
|
|
this.node_bg.y = -this.node_display.y;
|
|
@@ -140,7 +140,7 @@ export default class Guide extends cc.Component {
|
|
|
//动画
|
|
//动画
|
|
|
let radius = this.crtGuide.display_type;
|
|
let radius = this.crtGuide.display_type;
|
|
|
cc.tween(this.node_display)
|
|
cc.tween(this.node_display)
|
|
|
- .to(0.3, { width: radius, height: radius })
|
|
|
|
|
|
|
+ .to(0.1, { width: radius, height: radius })
|
|
|
.start();
|
|
.start();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|