194b3370-a9a1-4dfe-a9d2-37c2d92f24df.js.map
2.27 KB
{"version":3,"sources":["assets/script/game/ui/presenter/GuideViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAoE;AAEpE,sEAAyD;AACzD,sDAAkF;AAWlF;IAAA,IAAqB,kBAAkB,GAAvC,MAAqB,kBAAmB,SAAQ,yBAAyC;QAKrF;YACI,KAAK,EAAE,CAAC;YAaZ,iBAAY,GAAG,GAAG,EAAE;gBAChB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;gBAClB,IAAI,IAAI,CAAC,SAAS,EAAE;oBAChB,IAAI,CAAC,SAAS,EAAE,CAAC;iBACpB;gBACD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC/B,CAAC,CAAA;YAlBG,IAAI,CAAC,UAAU,GAAG;gBACd,aAAa,EAAE,IAAI,CAAC,YAAY;aACnC,CAAC;QACN,CAAC;QAED,MAAM,CAAC,KAA0B;YAC7B,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;YAC5B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;YACpE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC;QAUD,OAAO;YACH,KAAK,CAAC,OAAO,EAAE,CAAC;QACpB,CAAC;KACJ,CAAA;IA7BU,uBAAI,GAAG,oBAAoB,CAAC;IADlB,kBAAkB;QADtC,qCAAY,CAAC,yBAAa,CAAC;OACP,kBAAkB,CA8BtC;IAAD,yBAAC;KAAA;kBA9BoB,kBAAkB","file":"","sourceRoot":"/","sourcesContent":["import { Presenter } from \"../../../common/classbase/PresenterBase\";\nimport { DirectionType } from \"../../Enums\";\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\nimport { GuideView, GuideViewProps, GuideViewType } from \"../view/type/GuideView\";\nexport interface GuideViewParamModel {\n x: number;\n y: number;\n w: number;\n h: number;\n d: DirectionType;\n call?: () => void;\n}\n\n@RegPresenter(GuideViewType)\nexport default class GuideViewPresenter extends Presenter<GuideViewParamModel, GuideView>{\n static uuid = \"GuideViewPresenter\";\n private _viewProps: GuideViewProps;\n private _callFunc?: () => void;\n\n constructor() {\n super();\n this._viewProps = {\n clickCallFunc: this.onGuideClick\n };\n }\n\n onOpen(param: GuideViewParamModel) {\n super.onOpen(param);\n this._callFunc = param.call;\n this.view.setGuideInfo(param.x, param.y, param.w, param.h, param.d);\n this.view.setProps(this._viewProps);\n }\n\n onGuideClick = () => {\n this.view.close();\n if (this._callFunc) {\n this._callFunc();\n }\n this._callFunc = undefined;\n }\n\n onClose() {\n super.onClose();\n }\n}"]}