ui调整 去掉一些不要的
This commit is contained in:
@@ -35,7 +35,6 @@ export class BarCompComp extends CCComp {
|
||||
}
|
||||
private readay(){
|
||||
this.node.getChildByName("bar").active = true
|
||||
this.node.getChildByName("bar").getChildByName("more").active=false
|
||||
}
|
||||
private master_called(e:any,data:any){
|
||||
this.node.getChildByName("bar").active = true
|
||||
@@ -61,22 +60,11 @@ export class BarCompComp extends CCComp {
|
||||
}
|
||||
|
||||
show_master_more(){
|
||||
let barNode = this.node.getChildByName("bar");
|
||||
let node = barNode.getChildByName("more");
|
||||
node.active = true;
|
||||
node.setScale(v3(1, 0, 1));
|
||||
console.log("[barcomp]:show_master_more",node)
|
||||
// 使用缓动动画放大和移动
|
||||
tween(node).to(0.2, {scale:v3(1,1,1)}).start()
|
||||
|
||||
}
|
||||
|
||||
hide_master_more(){
|
||||
let barNode = this.node.getChildByName("bar");
|
||||
let node = barNode.getChildByName("more");
|
||||
console.log("[barcomp]:hide_master_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