Skip to content

Commit

Permalink
fix: R&D rework: convert rest of tgui_alert choices to lists (#26721)
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorstar-orion authored Sep 8, 2024
1 parent 22a9fb8 commit da4e519
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/game/mecha/mech_fabricator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
8 changes: 4 additions & 4 deletions code/modules/research/backup_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit da4e519

Please sign in to comment.