mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Fixes some issues with TGUI Alerts, and Text Input (#24282)
* Well... maybe that's not better way * PDA and all_channels encryptionkey * Alert fixes * Bad style
This commit is contained in:
@@ -279,7 +279,7 @@
|
||||
return
|
||||
used = TRUE // Set this BEFORE the popup to prevent people using the injector more than once.
|
||||
var/choice = tgui_alert(user, "The injector is still unused. Do you wish to use it?", "Fireproofing injector", list("Yes", "No"))
|
||||
if(choice == "No")
|
||||
if(choice != "Yes")
|
||||
to_chat(user, "<span class='notice'>You decide against using [src].</span>")
|
||||
used = FALSE
|
||||
return
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
for(var/obj/O in src)
|
||||
if(O.density)
|
||||
var/response = tgui_alert(usr, "This crate has been packed with bluespace compression, an item inside won't fit back inside. Are you sure you want to open it?", "Bluespace Compression Warning", list("Yes", "No"))
|
||||
if(response == "No" || !Adjacent(usr))
|
||||
if(response != "Yes" || !Adjacent(usr))
|
||||
return FALSE
|
||||
break
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
/obj/structure/respawner/attack_ghost(mob/dead/observer/user)
|
||||
if(check_rights(R_EVENT))
|
||||
var/outfit_pick = tgui_alert(user, "Do you want to pick an outfit or respawn?", "Pick an Outfit?", list("Pick outfit", "Respawn", "Cancel"))
|
||||
if(outfit_pick == "Cancel")
|
||||
if(!outfit_pick || outfit_pick == "Cancel")
|
||||
return
|
||||
if(outfit_pick == "Pick outfit")
|
||||
var/new_outfit = user.client.robust_dress_shop()
|
||||
|
||||
Reference in New Issue
Block a user