This commit is contained in:
2025-10-15 19:01:33 +08:00
parent 5714ae08bb
commit fba0dc79fe
4 changed files with 330 additions and 156 deletions
@@ -44,6 +44,9 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
@property(Label)
girlName: Label = null;
@property(Label)
chatTime: Label = null;
// @property(Sprite)
// girlImg: Sprite = null;
@@ -291,6 +294,9 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
let triggerId = girlData.getTriggerGrilPhotoId(this.categoryId, this.id);
const count = girlData.getChatRemainCount(this.categoryId, this.id);
this.chatTime.string = count + LanguageUtils.getText("chatpanel.times");
if (triggerId == 0) return;
logger.log("Trigger pop up Image id:" + this.id + "--" + triggerId);