修正英语翻译
This commit is contained in:
@@ -43,11 +43,11 @@
|
|||||||
@property (nonatomic, assign) LittleGamePlayStatus sudGameStatus;
|
@property (nonatomic, assign) LittleGamePlayStatus sudGameStatus;
|
||||||
|
|
||||||
@property(nonatomic,strong) NSMutableArray *userList;
|
@property(nonatomic,strong) NSMutableArray *userList;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation MSRoomGameView
|
@implementation MSRoomGameView
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#pragma mark - Private Method
|
#pragma mark - Private Method
|
||||||
- (void)updateSudGame {
|
- (void)updateSudGame {
|
||||||
if(self.currentmgId == self.gameModel.data.mgId.integerValue)return;
|
if(self.currentmgId == self.gameModel.data.mgId.integerValue)return;
|
||||||
@@ -78,7 +78,10 @@
|
|||||||
if(isEnterprise == NO){
|
if(isEnterprise == NO){
|
||||||
[[SudMGP getCfg]setBackgroundMode:NO];
|
[[SudMGP getCfg]setBackgroundMode:NO];
|
||||||
}
|
}
|
||||||
[SudMGP initSDK:KeyWithType(KeyType_SudGameAppID) appKey:KeyWithType(KeyType_SudGameAppKey) isTestEnv:isTestEnv listener:^(int retCode, const NSString *retMsg) {
|
[SudMGP initSDK:KeyWithType(KeyType_SudGameAppID)
|
||||||
|
appKey:KeyWithType(KeyType_SudGameAppKey)
|
||||||
|
isTestEnv:isTestEnv
|
||||||
|
listener:^(int retCode, const NSString *retMsg) {
|
||||||
if (retCode == 0) {
|
if (retCode == 0) {
|
||||||
if (!self.currentmgId) {
|
if (!self.currentmgId) {
|
||||||
return;
|
return;
|
||||||
@@ -86,7 +89,6 @@
|
|||||||
NSString * userId = [AccountInfoStorage instance].getUid;
|
NSString * userId = [AccountInfoStorage instance].getUid;
|
||||||
NSString * roomId = self.gameModel.roomId;
|
NSString * roomId = self.gameModel.roomId;
|
||||||
NSLog(@"用户ID:%@,房间ID:%@, 游戏ID:%lld, code:%@", userId, roomId, self.currentmgId, self.code);
|
NSLog(@"用户ID:%@,房间ID:%@, 游戏ID:%lld, code:%@", userId, roomId, self.currentmgId, self.code);
|
||||||
//
|
|
||||||
|
|
||||||
NSString *language = [NSBundle getLanguageText];
|
NSString *language = [NSBundle getLanguageText];
|
||||||
if ([language hasPrefix:@"zh"]) {
|
if ([language hasPrefix:@"zh"]) {
|
||||||
@@ -99,11 +101,6 @@
|
|||||||
language = @"en-US"; // 英文
|
language = @"en-US"; // 英文
|
||||||
}
|
}
|
||||||
self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:language fsmMG:self rootView:self];
|
self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:language fsmMG:self rootView:self];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/// 初始化失败, 可根据业务重试
|
/// 初始化失败, 可根据业务重试
|
||||||
NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg);
|
NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg);
|
||||||
@@ -142,9 +139,6 @@
|
|||||||
return [extModel model2dictionary];
|
return [extModel model2dictionary];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///下麦
|
///下麦
|
||||||
- (void)onDownMic:(NSInteger)uid {
|
- (void)onDownMic:(NSInteger)uid {
|
||||||
if (uid == [AccountInfoStorage instance].getUid.integerValue) {//自己下麦
|
if (uid == [AccountInfoStorage instance].getUid.integerValue) {//自己下麦
|
||||||
@@ -176,7 +170,6 @@
|
|||||||
NSLog(@"ISudFSMMG:onGameStarted:游戏开始");
|
NSLog(@"ISudFSMMG:onGameStarted:游戏开始");
|
||||||
[self notifySelfInState:YES seatIndex:-1];///加入房间
|
[self notifySelfInState:YES seatIndex:-1];///加入房间
|
||||||
[self handleSelfReadyEvent];///准备游戏
|
[self handleSelfReadyEvent];///准备游戏
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -603,32 +596,28 @@
|
|||||||
|
|
||||||
/// 销毁MG
|
/// 销毁MG
|
||||||
- (void)destroyMG {
|
- (void)destroyMG {
|
||||||
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
[self.fsmAPP2MG destroyMG];
|
||||||
[self.fsmAPP2MG destroyMG];
|
});
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - RoomGuestDelegate
|
#pragma mark - RoomGuestDelegate
|
||||||
- (void)onRoomEntered {
|
- (void)onRoomEntered {
|
||||||
|
|
||||||
[self updateSudGame];
|
[self updateSudGame];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)onRoomUpdate {
|
- (void)onRoomUpdate {
|
||||||
|
|
||||||
[self.fsmAPP2MG destroyMG];
|
[self.fsmAPP2MG destroyMG];
|
||||||
|
|
||||||
[self updateSudGame];
|
[self updateSudGame];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - RoomGuestDelegate
|
#pragma mark - RoomGuestDelegate
|
||||||
- (void)handleNIMCustomMessage:(NIMMessage *)message {
|
- (void)handleNIMCustomMessage:(NIMMessage *)message {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)handleNIMNotificationMessage:(NIMMessage *)message {
|
- (void)handleNIMNotificationMessage:(NIMMessage *)message {
|
||||||
|
|
||||||
NIMNotificationObject *notiMsg = (NIMNotificationObject *)message.messageObject;
|
NIMNotificationObject *notiMsg = (NIMNotificationObject *)message.messageObject;
|
||||||
NIMChatroomNotificationContent *content = (NIMChatroomNotificationContent *)notiMsg.content;
|
NIMChatroomNotificationContent *content = (NIMChatroomNotificationContent *)notiMsg.content;
|
||||||
switch (content.eventType) {
|
switch (content.eventType) {
|
||||||
@@ -659,4 +648,9 @@
|
|||||||
}
|
}
|
||||||
return _userList;
|
return _userList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)isInSudGame {
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@@ -268,7 +268,7 @@
|
|||||||
"XPMonentsMineViewController2" = "Blocked successfully";
|
"XPMonentsMineViewController2" = "Blocked successfully";
|
||||||
|
|
||||||
|
|
||||||
"XPMonentsViewController1" = "Follow";
|
"XPMonentsViewController1" = "Following";
|
||||||
"XPMonentsViewController2" = "Recommend";
|
"XPMonentsViewController2" = "Recommend";
|
||||||
"XPMonentsViewController3" = "Latest";
|
"XPMonentsViewController3" = "Latest";
|
||||||
|
|
||||||
@@ -674,12 +674,12 @@
|
|||||||
"XPDressUpShopCardViewController11" = "No nameplates temporarily";
|
"XPDressUpShopCardViewController11" = "No nameplates temporarily";
|
||||||
"XPDressUpShopCardViewController12" = "No vehicles temporarily";
|
"XPDressUpShopCardViewController12" = "No vehicles temporarily";
|
||||||
|
|
||||||
"XPMineDressUpViewController0" = "My Dress Up";
|
"XPMineDressUpViewController0" = "My Item";
|
||||||
"XPMineDressUpViewController1" = "Headwear";
|
"XPMineDressUpViewController1" = "Avatar Frame";
|
||||||
"XPMineDressUpViewController2" = "Vehicle";
|
"XPMineDressUpViewController2" = "Mount";
|
||||||
"XPMineDressUpViewController3" = "Nameplate";
|
"XPMineDressUpViewController3" = "Nameplate";
|
||||||
"XPMineDressUpViewController4" = "Information Card";
|
"XPMineDressUpViewController4" = "Profile Card";
|
||||||
"XPMineDressUpViewController5" = "Chat Bubbles";
|
"XPMineDressUpViewController5" = "Chat Bubble";
|
||||||
"XPMineDressUpViewController6" = "Cancel using headwear successfully";
|
"XPMineDressUpViewController6" = "Cancel using headwear successfully";
|
||||||
"XPMineDressUpViewController7" = "Cancel using vehicle successfully";
|
"XPMineDressUpViewController7" = "Cancel using vehicle successfully";
|
||||||
"XPMineDressUpViewController8" = "Cancel using nameplate successfully";
|
"XPMineDressUpViewController8" = "Cancel using nameplate successfully";
|
||||||
@@ -694,7 +694,7 @@
|
|||||||
"XPMineDressUpListViewController12" = "Dear user, you don't have any vehicles yet!";
|
"XPMineDressUpListViewController12" = "Dear user, you don't have any vehicles yet!";
|
||||||
|
|
||||||
"XPDressUpShopViewController0" = "My Dress Up";
|
"XPDressUpShopViewController0" = "My Dress Up";
|
||||||
"XPDressUpShopViewController1" = "Dress Up Shop";
|
"XPDressUpShopViewController1" = "Mall";
|
||||||
"XPDressUpShopViewController6" = "Chat Bubbles";
|
"XPDressUpShopViewController6" = "Chat Bubbles";
|
||||||
"XPDressUpShopViewController7" = "My Coins";
|
"XPDressUpShopViewController7" = "My Coins";
|
||||||
"XPDressUpShopViewController8" = "Recharge";
|
"XPDressUpShopViewController8" = "Recharge";
|
||||||
@@ -2210,10 +2210,6 @@
|
|||||||
"XPMonentsMineViewController2" = "Blocked successfully";
|
"XPMonentsMineViewController2" = "Blocked successfully";
|
||||||
|
|
||||||
|
|
||||||
"XPMonentsViewController1" = "Follow";
|
|
||||||
"XPMonentsViewController2" = "Recommend";
|
|
||||||
|
|
||||||
|
|
||||||
"XPMonentsRecommendHeaderView0" = "Recommended Topics";
|
"XPMonentsRecommendHeaderView0" = "Recommended Topics";
|
||||||
|
|
||||||
///XPMonentsContentView.m
|
///XPMonentsContentView.m
|
||||||
|
Reference in New Issue
Block a user