mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Modular PC downloading alerts and borg tablet sound tweak (#14214)
* modPC sound tweaks * cleanup
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
ui_header = "downloader_finished.gif"
|
||||
tgui_id = "NtosNetDownloader"
|
||||
program_icon = "download"
|
||||
alert_able = TRUE
|
||||
|
||||
var/datum/computer_file/program/downloaded_file = null
|
||||
var/hacked_download = FALSE
|
||||
@@ -90,6 +91,12 @@
|
||||
if(!computer || !hard_drive || !hard_drive.store_file(downloaded_file))
|
||||
// The download failed
|
||||
downloaderror = "I/O ERROR - Unable to save file. Check whether you have enough free space on your hard drive and whether your hard drive is properly connected. If the issue persists contact your system administrator for assistance."
|
||||
computer.alert_call(src, "Aborted download of file [downloaded_file.filename].[downloaded_file.filetype].")
|
||||
else
|
||||
computer.alert_call(src, "Completed download of file [downloaded_file.filename].[downloaded_file.filetype].")
|
||||
|
||||
if(computer.active_program != src)
|
||||
alert_pending = TRUE
|
||||
downloaded_file = null
|
||||
download_completion = 0
|
||||
ui_header = "downloader_finished.gif"
|
||||
|
||||
Reference in New Issue
Block a user