Files
Bubberstation/code/modules/modular_computers/file_system/programs/newscasterapp.dm
SkyratBot a5818dd539 [MIRROR] Renames vars on pdas and removes ntnet_relays glob [MDB IGNORE] (#24960)
* Renames vars on pdas and removes ntnet_relays glob (#79595)

## About The Pull Request

- replaces the ntnet_relays global list with ``get_machines_by_type``
- renames ``transfer_access`` var on PDA to ``download_access`` &
``required_access`` to ``run_access`` to better describe what they do,
because on more than one ocassion I've confused myself with the two
terms and ended up doing something unintentional (see:
https://github.com/tgstation/tgstation/pull/74269)

## Why It's Good For The Game

Kills a useless global list and makes pda code a little less confusing.

## Changelog

Nothing player-facing.

* Renames vars on pdas and removes ntnet_relays glob

---------

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
2023-11-13 06:13:28 -05:00

32 lines
1.0 KiB
Plaintext

/datum/computer_file/program/newscaster
filename = "newscasterapp"
filedesc = "Newscaster"
download_access = list(ACCESS_LIBRARY)
category = PROGRAM_CATEGORY_CREW
program_icon_state = "bountyboard"
extended_desc = "This program allows any user to access the Newscaster network from anywhere."
size = 2
requires_ntnet = TRUE
available_on_ntnet = TRUE
tgui_id = "NtosNewscaster"
program_icon = "newspaper"
///The UI we use for the newscaster
var/obj/machinery/newscaster/newscaster_ui
/datum/computer_file/program/newscaster/New()
newscaster_ui = new()
return ..()
/datum/computer_file/program/newscaster/Destroy()
QDEL_NULL(newscaster_ui)
return ..()
/datum/computer_file/program/newscaster/ui_data(mob/user)
return newscaster_ui.ui_data(user)
/datum/computer_file/program/newscaster/ui_static_data(mob/user)
return newscaster_ui.ui_static_data(user)
/datum/computer_file/program/newscaster/ui_act(action, params, datum/tgui/ui, datum/ui_state/state)
return newscaster_ui.ui_act(action, params, ui, state)