英雄设定大概完成,接下来需要借鉴其他热门游戏设定,再修改
This commit is contained in:
@@ -24,9 +24,9 @@ export class TooltipCom extends CCComp {
|
||||
skill_name_time=0.5;
|
||||
scale:number = 1;
|
||||
start() {
|
||||
// console.log("TooltipView start",this.node);
|
||||
switch(this.stype){
|
||||
case 1:
|
||||
this.node.setSiblingIndex(1);
|
||||
this.node.getChildByName("loss_life").getChildByName("hp").getComponent(Label).string = this.value;
|
||||
this.node.getChildByName("loss_life").active=true;
|
||||
tween(this.node).to(
|
||||
@@ -39,6 +39,7 @@ export class TooltipCom extends CCComp {
|
||||
).start()
|
||||
break
|
||||
case 2:
|
||||
this.node.setSiblingIndex(1);
|
||||
this.node.getChildByName("add_life").getChildByName("hp").getComponent(Label).string = this.value;
|
||||
this.node.getChildByName("add_life").active=true;
|
||||
tween(this.node).to(
|
||||
@@ -65,6 +66,7 @@ export class TooltipCom extends CCComp {
|
||||
).start()
|
||||
break
|
||||
case 4:
|
||||
this.node.setSiblingIndex(1);
|
||||
this.node.getChildByName("bloss").getChildByName("hp").getComponent(Label).string = this.value;
|
||||
this.node.getChildByName("bloss").active=true;
|
||||
tween(this.node).to(
|
||||
@@ -91,6 +93,8 @@ export class TooltipCom extends CCComp {
|
||||
).start()
|
||||
break
|
||||
}
|
||||
console.log("TooltipView start:",this.node.getSiblingIndex());
|
||||
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
|
||||
Reference in New Issue
Block a user