mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Fixes HTML interfaces (R&D console) not updating when buttons on their UI are pressed (#22742)
changes: - bugfix: "Fixes HTML interfaces not updating when a user hits a UI button."
This commit is contained in:
@@ -223,11 +223,17 @@
|
||||
if(M.client)
|
||||
if(SStgui.try_update_ui(M, src, ui))
|
||||
is_in_use = 1
|
||||
else
|
||||
if(M.machine == src)
|
||||
src.attack_hand(M) //Needed for legacy HTML interfaces, not yet updated to TGUI.
|
||||
|
||||
if(istype(usr, /mob/living/silicon/ai) || istype(usr, /mob/living/silicon/robot))
|
||||
if(!(usr in nearby))
|
||||
if(usr.client && usr.machine==src) // && M.machine == src is omitted because if we triggered this by using the dialog, it doesn't matter if our machine changed in between triggering it and this - the dialog is probably still supposed to refresh.
|
||||
is_in_use = 1
|
||||
ui = SStgui.try_update_ui(usr, src, ui)
|
||||
if(!ui)
|
||||
src.attack_ai(usr) //Needed for legacy HTML interfaces, not yet updated to TGUI.
|
||||
in_use = is_in_use
|
||||
|
||||
/obj/proc/updateDialog()
|
||||
|
||||
Reference in New Issue
Block a user