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AAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,yBAAyB,CAAC;OACzC,iBAAiB,CAsR7B;IAAD,wBAAC;KAAA;AAtRY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { CCPureView, CCView } from \"../../../../common/classbase/CCViewBase\";\nimport { PhoneCallViewType, PhoneCallViewProps, PhoneCallView, PhoneCallItemProps, PhoneCallListAutoNextPlot } from \"../type/PhoneCallView\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DummyScrollView, DummyLayout, DummyNode, DummyLabel, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { SentenceType, richNodesToCocosString, ActionManager } from \"../../../../avg/AVG\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { AudioManager } from \"simba-cc-audio-manager\";\nimport { GameTextData } from \"../../../../common/gameplay/gamedata/GameTextData\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\nimport GameDotMgr from \"../../../GameDotMgr\";\nimport Typewriter from \"../../../../common/components/Typewriter\";\n\nconst { ccclass, property } = cc._decorator;\n\n\n@ccclass\n@RegView(PhoneCallViewType, \"prefab/ui/PhoneCallView\")\nexport class PhoneCallViewImpl extends CCPureView<PhoneCallViewProps> implements PhoneCallView {\n //#region editor bindings\n @property(cc.ScrollView)\n private scrollView = DummyScrollView;\n @property(cc.Layout)\n private contentLayout = DummyLayout;\n @property(cc.Node)\n private callingNode = DummyNode;\n @property(cc.Node)\n private messageNode = DummyNode;\n @property(cc.Label)\n private nameLabel1 = DummyLabel;\n @property(cc.Label)\n private nameLabel2 = DummyLabel;\n @property(cc.Sprite)\n private headIcon1 = DummySprite;\n @property(cc.Sprite)\n private headIcon2 = DummySprite;\n\n @property(cc.Node)\n private rejectTipNode = DummyNode;\n @property(cc.Node)\n private nextPlotNode = DummyNode;\n\n @property(cc.Label)\n private statusLabel = DummyLabel;\n\n @property(Typewriter)\n private typewriter: Typewriter = undefined as unknown as Typewriter ;\n\n\n private _isPlayMusic: boolean = false;\n\n private _excuting: boolean = false;\n\n onRejectCall() {\n this.node.children[1].active = true;\n this.rejectTipNode.runAction(cc.sequence(cc.fadeIn(0.3), cc.delayTime(0.3), cc.callFunc(() => {\n this.rejectTipNode.opacity = 0;\n this.node.children[0].opacity = 0;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n this.scheduleOnce(async () => {\n this.node.children[0].opacity = 255;\n this.node.children[1].active = false;\n await this.playPhoneMusic();\n this._isPlayMusic = true;\n }, 0.8);\n })));\n // GameDotMgr.getInstance().dotClickUI(\"click_phone_reject\");\n }\n\n playPhoneMusic = async () => {\n const PhoneBgmCallSound = \"/audio/bgm/iPhoneXSCallSound\";\n await AudioManager.playMusic(PhoneBgmCallSound);\n }\n\n stopPhoneMusic = () => {\n AudioManager.stopMusic();\n }\n\n onAcceptCall() {\n this.callingNode.active = false;\n this.messageNode.active = true;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n GameModelManager.dotMainLinePlotStart();\n if (PhoneCallListAutoNextPlot) {\n this.scheduleOnce(() => {\n this._props.onCompletePlot();\n }, 0.6);\n }\n }\n\n onNextPlotBtnClick() {\n if(this.typewriter.getShowingString() == \"\"){\n if (!PhoneCallListAutoNextPlot) {\n if (!this._excuting) {\n this._excuting = true;\n GameModelManager.dotPlotProgress();\n this._props.onCompletePlot(this._selectIndex);\n this._selectIndex = undefined;\n this.scheduleOnce(() => {\n this._excuting = false;\n }, 0.3);\n }\n }\n }else {\n this.typewriter.stopTyperShowString();\n }\n \n }\n //#endregion\n\n private _newCall = true;\n private _selectIndex?: number;\n\n applicationChange(force: boolean) {\n\n }\n\n onLoad() {\n this.bindProp(\"name\", this.nameLabel1, \"string\");\n this.bindProp(\"name\", this.nameLabel2, \"string\");\n this.bindProp(\"icon\", async (v) => {\n if (v) {\n let sf = await ResUtils.loadRes(v, cc.SpriteFrame, 2);\n // if (v === this._props.icon) { // 理论上这里没必要\n this.headIcon1.spriteFrame = sf;\n this.headIcon2.spriteFrame = sf;\n // }\n }\n });\n\n\n\n // this.bindProp(\"select\", (value) => {\n // if (value >= 0) {\n // let item = this._props.items[this._props.items.length - 1];\n // item.select = value;\n // this.processItem(item);\n // }\n // });\n\n }\n\n select(value: number) {\n if (value >= 0) {\n let item = this._props.items[this._props.items.length - 1];\n item.select = value;\n this.processItem(item);\n }\n }\n\n scrollToTop(): void {\n this.scrollView.scrollToTop();\n }\n\n scrollToBottom(animate = true): void {\n if (this.contentLayout.node.height > this.scrollView.node.height) {\n this.scrollView.scrollToBottom(animate ? 0.3 : undefined);\n }\n }\n\n async open(parent: CCView) {\n super.open(parent);\n\n this.node.children[0].opacity = 0;\n this.node.children[1].active = true;\n this.callingNode.active = true;\n this.messageNode.active = false;\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n await this.playPhoneMusic();\n this._isPlayMusic = true;\n this.node.children[0].runAction(cc.sequence(cc.delayTime(0.2), cc.fadeIn(0.1), cc.callFunc(() => {\n this.node.children[0].opacity = 255;\n this.node.children[1].active = false;\n })));\n this.updateCallingStatusLabel(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CALLING_VALUE));\n }\n\n close(clean?: boolean) {\n this.nextPlotNode.active = false;\n this.updateCallingStatusLabel(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CALLENDED_VALUE));\n this.node.stopAllActions();\n this.node.runAction(cc.sequence(cc.delayTime(1.2), cc.callFunc(() => {\n super.close(clean);\n // 清除内容,防止下次打开的时候先显示上次的内容\n this.contentLayout.node.removeAllChildren();\n this.headIcon1.spriteFrame = undefined as any;\n this.nameLabel1.string = \"\";\n if (this.node.active && this._isPlayMusic) {\n this.stopPhoneMusic();\n this._isPlayMusic = false;\n }\n delete (this as any)._props;\n GameModelManager.CheckMainTabGuide.emit();\n })));\n }\n\n onPropsLoad(props: PhoneCallViewProps) {\n super.onPropsLoad(props);\n for (let item of this._props.items) { // 应该只有一条\n this.processItem(item);\n }\n }\n\n onPropChange(propName: keyof PhoneCallViewProps) {\n super.onPropChange(propName);\n if (propName === \"items\") {\n for (let i = this.contentLayout.node.children.length; i < this._props.items.length; i++) {\n this.processItem(this._props.items[i]);\n }\n }\n }\n\n async processItem(item: PhoneCallItemProps) {\n let content = item.sentence.content!;\n if (item.isSelf && content.type === SentenceType.SELECT && item.select === undefined) { // show selector\n this._props.onSetContent(content);\n this.nextPlotNode.active = false;\n } else {\n this.nextPlotNode.active = true;\n if (content.type === SentenceType.SELECT && item.select === undefined) {\n console.error(\"Something went wrong. \", item.sentence);\n return;\n }\n let node = new cc.Node;\n let richLabel = node.addComponent(cc.RichText);\n richLabel.fontSize = 32;\n richLabel.maxWidth = 585;\n if (item.isSelf) {\n node.anchorX = 1;\n node.x = 300;\n node.color = cc.color(44, 50, 98);\n richLabel.horizontalAlign = cc.macro.TextAlignment.RIGHT;\n } else {\n node.anchorX = 0;\n node.x = -300;\n richLabel.horizontalAlign = cc.macro.TextAlignment.LEFT;\n }\n let text = \"\";\n if (content.type === SentenceType.SELECT) {\n let option = content.value[item.select!];\n if (option.content) {\n if (option.content.type === SentenceType.TEXT) {\n // richLabel.string = richNodesToCocosString(option.content.value);\n text = richNodesToCocosString(option.content.value);\n\n } else {\n // richLabel.string = `SentenceType(${option.content.type}) not supported in phone call.`;\n text = `SentenceType(${option.content.type}) not supported in phone call.`;\n\n }\n } else {\n // richLabel.string = option.summary;\n text = option.summary;\n }\n } else if (content.type === SentenceType.TEXT) {\n // richLabel.string = richNodesToCocosString(content.value);\n text = richNodesToCocosString(content.value);\n } else {\n // richLabel.string = `SentenceType(${content.type}) not supported in phone call.`;\n text = `SentenceType(${content.type}) not supported in phone call.`;\n }\n if (item.isSelf) {\n richLabel.string = text;\n } else {\n this.typewriter.showRichTextTyper(richLabel, text, () => {\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n }, () => {\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n });\n }\n node.parent = this.contentLayout.node;\n\n }\n if (item.sentence && item.sentence.actions) {\n await ActionManager.executeActions(item.sentence.actions);\n }\n\n if (PhoneCallListAutoNextPlot && this.messageNode.active && !this._props.isSentenceSelectVisible()) {\n this.scheduleOnce(() => {\n this._props.onCompletePlot(item.select);\n }, 1);\n } else {\n this._selectIndex = item.select;\n }\n this.contentLayout.updateLayout();\n this.scrollToBottom();\n }\n\n updateCallingStatusLabel(statusStr: string) {\n this.statusLabel.string = statusStr;\n }\n}"]}