坑位高度调整,光圈、头饰比例调整

This commit is contained in:
chenguilong
2022-05-12 21:48:17 +08:00
parent a38ca04da9
commit fbf7d54515
8 changed files with 23 additions and 19 deletions

View File

@@ -27,11 +27,11 @@
#define ownerTopMargin 35
// 58 + 5
#define ownerWidth (58 + 5) * kScreenScale
// 12 6
#define ownerHeight (ownerWidth + 6 + 12)
// 12 10
#define ownerHeight (ownerWidth + 10 + 12)
// 8 50 + 5
#define mcWidth (50 + 5) * kScreenScale
#define mcHeight (mcWidth + 6 + 12 + 5+16)
#define mcHeight (mcWidth + 10 + 12 + 5+16)
// padding 12
#define paddingH 12 * kScreenScale
// 33

View File

@@ -17,11 +17,11 @@
UIKIT_EXTERN NSString * const kRoomRoomLittleGameMiniStageNotificationKey;
// 8 55 + 5
#define mcWidth (45 + 5) * kScreenScale
#define mcHeight (mcWidth + 10 + 12 + 5+16)
// padding 12
#define paddingH 12 * kScreenScale
// 9 40 + 5
#define mcWidth (40 + 5) * kScreenScale
#define mcHeight (mcWidth + 6 + 12 + 5+16)
// padding 16
#define paddingH 16 * kScreenScale
#define marginV1 4
@interface LittleGameScrollStageView ()

View File

@@ -18,10 +18,10 @@
UIKIT_EXTERN NSString * const kRoomRoomLittleGameMiniStageNotificationKey;
// 8 55 + 5
#define mcWidth (45 + 5) * kScreenScale
#define mcHeight (mcWidth + 10 + 12 + 5+16)
#define mcWidth (40 + 5) * kScreenScale
#define mcHeight (mcWidth + 6 + 12 + 5+16)
// padding 12
#define paddingH 12 * kScreenScale
#define paddingH 16 * kScreenScale
#define marginV1 4
@interface LittleGameStageView ()

View File

@@ -70,6 +70,10 @@
self.nickLabel.hidden = NO;
self.postionLabel.hidden = NO;
}
[self.stackView mas_updateConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.avatarImageView.mas_bottom).offset(6);
}];
}
- (void)configUser:(UserInfoModel *)userInfo {

View File

@@ -123,7 +123,7 @@
[self.headWearImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.center.mas_equalTo(self.avatarImageView);
make.width.mas_equalTo(self.avatarImageView.mas_width).multipliedBy(1.2);
make.width.mas_equalTo(self.avatarImageView.mas_width).multipliedBy(1.31);
make.height.mas_equalTo(self.headWearImageView.mas_width);
}];
@@ -142,7 +142,7 @@
[self.stackView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self);
make.top.mas_equalTo(self.avatarImageView.mas_bottom).offset(6);
make.top.mas_equalTo(self.avatarImageView.mas_bottom).offset(10);
}];
[self.postionLabel mas_makeConstraints:^(MASConstraintMaker *make) {

View File

@@ -73,7 +73,7 @@
animation2.beginTime = CACurrentMediaTime();
animation2.duration = animtionDura;
animation2.fromValue = [NSValue valueWithCGSize:CGSizeMake(1.f, 1.f)];
animation2.toValue = [NSValue valueWithCGSize:CGSizeMake(1.3f, 1.3f)];
animation2.toValue = [NSValue valueWithCGSize:CGSizeMake(1.4f, 1.4f)];
POPBasicAnimation *animation3 = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerOpacity];
animation3.duration = 0.6 * animtionDura;

View File

@@ -15,11 +15,11 @@
#define ownerTopMargin 35
// 58 + 5
#define ownerWidth (58 + 5)
// 12 6
#define ownerHeight (ownerWidth + 6 + 12)
// 12 10
#define ownerHeight (ownerWidth + 10 + 12)
// 8 55 + 5
#define mcWidth (55 + 5)
#define mcHeight (mcWidth + 6 + 12 + 5+16)
#define mcHeight (mcWidth + 10 + 12 + 5+16)
// padding 20
#define paddingH 20
// 33

View File

@@ -247,12 +247,12 @@
[self.headWearImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.center.mas_equalTo(self.avatarImageView);
make.width.mas_equalTo(self.avatarImageView.mas_width).multipliedBy(1.2);
make.width.mas_equalTo(self.avatarImageView.mas_width).multipliedBy(1.31);
make.height.mas_equalTo(self.headWearImageView.mas_width);
}];
[self.nobleIconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(self.avatarImageView.mas_right).offset(5);
make.left.mas_equalTo(self.headWearImageView.mas_right).offset(5);
make.top.mas_equalTo(self.avatarImageView);
make.height.mas_equalTo(20);
make.width.mas_equalTo(0);