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N,CAAC;QA0BD,YAAY,CAAC,QAAgB;YACzB,IAAI,CAAC,GAAG,gBAAU,CAAC,eAAe,CAAC,QAAQ,CAAW,CAAC;YACvD,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACd,OAAO,CAAC,CAAC;QACb,CAAC;QAED,mBAAmB,CAAC,EAAU;YAC1B,IAAI,CAAC,GAAG,gBAAU,CAAC,eAAe,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACd,IAAI,CAAC,GAAG,gBAAU,CAAC,eAAe,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACd,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACd,OAAO,CAAC,CAAC;QACb,CAAC;KACJ,CAAA;IA/CG;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;+DACiB;IAEnC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;8DACgB;IAEnC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;0DACY;IANtB,mBAAmB;QAF/B,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OAC7C,mBAAmB,CAiD/B;IAAD,0BAAC;KAAA;AAjDY,kDAAmB","file":"","sourceRoot":"/","sourcesContent":["import { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DatingEventViewType, DatingEventViewProps, DatingEventView } from \"../type/DatingEventView\";\nimport { DummyLabel, DummyNode } from \"../../../../common/CCDummyObjects\";\nimport { GameRecord } from \"../../../../avg/AVG\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(DatingEventViewType, \"prefab/ui/DatingEventView\")\nexport class DatingEventViewImpl extends CCPureView<DatingEventViewProps> implements DatingEventView {\n @property(cc.Node)\n private arrowGuideNode = DummyNode;\n @property(cc.Label)\n private roleLikeLabel = DummyLabel;\n @property(cc.Label)\n private maskLabel = DummyLabel;\n\n onLoad() {\n }\n\n showArrowGuide = (isShow: boolean, wordPos?: cc.Vec3) => {\n this.arrowGuideNode.active = isShow;\n if (isShow && wordPos) {\n this.arrowGuideNode.position = this.node.convertToNodeSpaceAR(wordPos);\n this.arrowGuideNode.angle = wordPos.y > this.node.height / 2 ? 180 : 0;\n }\n }\n\n showRoleLikeLabel = () => {\n this.roleLikeLabel.string = \"艾尔好感:\" + this.getRoleLikeByRoleId(3).toString() + \",\" + \"该隐好感:\" + this.getRoleLikeByRoleId(4).toString()\n + \",\" + \"系统好感:\" + this.getRoleLikeByRoleId(5).toString() + \",\" + \"芙好感:\" + this.getRoleLikeByRoleId(8).toString()\n + \",\" + \"布鲁斯好感:\" + this.getRoleLikeByRoleId(22).toString();\n }\n\n showMaskLabel = () => {\n this.maskLabel.string =\n \"armask:\" + this.getMaskValue(\"armask\") + \",\" + \"msmask:\" + this.getMaskValue(\"msmask\") + \",\" + \"jsmask:\" + this.getMaskValue(\"jsmask\")\n + \",\" + \"bymask:\" + this.getMaskValue(\"bymask\") + \",\" + \"gymask:\" + this.getMaskValue(\"gymask\")\n + \",\" + \"barmask:\" + this.getMaskValue(\"barmask\") + \",\" + \"harmask:\" + this.getMaskValue(\"harmask\")\n + \",\" + \"hsmask:\" + this.getMaskValue(\"hsmask\") + \",\" + \"szmask:\" + this.getMaskValue(\"szmask\")\n + \",\" + \"bzf:\" + this.getMaskValue(\"bzf\") + \",\" + \"xs:\" + this.getMaskValue(\"xs\") + \",\" + \"fhh:\" + this.getMaskValue(\"fhh\")\n + \",\" + \"fyhh:\" + this.getMaskValue(\"fyhh\") + \",\" + \"aryc:\" + this.getMaskValue(\"aryc\");\n }\n\n getMaskValue(maskName: string): number {\n let r = GameRecord.recordVariables[maskName] as number;\n r = r ? r : 0;\n return r;\n }\n\n getRoleLikeByRoleId(id: number): number {\n let g = GameRecord.globalVariables[\"like\" + id];\n g = g ? g : 0;\n let r = GameRecord.recordVariables[\"like\" + id];\n r = r ? r : 0;\n let l = g + r;\n return l;\n }\n}"]}