mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
/vg/ / -tg- asset_cache
Port of -tg-'s port of /vg/'s asset cache Funny thing is, this actually replaces an old version of /vg/'s asset cache we already had IT'S A PORT OF A PORT REPLACING A PORT POOOOOOOOOOOOOORTCEPTION Basically, gets rid of the 30-40 second interface lag when you first join, via *mumblemumble* MAGIC! Also moves a few nano files around.
This commit is contained in:
@@ -1177,3 +1177,18 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
log_admin("[key_name(src)] has toggled [M.key]'s [blockname] block [state]!")
|
||||
else
|
||||
alert("Invalid mob")
|
||||
|
||||
/client/proc/reload_nanoui_resources()
|
||||
set category = "Debug"
|
||||
set name = "Reload NanoUI Resources"
|
||||
set desc = "Force the client to redownload NanoUI Resources"
|
||||
|
||||
// Close open NanoUIs.
|
||||
nanomanager.close_user_uis(usr)
|
||||
|
||||
// Re-load the assets.
|
||||
var/datum/asset/assets = get_asset_datum(/datum/asset/nanoui)
|
||||
assets.register()
|
||||
|
||||
// Clear the user's cache so they get resent.
|
||||
usr.client.cache = list()
|
||||
Reference in New Issue
Block a user