mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
chore: 修改游戏资源更新后的显示内容
This commit is contained in:
@@ -210,10 +210,12 @@ namespace MaaWpfGui.Models
|
||||
|
||||
if (ret1 != UpdateResult.Success && ret2 != UpdateResult.Success)
|
||||
{
|
||||
OutputDownloadProgress(LocalizationHelper.GetString("GameResourceNotModified"));
|
||||
return UpdateResult.NotModified;
|
||||
}
|
||||
|
||||
PostProcVersionChecks();
|
||||
OutputDownloadProgress(LocalizationHelper.GetString("GameResourceUpdated"));
|
||||
return UpdateResult.Success;
|
||||
}
|
||||
|
||||
@@ -244,6 +246,7 @@ namespace MaaWpfGui.Models
|
||||
}
|
||||
}
|
||||
|
||||
OutputDownloadProgress(2, "Update completed");
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -299,6 +302,7 @@ namespace MaaWpfGui.Models
|
||||
}
|
||||
}
|
||||
|
||||
OutputDownloadProgress(1, "Update completed");
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -346,8 +350,12 @@ namespace MaaWpfGui.Models
|
||||
|
||||
private static void OutputDownloadProgress(int index, int count = 0, int maxCount = 1)
|
||||
{
|
||||
OutputDownloadProgress(
|
||||
$"index {index}/2: {count}/{maxCount}({100 * count / maxCount}%)");
|
||||
OutputDownloadProgress(index, $"{count}/{maxCount}({100 * count / maxCount}%)");
|
||||
}
|
||||
|
||||
private static void OutputDownloadProgress(int index, string output)
|
||||
{
|
||||
OutputDownloadProgress($"index {index}/2: {output}");
|
||||
}
|
||||
|
||||
private static void OutputDownloadProgress(string output)
|
||||
|
||||
@@ -689,6 +689,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla
|
||||
<!-- Api -->
|
||||
<system:String x:Key="ApiUpdateSuccess">Stage data retrieval successful</system:String>
|
||||
<system:String x:Key="GameResourceUpdating">Game resources are being updated.</system:String>
|
||||
<system:String x:Key="GameResourceNotModified">Game resource updated.</system:String>
|
||||
<system:String x:Key="GameResourceUpdated">Game resource updated, please restart MAA.</system:String>
|
||||
<system:String x:Key="GameResourceFailed">Game resource update failed, please try again later.</system:String>
|
||||
<!-- !Api -->
|
||||
|
||||
@@ -689,6 +689,7 @@ Bilibili: ログイン インターフェイスに表示されるアカウント
|
||||
<!-- Api -->
|
||||
<system:String x:Key="ApiUpdateSuccess">ステージデータの取得に成功しました</system:String>
|
||||
<system:String x:Key="GameResourceUpdating">ゲームリソースが更新中です。</system:String>
|
||||
<system:String x:Key="GameResourceNotModified">ゲームリソースが更新されました。</system:String>
|
||||
<system:String x:Key="GameResourceUpdated">ゲームリソースが更新されました。MAAを再起動してください。</system:String>
|
||||
<system:String x:Key="GameResourceFailed">ゲームリソースの更新に失敗しました。後でもう一度お試しください。</system:String>
|
||||
<!-- !Api -->
|
||||
|
||||
@@ -689,6 +689,7 @@ Bilibili: 로그인 인터페이스에 표시되는 계정 이름(예: 장산)
|
||||
<!-- Api -->
|
||||
<system:String x:Key="ApiUpdateSuccess">스테이지 데이터 획득 성공</system:String>
|
||||
<system:String x:Key="GameResourceUpdating">게임 자원이 업데이트 중입니다.</system:String>
|
||||
<system:String x:Key="GameResourceNotModified">게임 리소스가 업데이트되었으니.</system:String>
|
||||
<system:String x:Key="GameResourceUpdated">게임 리소스가 업데이트되었으니 MAA를 다시 시작해주세요.</system:String>
|
||||
<system:String x:Key="GameResourceFailed">게임 자원 업데이트 실패, 나중에 다시 시도해주세요.</system:String>
|
||||
<!-- !Api -->
|
||||
|
||||
@@ -689,6 +689,7 @@
|
||||
<!-- Api -->
|
||||
<system:String x:Key="ApiUpdateSuccess">关卡数据获取成功</system:String>
|
||||
<system:String x:Key="GameResourceUpdating">游戏资源正在更新</system:String>
|
||||
<system:String x:Key="GameResourceNotModified">游戏资源已更新。</system:String>
|
||||
<system:String x:Key="GameResourceUpdated">游戏资源已更新,请重启 MAA。</system:String>
|
||||
<system:String x:Key="GameResourceFailed">游戏资源更新失败,请稍后尝试。</system:String>
|
||||
<!-- !Api -->
|
||||
|
||||
@@ -689,6 +689,7 @@
|
||||
<!-- Api -->
|
||||
<system:String x:Key="ApiUpdateSuccess">關卡數據獲取成功</system:String>
|
||||
<system:String x:Key="GameResourceUpdating">遊戲資源正在更新</system:String>
|
||||
<system:String x:Key="GameResourceNotModified">遊戲資源已更新。</system:String>
|
||||
<system:String x:Key="GameResourceUpdated">遊戲資源已更新,請重啟 MAA。</system:String>
|
||||
<system:String x:Key="GameResourceFailed">遊戲資源更新失敗,請稍後嘗試。</system:String>
|
||||
<!-- !Api -->
|
||||
|
||||
Reference in New Issue
Block a user