update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user