From 010777ffe82680dfb76eef67922635930d31d950 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Tue, 21 May 2024 17:28:47 -0700 Subject: [PATCH] Fix nano onclose errors --- code/game/machinery/telecomms/machine_interactions.dm | 2 +- code/game/objects/items/circuitboards/airlock.dm | 2 +- code/game/objects/items/devices/dummy_tablet.dm | 4 ++-- code/modules/client/preferences.dm | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/telecomms/machine_interactions.dm b/code/game/machinery/telecomms/machine_interactions.dm index 97c393e06556..87bfcd466766 100644 --- a/code/game/machinery/telecomms/machine_interactions.dm +++ b/code/game/machinery/telecomms/machine_interactions.dm @@ -160,7 +160,7 @@ dat += "" temp = "" show_browser(user, dat, "[src] Access", "tcommachine", "size=520x500;can_resize=0") - onclose(user, "dormitory") + onclose(user, "tcommachine") // Off-Site Relays diff --git a/code/game/objects/items/circuitboards/airlock.dm b/code/game/objects/items/circuitboards/airlock.dm index 4de97a8e20f3..cc6a8e95af0e 100644 --- a/code/game/objects/items/circuitboards/airlock.dm +++ b/code/game/objects/items/circuitboards/airlock.dm @@ -58,7 +58,7 @@ t1 += text("

Close

\n", src) show_browser(user, t1, "Access Control", "airlock_electronics") - onclose(user, "airlock") + onclose(user, "airlock_electronics") /obj/item/circuitboard/airlock/Topic(href, href_list) diff --git a/code/game/objects/items/devices/dummy_tablet.dm b/code/game/objects/items/devices/dummy_tablet.dm index 3ce5f933ab94..4996daf5366e 100644 --- a/code/game/objects/items/devices/dummy_tablet.dm +++ b/code/game/objects/items/devices/dummy_tablet.dm @@ -87,8 +87,8 @@ dat += "
\[ Reset \]" dat += "

" - show_browser(user, dat, "Professor DUMMY Control Tablet", window_options="size=400x500") - onclose(user, "communications") + show_browser(user, dat, "Professor DUMMY Control Tablet", "dummytablet", window_options="size=400x500") + onclose(user, "dummytablet") updateDialog() return diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 46d217ce25d4..78bcfcb8c0ac 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -651,7 +651,7 @@ GLOBAL_LIST_INIT(bgstate_options, list( dat += "" winshow(user, "preferencewindow", TRUE) - show_browser(user, dat, "Preferences", "preferencebrowser") + show_browser(user, dat, "Preferences", "preferencewindow") onclose(user, "preferencewindow", src) /**