From febb671b9677d73690ada7c85ccfc6cba0bd9d56 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Wed, 1 Nov 2023 23:38:58 +0100 Subject: [PATCH] feat: display archive download progression --- .../mod/scripts/vscripts/ui/menu_ns_moddownload.nut | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_moddownload.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_moddownload.nut index f9db424ef..767f17792 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_moddownload.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_moddownload.nut @@ -58,7 +58,8 @@ void function UpdateModDownloadDialog( RequiredModInfo mod, ModInstallState stat { switch (state.status) { case eModInstallStatus.DOWNLOADING: - Hud_SetText( header, "DOWNLOADING MOD..." ) + Hud_SetText( header, format( "DOWNLOADING MOD (%s", string(state.ratio) ) + "%)") + Hud_SetText( body, format( "Downloading %s v%s...\n(%i/%i MB)", mod.name, mod.version, floor(state.progress / MB), floor(state.total / MB) ) ) break; case eModInstallStatus.CHECKSUMING: Hud_SetText( header, "CHECKSUMING MOD..." )