Merge branch 'develop_piko' into feature/1.0.10/User_Detail_Page_Update#962

* develop_piko:
  更换无 alpha 的 icon 补充部分数组的安全读取
  修正首页排行榜显示判断
  修正阿语区布局
  修正 UI 效果和奇怪的进房bug
  更正 icon 和 多语言内容
This commit is contained in:
eggmanQQQ
2024-06-24 19:27:17 +08:00
18 changed files with 46 additions and 27 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "10241024.png",
"filename" : "1024*1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"

View File

@@ -5,12 +5,12 @@
"scale" : "1x"
},
{
"filename" : "gift_bag_icon@2x.png",
"filename" : "组 2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "gift_bag_icon@3x.png",
"filename" : "组 2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>MoliStar Debug</string>
<string>MoliStar</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>

View File

@@ -108,7 +108,7 @@
for (int i = 0; i < 3; i++) {
[_pickerView selectRow: [_dataArray[i] indexOfObject:_selDateArray[i]] inComponent:i animated:YES];
[_pickerView selectRow: [_dataArray[i] xpSafeObjectAtIndex:_selDateArray[i]] inComponent:i animated:YES];
}
}
}

View File

@@ -287,9 +287,8 @@
if (timeArr.count == 3) {//
self.selDateArray = [timeArr mutableCopy];
for (int i = 0; i < 3; i++) {
[self.pickerView selectRow: [self.dataSourceArray[i] indexOfObject:self.selDateArray[i]] inComponent:i animated:YES];
[self.pickerView selectRow: [self.dataSourceArray[i] xpSafeObjectAtIndex:self.selDateArray[i]] inComponent:i animated:YES];
}
}
self.ageView.text = [NSString stringWithFormat:@"%ld%@",[PLTimeUtil ageWithDateFromBirth:time*1000],YMLocalizedString(@"XPMineUserInfoDateView3")];
// self.starView.text = [NSString stringWithFormat:@"%@%@",[NSString getCalculateConstellationTextWithMonth:time*1000],YMLocalizedString(@"XPMineUserInfoDateView4")] ;

View File

@@ -113,8 +113,12 @@
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
XPNewHomeItemCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([XPNewHomeItemCell class]) forIndexPath:indexPath];
if(indexPath.row < self.itemList.count){
cell.itemModel = self.itemList[indexPath.row];
cell.rankAvatarsModelArray = self.rankAvatars;
if (indexPath.row == 0) {
cell.rankAvatarsModelArray = self.rankAvatars;
cell.itemModel = [self.itemList xpSafeObjectAtIndex:indexPath.row];
} else {
cell.itemModel = [self.itemList xpSafeObjectAtIndex:indexPath.row];
}
}
@kWeakify(self);
cell.didTapRankArea = ^{

View File

@@ -165,7 +165,7 @@
}
-(void)setItemModel:(PIHomeItemModel *)itmeModel{
_itemModel = itmeModel;
if ([itmeModel.ID isEqualToString:@"3"]) {
if (self.rankAvatarsModelArray.count > 0) {
_bgImageView.image = [UIImage imageNamed:@"home_rank_Heads_bg"];
} else {
_bgImageView.layer.cornerRadius = kGetScaleWidth(12);
@@ -178,9 +178,9 @@
}
- (void)setRankAvatarsModelArray:(NSArray<HomeRankAvatarModel *> *)rankAvatarsModelArray {
if (![self.itemModel.ID isEqualToString:@"3"]) {
return;
}
// if (![self.itemModel.ID isEqualToString:@"3"]) {
// return;
// }
if (rankAvatarsModelArray.count>0) {
_rankAvatarsModelArray = rankAvatarsModelArray;
if (!self.pi_BannerView.superview) {

View File

@@ -186,7 +186,7 @@ static CGFloat MiniHeight = 130.5;
[self.timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.mas_equalTo(pkTimeContent);
make.leading.mas_equalTo(pkMarkIcon.mas_trailing).offset(4);
make.trailing.mas_equalTo(pkTimeContent);
make.trailing.mas_equalTo(pkTimeContent).offset(-4);
}];
[self addSubview:self.helpButton];
@@ -669,12 +669,12 @@ static CGFloat MiniHeight = 130.5;
CGFloat progress = 1 - _pkPanelInfo.aPercent;
CGFloat width = CGRectGetWidth(self.progressView.bounds);
CGFloat centerX = progress * width;
[UIView animateWithDuration:0.1 animations:^{
[self.fireImageView mas_updateConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(self.progressView).offset(centerX - width / 2);
}];
[self layoutIfNeeded];
[self.fireImageView mas_updateConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(self.progressView).offset(centerX - width / 2);
}];
[self layoutIfNeeded];
} else {
self.redTitleLabel.text = @"";
self.redAvatarImageView.image = nil;

View File

@@ -1273,7 +1273,7 @@
[transparentRoundedCornersBackgroundView addSubview:self.countDownLabel];
[self.countDownLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.mas_equalTo(transparentRoundedCornersBackgroundView).offset(-0.5);
make.right.mas_equalTo(transparentRoundedCornersBackgroundView.mas_right).offset(-6);
make.right.mas_equalTo(transparentRoundedCornersBackgroundView.mas_right).offset(-12);
make.width.mas_greaterThanOrEqualTo(40);
}];
@@ -1317,7 +1317,8 @@
UIImageView *redPinImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"room_pk_panel_red_mark"]];
[self.progressArea addSubview:redPinImageView];
[redPinImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.mas_equalTo(self.progressArea);
make.top.mas_equalTo(self.progressArea);
make.left.mas_equalTo(self.progressArea);
make.size.mas_equalTo(CGSizeMake(47.5, 56.5));
}];
@@ -1332,8 +1333,8 @@
[self.redCountImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self.progressArea);
make.centerY.mas_equalTo(self.progressArea).mas_offset(4);
make.left.mas_equalTo(self.progressArea).offset(47.5);
make.right.mas_equalTo(self.progressArea).offset(-47.5);
make.left.mas_equalTo(self.progressArea).offset(46);
make.right.mas_equalTo(self.progressArea).offset(-46);
make.height.mas_equalTo(14);
}];

