Merge branch 'card0515' of git.eoxnet.com:pan/pixelheros into card0515

This commit is contained in:
walkpan
2026-05-27 20:39:52 +08:00
2 changed files with 308 additions and 293 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -219,13 +219,9 @@ export class HerosListComp extends CCComp {
const cardLvStr = `lv${hero.pool_lv ?? 1}` const cardLvStr = `lv${hero.pool_lv ?? 1}`
this.lv_node.active = true this.lv_node.active = true
this.lv_node.children.forEach(child => { this.lv_node.children.forEach(child => {
if (child.name === "light") {
child.active = false child.active = (child.name === cardLvStr)
} else if (child.name === "bg") {
child.active = true
} else {
child.active = (child.name === cardLvStr)
}
}) })
const widget = this.lv_node.getComponent(Widget) const widget = this.lv_node.getComponent(Widget)
if (widget) widget.updateAlignment() if (widget) widget.updateAlignment()