diff --git a/code/game/mecha/mecha_topic.dm b/code/game/mecha/mecha_topic.dm index 36269a11303..c4367056e03 100644 --- a/code/game/mecha/mecha_topic.dm +++ b/code/game/mecha/mecha_topic.dm @@ -172,12 +172,17 @@

Following keycodes are present in this system:

"} for(var/a in operation_req_access) output += "[get_access_desc(a)] - Delete
" + + output += "
Delete All

" + output += "

Following keycodes were detected on portable device:

" for(var/a in id_card.access) if(a in operation_req_access) continue - var/a_name = get_access_desc(a) - if(!a_name) continue //there's some strange access without a name - output += "[a_name] - Add
" + if(!get_access_desc(a)) + continue //there's some strange access without a name + output += "[get_access_desc(a)] - Add
" + + output += "
Add All

" output += "
Finish (Warning! The ID upload panel will be locked. It can be unlocked only through Exosuit Interface.)" output += "" user << browse(output, "window=exosuit_add_access") @@ -339,11 +344,27 @@ operation_req_access += afilter.getNum("add_req_access") output_access_dialog(afilter.getObj("id_card"),afilter.getMob("user")) return + if(href_list["add_all_req_access"] && add_req_access && afilter.getObj("id_card")) + if(!in_range(src, usr)) + return + var/obj/item/card/id/mycard = afilter.getObj("id_card") + var/list/myaccess = mycard.access + for(var/a in myaccess) + if(get_access_desc(a)) + operation_req_access += a + output_access_dialog(afilter.getObj("id_card"),afilter.getMob("user")) + return if(href_list["del_req_access"] && add_req_access && afilter.getObj("id_card")) if(!in_range(src, usr)) return operation_req_access -= afilter.getNum("del_req_access") output_access_dialog(afilter.getObj("id_card"),afilter.getMob("user")) return + if(href_list["del_all_req_access"] && add_req_access && afilter.getObj("id_card")) + if(!in_range(src, usr)) + return + operation_req_access = list() + output_access_dialog(afilter.getObj("id_card"),afilter.getMob("user")) + return if(href_list["finish_req_access"]) if(!in_range(src, usr)) return add_req_access = 0