修改了房间内PK进度的UI
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
#import "XPAnchorFansTaskViewController.h"
|
||||
#import "XPAnchorPkPanelView.h"
|
||||
#import "XPWebViewController.h"
|
||||
#import "XPRoomPKProgressView.h"
|
||||
|
||||
@interface XPRoomFunctionContainerView ()<XPAcrpssRoomPKPanelViewDelegate, XPRoomLittleGameListViewDelegate, XPAnchorPkPanelViewDelegate, XPRoomBackMusicPlayerViewDelegate>
|
||||
///host 代理
|
||||
@@ -110,6 +111,8 @@
|
||||
@property (nonatomic,strong) UIButton *musicEnterButton;
|
||||
///播放器
|
||||
@property (nonatomic,strong) XPRoomBackMusicPlayerView *musicPlayView;
|
||||
///房间PKview
|
||||
@property (nonatomic,strong) XPRoomPKProgressView *roompkPanelView;
|
||||
@end
|
||||
|
||||
@implementation XPRoomFunctionContainerView
|
||||
@@ -280,6 +283,22 @@
|
||||
return isGamePlaying;
|
||||
}
|
||||
|
||||
- (void)configRoomPKPanelView {
|
||||
RoomInfoModel * roomInfo = self.delegate.getRoomInfo;
|
||||
if (roomInfo.roomModeType == RoomModeType_Open_PK_Mode) {
|
||||
if (!self.roompkPanelView.superview) {
|
||||
[self addSubview:self.roompkPanelView];
|
||||
[self.roompkPanelView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(self).offset(15);
|
||||
make.top.mas_equalTo(self).offset((58 + 5 + 6 + 12) + 33 + (60 + 6 + 12) * 2 + 15 * 2 + kNavigationHeight);
|
||||
}];
|
||||
}
|
||||
} else {
|
||||
if (self.roompkPanelView.superview) {
|
||||
[self.roompkPanelView removeFromSuperview];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - RoomGuestDelegate
|
||||
- (void)onRoomUpdate {
|
||||
@@ -342,6 +361,7 @@
|
||||
[self showLittleGameMiniView:roomInfo.type micCount:roomInfo.mgMicNum];
|
||||
[self configLittleGameState];
|
||||
[self configPlayMusicRoomTypeChange];
|
||||
[self configRoomPKPanelView];
|
||||
}
|
||||
|
||||
- (void)onRoomEntered {
|
||||
@@ -407,6 +427,7 @@
|
||||
[self updateRoomTopic];
|
||||
[self showLittleGameMiniView:roomInfo.type micCount:roomInfo.mgMicNum];
|
||||
[self configLittleGameState];
|
||||
[self configRoomPKPanelView];
|
||||
}
|
||||
|
||||
- (void)onRoomMiniEntered {
|
||||
@@ -1455,6 +1476,7 @@
|
||||
return _anchorPKPanelView;
|
||||
}
|
||||
|
||||
|
||||
- (XPRoomTrumpetView *)trumpetView {
|
||||
if (!_trumpetView) {
|
||||
_trumpetView = [[XPRoomTrumpetView alloc] init];
|
||||
@@ -1501,4 +1523,12 @@
|
||||
return _musicPlayView;
|
||||
}
|
||||
|
||||
- (XPRoomPKProgressView *)roompkPanelView {
|
||||
if (!_roompkPanelView) {
|
||||
_roompkPanelView = [[XPRoomPKProgressView alloc] init];
|
||||
}
|
||||
return _roompkPanelView;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user