byond - Modules - TypesVar Details - Proc Details

screen_timer

A screen object that shows the time left on a timer

Vars

maptext_stringThe actual displayed content of the maptext, use ${timer}, and it'll be replaced with the time left
maptext_style_leftLeft side of the HTML tag for maptext, style is also included
maptext_style_rightEnd tag of the HTML tag for maptext
timer_idTimer ID that we're tracking, the time left of this is displayed as maptext
timer_mobsThe list of mobs that we're attached to, and care about

Procs

apply_toAdds the object to the client.screen of all mobs in the list, and registers the needed signals
attachAdds the object to the client.screen of the mob, or removes it if add_to_screen is FALSE
de_attachSignal handler to run attach with specific args
delete_selfMainly a signal handler so we can run qdel()
remove_fromRemoves the object from the client.screen of all mobs in the list, and unregisters the needed signals, while also stopping processing if there's no more mobs in the screen timers mob list
update_maptextUpdates the maptext to show the current time left on the timer

Var Details

maptext_string

The actual displayed content of the maptext, use ${timer}, and it'll be replaced with the time left

maptext_style_left

Left side of the HTML tag for maptext, style is also included

maptext_style_right

End tag of the HTML tag for maptext

timer_id

Timer ID that we're tracking, the time left of this is displayed as maptext

timer_mobs

The list of mobs that we're attached to, and care about

Proc Details

apply_to

Adds the object to the client.screen of all mobs in the list, and registers the needed signals

attach

Adds the object to the client.screen of the mob, or removes it if add_to_screen is FALSE

de_attach

Signal handler to run attach with specific args

delete_self

Mainly a signal handler so we can run qdel()

remove_from

Removes the object from the client.screen of all mobs in the list, and unregisters the needed signals, while also stopping processing if there's no more mobs in the screen timers mob list

update_maptext

Updates the maptext to show the current time left on the timer