public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { List <CardEntry> cardEntries = body as List <CardEntry>; //载入卡牌列表 this.LoadCardEntryList(cardEntries); //载入完成后绑定事件 foreach (CardIntactView cardIntactView in this.cardIntactViews) { //如果是自己的命令则绑定上点击事件 if (mediator.playerCode == parameterMap["PlayerCode"]) { cardIntactView.OnClick = () => { mediator.SendNotification(OperateSystemEvent.OPERATE_SYS, cardIntactView.card, OperateSystemEvent.OPERATE_SYS_CHOOSE_ONE_EFFECT); }; } else { //设置为空 cardIntactView.OnClick = () => { }; } } }
public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { List <List <CardEntry> > cardEntries = body as List <List <CardEntry> >; this.LoadStartCardList(cardEntries); foreach (ViewChooseStage oneViewChoose in this.sortViewChosseMap.Values) { foreach (CardIntactView cardIntactView in oneViewChoose.cardIntactViews) { if (cardIntactView.card.layerSort == VCSLayerSort.Three) { cardIntactView.OnClick = () => { //提示第三排为展示,不可购买 cardIntactView.OnClick = () => { }; }; } else { cardIntactView.OnClick = () => { mediator.SendNotification(UIViewSystemEvent.UI_CHOOSE_MAKE_STAGE, cardIntactView.card, UIViewSystemEvent.UI_CHOOSE_MAKE_STAGE_ONE_CARD); }; } } } }
public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { this.OnPointerClick = () => { mediator.SendNotification(OperateSystemEvent.OPERATE_SYS, mediator.playerCode, OperateSystemEvent.OPERATE_SYS_GRAVEYARD_LIST_LOAD); }; this.InitView(); }
public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { this.OnPointerClick = () => { mediator.SendNotification(UIViewSystemEvent.UI_QUEST_TURN_STAGE, null, UIViewSystemEvent.UI_QUEST_TURN_STAGE_END_OF_STAGE); this.HideButton(); }; this.InitView(); }
public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { List <TestCaseInfo> testCaseInfoList = body as List <TestCaseInfo>; this.addTestCase(testCaseInfoList); foreach (OneTestCase oneTestCase in this.testCaseList.oneTestCaseList) { oneTestCase.OnClick = () => { mediator.SendNotification(OrderSystemEvent.START_CIRCUIT, oneTestCase.testCaseInfo, OrderSystemEvent.START_CIRCUIT_TEST_CASE_START_ONE); }; } ; }
public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { GameContainerItem cardGraveyard = body as GameContainerItem; graveyardListOne.InitView(cardGraveyard); this.graveyardListExit.OnPointerClick = () => { //关闭墓地页面 mediator.SendNotification( UIViewSystemEvent.UI_VIEW_CURRENT, UIViewConfig.getNameStrByUIViewName(UIViewName.GraveyardListView), StringUtil.GetNTByNotificationTypeAndUIViewNameAndMaskLayer( UIViewSystemEvent.UI_VIEW_CURRENT_CLOSE_ONE_VIEW, UIViewConfig.getNameStrByUIViewName(UIViewName.GraveyardListView), "N" ) ); }; }
public override void InitViewForParameter(UIControllerListMediator mediator, object body, Dictionary <string, string> parameterMap) { this.StartCompleteGameUnityAction += () => { mediator.SendNotification(UIViewSystemEvent.UI_VIEW_CURRENT, UIViewConfig.getNameStrByUIViewName(UIViewName.StartMain), UIViewSystemEvent.UI_VIEW_CURRENT_CLOSE_ONE_VIEW); mediator.SendNotification(OrderSystemEvent.START_CIRCUIT, null, OrderSystemEvent.START_CIRCUIT_START); }; this.StartTestMapUnityAction += () => { mediator.SendNotification(UIViewSystemEvent.UI_VIEW_CURRENT, UIViewConfig.getNameStrByUIViewName(UIViewName.StartMain), UIViewSystemEvent.UI_VIEW_CURRENT_CLOSE_ONE_VIEW); mediator.SendNotification(OrderSystemEvent.START_CIRCUIT, null, OrderSystemEvent.START_CIRCUIT_TEST_MAP); }; this.StartTestCaseUnityAction += () => { mediator.SendNotification(UIViewSystemEvent.UI_VIEW_CURRENT, UIViewConfig.getNameStrByUIViewName(UIViewName.StartMain), UIViewSystemEvent.UI_VIEW_CURRENT_CLOSE_ONE_VIEW); mediator.SendNotification(OrderSystemEvent.START_CIRCUIT, null, OrderSystemEvent.START_CIRCUIT_TEST_CASE); }; }