mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 05:23:44 +08:00
更新汉化Api
This commit is contained in:
parent
3d7454613f
commit
39b357d223
@ -1,9 +1,10 @@
|
|||||||
/// enable : true
|
/// enable : true
|
||||||
/// versionName : "3.20.0(PU)_CN_V1"
|
/// versionName : "3.21.1(PU)_CN_V2"
|
||||||
/// updateAt : "2023-10-11: 11:10:00"
|
/// updateAt : "2023-12-03: 14:50:00"
|
||||||
/// info : "简体中文汉化"
|
/// info : "简体中文汉化(首选)"
|
||||||
/// channel : "PU"
|
/// game_channel : "PU"
|
||||||
/// node : "已知问题:\n3D中文字体不显示(临时解决方法:将交互恢复成英文,但由于数量繁多,难免有遗漏,汉化组正在尽力找)\n·角色抬头显示器(HUD)的中文字体不显示\n·某些元素字体过小\n·搜索栏无法输入中文\n·部位文本未翻译(在翻了,在翻了!)"
|
/// note : "·因游戏暂不支持3D字体汉化,F键交互将依旧为英文。\n·角色抬头显示器(HUD)的中文字体不显示。\n·某些元素字体过小。\n·搜索栏无法输入中文。\n·部位文本未翻译(在翻了,在翻了!)"
|
||||||
|
/// upgrade_channel : "CN"
|
||||||
|
|
||||||
class ScLocalizationData {
|
class ScLocalizationData {
|
||||||
ScLocalizationData({
|
ScLocalizationData({
|
||||||
@ -11,23 +12,26 @@ class ScLocalizationData {
|
|||||||
this.versionName,
|
this.versionName,
|
||||||
this.updateAt,
|
this.updateAt,
|
||||||
this.info,
|
this.info,
|
||||||
this.channel,
|
this.gameChannel,
|
||||||
this.node,});
|
this.note,
|
||||||
|
this.upgradeChannel,});
|
||||||
|
|
||||||
ScLocalizationData.fromJson(dynamic json) {
|
ScLocalizationData.fromJson(dynamic json) {
|
||||||
enable = json['enable'];
|
enable = json['enable'];
|
||||||
versionName = json['versionName'];
|
versionName = json['versionName'];
|
||||||
updateAt = json['updateAt'];
|
updateAt = json['updateAt'];
|
||||||
info = json['info'];
|
info = json['info'];
|
||||||
channel = json['channel'];
|
gameChannel = json['game_channel'];
|
||||||
node = json['node'];
|
note = json['note'];
|
||||||
|
upgradeChannel = json['upgrade_channel'];
|
||||||
}
|
}
|
||||||
bool? enable;
|
bool? enable;
|
||||||
String? versionName;
|
String? versionName;
|
||||||
String? updateAt;
|
String? updateAt;
|
||||||
String? info;
|
String? info;
|
||||||
String? channel;
|
String? gameChannel;
|
||||||
String? node;
|
String? note;
|
||||||
|
String? upgradeChannel;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final map = <String, dynamic>{};
|
final map = <String, dynamic>{};
|
||||||
@ -35,8 +39,9 @@ class ScLocalizationData {
|
|||||||
map['versionName'] = versionName;
|
map['versionName'] = versionName;
|
||||||
map['updateAt'] = updateAt;
|
map['updateAt'] = updateAt;
|
||||||
map['info'] = info;
|
map['info'] = info;
|
||||||
map['channel'] = channel;
|
map['game_channel'] = gameChannel;
|
||||||
map['node'] = node;
|
map['note'] = note;
|
||||||
|
map['upgrade_channel'] = upgradeChannel;
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ class LocalizationUI extends BaseUI<LocalizationUIModel> {
|
|||||||
AnimatedSize(
|
AnimatedSize(
|
||||||
duration: const Duration(milliseconds: 130),
|
duration: const Duration(milliseconds: 130),
|
||||||
child: (curInstallInfo != null &&
|
child: (curInstallInfo != null &&
|
||||||
curInstallInfo.node != null &&
|
curInstallInfo.note != null &&
|
||||||
curInstallInfo.node!.isNotEmpty)
|
curInstallInfo.note!.isNotEmpty)
|
||||||
? Padding(
|
? Padding(
|
||||||
padding: const EdgeInsets.only(top: 12),
|
padding: const EdgeInsets.only(top: 12),
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -101,7 +101,7 @@ class LocalizationUI extends BaseUI<LocalizationUIModel> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 6),
|
const SizedBox(height: 6),
|
||||||
Text(
|
Text(
|
||||||
"${curInstallInfo.node}",
|
"${curInstallInfo.note}",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white.withOpacity(.8)),
|
color: Colors.white.withOpacity(.8)),
|
||||||
)
|
)
|
||||||
@ -244,7 +244,7 @@ class LocalizationUI extends BaseUI<LocalizationUIModel> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
"通道:${item.value.channel}",
|
"通道:${item.value.gameChannel}",
|
||||||
style: TextStyle(color: Colors.white.withOpacity(.6)),
|
style: TextStyle(color: Colors.white.withOpacity(.6)),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
|
@ -68,9 +68,9 @@ class LocalizationUIModel extends BaseUIModel {
|
|||||||
apiLocalizationData = {};
|
apiLocalizationData = {};
|
||||||
for (var element in l) {
|
for (var element in l) {
|
||||||
final isPTU = !scInstallPath.contains("LIVE");
|
final isPTU = !scInstallPath.contains("LIVE");
|
||||||
if (isPTU && element.channel == "PTU") {
|
if (isPTU && element.gameChannel == "PTU") {
|
||||||
apiLocalizationData![element.versionName ?? ""] = element;
|
apiLocalizationData![element.versionName ?? ""] = element;
|
||||||
} else if (!isPTU && element.channel == "PU") {
|
} else if (!isPTU && element.gameChannel == "PU") {
|
||||||
apiLocalizationData![element.versionName ?? ""] = element;
|
apiLocalizationData![element.versionName ?? ""] = element;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user