mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 05:21:27 +00:00
Converts PDA functions and applications over to modular tablets and devices, namely the messaging function. HREF data code is quite honestly clunky and difficult to work with, as I've definitely experienced whilst working on this. By moving from this system over the easier to read (and frankly, easier to add to) TGUI system, you get cleaner looking and more user friendly UIs and a greater degree of standardization amongst other UIs. Co-authored-by: Seth Scherer <supernovaa41@gmx.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
/datum/computer_file/program/newscaster
|
|
filename = "newscasterapp"
|
|
filedesc = "Newscaster"
|
|
required_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)
|
|
var/list/data = get_header_data()
|
|
data += newscaster_ui.ui_data(user)
|
|
return data
|
|
|
|
/datum/computer_file/program/newscaster/ui_static_data(mob/user)
|
|
var/list/data = newscaster_ui.ui_static_data(user)
|
|
return data
|
|
|
|
/datum/computer_file/program/newscaster/ui_act(action, params, datum/tgui/ui)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
return newscaster_ui.ui_act(action, params, ui)
|