mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* Tablet UI update (mostly fixes) (#74844) ## About The Pull Request Tablet UIs are now changed when opening/closing an app, instead of constantly checking for a UI change every ui update. Program UI acts no longer call parent, as it was unnecessary, Computers are the ones that should be calling it. Fixes a ton of problems with static data not updating, such as in Messenger, ID management, Siliconnect, and Chat client Chat Client's Admin mode also works again, which was broken when accesses to check was turned into a list. Turns a few lists in Robocontrol into static ones when we aren't changing anything, and makes it actually scan your ID's access. Fixes budget ordering being unable to show the cart/call the cargo shuttle. ## Why It's Good For The Game While I can't seem to find a single issue report on any of the above, these are still problems that should be fixed. ## Changelog 🆑 fix: SiliConnect can download borg logs again. fix: The RD can once again enable Admin mode on Wirecarp fix: NT IRN can once again see the shopping cart and call the cargo shuttle. fix: Chat Client, ID Management and Messenger should now update their UIs properly. code: PDAs will hopefully not lag as much when clicking on buttons (such as in ID management). /🆑 * Tablet UI update (mostly fixes) --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
27 lines
783 B
Plaintext
27 lines
783 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)
|
|
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
|