ui调整 去掉一些不要的

This commit is contained in:
panfudan
2025-08-03 16:25:51 +08:00
parent eff5f21d04
commit 5c8a15262e
27 changed files with 33862 additions and 42086 deletions

View File

@@ -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(){