This commit is contained in:
2025-10-14 18:54:02 +08:00
parent b40b02e2a2
commit af2031f486
11 changed files with 352 additions and 111 deletions
@@ -205,14 +205,9 @@ export class GirlDetailPanel extends li_BaseView {
this.descKey = girlData.getGrilDesc(this.category.toString(), this.id);
this.desc.string = LanguageUtils.getText(this.descKey);
let desc = "";
this.tagKey = girlData.getGrilTagKey(this.category.toString(), this.id);
const tags = LanguageUtils.getText(this.tagKey).split("|");
for (let i = 0; i < tags.length; i++) {
if (i != 0) desc += "\n";
desc += tags[i];
}
this.tags.string = desc;
this.tags.string = LanguageUtils.getText(this.tagKey);
const star = girlData.getStar(this.category.toString(), this.id);
const stars = this.starParent.getComponentsInChildren(Sprite);
logger.log("好感度:" + star);
@@ -335,8 +330,8 @@ export class GirlDetailPanel extends li_BaseView {
currentPanel,
chatData,
{
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
openAnimation: PageTransitionType.NONE,
closeAnimation: PageTransitionType.NONE,
hideBasePanel: true,
}
);
@@ -351,8 +346,6 @@ export class GirlDetailPanel extends li_BaseView {
// id: this.id,
// });
// }
this.close();
}
returnBtn() {
@@ -366,8 +359,8 @@ export class GirlDetailPanel extends li_BaseView {
onClose() {
// 停止视频播放,释放资源
if (this.videoLayer) {
//this.videoLayer.stop();
//logger.log("GirlDetailPanel: 停止视频播放");
this.videoLayer.stop();
logger.log("GirlDetailPanel: 停止视频播放");
}
super.onClose();
@@ -448,8 +441,8 @@ export class GirlDetailPanel extends li_BaseView {
onDestroy() {
// 确保视频资源被释放
if (this.videoLayer) {
//this.videoLayer.stop();
//logger.log("GirlDetailPanel: 销毁时停止视频播放");
this.videoLayer.stop();
logger.log("GirlDetailPanel: 销毁时停止视频播放");
}
// 回收所有使用中的节点到对象池