心愿礼物面板的部分UI

This commit is contained in:
fengshuo
2022-10-19 19:33:26 +08:00
parent d5af9b7e47
commit 9fdf1d7a07
44 changed files with 1735 additions and 113 deletions

View File

@@ -77,6 +77,7 @@
#import "XPRoomHalfMessageView.h"
#import "XPAcrossRoomPKCountDownView.h"
#import "XPNewUserRoomGiftView.h"
#import "XPWishGiftViewController.h"
///PK
#import "XPAnchorFansTeamEntranceView.h"
#import "XPAnchorFansTeamViewController.h"
@@ -135,6 +136,9 @@
///3s
@property (nonatomic, strong) dispatch_source_t userGiftTimer;
///
@property (nonatomic,strong) UIView *wishGiftView;
@end
@implementation XPRoomFunctionContainerView
@@ -233,6 +237,8 @@
[self addSubview:self.topicStackView];
[self.topicStackView addArrangedSubview:self.topicLabel];
[self.topicStackView addArrangedSubview:self.editButton];
[self addSubview:self.wishGiftView];
}
- (void)initSubViewConstraints {
@@ -248,6 +254,12 @@
make.height.mas_equalTo(15);
make.top.mas_equalTo(50 + 5 + 6 + 12 + 3 + kNavigationHeight);
}];
[self.wishGiftView mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(100, 40));
make.right.mas_equalTo(self);
make.top.mas_equalTo(self).offset(kNavigationHeight + 50);
}];
}
- (void)showLittleGameMiniView:(RoomType)type micCount:(NSInteger)micCount {
@@ -1635,6 +1647,14 @@
}];
}
#pragma mark -
- (void)tapWishGift {
NSString * roomUid = [NSString stringWithFormat:@"%ld", self.delegate.getRoomInfo.uid];
XPWishGiftViewController * vc = [[XPWishGiftViewController alloc] initWithRoomUid:roomUid];
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
[self.delegate.getCurrentNav presentViewController:vc animated:YES completion:nil];
}
#pragma mark - Getters And Setters
- (XPRoomRankEntranceView *)contributeEnterView {
if (!_contributeEnterView) {
@@ -1797,4 +1817,14 @@
return _acrossPKCountView;
}
- (UIView *)wishGiftView {
if (!_wishGiftView) {
_wishGiftView = [[UIView alloc] init];
_wishGiftView.backgroundColor = [UIColor clearColor];
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapWishGift)];
[_wishGiftView addGestureRecognizer:tap];
}
return _wishGiftView;
}
@end