View File

@@ -129,14 +129,23 @@
}];
[self.guardPersonLabel mas_makeConstraints:^(MASConstraintMaker *make) {
if (isMSRTL()) {
make.right.mas_equalTo(self.contentImageView).offset(-8);
} else {
make.left.mas_equalTo(self.contentImageView).offset(8);
}
make.top.mas_equalTo(self.fightScoreLabel.mas_bottom).offset(8);
make.left.mas_equalTo(self.contentImageView).offset(8);
make.height.mas_equalTo(15);
}];
[self.guardScoreLabel mas_makeConstraints:^(MASConstraintMaker *make) {
if (isMSRTL()) {
make.right.mas_equalTo(self.contentImageView).offset(-8);
} else {
make.left.mas_equalTo(self.contentImageView).offset(8);
}
make.top.mas_equalTo(self.guardPersonLabel.mas_bottom).offset(8);
make.left.mas_equalTo(self.contentImageView).offset(8);
make.height.mas_equalTo(15);
}];

View File

@@ -1134,7 +1134,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
[self changeStageViewOnRoomUpdate];
[self.roomHeaderView onRoomEntered];
[self.activityContainerView onRoomEntered];
[self.menuContainerView onRoomEntered];
[self.backContainerView onRoomEntered];
[self.littleGameView onRoomEntered];
@@ -1145,10 +1145,16 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
[self.messageContainerView onRoomEntered];
} else {
//退
[self.stageView onRoomMiniEntered];
[self.messageContainerView onRoomMiniEntered];
[self.functionView onRoomMiniEntered];
[self.functionView onRoomEntered];
// PK 仿 2 roominfo
if (roomInfo.roomModeType == RoomModeType_Open_AcrossRoomPK_mode ||
roomInfo.roomModeType == RoomModeType_Open_PK_Mode) {
[self.functionView onRoomEntered];
}
}
[[XPRoomMiniManager shareManager] configRoomInfo:nil];
[[XPRoomMiniManager shareManager] configUserInfo:nil];

View File

@@ -1131,7 +1131,7 @@
"XPNewHomeViewController2" = "Recommendations";
"XPNewHomeViewController3" = "Recommendations";
"XPHomeMineViewController1" = "recent";
"XPHomeMineViewController1" = "Recent";
"XPHomeMineViewController2" = "%@'s room";
"XPHomeMineViewController3" = "Welcome to my room";