From 4ffb421bb79d6b26cf9f152e62e2f46cb325a18a Mon Sep 17 00:00:00 2001 From: MrStonedOne Date: Tue, 24 Nov 2015 23:31:44 -0800 Subject: [PATCH] Adds client skin and topic for asset cache. --- code/modules/client/client procs.dm | 9 ++++++++- interface/skin.dmf | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index deab198401a..58da89bbbbc 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -22,7 +22,11 @@ /client/Topic(href, href_list, hsrc) if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null return - + if(href_list["asset_cache_confirm_arrival"]) + src << "ASSET JOB [href_list["asset_cache_confirm_arrival"]] ARRIVED." + var/job = text2num(href_list["asset_cache_confirm_arrival"]) + completed_asset_jobs += job + return //Admin PM if(href_list["priv_msg"]) if (href_list["ahelp_reply"]) @@ -206,6 +210,9 @@ var/next_external_rsc = 0 if (config && config.autoconvert_notes) convert_notes_sql(ckey) + if(!winexists(src, "asset_cache_browser")) // The client is using a custom skin, tell them. + src << "Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you." + //This is down here because of the browse() calls in tooltip/New() if(!tooltips) diff --git a/interface/skin.dmf b/interface/skin.dmf index f07ba438a5e..1254992780c 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -1606,6 +1606,32 @@ window "mainwindow" macro = "macro" menu = "menu" on-close = "" + elem "asset_cache_browser" + type = BROWSER + pos = 424,208 + size = 1x1 + anchor1 = none + anchor2 = none + font-family = "" + font-size = 0 + font-style = "" + text-color = #000000 + background-color = none + is-visible = false + is-disabled = false + is-transparent = false + is-default = false + border = none + drop-zone = false + right-click = false + saved-params = "" + on-size = "" + show-history = false + show-url = false + auto-format = true + use-title = false + on-show = "" + on-hide = "" elem "hotkey_toggle" type = BUTTON pos = 560,420