Space Station 13 - Modules - TypesVar Details - Proc Details

Newscaster

For all of the crew's news need. Includes reading, submitting and printing stories.

Includes a security variant which can be used to issue wanted notices, censor channels and stories. Allows full access when aghosting.

Vars

alertWhether the newscaster has new stories or not.
is_printingWhether the newscaster is currently printing a newspaper or not.
is_securityWhether the newscaster can be used to make wanted issues or not.
is_silentWhether the unit is silent or not.
jobblacklistStatic list of jobs that shouldn't be advertised if a position is available.
last_viewsStatic, lazy list containing a user's last view time per channel.
paper_remainingThe amount of newspapers the newscaster can print.
photoThe currently attached photo.
scanned_userThe name of the mob currently using the newscaster.
screenThe current screen index in the UI.
temp_noticeThe current temporary notice.
unit_numberThe newcaster's index among all newscasters (GLOB.allNewscasters).
viewing_channelThe currently viewed channel.

Procs

AltClickEjects the currently loaded photo if there is one.
alert_newsMakes the newscaster say a message and change its icon state for a while.
alert_timer_finishCalled when the timer following a call to /obj/machinery/newscaster/proc/alert_news finishes.
can_scanReturns whether the machine's /obj/machinery/newscaster/var/scanned_user should update on interact.
eject_photoEjects the photo currently held by the machine if there is one.
get_message_dataReturns a /datum/feed_message in a format that can be used as TGUI data.
get_scanned_userTries to obtain a mob's name and security access based on their ID.
print_newspaperTries to print a newspaper with all of the content so far.
print_newspaper_finishCalled when the timer following a call to /obj/machinery/newscaster/proc/print_newspaper finishes.
set_tempSets a temporary message to display to the user
ui_act_modalCalled in ui_act() to process modal actions

Var Details

alert

Whether the newscaster has new stories or not.

is_printing

Whether the newscaster is currently printing a newspaper or not.

is_security

Whether the newscaster can be used to make wanted issues or not.

is_silent

Whether the unit is silent or not.

jobblacklist

Static list of jobs that shouldn't be advertised if a position is available.

last_views

Static, lazy list containing a user's last view time per channel.

paper_remaining

The amount of newspapers the newscaster can print.

photo

The currently attached photo.

scanned_user

The name of the mob currently using the newscaster.

screen

The current screen index in the UI.

temp_notice

The current temporary notice.

unit_number

The newcaster's index among all newscasters (GLOB.allNewscasters).

viewing_channel

The currently viewed channel.

Proc Details

AltClick

Ejects the currently loaded photo if there is one.

alert_news

Makes the newscaster say a message and change its icon state for a while.

Arguments:

alert_timer_finish

Called when the timer following a call to /obj/machinery/newscaster/proc/alert_news finishes.

can_scan

Returns whether the machine's /obj/machinery/newscaster/var/scanned_user should update on interact.

Arguments:

eject_photo

Ejects the photo currently held by the machine if there is one.

Arguments:

get_message_data

Returns a /datum/feed_message in a format that can be used as TGUI data.

Arguments:

get_scanned_user

Tries to obtain a mob's name and security access based on their ID.

Arguments:

print_newspaper

Tries to print a newspaper with all of the content so far.

print_newspaper_finish

Called when the timer following a call to /obj/machinery/newscaster/proc/print_newspaper finishes.

set_temp

Sets a temporary message to display to the user

Arguments:

ui_act_modal

Called in ui_act() to process modal actions

Arguments: