This commit is contained in:
2025-09-15 11:29:23 +08:00
parent 0e86ba3454
commit 413ac5ccf6
6 changed files with 84 additions and 563 deletions
@@ -47,10 +47,15 @@ export class GirlListPanel extends li_BaseView {
this.refresh(this.category);
}
cacheCategory: number = -1;
async refresh(category: number) {
if (category == this.cacheCategory) return;
this.cacheCategory = category;
if (this.cache) {
for (let i = this.cache.length - 1; i >= 0; i--) {
this.cache[i].node.destroy();
}
}
@@ -78,6 +83,10 @@ export class GirlListPanel extends li_BaseView {
}
}
hide() {
this.node.active = false;
}
private registerListener() {
GButton.BandClick(this._nodeTab.ReturnBtn, this.Return, this);
}