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ACzB,MAAM,CAAC,WAAW,CAAC,uCAAe,CAAC,UAAU,CAAC,CAAC;qBAClD;oBACD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;iBACnC;YACL,CAAC,CAAA;QAUL,CAAC;QA1CG,MAAM;YACF,IAAI,CAAC,qBAAqB,EAAE,CAAC;QACjC,CAAC;QAED,qBAAqB;YACjB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,yBAAW,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACtF,CAAC;QAED,KAAK;QAEL,CAAC;QAwBD,MAAM,CAAC,EAAE,IAAI,CAAC;QAEd,WAAW;YACP,yBAAW,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnD,IAAI,2BAAiB,CAAC,QAAQ,IAAI,CAAC,EAAE;gBACjC,eAAG,CAAC,kBAAkB,EAAE,CAAC;aAC5B;QACL,CAAC;KACJ,CAAA;IA9CG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;6DACzD;IAHxB,oBAAoB;QADxC,OAAO;OACa,oBAAoB,CAiDxC;IAAD,2BAAC;KAAA;kBAjDoB,oBAAoB","file":"","sourceRoot":"/","sourcesContent":["import { EventCenter } from \"../event/EventCenter\";\nimport { CompositeDisposable } from \"../event/EventKit\";\nimport { CCCooperationItem } from \"./CCCooperationItem\";\nimport CooperationDataCenter, { SubGameLocation } from \"./CooperationDataCenter\";\nimport GameCenter from \"./GameCenter\";\nimport CCGameCenterNodeFactory from \"./CCGameCenterNodeFactory\";\nimport { DummyNode } from \"../../common/CCDummyObjects\";\nimport { SDK } from \"simba-sdk\";\nimport MainViewPresenter from \"../../game/ui/presenter/MainViewPresenter\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class CCGameCenterListView extends cc.Component {\n\n @property({ type: cc.Node, visible: true, displayName: \"scrollview内容节点\", tooltip: \"contentNode\" })\n private contentNode: cc.Node = DummyNode;\n\n private _disposable: CompositeDisposable = new CompositeDisposable;\n\n onLoad() {\n this.registerEventListener();\n }\n\n registerEventListener() {\n this._disposable.add(EventCenter.REFRESH_SUB_GAME_LIST.on(this.onRefreshContent));\n }\n\n start() {\n\n }\n\n onRefreshContent = () => {\n if (!this.contentNode) {\n return;\n }\n this.contentNode.removeAllChildren(true);\n let isRelease: boolean = GameCenter.getInstance().getIsRelease();\n let list = CooperationDataCenter.getInstance().getCooperationItemDataModelList();\n for (let i = 0; i < list.length; i++) {\n let node = CCGameCenterNodeFactory.getInstance().getSubGameNode();\n if (!node) {\n break;\n }\n let script: CCCooperationItem = node.getComponent(CCCooperationItem);\n if (script) {\n script.setRelease(isRelease);\n script.bindData(list[i]);\n script.setLocation(SubGameLocation.GameCenter);\n }\n this.contentNode.addChild(node);\n }\n }\n\n update(dt) { }\n\n onViewClick() {\n EventCenter.SHOW_GAME_CENTER_LIST_VIEW.emit(false);\n if (MainViewPresenter.tabIndex == 3) {\n SDK.showGameClubButton();\n }\n }\n}\n"]}