更新 XPRoomLittleGameContainerView.m,新增西班牙语、俄语和乌兹别克语支持。调整 XPEffectPanelViewController.m 中 UISwitch 的颜色设置,使用 UIColorFromRGB 替代系统蓝色。修复 MSRoomGameWebVC.m 中的语言逻辑,确保多语言支持的准确性和一致性。

This commit is contained in:
edwinQQQ
2025-09-15 18:35:29 +08:00
parent 644639dd9a
commit c8c9985db8
3 changed files with 9 additions and 7 deletions

View File

@@ -133,7 +133,14 @@
language = @"zh-TW";
} else if (isMSPT()) {
language = @"pt-BR";
}else if (isMSES()) {
language = @"es-ES";
} else if (isMSRU()) {
language = @"ru-RU";
} else if (isMSUZ()) {
language = @"uz-UZ";
}
self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:language fsmMG:self rootView:self];
} else {
/// ,

View File

@@ -133,7 +133,7 @@
[switchView addSubview:titleLabel];
UISwitch *switchViewControl = [[UISwitch alloc] init];
switchViewControl.onTintColor = [UIColor systemBlueColor];
switchViewControl.onTintColor = UIColorFromRGB(0xff8c03);
[switchView addSubview:switchViewControl];
// - 使 Masonry

View File

@@ -341,13 +341,8 @@ NSString * const kJPClose = @"newTppClose";
} else if (isMSPT()) {
lang = @"pt-BR";
} else if (isMSES()) {
lang = @"pt-BR";
} else if (isMSRU()) {
lang = @"pt-BR";
} else if (isMSUZ()) {
lang = @"pt-BR";
lang = @"es-ES";
}
// TODO:
url = [url stringByAppendingFormat:@"%@lang=%@", mark, lang];
return url;
}