界面调整

This commit is contained in:
2025-01-02 10:32:41 +08:00
parent fdec4ef47b
commit 7d677ad5b1
11 changed files with 578 additions and 823 deletions

View File

@@ -77,8 +77,22 @@ export class MissionHomeComp extends CCComp {
let height=Math.ceil(hc / 4)*135
parent.getComponent(UITransform).height=height
for (let i = 0; i < hc; i++) {
if (HeroInfo[HeroList[i]].quality==3) {
let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
hcc.load(HeroList[i],parent)
}
}
for (let i = 0; i < hc; i++) {
if (HeroInfo[HeroList[i]].quality==2) {
let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
hcc.load(HeroList[i],parent)
}
}
for (let i = 0; i < hc; i++) {
if (HeroInfo[HeroList[i]].quality==1) {
let hcc =ecs.getEntity<HeroSelect>(HeroSelect)
hcc.load(HeroList[i],parent)
}
}
this.update_hero_cards()
}