From d14ae05f197c3634d21dd5a183ff06273f6758bb Mon Sep 17 00:00:00 2001 From: "baloh.matevz@gmail.com" Date: Sun, 20 May 2012 21:10:52 +0000 Subject: [PATCH] - PDA messaging reworked a bit. If you receive a message with your PDA somewhere on your person (so not in a backpack), the message will be displayed to you in the text box along with the name and rank of the sender. A reply button will be next to this to make replying easier. The PDA beep will still appear and the PDA must not be in silent mode for this to work. Screenshot: http://www.kamletos.si/PDA%20communication%203.PNG Added this to the changelog. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3628 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/devices/PDA/PDA.dm | 7 +++++-- html/changelog.html | 8 ++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/code/game/objects/devices/PDA/PDA.dm b/code/game/objects/devices/PDA/PDA.dm index 1828041986c..76eac4e2aab 100644 --- a/code/game/objects/devices/PDA/PDA.dm +++ b/code/game/objects/devices/PDA/PDA.dm @@ -528,7 +528,7 @@ return tnote += "→ To [P.owner]:
[t]
" - P.tnote += "← From [owner]:
[t]
" + P.tnote += "← From [owner] ([ownjob]):
[t]
" if (prob(15)) //Give the AI a chance of intercepting the message var/who = src.owner @@ -541,6 +541,9 @@ playsound(P.loc, 'twobeep.ogg', 50, 1) for (var/mob/O in hearers(3, P.loc)) O.show_message(text("\icon[P] *[P.ttone]*")) + if( P.loc && ishuman(P.loc) ) + var/mob/living/carbon/human/H = P.loc + H << "\icon[P] Message from [src.owner] ([ownjob]), \"[t]\" (Reply)" P.overlays = null P.overlays += image('pda.dmi', "pda-r") @@ -688,7 +691,7 @@ honkamt-- playsound(loc, 'bikehorn.ogg', 30, 1) - if(U.machine == src)//Final safety. + if(U.machine == src && href_list["skiprefresh"]!="1")//Final safety. attack_self(U)//It auto-closes the menu prior if the user is not in range and so on. else U.machine = null diff --git a/html/changelog.html b/html/changelog.html index 91f5941833e..9326c043fa8 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -47,6 +47,14 @@ should be listed in the changelog upon commit tho. Thanks. --> +
+

Sunday, May 20 2012

+

Errorage updated:

+ +
+

Saturday, May 19 2012

Doohl updated: