局内设置

This commit is contained in:
pan@work
2024-11-18 11:07:39 +08:00
parent 49e5447234
commit 13f43762e0
11 changed files with 9437 additions and 8333 deletions

View File

@@ -51,13 +51,13 @@ export class TooltipCom extends CCComp {
).start()
break
case 3:
this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = smc.skills[this.s_uuid].name;
this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = "<"+smc.skills[this.s_uuid].name+">";
this.node.getChildByName("skill").active=true;
this.node.setPosition(v3(this.node.position.x,this.node.position.y+60))
// this.alive_time = 2
tween(this.node).to(
this.alive_time,
{position:v3(this.node.position.x,this.node.position.y+30), },
{position:v3(this.node.position.x,this.node.position.y), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"
@@ -77,13 +77,13 @@ export class TooltipCom extends CCComp {
).start()
break
case 5:
this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = this.value;
this.node.getChildByName("skill").active=true;
this.node.getChildByName("uskill").getChildByName("name").getComponent(Label).string = this.value;
this.node.getChildByName("uskill").active=true;
this.node.setPosition(v3(this.node.position.x,this.node.position.y+60))
// this.alive_time = 2
tween(this.node).to(
this.alive_time,
{position:v3(this.node.position.x-20,this.node.position.y+30), },
{position:v3(this.node.position.x-20,this.node.position.y), },
{
onComplete:()=>{ this.ent.destroy()},
easing:"linear"