mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
[MIRROR] some alert cleanup (#10049)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1f8809f4b1
commit
0b46ac1a38
@@ -1645,7 +1645,7 @@
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/sign/flag/attack_hand(mob/user)
|
||||
if(alert("Do you want to rip \the [src] from its place?","You think...","Yes","No") == "Yes")
|
||||
if(tgui_alert(user, "Do you want to rip \the [src] from its place?","You think...",list("Yes","No")) == "Yes")
|
||||
if(!Adjacent(user)) //Cannot bring up dialogue and walk away
|
||||
return FALSE
|
||||
visible_message(span_warning("\The [user] rips \the [src] in a single, decisive motion!" ))
|
||||
|
||||
@@ -378,7 +378,7 @@
|
||||
if (href_list["drainbattery"])
|
||||
if(inserted_battery)
|
||||
if(inserted_battery.battery_effect && inserted_battery.stored_charge > 0)
|
||||
if(alert("This action will dump all charge, safety gear is recommended before proceeding","Warning","Continue","Cancel"))
|
||||
if(tgui_alert(usr, "This action will dump all charge, safety gear is recommended before proceeding","Warning",list("Continue","Cancel")) == "Continue")
|
||||
if(!inserted_battery.battery_effect.activated)
|
||||
inserted_battery.battery_effect.ToggleActivate(1)
|
||||
last_process = world.time
|
||||
|
||||
Reference in New Issue
Block a user