mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Implements PDA Beeping (#15616)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user