Files
Bubberstation/code/modules/modular_computers/file_system/programs/notepad.dm
SkyratBot dee97c0eb6 [MIRROR] Makes notepad available for laptops and consoles [MDB IGNORE] (#24820)
* Makes notepad available for laptops and consoles (#79475)

## About The Pull Request
Makes it so that notepad can be used on consoles and laptops

## Why It's Good For The Game
Now everyone have more places to write important information. Also
someone who doesn't have PDA (ghost-role for example) will be able to
use laptop's notepad.

## Proof of Testing
<details>
<summary>Screenshots/Videos</summary>

![laptop-notepad](https://github.com/Skyrat-SS13/Skyrat-tg/assets/106491639/49ba817a-ab4f-4df0-8df6-9ce98cc10cbb)

</details>

## Changelog

🆑
qol: Make notepad available for everyone, who has only laptop or
console.
/🆑

* Makes notepad available for laptops and consoles

---------

Co-authored-by: NeonNik2245 <106491639+NeonNik2245@users.noreply.github.com>
2023-11-06 11:48:28 -05:00

34 lines
1.0 KiB
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_ALL
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!\n\
To help with navigation, we have provided the following definitions:\n\
Fore - Toward front of ship\n\
Aft - Toward back of ship\n\
Port - Left side of ship\n\
Starboard - Right side of ship\n\
Quarter - Either sides of Aft\n\
Bow - Either sides of Fore"
/datum/computer_file/program/notepad/ui_act(action, list/params, datum/tgui/ui)
switch(action)
if("UpdateNote")
written_note = params["newnote"]
return TRUE
/datum/computer_file/program/notepad/ui_data(mob/user)
var/list/data = list()
data["note"] = written_note
return data