This commit is contained in:
2025-09-10 15:48:27 +08:00
parent 6b3176ed39
commit 146c9a75a2
1564 changed files with 101785 additions and 257 deletions
+13 -14
View File
@@ -107,24 +107,23 @@ export class GirlListItem extends Component {
this.id
);
if(isRelease)
{
if (isRelease) {
this.price.node.active = false;
this.freeNode.active =false;
this.freeNode.active = false;
this.starParent.active = true;
this.chatIcon.active = true;
this.unreleaseCover.active = false;
}else{
} 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{
if (priceType == PriceType.free) {
this.price.node.active = false;
this.freeNode.active = true;
this.starParent.active = true;
} else {
this.price.node.active = true;
this.freeNode.active = false;
this.starParent.active = false;
}
}
@@ -135,8 +134,8 @@ export class GirlListItem extends Component {
this.category.toString(),
this.id
);
listAvatarPath = listAvatarPath.replace("Avatar","avatar");//临时
listAvatarPath = listAvatarPath.replace("Avatar", "avatar"); //临时
ResManager.I.changeBundleSpriteFrame(
this.avatar,
listAvatarPath,
@@ -152,13 +151,13 @@ export class GirlListItem extends Component {
);
//虚假好感度
const ratio = randomRangeInt(0, 5);
const star = girlData.getStar(this.category.toString(), this.id);
// 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) {
if (star > i) {
ResManager.I.changeResourceSpriteFrame(element, "ui/common/heart");
} else {
ResManager.I.changeResourceSpriteFrame(