[MIRROR] fix rd console shared view (#10067)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-04 15:41:00 -07:00
committed by GitHub
parent 62f6015d0b
commit a5aa055377

View File

@@ -312,21 +312,21 @@
switch(action)
if("search")
search = params["search"]
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("design_page")
if(params["reset"])
design_page = 0
else
design_page = max(design_page + (1 * params["reverse"]), 0)
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("builder_page")
if(params["reset"])
builder_page = 0
else
builder_page = max(builder_page + (1 * params["reverse"]), 0)
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("updt_tech") //Update the research holder with information from the technology disk.
@@ -336,7 +336,7 @@
files.AddTech2Known(t_disk.stored)
files.RefreshResearch()
griefProtection() //Update CentCom too
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("clear_tech") //Erase data on the technology disk.
@@ -361,7 +361,7 @@
busy_msg = null
files.AddDesign2Known(d_disk.blueprint)
griefProtection() //Update CentCom too
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("clear_design") //Erases data on the design disk.
@@ -450,7 +450,7 @@
use_power(linked_destroy.active_power_usage)
files.RefreshResearch()
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("lock") //Lock the console from use by anyone without tox access.
@@ -488,7 +488,7 @@
S.produce_heat()
busy_msg = null
files.RefreshResearch()
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("togglesync") //Prevents the console from being synced by other consoles. Can still send data.
@@ -583,7 +583,7 @@
spawn(10)
busy_msg = null
SyncRDevices()
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
return TRUE
if("disconnect") //The R&D console disconnects with a specific device.
@@ -597,7 +597,7 @@
if("imprinter")
linked_imprinter.linked_console = null
linked_imprinter = null
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
if("reset") //Reset the R&D console's database.
griefProtection()
@@ -608,7 +608,7 @@
files = new /datum/research(src)
spawn(20)
busy_msg = null
update_tgui_static_data(ui.user, ui)
update_static_data_for_all_viewers()
if("print") //Print research information
busy_msg = "Printing Research Information. Please Wait..."