update 大量更新资源

This commit is contained in:
2025-09-09 23:19:28 +08:00
parent e8ff82a475
commit eb55de718e
81 changed files with 987 additions and 255 deletions
+32 -6
View File
@@ -33,6 +33,8 @@ export class GirlListItem extends Component {
price: Label;
@property(Node)
freeNode: Node;
@property(Node)
unreleaseCover: Node;
@property(Node)
chatIcon: Node;
@@ -104,17 +106,41 @@ export class GirlListItem extends Component {
this.category.toString(),
this.id
);
this.price.node.active = priceType == PriceType.pay;
this.freeNode.active = priceType == PriceType.free;
if(isRelease)
{
this.price.node.active = false;
this.freeNode.active =false;
this.starParent.active = true;
this.chatIcon.active = true;
this.unreleaseCover.active = false;
}else{
this.unreleaseCover.active = true;
this.chatIcon.active = false;
this.starParent.active = false;
if(priceType == PriceType.free)
{
this.price.node.active = false;
this.freeNode.active = true;
}else{
this.price.node.active = true;
this.freeNode.active = false;
}
}
// this.price.node.active = priceType == PriceType.pay;
// this.freeNode.active = priceType == PriceType.free;
//this.tryNode.active = priceType == PriceType.first_time_free;
let listAvatarPath = girlData.getGrilListAvatar(
this.category.toString(),
this.id
);
listAvatarPath = listAvatarPath.replace("Avatar","avatar");//临时
ResManager.I.changeBundleSpriteFrame(
this.avatar,
listAvatarPath,
"Girls",
"Chat18x",
() => {
let sizeTran = this.avatar.node.parent.getComponent(UITransform);
Utils.adjustBgPixelRatioToSize(
@@ -127,9 +153,9 @@ export class GirlListItem extends Component {
//虚假好感度
const ratio = randomRangeInt(0, 5);
this.starParent.active = ratio != 0;
this.chatIcon.active = ratio != 0;
this.price.node.active = ratio == 0;
// this.starParent.active = ratio != 0;
// this.chatIcon.active = ratio != 0;
// this.price.node.active = ratio == 0;
for (let i = 0; i < this.stars.length; i++) {
const element = this.stars[i];
if (ratio > i) {