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,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACjC,IAAI,OAAO,GAAa,EAAE,CAAC;YAC3B,IAAI,MAAM,GAAG,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;YAC9D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;aAC9B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACrC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE;oBAC3B,OAAO,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC5B;aACJ;YACD,yDAAyD;YACzD,0BAA0B;YAC1B,0BAA0B;YAC1B,sDAAsD;YACtD,wBAAwB;YACxB,QAAQ;YACR,IAAI;YACJ,yCAAyC;YACzC,8CAA8C;YAC9C,gCAAgC;YAChC,QAAQ;YACR,IAAI;YACJ,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;YAChD,OAAO,OAAO,CAAC;QACnB,CAAC;KAeJ,CAAA;IA3nBU,yBAAI,GAAG,sBAAsB,CAAC;IAD5B,oBAAoB;QADhC,qCAAY,CAAC,qCAAmB,CAAC;OACrB,oBAAoB,CA4nBhC;IAAD,2BAAC;KAAA;AA5nBY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { AudioManager } from \"simba-cc-audio-manager\";\nimport { ConfigManager } from \"simba-config-manager\";\nimport { HttpClient } from \"simba-httpclient\";\nimport { SDK } from \"simba-sdk\";\nimport { DeepReadonly, delay } from \"simba-utils\";\nimport { Action, ActionManager, ActionType, GameRecord, Plot, PlotManager, richNodesToCocosString, SentenceType, SpecialPlotId } from \"../../../avg/AVG\";\nimport { DateType, FaceType } from \"../../../avg/EditorEnums\";\nimport { EditorEvents } from \"../../../avg/EditorEvents\";\nimport { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameConstData } from \"../../../common/gameplay/gamedata/GameConstData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport GameCenter from \"../../../cooperation/script/GameCenter\";\nimport { channel, GameConfig } from \"../../../GameConfig\";\nimport { PlotSceneType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport GameRoleDataModel from \"../../model/GameRoleDataModel\";\nimport ChapterBtn from \"../ChapterBtn\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { SpecialToastType } from \"../SpecialToast\";\nimport VerbView from \"../VerbView\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { DatingSceneView, DatingSceneViewType } from \"../view/type/DatingSceneView\";\nimport { SentenceSelectorViewProps } from \"../view/type/SentenceSelectorView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport UrgentNoticeViewPresenter from \"./notice/UrgentNoticeViewPresenter\";\nimport NoticeViewPresenter from \"./NoticeViewPresenter\";\nimport ReviewPlotViewPresenter, { ReviewPlotViewParam } from \"./ReviewPlotViewPresenter\";\nimport SentenceSelectorViewPresenter from \"./SentenceSelectorViewPresenter\";\n\ntype DatingPlot = DeepReadonly<Plot & { face: FaceType, portrait?: number, portraitFace?: FaceType }>\n@RegPresenter(DatingSceneViewType)\nexport class DatingScenePresenter extends Presenter<DatingEventSceneModel, DatingSceneView> {\n static uuid = \"DatingScenePresenter\";\n private _currPlot?: DatingPlot;\n private _executingPlot = false;\n private _completingPlot = false;\n private _showScrollView = false;\n\n /**是否时回忆 */\n private _isReview = false;\n private _model: DatingEventSceneModel;\n // private _actionFilter?: (action: DeepReadonly<Action>) => boolean;\n private _plotBranch = 0;\n /**出现选择时记录当前选择的id*/\n private _currSelect?: number = undefined;\n /**本次约会剧情是否结束 */\n private _finished = false;\n //dating scene which id is 1, need to deal by specially;\n private _specialDealSceneId: number = 1;\n\n private _isDotTutorial: boolean = false;\n private _showBackBtn: boolean = true;\n private _reviewPlot: string = \"\";\n\n onOpen(param: DatingEventSceneModel) {\n super.onOpen(param);\n this._finished = false;\n this._isDotTutorial = false;\n this._reviewPlot = \"\";\n this.view.completePlotCallback = this.completePlot;\n this.view.onUrgentBtnClickCallback = this.onUrgentBtnClickCallback;\n this.view.onGoToShopBtnCallback = this.onGoToShopBtnCallback;\n this.view.onRollBackBtnCallback = this.onRollBackBtnCallback;\n this.view.onCommonProblemBtnClickCallback = this.onCommonProblemBtnClickCallback;\n this.view.onReviewButtonClickCallback = this.onReviewButtonClickCallback;\n this._model = param;\n if (this._model.status === DatingEventStatus.New) {\n this._model.status = DatingEventStatus.InProgress;\n }\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n // deal special :hide backBtn\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n // this.view.setRunCloseAction((isSpecialScene && this._model.status !== DatingEventStatus.Completed));\n if (this._model.isExtra) {\n GameModelManager.setIsMainPlotSceneType(false);\n this.view.showRollBackBtn(false);\n } else {\n GameModelManager.setIsMainPlotSceneType(true);\n this.view.showRollBackBtn(true);\n }\n delay(0.1).then(async () => {\n if (param.status === DatingEventStatus.Completed) {\n this._isReview = true;\n // this._actionFilter = (action) => {\n // return action.type !== ActionType.ModifyVariable;\n // }\n this._model.background = \"\";\n this._currPlot = this._model.firstPlot as DatingPlot;\n\n } else {\n this._isReview = false;\n if (this._model.isExtra) {\n GameModelManager.setBranchInProgress(this._model.id);\n }\n let plots = PlotManager.getCurrentPlots();\n this._plotBranch = plots.findIndex(v => v.plotSceneType === PlotSceneType.DatingEvent && v.plotSceneTypeId === param.id);\n this._isDotTutorial = GameModelManager.checkIsDotTutorial() && this._plotBranch === 0;\n this._currPlot = plots[this._plotBranch] as DatingPlot;\n if (this._currPlot.id === this._model.firstPlot.id) {\n GameRecord.recordVariables.bgm = \"\"; // 新约会,不继承之前剧情的背景音乐存档\n this._model.background = \"\";\n }\n this._currSelect = PlotManager.getPlotSelection(this._currPlot.id);\n // if(!this._currSelect) this._currSelect = 0;\n if (GameRecord.recordVariables.bgm) {\n AudioManager.playMusic(GameRecord.recordVariables.bgm);\n }\n\n //dot main plot start\n if (0 === this._plotBranch && this._currPlot && this._currPlot.id === this._model.firstPlot.id) {\n GameModelManager.dotMainLinePlotStart();\n }\n }\n if (this._model.background) {\n await this.view.setBackground(\"textures/background/dating_event/\" + this._model.background);\n }\n this.execPlot();\n });\n\n this._disposable.add(EditorEvents.SET_DATING_BG.on((bgPath) => {\n this._model.background = bgPath;\n if (bgPath) bgPath = \"textures/background/dating_event/\" + bgPath;\n return this.view.setBackground(bgPath);\n }));\n this._disposable.add(EditorEvents.SET_DATING_BG_EFFECT.on((bgPath) => {\n this._model.background = bgPath;\n if (bgPath) bgPath = \"textures/background/dating_event/\" + bgPath;\n return this.view.setBackgroundEffect(bgPath);\n }));\n this._disposable.add(GameModelManager.RollBackToPlot.on(this.onClickRollBackBtn));\n this._showScrollView = false;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n this._disposable.add(GameModelManager.DeadEvent.on(this.onDeadEvent));\n this._disposable.add(GameModelManager.SpecialToast.on(this.onSpecialToast));\n }\n\n onClose() {\n super.onClose();\n this._currPlot = undefined;\n AudioManager.stopMusic();\n // UIManager.popToPresenter(this);\n if (!this._model.isExtra) {\n GameModelManager.CloseDatingSceneView.emit(this._model.id);\n }\n }\n\n async execPlot() {\n if (this._currPlot) {\n if (this._currPlot.sentences && this._currPlot.plotSceneType === PlotSceneType.DatingEvent && this._currPlot.plotSceneTypeId === this._model.id) {\n this._executingPlot = true;\n const sentence = this._currPlot.sentences[0];\n const content = sentence.content;\n const roleData = GameModelManager.getRoleData(sentence.roleId)!;\n let otherPortrait: string | undefined = undefined;\n let isShowRouge: boolean = this.checkIsShowRouge(this._currPlot.id);\n if (this._currPlot.portrait !== undefined) {\n let otherRole = GameModelManager.getRoleData(this._currPlot.portrait);\n if (otherRole) {\n // otherPortrait = otherRole.getPortrait(this._currPlot.portraitFace);\n otherPortrait = this.getPortraitByRole(otherRole, this._currPlot.portraitFace);\n }\n }\n if (content) { // TODO 图片设置\n if (content.type === SentenceType.TEXT) {\n this.view.showBackBtn(this._showBackBtn);\n if (this._model.isExtra) {\n this.view.showRollBackBtn(false);\n } else {\n this.view.showRollBackBtn(true);\n }\n this.view.showGoToShopBtn(true);\n this.view.showCommonProblemBtn(true);\n await this.view.setContent(sentence.roleId === GameConstData.GAME_CONST_PLAYER_ROLE_VALUE,\n richNodesToCocosString(content.value),\n sentence.roleId === 1 ? \"\" : roleData.getNameIcon(),\n sentence.roleId === 1 ? undefined : roleData.getConfig().name,\n // sentence.roleId === 1 ? otherPortrait : roleData.getPortrait(this._currPlot.face,),\n sentence.roleId === 1 ? otherPortrait : this.getPortraitByRole(roleData, this._currPlot.face),\n otherPortrait, isShowRouge);\n let plotName = \"<color=#EFDA91>\" + (sentence.roleId === 1 ? \"旁白\" : roleData.getConfig().name) + \":</c>\\n\";\n let plotContent = richNodesToCocosString(content.value) + \"\\n\";\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + plotName;\n this._reviewPlot = this._reviewPlot + plotContent;\n }\n } else if (content.type === SentenceType.SELECT) {\n this.view.showBackBtn(false);\n this.view.showRollBackBtn(false);\n this.view.showGoToShopBtn(false);\n this.view.showCommonProblemBtn(false);\n let setSelection = async () => {\n let value = content.value[this._currSelect!];\n let str = value.summary;\n this._reviewPlot = this._reviewPlot + \"<color=#D36777>\" + \"选项\" + \":</c>\\n\";\n if (value.content && value.content.type === SentenceType.EMPTY) { // 空类型,不做展示\n await this.completePlot();\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n return;\n } else if (value.content && value.content.type === SentenceType.TEXT) {\n str = richNodesToCocosString(value.content.value);\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n this._reviewPlot = this._reviewPlot + \"<color=#EFDA91>\" + \"梵优\" + \":</c>\\n\";\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n } else {\n if (this._isReview) {\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n this._reviewPlot = this._reviewPlot + \"<color=#EFDA91>\" + \"梵优\" + \":</c>\\n\";\n this._reviewPlot = this._reviewPlot + str + \"\\n\";\n }\n }\n // await this.view.setContent(true, str, roleData.getConfig().name, roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(true, str, roleData.getNameIcon(), roleData.getConfig().name, this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n }\n if (this._currSelect === undefined || this._currSelect === null) {\n let props: SentenceSelectorViewProps =\n {\n sentence: content,\n backgroundpath: \"\",\n clickcausehide: false,\n isFromDate: true,\n y: -250,\n dateSceneId: this._model.id,\n plotId: this._currPlot.id,\n onSelectIndexCallback: (index: number) => { this._currSelect = index; setSelection(); }\n };\n UIManager.pushPresenter(SentenceSelectorViewPresenter, props);\n // await this.view.setContent(true, \"\", roleData.getConfig().name, roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(true, \"\", roleData.getNameIcon(), roleData.getConfig().name, this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n if (this._isDotTutorial) {\n // GameDotMgr.getInstance().dotTutorial(TutorialType.Event, TutorialState.SelectSentence, { session: this._model.config.id, plotId: this._currPlot.id });\n }\n } else {\n await setSelection();\n }\n } else {\n console.error(\"不支持的约会剧情\", content);\n }\n } else { // 没有句子,只设置其立绘、背景等\n // await this.view.setContent(false, \"\", \"\", roleData.getPortrait(this._currPlot!.face), otherPortrait, isShowRouge);\n await this.view.setContent(false, \"\", \"\", \"\", this.getPortraitByRole(roleData, this._currPlot!.face), otherPortrait, isShowRouge);\n }\n if (this._currPlot.sentences[0].actions.actions.length) {\n await ActionManager.executeActions(this._currPlot.sentences[0].actions, this.filterFunc, !this._isReview);\n }\n this._executingPlot = false;\n } else {\n // 本次约会剧情结束\n this._model.status = DatingEventStatus.Completed;\n this._finished = true;\n this.view.setIsRunningAction(false);\n this.view.showBackBtn(this._showBackBtn);\n if (this._model.isExtra) {\n this.view.showRollBackBtn(false);\n } else {\n this.view.showRollBackBtn(true);\n }\n this.view.showGoToShopBtn(true);\n this.view.showCommonProblemBtn(true);\n let Plot = PlotManager.getCurrentPlots()[0];\n let isToBeContinued = Plot.id == SpecialPlotId.ToBeContinued;\n let isEnd = Plot.id == SpecialPlotId.End;\n if ((this._isReview || isToBeContinued || isEnd) && !this._model.isExtra) {\n let nextKey = this.getNextDatingEventKey();\n let nextEventModel = GameModelManager.getMainDatingEventSceneModel(nextKey);\n if (nextEventModel) {\n if (nextEventModel.status == DatingEventStatus.Completed) {\n this.view.closeView();\n let comp = cc.director.getScene().getChildByName(\"Canvas\").getChildByName(\"VerbRoot\").getChildByName(\"VerbView\").getComponent(VerbView);\n // let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n // let ids: string[] = [];\n // for (const id in cfgs) {\n // if (cfgs[id].DateType == DateType.Date_Normal) {\n // ids.push(id);\n // }\n // }\n // let index = ids.indexOf(nextKey.toString());\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n let index = plotIds.indexOf(nextEventModel.id);\n let title = \"第\" + (index + 1) + \"章:\";\n let cfg = ConfigManager.getConfig(dateSceneConfig, Number(nextKey));\n let desc = cfg && cfg.name ? GameModelManager.getConfigLanguageTxt(cfg.name) : \"\";\n comp.toDating(() => {\n AudioManager.playEffect('verb');\n GameModelManager.ForceClickDataReady.emit();\n GameModelManager.ForceClickDatingItem.emit(Number(nextKey));\n }, { title: title, desc: desc })\n } else {\n this.view.guideBack();\n if (this._model.isExtra) {\n GameModelManager.setBranchComplete(this._model.id);\n }\n }\n } else {\n if (this._model.isExtra) {\n GameModelManager.setBranchComplete(this._model.id);\n }\n this.view.guideBack();\n console.log(\"The nextEventModel is undefined.\");\n }\n } else if (this._model.isExtra) {\n this.view.guideBack();\n GameModelManager.setBranchComplete(this._model.id);\n console.log(\"Curr Chapter is extra plot.\");\n } else {\n GameModelManager.dotMainLinePlotEnd();\n // GameModelManager.setProgressDateScene(this._model.id);\n GameModelManager.CheckDateSceneProgress.emit();\n }\n }\n } else if (this._model.isExtra) {\n this.view.guideBack();\n GameModelManager.setBranchComplete(this._model.id);\n console.log(\"Curr Chapter is extra plot.\");\n }\n }\n\n /**完成当前剧情回调 */\n completePlot = async () => {\n if (this._executingPlot || this._completingPlot || !this._currPlot || this._finished) return;\n let content = this._currPlot.sentences[0].content;\n if (content && content.type === SentenceType.SELECT && this._currSelect === undefined) return;\n this._completingPlot = true;\n // GameModelManager.pushDateSceneKeyPlot(this._model.id, this._currPlot.id);\n if (this._model.isExtra) {\n GameModelManager.setIsMainPlotSceneType(false);\n } else {\n GameModelManager.setIsMainPlotSceneType(true);\n }\n if (this._isReview) {\n let nextPlot = await PlotManager.getNextPlot(this._currPlot, this._currSelect);\n if (nextPlot) {\n this._currPlot = nextPlot as DatingPlot;\n }\n } else {\n this._model.status = DatingEventStatus.InProgress;\n if (this._isDotTutorial) {\n let session = this._model.config.id;\n if (content && content.type === SentenceType.SELECT) {\n // GameDotMgr.getInstance().dotTutorial(TutorialType.Event, TutorialState.SelectSentenceRet, { session: session, plotId: this._currPlot.id, select: this._currSelect })\n }\n GameModelManager.dotPlotProgress();\n }\n let nextPlots = await PlotManager.completePlot(this._currPlot, this._currSelect);\n this._currPlot = nextPlots[this._plotBranch] as DatingPlot;\n }\n this._currSelect = undefined;\n this._completingPlot = false;\n this.execPlot();\n }\n\n checkIsShowRouge(plotId: number): boolean {\n let pStart: number = 1202;\n let pEnd: number = 1229;\n let ret: boolean = plotId >= pStart && plotId <= pEnd;\n // console.log(\"剧情id = \" + plotId + \" 是否展示口红: = \", ret);\n return ret;\n }\n\n getPortraitByRole(role: GameRoleDataModel, face = FaceType.Normal, skin?: number): string {\n let portrait: string = \"\";\n let curSkin = role.getCurSkin();\n if (skin === undefined && curSkin > 0) {\n skin = curSkin;\n }\n portrait = \"textures/portrait/\" + role.getConfig().id + \"/\" + (skin !== undefined ? skin + \"/\" : \"\") + face;\n if (this._model.id === 1) {\n portrait = \"textures/portrait/\" + role.getConfig().id + \"/\" + face;\n }\n return portrait;\n }\n\n onRollBackBtnCallback = () => {\n this._showScrollView = !this._showScrollView;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n if (this._showScrollView) {\n let scrollView = this.view.getScrollViewRootNode().getChildByName(\"ScrollView\");\n scrollView.scaleY = 0;\n cc.tween(scrollView)\n .to(0.3, { scaleY: 1 })\n .start();\n this.CreateOrUpdateChapterBtns();\n } else {\n this.view.getScrollViewContentNode().removeAllChildren();\n }\n }\n\n onCommonProblemBtnClickCallback = async () => {\n try {\n let resStr = await new HttpClient(GameConfig.commonProblemConfigUrl).get() as string;\n let res = JSON.parse(resStr);\n if (res) {\n UIManager.pushPresenter(NoticeViewPresenter, {\n title: res.title,\n content: res.content\n });\n }\n } catch (error) {\n console.error(error);\n }\n }\n\n onUrgentBtnClickCallback = () => {\n UIManager.pushPresenter(UrgentNoticeViewPresenter, undefined);\n }\n\n onGoToShopBtnCallback = () => {\n GameDotMgr.getInstance().dotClickUI(\"shop_btn_DatingScene\");\n if (channel == \"wechat\") {\n // GameCenter.getInstance().openSubProgram(GameConfig.youZanShopAppId);\n let link = GameModelManager.getYouZanShopUrlByType(8);\n if (link) {\n SDK.openProgramV2(GameConfig.youZanShopAppId, link);\n }\n } else if (channel == \"android\") {\n let link = GameModelManager.getTaoBaoShopUrlByType(8);\n if (link) {\n GameModelManager.jumpToTaobaoShop(link);\n }\n } else {\n UIManager.showToast(\"该功能在当前平台不可使用\");\n }\n }\n\n CreateOrUpdateChapterBtns() {\n this.view.getScrollViewContentNode().removeAllChildren();\n let ret: { chapterId: number, chapterName: number, chapterStartPlotId: number }[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n ret.push({ chapterId: i + 1, chapterName: models[i].config.name, chapterStartPlotId: models[i].config.start_plot_id });\n }\n // for (let i = 0; i < ret.length; ++i) {\n // let btn = cc.instantiate(this.view.getChapterBtn());\n // btn.getComponent(ChapterBtn).setData(ret[i].chapterId, ret[i].chapterName, ret[i].chapterStartPlotId);\n // btn.parent = this.view.getScrollViewContentNode();\n // }\n for (let i = ret.length - 1; i >= 0; i--) {\n let btn = cc.instantiate(this.view.getChapterBtn());\n btn.getComponent(ChapterBtn).setData(ret[i].chapterId, ret[i].chapterName, ret[i].chapterStartPlotId);\n btn.parent = this.view.getScrollViewContentNode();\n }\n }\n\n onClickRollBackBtn = (pid: number) => {\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n let temp: AlertDialogViewProps =\n {\n dataptr: {},\n titlecontent: \"此功能不可逆\",\n content: \"使用传送门会清掉此章节到已解锁最新章节之间的剧情存档和剧情内产生的数值,<color=red>且不可逆</color>,确定使用传送门吗?\",\n ishasad: !(removeAdCardNum > 0),\n istwobtn: true,\n adconfig: \"inject_fruit\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n let retainVar = this.getRetainVarKeyArr();\n await PlotManager.rollbackToPlot(pid, false, retainVar);\n this.rollBackDateAdArray(pid);\n GameRecord.saveRecord();\n // this.rollBackPlotInfo(pid);\n this.view.getScrollViewContentNode().removeAllChildren();\n this._showScrollView = !this._showScrollView;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n this.view.closeView();\n await GameModelManager.init((value: number) => {\n });\n GameModelManager.setIsChangePlotSceneType(true);\n UIManager.showSceneToast(\"数据刷新完成\");\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n GameModelManager.RefreshAllStatus.emit();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n\n getRetainVarKeyArr(): string[] {\n let keyArr: string[] = [];\n let branches = GameModelManager.getAllStartedBranches();\n let branchMap = this.getBranchFirstPlotIdMap();\n for (let i = 0; i < branches.length; i++) {\n let startPlotId = branches[i].startPlot;\n let extraId = branchMap[startPlotId + \"\"];\n if (extraId) {\n let recordKey = \"de\" + extraId;\n let f = recordKey + \".f\";\n let s = recordKey + \".s\";\n let b = recordKey + \".bg\";\n if (GameRecord.recordVariables[f]) {\n keyArr.push(f);\n }\n if (GameRecord.recordVariables[s]) {\n keyArr.push(s);\n }\n if (GameRecord.recordVariables[b]) {\n keyArr.push(b);\n }\n }\n }\n return keyArr;\n }\n\n getBranchFirstPlotIdMap(): { [key: string]: number } {\n let map: { [key: string]: number } = {};\n let tbl = ConfigManager.getAllConfig(dateSceneConfig);\n if (tbl) {\n for (let id in tbl) {\n let c = tbl[id];\n if (c && c.DateType == DateType.Date_Sp) {\n map[c.start_plot_id + \"\"] = c.id;\n }\n }\n }\n return map;\n }\n\n onDeadEvent = (pid: number) => {\n if (this._model.status == DatingEventStatus.Completed) {\n let temp: AlertDialogViewProps = {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"触发了死亡结局,但因为是在回忆模式,所以章节不会被重置\",\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n this.view.closeView();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n } else {\n let temp: AlertDialogViewProps = {\n dataptr: {},\n titlecontent: \"提示\",\n content: \"触发了死亡结局,本章节将<color=red>重置</color>!!\",\n ishasad: false,\n istwobtn: false,\n adconfig: \"\",\n hasBanner: false,\n callback: async (type, ret) => {\n if (ret) {\n let retainVar = this.getRetainVarKeyArr();\n await PlotManager.rollbackToPlot(pid, false, retainVar);\n this.rollBackDateAdArray(pid);\n GameRecord.saveRecord();\n // this.rollBackPlotInfo(pid);\n this.view.getScrollViewContentNode().removeAllChildren();\n this._showScrollView = !this._showScrollView;\n this.view.getScrollViewRootNode().active = this._showScrollView;\n this.view.closeView();\n await GameModelManager.init((value: number) => {\n });\n GameModelManager.setIsChangePlotSceneType(true);\n UIManager.showSceneToast(\"数据刷新完成\");\n let isSpecialScene: boolean = this._model.id === this._specialDealSceneId;\n this._showBackBtn = !(isSpecialScene && this._model.status === DatingEventStatus.InProgress);\n this.view.showBackBtn(this._showBackBtn);\n GameModelManager.RefreshAllStatus.emit();\n }\n }\n };\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n }\n }\n\n private filterFunc = (action: DeepReadonly<Action>): boolean => {\n let isExcute: boolean = true;\n if (action.type === ActionType.ModifyVariable) {\n isExcute = !GameModelManager.checkPlotTipAddGraceAlready(this._currPlot?.id as number);\n if (isExcute) {\n GameModelManager.pushTipAddGracePlot(this._currPlot?.id as number);\n }\n\n }\n return isExcute;\n }\n\n rollBackDateAdArray(pid: number) {\n let models = GameModelManager.getMainDatingEventScenesModel();\n let chapterId = -1;\n for (let i = 0; i < models.length; i++) {\n if (pid == models[i].config.start_plot_id) {\n chapterId = models[i].config.id;\n }\n }\n if (chapterId == -1) {\n console.error(\"Cannot found the chapterId.\");\n }\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n if (record) {\n a = JSON.parse(record);\n a.sort((a, b) => {\n if (a < b) {\n return -1;\n } else if (a > b) {\n return 1;\n }\n return 0;\n });\n for (let i = 0; i < a.length; i++) {\n if (a[i] >= chapterId) {\n a.splice(i, a.length - (i - 1));\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n return;\n }\n }\n }\n }\n\n getNextDatingEventKey(): number {\n let nextKey: number = 0;\n let currEventId = this._model.id;\n let plotIds: number[] = [];\n let models = GameModelManager.getMainDatingEventScenesModel();\n for (let i = 0; i < models.length; i++) {\n plotIds.push(models[i].id);\n }\n for (let i = 0; i < plotIds.length; i++) {\n if (plotIds[i] == currEventId) {\n nextKey = plotIds[i + 1];\n }\n }\n // let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n // let ids: string[] = [];\n // for (const id in cfg) {\n // if (cfg[id].DateType == DateType.Date_Normal) {\n // ids.push(id);\n // }\n // }\n // for (let i = 0; i < ids.length; i++) {\n // if (ids[i] == currEventId.toString()) {\n // nextKey = ids[i + 1];\n // }\n // }\n console.log(\"getNextDatingEventModel\", nextKey);\n return nextKey;\n }\n\n onReviewButtonClickCallback = async () => {\n let temp: ReviewPlotViewParam = {\n isReview: this._isReview,\n plotString: this._reviewPlot,\n startPlotId: this._model.config.start_plot_id,\n currentPlotId: this._currPlot!.id,\n };\n UIManager.pushPresenter(ReviewPlotViewPresenter, temp);\n }\n\n onSpecialToast = (type: SpecialToastType) => {\n UIManager.showSpecialToast(type);\n }\n}"]}