hero页 ui再调整
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,6 @@ export const Items={
|
|||||||
1016:{uuid: 1016,path: "1016",type:1,lv:4,name: "传说生命石",info:"增加装备生命值50,成功几率50%", },
|
1016:{uuid: 1016,path: "1016",type:1,lv:4,name: "传说生命石",info:"增加装备生命值50,成功几率50%", },
|
||||||
9001:{uuid: 9001,path: "9001",type:1,lv:0,name: "金币",info:"金币不是万能的,但是没有金币是万万不能的", },
|
9001:{uuid: 9001,path: "9001",type:1,lv:0,name: "金币",info:"金币不是万能的,但是没有金币是万万不能的", },
|
||||||
9002:{uuid: 9002,path: "9002",type:1,lv:1,name: "叶子",info:"提升英雄等级的神奇叶子", },
|
9002:{uuid: 9002,path: "9002",type:1,lv:1,name: "叶子",info:"提升英雄等级的神奇叶子", },
|
||||||
9003:{uuid: 9003,path: "9003",type:1,lv:1,name: "英雄经验",info:"提升英雄等级", },
|
9003:{uuid: 9003,path: "9003",type:1,lv:1,name: "经验",info:"提升英雄等级", },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ export class HeroHomeComp extends CCComp {
|
|||||||
// var icon_path = "game/heros/herois"
|
// var icon_path = "game/heros/herois"
|
||||||
|
|
||||||
this.node.getChildByName("show").getChildByName("name").getChildByName("value").getComponent(Label).string=this.hero.name
|
this.node.getChildByName("show").getChildByName("name").getChildByName("value").getComponent(Label).string=this.hero.name
|
||||||
|
this.node.getChildByName("show").getChildByName("name").getChildByName("g1").active=HeroInfo[uuid].quality==1
|
||||||
|
this.node.getChildByName("show").getChildByName("name").getChildByName("g2").active=HeroInfo[uuid].quality==2
|
||||||
|
this.node.getChildByName("show").getChildByName("name").getChildByName("g3").active=HeroInfo[uuid].quality==3
|
||||||
this.clear_hero()
|
this.clear_hero()
|
||||||
this.call_hero(uuid)
|
this.call_hero(uuid)
|
||||||
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user