[MIRROR] Replace alert usage with tgui_alert (#5815)

* Replace alert usage with tgui_alert

* a

* Update observer.dm

Co-authored-by: Celotajs <81999976+celotajstg@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-05-21 00:06:09 +01:00
committed by GitHub
co-authored by Celotajs Gandalf
parent a001439964
commit ea9aed5554
146 changed files with 493 additions and 416 deletions
+1 -1
View File
@@ -119,7 +119,7 @@
to_chat(user, "<span class='danger'>Assembly part missing!</span>")
return
if(istype(a_left,a_right.type))//If they are the same type it causes issues due to window code
switch(alert("Which side would you like to use?",,"Left","Right"))
switch(tgui_alert(usr,"Which side would you like to use?",,list("Left","Right")))
if("Left")
a_left.attack_self(user)
if("Right")