魔法屋礼物合成房间飘屏
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#import "RoomPKInfoModel.h"
|
||||
#import "CandyTreeResultModel.h"
|
||||
#import "XPGiftBigPrizeModel.h"
|
||||
#import "XPGiftCompoundModel.h"
|
||||
|
||||
#import "NetImageView.h"
|
||||
|
||||
@@ -108,7 +109,9 @@
|
||||
return [self createRoomPKAttribute:attachment];
|
||||
} else if (first == CustomMessageType_LuckyBag) {///幸运礼物
|
||||
return [self createRoomLuckyBigPrizeAttribute:attachment];
|
||||
}
|
||||
} else if(first == CustomMessageType_Gift_Compound) {///礼物合成
|
||||
return [self createRoomGiftCompoundAttribute:attachment];
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
@@ -264,6 +267,18 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
#pragma mark - 礼物合成
|
||||
- (NSAttributedString *)createRoomGiftCompoundAttribute:(AttachmentModel *)attachment {
|
||||
XPGiftCompoundModel *info = [XPGiftCompoundModel modelWithDictionary:attachment.data];
|
||||
NSMutableAttributedString * attribute = [[NSMutableAttributedString alloc] init];
|
||||
[attribute appendAttributedString:[self createTextAttribute:@"恭喜" color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:info.nick color:[ThemeColor messageNickColor] font:kRoomMessageDefalutFont]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:info.msg color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:info.giftName color:[ThemeColor messageNickColor] font:kRoomMessageDefalutFont]];
|
||||
[self attributeAddHihtLight:attribute uid:info.uid.integerValue];
|
||||
return attribute;
|
||||
}
|
||||
|
||||
#pragma mark - 房间内幸运礼物 大价值
|
||||
- (NSAttributedString *)createRoomLuckyBigPrizeAttribute:(AttachmentModel *)attachment {
|
||||
XPGiftBigPrizeModel * info= [XPGiftBigPrizeModel modelWithDictionary:attachment.data];
|
||||
|
Reference in New Issue
Block a user