英雄页面ui 继续完善
This commit is contained in:
@@ -49,7 +49,7 @@ export class ItemInfoComp extends CCComp {
|
||||
if(args.type==1){ //技能碎片
|
||||
this.node.getChildByName("skill").active = true;
|
||||
this.node.getChildByName("name").getComponent(Label).string=SkillSet[args.uuid].name+" 碎片"
|
||||
this.node.getChildByName("info").getComponent(Label).string="「"+SkillSet[args.uuid].name+"」碎片,用于技能升星"
|
||||
this.node.getChildByName("info").getComponent(Label).string="「"+SkillSet[args.uuid].name+"」碎片,用于技能升阶"
|
||||
var icon_path = "game/skills/skill_icon"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = this.node.getChildByName("skill").getChildByName("skill").getChildByName("icon").getComponent(Sprite);
|
||||
@@ -62,7 +62,7 @@ export class ItemInfoComp extends CCComp {
|
||||
if(args.type==2){ //英雄碎片
|
||||
this.node.getChildByName("hero").active = true
|
||||
this.node.getChildByName("name").getComponent(Label).string=HeroInfo[args.uuid].name+" 碎片"
|
||||
this.node.getChildByName("info").getComponent(Label).string="「"+HeroInfo[args.uuid].name+"」碎片,用于英雄升星"
|
||||
this.node.getChildByName("info").getComponent(Label).string="「"+HeroInfo[args.uuid].name+"」碎片,用于英雄升阶"
|
||||
var icon_path = "game/heros/herois"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = this.node.getChildByName("hero").getChildByName("hero").getChildByName("icon").getComponent(Sprite);
|
||||
|
||||
Reference in New Issue
Block a user