/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/paper.dm

MAX_PAPER_LENGTHMaximimum number of characters that we allow on paper.
MAX_BOOK_LENGTHMaximimum number of characters that we allow in a book, after unfolding and encoding html.
MAX_PAPER_STAMPSMax number of stamps that can be applied to the paper in tgui.
MAX_PAPER_STAMPS_OVERLAYSMax number of stamp overlays that we'll add to a piece of paper's icon.
MAX_PAPER_INPUT_FIELD_LENGTHMaximum 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.
MODE_READINGShould not be able to write on or stamp paper.
MODE_WRITINGShould be able to write on paper.
MODE_STAMPINGShould be able to stamp paper.
LIST_PAPER_COLORkey defines used when converting a paper to and fro' a data/json list. It's really important that they stay the same lest we break persistence.
UNDERLINED_HTML_TEXTUse in conjunction with advanced_html to have underlined text that, when hovered over, will let you see additional text. Would be appreciated if you avoided dotted underlined (and underlined in general) text elsewhere so players don't get confused.

Define Details

LIST_PAPER_COLOR

key defines used when converting a paper to and fro' a data/json list. It's really important that they stay the same lest we break persistence.

MAX_BOOK_LENGTH

Maximimum number of characters that we allow in a book, after unfolding and encoding html.

MAX_PAPER_INPUT_FIELD_LENGTH

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.

MAX_PAPER_LENGTH

Maximimum number of characters that we allow on paper.

MAX_PAPER_STAMPS

Max number of stamps that can be applied to the paper in tgui.

MAX_PAPER_STAMPS_OVERLAYS

Max number of stamp overlays that we'll add to a piece of paper's icon.

MODE_READING

Should not be able to write on or stamp paper.

MODE_STAMPING

Should be able to stamp paper.

MODE_WRITING

Should be able to write on paper.

UNDERLINED_HTML_TEXT

Use in conjunction with advanced_html to have underlined text that, when hovered over, will let you see additional text. Would be appreciated if you avoided dotted underlined (and underlined in general) text elsewhere so players don't get confused.