英雄成长界面继续
This commit is contained in:
@@ -9731,8 +9731,8 @@
|
|||||||
"height": 26,
|
"height": 26,
|
||||||
"rawWidth": 20,
|
"rawWidth": 20,
|
||||||
"rawHeight": 26,
|
"rawHeight": 26,
|
||||||
"borderTop": 0,
|
"borderTop": 11,
|
||||||
"borderBottom": 0,
|
"borderBottom": 9,
|
||||||
"borderLeft": 7,
|
"borderLeft": 7,
|
||||||
"borderRight": 8,
|
"borderRight": 8,
|
||||||
"packable": true,
|
"packable": true,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,7 @@ import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ec
|
|||||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||||
import { HeroList } from "../common/config/heroSet";
|
import { HeroList } from "../common/config/heroSet";
|
||||||
import { HeroCard } from "../hero/HeroCard";
|
import { HeroCard } from "../hero/HeroCard";
|
||||||
|
import { smc } from "../common/SingletonModuleComp";
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
/** 视图层对象 */
|
/** 视图层对象 */
|
||||||
@@ -32,6 +33,12 @@ export class HeroHomeComp extends CCComp {
|
|||||||
}
|
}
|
||||||
hero_show(uuid:number) {
|
hero_show(uuid:number) {
|
||||||
console.log("hero_home hero_show:",uuid)
|
console.log("hero_home hero_show:",uuid)
|
||||||
|
var icon_path = "game/heros/herois"
|
||||||
|
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||||
|
const sprite = this.node.getChildByName("hero").getChildByName("icon").getComponent(Sprite);
|
||||||
|
sprite.spriteFrame = atlas.getSpriteFrame(smc.heros[uuid].path);
|
||||||
|
});
|
||||||
|
this.node.getChildByName("name").getChildByName("value").getComponent(Label).string=smc.heros[uuid].name
|
||||||
}
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
|
|||||||
Reference in New Issue
Block a user