mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
priority_mode = TRUE
|
||||
cancel_pending_floors()
|
||||
update_ext_panel_icons()
|
||||
control_panel_interior.audible_message("<span class='info'>This turbolift is responding to a priority call. Please exit the lift when it stops and make way.</span>", runemessage = "BUZZ")
|
||||
control_panel_interior.audible_message(span_info("This turbolift is responding to a priority call. Please exit the lift when it stops and make way."), runemessage = "BUZZ")
|
||||
spawn(time)
|
||||
priority_mode = FALSE
|
||||
update_ext_panel_icons()
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
/obj/structure/lift/proc/pressed(var/mob/user)
|
||||
if(!istype(user, /mob/living/silicon))
|
||||
if(user.a_intent == I_HURT)
|
||||
user.visible_message("<span class='danger'>\The [user] hammers on the lift button!</span>")
|
||||
user.visible_message(span_danger("\The [user] hammers on the lift button!"))
|
||||
else
|
||||
user.visible_message("<b>\The [user]</b> presses the lift button.")
|
||||
|
||||
@@ -130,10 +130,10 @@
|
||||
return
|
||||
lift.update_fire_mode(!lift.fire_mode)
|
||||
if(lift.fire_mode)
|
||||
audible_message("<span class='danger'>Firefighter Mode Activated. Door safeties disabled. Manual control engaged.</span>", runemessage = "SCREECH")
|
||||
audible_message(span_danger("Firefighter Mode Activated. Door safeties disabled. Manual control engaged."), runemessage = "SCREECH")
|
||||
playsound(src, 'sound/machines/airalarm.ogg', 25, 0, 4, volume_channel = VOLUME_CHANNEL_ALARMS)
|
||||
else
|
||||
audible_message("<span class='warning'>Firefighter Mode Deactivated. Door safeties enabled. Automatic control engaged.</span>", runemessage = "ding")
|
||||
audible_message(span_warning("Firefighter Mode Deactivated. Door safeties enabled. Automatic control engaged."), runemessage = "ding")
|
||||
return
|
||||
. = ..()
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
/obj/structure/lift/panel/interact(var/mob/user)
|
||||
if(!..())
|
||||
return
|
||||
|
||||
|
||||
tgui_interact(user)
|
||||
|
||||
/obj/structure/lift/panel/tgui_interact(mob/user, datum/tgui/ui)
|
||||
@@ -171,7 +171,7 @@
|
||||
"name" = floor.name,
|
||||
)))
|
||||
data["floors"] = floors
|
||||
|
||||
|
||||
return data
|
||||
|
||||
/obj/structure/lift/panel/tgui_act(action, params)
|
||||
@@ -201,4 +201,4 @@
|
||||
else
|
||||
icon_state = initial(icon_state)
|
||||
|
||||
// End panel.
|
||||
// End panel.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Vore specific code for /obj/machinery/door/airlock/lift
|
||||
|
||||
/obj/machinery/door/airlock/lift/emag_act(var/uses_left, var/mob/user)
|
||||
to_chat(user, "<span class='danger'>This door is internally controlled.</span>")
|
||||
to_chat(user, span_danger("This door is internally controlled."))
|
||||
return 0 // Prevents the cryptographic sequencer from using a charge fruitlessly
|
||||
|
||||
Reference in New Issue
Block a user