From da4e51930fa4fd2befe1db6bf3c91dbf261b4a63 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sun, 8 Sep 2024 15:03:35 -0400 Subject: [PATCH] fix: R&D rework: convert rest of tgui_alert choices to lists (#26721) --- code/game/mecha/mech_fabricator.dm | 2 +- code/modules/research/backup_console.dm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index c4dffba2612..704c21fa360 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -433,7 +433,7 @@ if("unlink") if(!network_manager_uid) return - var/choice = tgui_alert(usr, "Are you SURE you want to unlink this fabricator?\nYou wont be able to re-link without the network manager password", "Unlink","Yes","No") + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this fabricator?\nYou wont be able to re-link without the network manager password", "Unlink", list("Yes", "No")) if(choice == "Yes") unlink() diff --git a/code/modules/research/backup_console.dm b/code/modules/research/backup_console.dm index 2a3c50c8e5d..2bdb661519c 100644 --- a/code/modules/research/backup_console.dm +++ b/code/modules/research/backup_console.dm @@ -156,7 +156,7 @@ if(!T) return - var/choice = tgui_alert(usr, "Do you want to import this level to the network (Network level: [T.level] | Disk level: [inserted_disk.stored_tech_assoc[tech]])", "Data Import", "Yes", "No") + var/choice = tgui_alert(usr, "Do you want to import this level to the network (Network level: [T.level] | Disk level: [inserted_disk.stored_tech_assoc[tech]])", "Data Import", list("Yes", "No")) if(choice != "Yes") return FALSE @@ -180,7 +180,7 @@ if(!T) return - var/choice = tgui_alert(usr, "Do you want to export this tech data to the disk (Network level: [T.level] | Disk level: [inserted_disk.stored_tech_assoc[tech]])", "Data Export", "Yes", "No") + var/choice = tgui_alert(usr, "Do you want to export this tech data to the disk (Network level: [T.level] | Disk level: [inserted_disk.stored_tech_assoc[tech]])", "Data Export", list("Yes", "No")) if(choice != "Yes") return FALSE @@ -199,7 +199,7 @@ network_manager_uid = null return FALSE - var/choice = tgui_alert(usr, "Are you SURE you want to import all the data on the disk to the network?", "Data Import", "Yes", "No") + var/choice = tgui_alert(usr, "Are you SURE you want to import all the data on the disk to the network?", "Data Import", list("Yes", "No")) if(choice != "Yes") return FALSE @@ -220,7 +220,7 @@ network_manager_uid = null return FALSE - var/choice = tgui_alert(usr, "Are you SURE you want to export all the data on the network to the disk?", "Data Export", "Yes", "No") + var/choice = tgui_alert(usr, "Are you SURE you want to export all the data on the network to the disk?", "Data Export", list("Yes", "No")) if(choice != "Yes") return FALSE