更新技师资源

This commit is contained in:
2025-08-29 14:21:46 +08:00
parent 733a4806cf
commit 56df0e1f86
436 changed files with 18631 additions and 4265 deletions
+17 -9
View File
@@ -33,10 +33,10 @@ export class GirlListItem extends Component {
nameKey: string;
tagKey: string;
private onLanguageChangeCallback = () => {
if (!this.girlName || !this.tags) return;
this.girlName.string = LanguageUtils.getText(this.nameKey);
let desc = "";
const tags = LanguageUtils.getText(this.tagKey).split("|");
@@ -48,11 +48,19 @@ export class GirlListItem extends Component {
};
protected onLoad(): void {
Utils.addInnerEL(InnerMsgCode.LanguageChange, this, this.onLanguageChangeCallback);
Utils.addInnerEL(
InnerMsgCode.LanguageChange,
this,
this.onLanguageChangeCallback
);
}
protected onDestroy(): void {
Utils.removeInnerEL(InnerMsgCode.LanguageChange, this, this.onLanguageChangeCallback);
Utils.removeInnerEL(
InnerMsgCode.LanguageChange,
this,
this.onLanguageChangeCallback
);
}
baseNode: Node;
@@ -75,7 +83,7 @@ export class GirlListItem extends Component {
ResManager.I.changeBundleSpriteFrame(
this.avatar,
data.avatarPath,
data.listAvatarPath,
"Chat18x",
() => {
let sizeTran = this.avatar.node.parent.getComponent(UITransform);
@@ -87,9 +95,9 @@ export class GirlListItem extends Component {
}
);
for (let i = 0; i < 5; i++) {
this.starParent.children[i].active = i < data.starCount;
}
// for (let i = 0; i < 5; i++) {
// this.starParent.children[i].active = i < data.;
// }
}
onClickDetail() {