feat: 实现下载时提示和下载单个文件功能

This commit is contained in:
2026-01-21 11:42:57 +08:00
parent e8e891324e
commit faee13c220
4 changed files with 53 additions and 74 deletions
+8 -1
View File
@@ -17,4 +17,11 @@ func _on_cancel_button_pressed() -> void:
func _on_download_button_pressed() -> void:
pass # Replace with function body.
$Tips.text = "提示:已开始下载,请勿关闭设置页面"
var result: int = DownloadManager.download_from_origin()
if result == 1:
$Tips.text = "提示:下载失败。数据源路径错误"
$Tips.text = "提示:正在加载资源,请勿关闭设置页面"
DownloadManager.load_resource()
$Tips.text = "提示:完成加载"