Merge branch 'card0515' of git.eoxnet.com:pan/pixelheros into card0515
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user