mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
[MIRROR] fix rd console shared view (#10067)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
62f6015d0b
commit
a5aa055377
@@ -312,21 +312,21 @@
|
|||||||
switch(action)
|
switch(action)
|
||||||
if("search")
|
if("search")
|
||||||
search = params["search"]
|
search = params["search"]
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
if("design_page")
|
if("design_page")
|
||||||
if(params["reset"])
|
if(params["reset"])
|
||||||
design_page = 0
|
design_page = 0
|
||||||
else
|
else
|
||||||
design_page = max(design_page + (1 * params["reverse"]), 0)
|
design_page = max(design_page + (1 * params["reverse"]), 0)
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
if("builder_page")
|
if("builder_page")
|
||||||
if(params["reset"])
|
if(params["reset"])
|
||||||
builder_page = 0
|
builder_page = 0
|
||||||
else
|
else
|
||||||
builder_page = max(builder_page + (1 * params["reverse"]), 0)
|
builder_page = max(builder_page + (1 * params["reverse"]), 0)
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
if("updt_tech") //Update the research holder with information from the technology disk.
|
if("updt_tech") //Update the research holder with information from the technology disk.
|
||||||
@@ -336,7 +336,7 @@
|
|||||||
files.AddTech2Known(t_disk.stored)
|
files.AddTech2Known(t_disk.stored)
|
||||||
files.RefreshResearch()
|
files.RefreshResearch()
|
||||||
griefProtection() //Update CentCom too
|
griefProtection() //Update CentCom too
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
if("clear_tech") //Erase data on the technology disk.
|
if("clear_tech") //Erase data on the technology disk.
|
||||||
@@ -361,7 +361,7 @@
|
|||||||
busy_msg = null
|
busy_msg = null
|
||||||
files.AddDesign2Known(d_disk.blueprint)
|
files.AddDesign2Known(d_disk.blueprint)
|
||||||
griefProtection() //Update CentCom too
|
griefProtection() //Update CentCom too
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
if("clear_design") //Erases data on the design disk.
|
if("clear_design") //Erases data on the design disk.
|
||||||
@@ -450,7 +450,7 @@
|
|||||||
|
|
||||||
use_power(linked_destroy.active_power_usage)
|
use_power(linked_destroy.active_power_usage)
|
||||||
files.RefreshResearch()
|
files.RefreshResearch()
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
if("lock") //Lock the console from use by anyone without tox access.
|
if("lock") //Lock the console from use by anyone without tox access.
|
||||||
@@ -488,7 +488,7 @@
|
|||||||
S.produce_heat()
|
S.produce_heat()
|
||||||
busy_msg = null
|
busy_msg = null
|
||||||
files.RefreshResearch()
|
files.RefreshResearch()
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
if("togglesync") //Prevents the console from being synced by other consoles. Can still send data.
|
if("togglesync") //Prevents the console from being synced by other consoles. Can still send data.
|
||||||
@@ -583,7 +583,7 @@
|
|||||||
spawn(10)
|
spawn(10)
|
||||||
busy_msg = null
|
busy_msg = null
|
||||||
SyncRDevices()
|
SyncRDevices()
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
if("disconnect") //The R&D console disconnects with a specific device.
|
if("disconnect") //The R&D console disconnects with a specific device.
|
||||||
@@ -597,7 +597,7 @@
|
|||||||
if("imprinter")
|
if("imprinter")
|
||||||
linked_imprinter.linked_console = null
|
linked_imprinter.linked_console = null
|
||||||
linked_imprinter = 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.
|
if("reset") //Reset the R&D console's database.
|
||||||
griefProtection()
|
griefProtection()
|
||||||
@@ -608,7 +608,7 @@
|
|||||||
files = new /datum/research(src)
|
files = new /datum/research(src)
|
||||||
spawn(20)
|
spawn(20)
|
||||||
busy_msg = null
|
busy_msg = null
|
||||||
update_tgui_static_data(ui.user, ui)
|
update_static_data_for_all_viewers()
|
||||||
|
|
||||||
if("print") //Print research information
|
if("print") //Print research information
|
||||||
busy_msg = "Printing Research Information. Please Wait..."
|
busy_msg = "Printing Research Information. Please Wait..."
|
||||||
|
|||||||
Reference in New Issue
Block a user