Update NanoUI to use the asset_cache system

Also move a bunch of folders around.
This commit is contained in:
Bjorn Neergaard
2015-11-28 00:56:24 -05:00
parent 404642b25b
commit 6005d54d40
40 changed files with 50 additions and 68 deletions
+2 -2
View File
@@ -138,8 +138,7 @@ var/list/admin_verbs_debug = list(
/client/proc/cmd_display_del_log,
/client/proc/reset_latejoin_spawns,
/client/proc/create_outfits,
/client/proc/debug_huds,
/client/proc/reload_nanoui_resources
/client/proc/debug_huds
)
var/list/admin_verbs_possess = list(
/proc/possess,
@@ -278,6 +277,7 @@ var/list/admin_verbs_hideable = list(
/client/proc/cmd_admin_grantfullaccess,
/client/proc/cmd_admin_areatest,
/client/proc/readmin,
/client/proc/reload_nanoui_resources
)
if(holder)
verbs.Remove(holder.rank.adds)
+8 -3
View File
@@ -782,7 +782,12 @@ var/global/list/g_fancy_list_of_types = null
set name = "Reload NanoUI Resources"
set desc = "Force the client to redownload NanoUI Resources"
var/list/resources = SSnano.get_resources()
// Close open NanoUIs.
SSnano.close_user_uis(usr)
SSnano.send_resources(src, resources, force = 1)
// 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()
+1
View File
@@ -161,6 +161,7 @@ var/intercom_range_display_status = 0
src.verbs += /client/proc/cmd_show_at_list
src.verbs += /client/proc/cmd_show_at_list
src.verbs += /client/proc/manipulate_organs
src.verbs += /client/proc/reload_nanoui_resources
//src.verbs += /client/proc/cmd_admin_rejuvenate
feedback_add_details("admin_verb","mDV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!