再次 清理了一些东西
This commit is contained in:
@@ -34,9 +34,7 @@ export class BarCompComp extends CCComp {
|
||||
}
|
||||
private readay(){
|
||||
this.node.getChildByName("bar").active = true
|
||||
this.node.getChildByName("fbar").active = false
|
||||
this.node.getChildByName("bar").getChildByName("more").active=false
|
||||
this.node.getChildByName("fbar").getChildByName("more").active=false
|
||||
}
|
||||
private master_called(e:any,data:any){
|
||||
this.node.getChildByName("bar").active = true
|
||||
@@ -58,13 +56,6 @@ export class BarCompComp extends CCComp {
|
||||
}
|
||||
}).start()
|
||||
|
||||
}else{
|
||||
let barNode = this.node.getChildByName("fbar").getChildByName("ap").getChildByName("val")
|
||||
tween(barNode).to(0.2, {scale:v3(1.5,1.5,1)},{
|
||||
onComplete:()=>{
|
||||
tween(barNode).to(0.1, {scale:v3(1,1,1)}).start()
|
||||
}
|
||||
}).start()
|
||||
}
|
||||
}
|
||||
show_master_more(){
|
||||
@@ -86,24 +77,6 @@ export class BarCompComp extends CCComp {
|
||||
node.active = false;
|
||||
}
|
||||
|
||||
show_friend_more(){
|
||||
let barNode = this.node.getChildByName("fbar");
|
||||
let node = barNode.getChildByName("more");
|
||||
node.active = true;
|
||||
node.setScale(v3(1, 0, 1));
|
||||
console.log("[barcomp]:show_friend_more",node)
|
||||
// 使用缓动动画放大和移动
|
||||
tween(node).to(0.2, {scale:v3(1,1,1)}).start()
|
||||
}
|
||||
|
||||
hide_friend_more(){
|
||||
let barNode = this.node.getChildByName("fbar");
|
||||
let node = barNode.getChildByName("more");
|
||||
console.log("[barcomp]:hide_friend_more",node)
|
||||
// 使用缓动动画放大和移动
|
||||
tween(node).to(0.2, {scale:v3(1,0,1)}).start()
|
||||
node.active = false;
|
||||
}
|
||||
update_bar(){
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user