mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 20:22:07 +00:00
* [MDB IGNORE] Removes tablet cartridges + reworks a ton more (#66505) - All tablets who previously had apps in a cartridge now has them built-into their tablet instead. This means it costs space for it. - Rebalances the sizes of several apps to help them fit on Command tablets (Cargo ordering costed 20!!) - Removes tablet cartridges, they've been reworked into a regular old portable disk (the same you use for toxins/borgs) - Removes Signaller (the module required to run the signaller app) from tablets (likely will remove more in the future) - Refactors the health/chem scanning app to not be as bad - Dehardcodes detomatix resistance - Ability to send PDA's to all is now tied to your access rather than a cartridge - Moves 'eject disk' button to the very top of the UI * [MDB IGNORE] Removes tablet cartridges + reworks a ton more * wew * wew * ok * Update nanotrasen_consultant.dm * Update nanotrasen_consultant.dm Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
/datum/computer_file/program/status
|
|
filename = "statusdisplay"
|
|
filedesc = "Status Display"
|
|
program_icon = "signal"
|
|
program_icon_state = "generic"
|
|
requires_ntnet = TRUE
|
|
size = 1
|
|
|
|
extended_desc = "An app used to change the message on the station status displays."
|
|
tgui_id = "NtosStatus"
|
|
|
|
usage_flags = PROGRAM_ALL
|
|
available_on_ntnet = FALSE
|
|
|
|
var/upper_text
|
|
var/lower_text
|
|
|
|
/datum/computer_file/program/status/proc/SendSignal()
|
|
var/datum/radio_frequency/frequency = SSradio.return_frequency(FREQ_STATUS_DISPLAYS)
|
|
|
|
if(!frequency)
|
|
return
|
|
|
|
var/datum/signal/status_signal = new(list("command" = "message"))
|
|
|
|
status_signal.data["msg1"] = reject_bad_text(upper_text || "", MAX_STATUS_LINE_LENGTH)
|
|
status_signal.data["msg2"] = reject_bad_text(lower_text || "", MAX_STATUS_LINE_LENGTH)
|
|
|
|
frequency.post_signal(computer, status_signal)
|
|
|
|
/datum/computer_file/program/status/proc/SetText(position, text)
|
|
switch(position)
|
|
if("upper")
|
|
upper_text = text
|
|
if("lower")
|
|
lower_text = text
|
|
|
|
/datum/computer_file/program/status/ui_act(action, list/params, datum/tgui/ui)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
|
|
switch(action)
|
|
if("stat_send")
|
|
SendSignal()
|
|
if("stat_update")
|
|
SetText(params["position"], params["text"]) // i hate the player i hate the player
|
|
|
|
/datum/computer_file/program/status/ui_data(mob/user)
|
|
var/list/data = get_header_data()
|
|
|
|
data["upper"] = upper_text
|
|
data["lower"] = lower_text
|
|
|
|
return data
|