mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-22 21:03:42 +08:00
增加汉化提示
This commit is contained in:
parent
d7c70d7efc
commit
4b2461bd9a
@ -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<String, dynamic> toJson() {
|
||||
final map = <String, dynamic>{};
|
||||
@ -32,6 +36,7 @@ class ScLocalizationData {
|
||||
map['updateAt'] = updateAt;
|
||||
map['info'] = info;
|
||||
map['channel'] = channel;
|
||||
map['node'] = node;
|
||||
return map;
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@ import 'localization_ui_model.dart';
|
||||
class LocalizationUI extends BaseUI<LocalizationUIModel> {
|
||||
@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<LocalizationUIModel> {
|
||||
)),
|
||||
],
|
||||
),
|
||||
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<LocalizationUIModel> {
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -24,7 +24,7 @@ class PerformanceUI extends BaseUI<PerformanceUIModel> {
|
||||
InfoBar(
|
||||
title: const Text("图形优化提示"),
|
||||
content: const Text(
|
||||
"该功能对优化显卡瓶颈有很大帮助,但对 CPU 瓶颈可能起返效果,如果您显卡性能强劲,可以尝试使用更好的画质来获得更高的显卡利用率。",
|
||||
"该功能对优化显卡瓶颈有很大帮助,但对 CPU 瓶颈可能起反效果,如果您显卡性能强劲,可以尝试使用更好的画质来获得更高的显卡利用率。",
|
||||
),
|
||||
onClose: () => model.closeTip(),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user