mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 17:41:05 +00:00
* Removes recharger tablet parts Removes 'advanced' tablet subtypes that we used before PDAs were added, in some jobs. Replaces Roboticist's advanced tablet mail with a laptop Moves the notepad's note var from the tablet, to the note app Moves modular computer's defines into their own file Machine computers now directly use power from the machine they're in, while the rest uses power cells. Silicon tablets don't use power at all. Co-authored-by: san7890 <the@san7890.com> Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
31 lines
826 B
Plaintext
31 lines
826 B
Plaintext
/datum/computer_file/program/notepad
|
|
filename = "notepad"
|
|
filedesc = "Notepad"
|
|
category = PROGRAM_CATEGORY_MISC
|
|
program_icon_state = "generic"
|
|
extended_desc = "Jot down your work-safe thoughts and what not."
|
|
size = 2
|
|
tgui_id = "NtosNotepad"
|
|
program_icon = "book"
|
|
usage_flags = PROGRAM_TABLET
|
|
|
|
var/written_note = "Congratulations on your station upgrading to the new NtOS and Thinktronic based collaboration effort, \
|
|
bringing you the best in electronics and software since 2467!"
|
|
|
|
/datum/computer_file/program/notepad/ui_act(action, list/params, datum/tgui/ui)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
|
|
switch(action)
|
|
if("UpdateNote")
|
|
written_note = params["newnote"]
|
|
return UI_UPDATE
|
|
|
|
/datum/computer_file/program/notepad/ui_data(mob/user)
|
|
var/list/data = get_header_data()
|
|
|
|
data["note"] = written_note
|
|
|
|
return data
|