diff --git a/lib/data/sc_localization_data.dart b/lib/data/sc_localization_data.dart index f6f92e5..b59d13b 100644 --- a/lib/data/sc_localization_data.dart +++ b/lib/data/sc_localization_data.dart @@ -1,8 +1,9 @@ -/// enable : false -/// versionName : "3.21.0(PU)_CN_V0" -/// updateAt : "2023-10-5: 10:15:00" +/// enable : true +/// versionName : "3.20.0(PU)_CN_V1" +/// updateAt : "2023-10-11: 11:10:00" /// info : "简体中文汉化" -/// channel : "PTU" +/// channel : "PU" +/// node : "已知问题:\n3D中文字体不显示(临时解决方法:将交互恢复成英文,但由于数量繁多,难免有遗漏,汉化组正在尽力找)\n·角色抬头显示器(HUD)的中文字体不显示\n·某些元素字体过小\n·搜索栏无法输入中文\n·部位文本未翻译(在翻了,在翻了!)" class ScLocalizationData { ScLocalizationData({ @@ -10,7 +11,8 @@ class ScLocalizationData { this.versionName, this.updateAt, this.info, - this.channel,}); + this.channel, + this.node,}); ScLocalizationData.fromJson(dynamic json) { enable = json['enable']; @@ -18,12 +20,14 @@ class ScLocalizationData { updateAt = json['updateAt']; info = json['info']; channel = json['channel']; + node = json['node']; } bool? enable; String? versionName; String? updateAt; String? info; String? channel; + String? node; Map toJson() { final map = {}; @@ -32,6 +36,7 @@ class ScLocalizationData { map['updateAt'] = updateAt; map['info'] = info; map['channel'] = channel; + map['node'] = node; return map; } diff --git a/lib/ui/home/localization/localization_ui.dart b/lib/ui/home/localization/localization_ui.dart index d82b2f6..73680f9 100644 --- a/lib/ui/home/localization/localization_ui.dart +++ b/lib/ui/home/localization/localization_ui.dart @@ -6,6 +6,7 @@ import 'localization_ui_model.dart'; class LocalizationUI extends BaseUI { @override Widget? buildBody(BuildContext context, LocalizationUIModel model) { + final curInstallInfo = model.apiLocalizationData?[model.patchStatus?.value]; return ContentDialog( title: makeTitle(context, model), constraints: BoxConstraints( @@ -77,6 +78,42 @@ class LocalizationUI extends BaseUI { )), ], ), + AnimatedSize( + duration: const Duration(milliseconds: 130), + child: (curInstallInfo != null && + curInstallInfo.node != null && + curInstallInfo.node!.isNotEmpty) + ? Padding( + padding: const EdgeInsets.only(top: 12), + child: Container( + width: MediaQuery.of(context).size.width, + decoration: BoxDecoration( + color: FluentTheme.of(context).cardColor, + borderRadius: BorderRadius.circular(7)), + child: Padding( + padding: const EdgeInsets.all(12), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + "备注:", + style: TextStyle(fontSize: 18), + ), + const SizedBox(height: 6), + Text( + "${curInstallInfo.node}", + style: TextStyle( + color: Colors.white.withOpacity(.8)), + ) + ], + ), + ), + ), + ) + : SizedBox( + width: MediaQuery.of(context).size.width, + ), + ), ], ]), makeListContainer("社区汉化", [ @@ -175,7 +212,6 @@ class LocalizationUI extends BaseUI { ], ), ), - const SizedBox(height: 12), ], ), ), diff --git a/lib/ui/home/performance/performance_ui.dart b/lib/ui/home/performance/performance_ui.dart index 84c141c..266ff68 100644 --- a/lib/ui/home/performance/performance_ui.dart +++ b/lib/ui/home/performance/performance_ui.dart @@ -24,7 +24,7 @@ class PerformanceUI extends BaseUI { InfoBar( title: const Text("图形优化提示"), content: const Text( - "该功能对优化显卡瓶颈有很大帮助,但对 CPU 瓶颈可能起返效果,如果您显卡性能强劲,可以尝试使用更好的画质来获得更高的显卡利用率。", + "该功能对优化显卡瓶颈有很大帮助,但对 CPU 瓶颈可能起反效果,如果您显卡性能强劲,可以尝试使用更好的画质来获得更高的显卡利用率。", ), onClose: () => model.closeTip(), ),