paper

Paper is now using markdown (like in github pull notes) for ALL rendering so we do loose a bit of functionality but we gain in easy of use of paper and getting rid of that crashing bug
Vars | |
add_info | What's been written on the paper by things other than players. Will be sanitized by the UI, and finally added to info when the user edits the paper text. |
---|---|
add_info_style | The font color, face and the signature of the above. |
contact_poison | Overlay info |
form_fields | When the sheet can be "filled out" This is an associated list |
info | What's actually written on the paper. |
stamped | Positioning for the stamp in tgui |
stamps | The (text for the) stamps on the paper. |
was_faxed_from | If this paper was sent via fax, where it came from. |
Procs | |
copy | This proc copies this sheet of paper to a new sheet. Used by carbon papers and the photocopier machine. |
fire_act | Normaly you just stamp, you don't need to read the thing |
make_plane | Paper plane folding |
setText | This proc sets the text of the paper and updates the icons. You can modify the pen_color after if need be. |
stamp | ##stamp |
ui_data | TODO: show the sheet will bloodied or crinkling? |
Var Details
add_info

What's been written on the paper by things other than players. Will be sanitized by the UI, and finally added to info when the user edits the paper text.
add_info_style

The font color, face and the signature of the above.
contact_poison

Overlay info
form_fields

When the sheet can be "filled out" This is an associated list
info

What's actually written on the paper.
stamped

Positioning for the stamp in tgui
stamps

The (text for the) stamps on the paper.
was_faxed_from

If this paper was sent via fax, where it came from.
Proc Details
copy
This proc copies this sheet of paper to a new sheet. Used by carbon papers and the photocopier machine.
fire_act
Normaly you just stamp, you don't need to read the thing
make_plane
Paper plane folding
Arguments:
- mob/living/user - who's folding
- obj/item/I - what's being folded
- obj/item/paperplane/plane_type - what it will be folded into (path)
setText
This proc sets the text of the paper and updates the icons. You can modify the pen_color after if need be.
stamp
##stamp
Proc used to place a stamp onto a piece of paper
Arguments:
- x - The x coord of the stamp
- y - The y coord of the stamp
- r - The rotation in degrees, of the stamp
- icon_state - The stamp icon to be placed on the paper
- class - (Optional) A string needed for the list of stamps on the page
ui_data
TODO: show the sheet will bloodied or crinkling?