feat: 增加超级封禁
This commit is contained in:
@@ -352,6 +352,7 @@ XPCandyTreeInsufficientBalanceViewDelegate>
|
||||
|
||||
[self setupForBoom];
|
||||
|
||||
[self handleGiftComboCallBack];
|
||||
#if DEBUG
|
||||
// UIButton *b = [UIButton buttonWithType:UIButtonTypeInfoLight];
|
||||
// b.frame = CGRectMake(100, 100, 100, 100);
|
||||
@@ -363,6 +364,15 @@ XPCandyTreeInsufficientBalanceViewDelegate>
|
||||
|
||||
}
|
||||
|
||||
- (void)handleGiftComboCallBack {
|
||||
@kWeakify(self);
|
||||
[[GiftComboManager sharedManager] setHandleRoomUIChanged:^(BOOL comboViewDisplay) {
|
||||
@kStrongify(self);
|
||||
self.activityContainerView.hidden = comboViewDisplay;
|
||||
self.menuContainerView.hidden = comboViewDisplay;
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)setupForBoom {
|
||||
@kWeakify(self);
|
||||
[[RoomBoomManager sharedManager] registerBoomExplosion:^(id _Nonnull sth) {
|
||||
@@ -2320,8 +2330,10 @@ XPCandyTreeInsufficientBalanceViewDelegate>
|
||||
config.cancelButtonConfig.title = YMLocalizedString(@"XPRoomSettingInputView4");
|
||||
config.confirmButtonConfig.title = YMLocalizedString(@"TTAlertConfig0");
|
||||
config.message = YMLocalizedString(@"XPRoomViewController14");
|
||||
@kWeakify(self);
|
||||
[TTPopup alertWithConfig:config confirmHandler:^{ // 知道了
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
@kStrongify(self);
|
||||
[self.presenter exitNIMRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.roomId]];
|
||||
[[RtcManager instance] exitRoom];
|
||||
[self.littleGameView handleSelfInExitEvent];
|
||||
@@ -2366,8 +2378,10 @@ XPCandyTreeInsufficientBalanceViewDelegate>
|
||||
config.cancelButtonConfig.title = YMLocalizedString(@"XPRoomViewController15");
|
||||
config.confirmButtonConfig.title = YMLocalizedString(@"XPRoomViewController16");
|
||||
config.message = YMLocalizedString(@"XPRoomViewController17");
|
||||
@kWeakify(self);
|
||||
[TTPopup alertWithConfig:config confirmHandler:^{ // 知道了
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
@kStrongify(self);
|
||||
[[XPRoomMiniManager shareManager] configRoomInfo:self.roomInfo];
|
||||
[[XPRoomMiniManager shareManager] configUserInfo:self.userInfo];
|
||||
[[XPRoomMiniManager shareManager] configCurrentMusic:self.functionView.getCurrentMusic isPlaying:self.functionView.isPlaying];
|
||||
|
Reference in New Issue
Block a user