2f50e602-9b49-46dc-b772-60e822890f31.js.map
2.39 KB
{"version":3,"sources":["assets/script/game/ui/presenter/SentenceSelectorViewPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAoE;AACpE,sEAAyD;AACzD,4EAA8H;AAI9H;IAAA,IAAqB,6BAA6B,GAAlD,MAAqB,6BAA8B,SAAQ,yBAA0D;QAOjH;YACI,KAAK,EAAE,CAAC;YAUZ,0BAAqB,GAAG,CAAC,KAAa,EAAE,EAAE;gBACtC,IAAI,IAAI,CAAC,oBAAoB,IAAI,SAAS,EAAE;oBACxC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;oBACjC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;iBACrB;YACL,CAAC,CAAA;YAdG,IAAI,CAAC,UAAU;gBACf;oBACI,QAAQ,EAAE,SAAS;oBACnB,cAAc,EAAE,EAAE;oBAClB,cAAc,EAAE,KAAK;oBACrB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;iBACpD,CAAC;QACN,CAAC;QASD,MAAM,CAAC,KAAgC;YACnC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpB,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,qBAAqB,CAAC;YACxD,IAAI,CAAC,UAAU,mCAAQ,KAAK,KAAE,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,GAAE,CAAC;YAClF,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACzC,CAAC;KACJ,CAAA;IA9BU,kCAAI,GAAG,sBAAsB,CAAC;IADpB,6BAA6B;QADjD,qCAAY,CAAC,+CAAwB,CAAC;OAClB,6BAA6B,CA+BjD;IAAD,oCAAC;KAAA;kBA/BoB,6BAA6B","file":"","sourceRoot":"/","sourcesContent":["import { Presenter } from \"../../../common/classbase/PresenterBase\";\r\nimport { RegPresenter } from \"../PresenterCCViewFactory\";\r\nimport { SentenceSelectorView, SentenceSelectorViewProps, SentenceSelectorViewType } from \"../view/type/SentenceSelectorView\";\r\n\r\n\r\n@RegPresenter(SentenceSelectorViewType)\r\nexport default class SentenceSelectorViewPresenter extends Presenter<SentenceSelectorViewProps, SentenceSelectorView> {\r\n static uuid = \"SentenceSelectorView\";\r\n\r\n private _viewProps: SentenceSelectorViewProps;\r\n\r\n selectIndexEventCall: (index: number) => void;\r\n\r\n constructor() {\r\n super();\r\n this._viewProps =\r\n {\r\n sentence: undefined,\r\n backgroundpath: \"\",\r\n clickcausehide: false,\r\n onSelectIndexCallback: this.onSelectIndexCallback\r\n };\r\n }\r\n\r\n onSelectIndexCallback = (index: number) => {\r\n if (this.selectIndexEventCall != undefined) {\r\n this.selectIndexEventCall(index);\r\n this.view.close();\r\n }\r\n }\r\n\r\n onOpen(props: SentenceSelectorViewProps) {\r\n super.onOpen(props);\r\n this.selectIndexEventCall = props.onSelectIndexCallback;\r\n this._viewProps = { ...props, onSelectIndexCallback: this.onSelectIndexCallback };\r\n this._view.setProps(this._viewProps);\r\n }\r\n}\r\n"]}