mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-27 02:23:47 +00:00
Merge pull request #9817 from GinjaNinja32/records
'Fixes' NanoUI locking up on medical/security records
This commit is contained in:
@@ -1068,6 +1068,21 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
|||||||
new_message = 1
|
new_message = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
/obj/item/device/pda/verb/verb_reset_pda()
|
||||||
|
set category = "Object"
|
||||||
|
set name = "Reset PDA"
|
||||||
|
set src in usr
|
||||||
|
|
||||||
|
if(issilicon(usr))
|
||||||
|
return
|
||||||
|
|
||||||
|
if(can_use(usr))
|
||||||
|
mode = 0
|
||||||
|
nanomanager.update_uis(src)
|
||||||
|
usr << "<span class='notice'>You press the reset button on \the [src].</span>"
|
||||||
|
else
|
||||||
|
usr << "<span class='notice'>You cannot do this while restrained.</span>"
|
||||||
|
|
||||||
/obj/item/device/pda/verb/verb_remove_id()
|
/obj/item/device/pda/verb/verb_remove_id()
|
||||||
set category = "Object"
|
set category = "Object"
|
||||||
set name = "Remove id"
|
set name = "Remove id"
|
||||||
|
|||||||
@@ -201,6 +201,19 @@
|
|||||||
src.reset_view(C)
|
src.reset_view(C)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
/mob/living/silicon/pai/verb/reset_record_view()
|
||||||
|
set category = "pAI Commands"
|
||||||
|
set name = "Reset Records Software"
|
||||||
|
|
||||||
|
securityActive1 = null
|
||||||
|
securityActive2 = null
|
||||||
|
security_cannotfind = 0
|
||||||
|
medicalActive1 = null
|
||||||
|
medicalActive2 = null
|
||||||
|
medical_cannotfind = 0
|
||||||
|
nanomanager.update_uis(src)
|
||||||
|
usr << "<span class='notice'>You reset your record-viewing software.</span>"
|
||||||
|
|
||||||
/mob/living/silicon/pai/cancel_camera()
|
/mob/living/silicon/pai/cancel_camera()
|
||||||
set category = "pAI Commands"
|
set category = "pAI Commands"
|
||||||
set name = "Cancel Camera View"
|
set name = "Cancel Camera View"
|
||||||
@@ -400,4 +413,4 @@
|
|||||||
|
|
||||||
// No binary for pAIs.
|
// No binary for pAIs.
|
||||||
/mob/living/silicon/pai/binarycheck()
|
/mob/living/silicon/pai/binarycheck()
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user