Files
Bubberstation/code/__DEFINES/paper.dm
John Willard 5509c32ced Improves some confusing aspects of the Library (#75781)
## About The Pull Request

The barcode scanner now uses balloon alerts and only has 2 modes: check
in and add to inventory. It used to have 4, 2 of which were useless.

Added a title and author to chuuni granter so it's not broken to the
Curator's console. Moves inventory ui data stuff to ui static data so we
can reference it in checkout, which now uses a dropdown list of all
books in checkout, instead of having you fill out the name of the book
yourself.

Removes sending things to a computer by scanning a book then connecting
it to a computer. Just connect it to a computer first, there's no need
for this copy and paste stuff.

Finally, lets the book bag hold posters, since the Curator prints them
and it would be nice if they can also carry them without filling a bag.

Video was taken before the balloon alert stuff so just ignore that part

https://github.com/tgstation/tgstation/assets/53777086/e78011af-fb23-4553-a92d-f3dcc8bb5601

## Why It's Good For The Game

The library is currently very confusing for new people to figure out, I
thought this might be able to help with that.
The dropdown in the UI now means it's easier to give out books in
inventory, and you can no longer just type whatever the hell you wanted.

## Changelog

🆑
qol: The Curator's barcode scanner has been simplified into 2 modes:
check-in and add to inventory.
qol: The Book bag can now hold posters.
ui: The library console can now lend books out easier with a dropdown
menu to all inventory books.
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2023-06-17 00:34:17 -07:00

19 lines
841 B
Plaintext

/// Maximimum number of characters that we allow on paper.
#define MAX_PAPER_LENGTH 5000
/// Max number of stamps that can be applied to the paper in tgui.
#define MAX_PAPER_STAMPS 30
/// Max number of stamp overlays that we'll add to a piece of paper's icon.
#define MAX_PAPER_STAMPS_OVERLAYS 4
/// Maximum length of input fields. Input fields greater than this length are clamped tgui-side. Input field text input greater than this length is rejected tgui-side, discarded + logged if it reaches DM-side.
#define MAX_PAPER_INPUT_FIELD_LENGTH MAX_NAME_LEN
/// Should not be able to write on or stamp paper.
#define MODE_READING 0
/// Should be able to write on paper.
#define MODE_WRITING 1
/// Should be able to stamp paper.
#define MODE_STAMPING 2
#define BARCODE_SCANNER_CHECKIN "check_in"
#define BARCODE_SCANNER_INVENTORY "inventory"