diff --git a/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m b/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m index 082aa427..e23155bf 100644 --- a/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m +++ b/YuMi/Modules/YMRoom/View/MenuContainerView/MSRoomMenuGameVC.m @@ -259,7 +259,9 @@ [self sailTapRecognizer]; }else if([model.code isEqualToString:@"BAISHUN"]){ [self clickGameVC:model]; - }else if([model.code isEqualToString:@"SEIZE_TREASURE"]){ + } else if ([model.code isEqualToString:@"LEADERCC"]) { + [self clickGameVC:model]; + } else if([model.code isEqualToString:@"SEIZE_TREASURE"]){ if ([self.hostDelegate isKindOfClass:[XPRoomViewController class]]){ XPRoomViewController *vc = (XPRoomViewController *)self.hostDelegate; XPTreasureFairyViewController * fairyVC = [[XPTreasureFairyViewController alloc] initWithdelegate:self.hostDelegate]; @@ -318,6 +320,24 @@ } } +//-(void)clickLeaderccGameVC:(ActivityInfoModel *)model{ +// if ([self.hostDelegate isKindOfClass:[XPRoomViewController class]]){ +// MSRoomGameWebVC *vc = [[MSRoomGameWebVC alloc]initWithDelegate:self.hostDelegate gameModel:model]; +// vc.view.frame = CGRectMake(0, 0, KScreenWidth, KScreenHeight); +// XPRoomViewController *roomVC = (XPRoomViewController *)self.hostDelegate; +// [roomVC addChildViewController:vc]; +// XPRoomAnimationView *animationView; +// for (id obj in self.hostDelegate.getSuperView.subviews) { +// if ([obj isKindOfClass:[XPRoomAnimationView class]]){ +// animationView = obj; +// break; +// } +// } +// [self.hostDelegate.getSuperView addSubview:vc.view]; +// vc.view.tag = 913; +// } +//} + - (void)lookLoveTapRecognizer { if ([self.hostDelegate isKindOfClass:[XPRoomViewController class]]){ XPCandyTreeViewController * candyTreeVC = [[XPCandyTreeViewController alloc] initWithDelegate:self.hostDelegate];