Fix scrollbars not appearing on some UIs, debug icon appearing for non-devs, close handling (#10735)

* Fix scrollbars not appearing on some UIs, port VueUI close handling fix

* actually fix closing
This commit is contained in:
Wildkins
2020-12-07 00:17:13 +01:00
committed by GitHub
parent 97a5ff86d9
commit 1558cc98cd
3 changed files with 15 additions and 9 deletions
+8 -2
View File
@@ -29,6 +29,14 @@
..()
return
if(href_list["vueuiclose"])
var/datum/vueui/ui = locate(href_list["src"])
if(istype(ui))
ui.close()
else // UI is an orphan, close it directly.
src << browse(null, "window=vueui[href_list["src"]]")
return
// asset_cache
if(href_list["asset_cache_confirm_arrival"])
//to_chat(src, "ASSET JOB [href_list["asset_cache_confirm_arrival"]] ARRIVED.")
@@ -749,5 +757,3 @@
M.set_dir(get_dir(M, over_object))
gun.Fire(get_turf(over_object), mob, params, (get_dist(over_object, mob) <= 1), FALSE)
CHECK_TICK