Photography Update

This commit is contained in:
kevinz000
2018-07-20 15:22:00 -07:00
parent 141edb25e8
commit 2a6e4fce59
49 changed files with 1455 additions and 811 deletions
+8 -8
View File
@@ -72,7 +72,7 @@ GLOBAL_LIST_EMPTY(PDAs)
var/obj/item/paicard/pai = null // A slot for a personal AI device
var/icon/photo //Scanned photo
var/datum/picture/picture //Scanned photo
var/list/contained_item = list(/obj/item/pen, /obj/item/toy/crayon, /obj/item/lipstick, /obj/item/flashlight/pen, /obj/item/clothing/mask/cigarette)
var/obj/item/inserted_item //Used for pen, crayon, and lipstick insertion or removal. Same as above.
@@ -636,8 +636,8 @@ GLOBAL_LIST_EMPTY(PDAs)
"message" = message,
"targets" = string_targets
))
if (photo)
signal.data["photo"] = photo
if (picture)
signal.data["photo"] = picture
signal.send_to_receivers()
// If it didn't reach, note that fact
@@ -657,7 +657,7 @@ GLOBAL_LIST_EMPTY(PDAs)
log_talk(user, "[key_name(user)] (PDA: [initial(name)]) sent \"[message]\" to [target_text]", LOGPDA)
to_chat(user, "<span class='info'>Message sent to [target_text]: \"[message]\"</span>")
// Reset the photo
photo = null
picture = null
last_text = world.time
if (everyone)
last_everyone = world.time
@@ -811,7 +811,7 @@ GLOBAL_LIST_EMPTY(PDAs)
update_icon()
else if(istype(C, /obj/item/photo))
var/obj/item/photo/P = C
photo = P.img
picture = P.picture
to_chat(user, "<span class='notice'>You scan \the [C].</span>")
else
return ..()
@@ -925,11 +925,11 @@ GLOBAL_LIST_EMPTY(PDAs)
var/selected = plist[c]
if(aicamera.aipictures.len>0)
if(aicamera.stored.len)
var/add_photo = input(user,"Do you want to attach a photo?","Photo","No") as null|anything in list("Yes","No")
if(add_photo=="Yes")
var/datum/picture/Pic = aicamera.selectpicture(aicamera)
aiPDA.photo = Pic.fields["img"]
var/datum/picture/Pic = aicamera.selectpicture(user)
aiPDA.picture = Pic
if(incapacitated())
return