From 0e369578cc7ebdfe94049def45da5ccb450606a7 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Fri, 21 Mar 2014 23:03:06 -0500 Subject: [PATCH] VV drop down menu to resend NanoUI resource files. Some players are having issues with NanoUI not opening up or acting funny before the only fix was to have them log out, and log back in, check if that worked. If not log out, delete cache log back in, if that don't work not much can be done. Now we just skip the whole logout login thing and force the server to send the files to their client once again skipping the need for their character to take a dirtnap for a moment. --- code/datums/datumvars.dm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index c335a6f1fac..b6e157c59b8 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -259,6 +259,8 @@ client body += "" body += "" + body += "" + body += "" body += "" if(ishuman(D)) @@ -859,6 +861,25 @@ client H.verbs -= verb + else if(href_list["fix_nano"]) + if(!check_rights(R_DEBUG)) return + + var/mob/H = locate(href_list["fix_nano"]) + + if(!istype(H) || !H.client) + usr << "This can only be done on mobs with clients" + return + + + + nanomanager.send_resources(H.client) + + usr << "Resource files sent" + H << "Your NanoUI Resource files have been refreshed" + + log_admin("[key_name(usr)] resent the NanoUI resource files to [key_name(H)] ") + + else if(href_list["regenerateicons"]) if(!check_rights(0)) return