Implements PDA Beeping (#15616)

This commit is contained in:
Fox McCloud
2021-02-27 18:30:59 +00:00
committed by GitHub
parent b107fa16d0
commit 204ceaac9e
19 changed files with 84 additions and 29 deletions
+6 -4
View File
@@ -2,7 +2,6 @@
/datum/data/pda
var/icon = "tasks" //options comes from http://fontawesome.io/icons/
var/notify_icon = "exclamation-circle"
var/notify_silent = 0
var/hidden = 0 // program not displayed in main menu
var/category = "General" // the category to list it in on the main menu
var/obj/item/pda/pda // if this is null, and the app is running code, something's gone wrong
@@ -37,7 +36,7 @@
to_chat(L, "[bicon(pda)] [message]")
SStgui.update_user_uis(L, pda) // Update the receiving user's PDA UI so that they can see the new message
if(!notify_silent)
if(!pda.silent)
pda.play_ringtone()
if(blink && !(src in pda.notifying_programs))
@@ -67,7 +66,9 @@
if(pda.current_app)
pda.current_app.stop()
pda.current_app = src
return 1
if(!pda.silent)
playsound(pda, 'sound/machines/terminal_select.ogg', 15, TRUE)
return TRUE
/datum/data/pda/app/proc/update_ui(mob/user, list/data)
return
@@ -80,7 +81,6 @@
size = 1
category = "Utilities"
/datum/data/pda/utility/scanmode
var/base_name
category = "Scanners"
@@ -100,6 +100,8 @@
name = "Disable [base_name]"
pda.update_shortcuts()
if(!pda.silent)
playsound(pda, 'sound/machines/terminal_select.ogg', 15, TRUE)
return TRUE
/datum/data/pda/utility/scanmode/proc/scan_mob(mob/living/C, mob/living/user)