poster 
The structure form of a poster. These are what get placed on maps as posters. They are also what gets created when a player places a poster on a wall. For the item form that can be spawned for players, see /obj/item/poster
Graffiti sprayed over a poster, painted as on a wall, freehand or from the can, but only on the poster's own pixels. It stays on the poster, never in the map's graffiti, so it lasts the round at most: it goes when the poster is ripped or its wall comes down, washes off, and goes along when the poster is taken down with wirecutters, to show again once it is hung.
Vars | |
| blacklisted_types | Exclude posters of these types from being added to the random pool |
|---|---|
| cutdown_type | What type should we put back in the rolled poster when we get cut down |
| graffiti | The graffiti sprayed over the poster this round, its pieces merged into one: list("art", "decoded" = graffiti_art_decode(), "key" = graffiti_art_hash(), "glow" = graffiti_art_glow_kind()), or list("art", "decoded", "rolled" = TRUE) while a rolled-up poster carries it to be hung. Null without any. |
| graffiti_base | The graffiti as it was when graffiti_painter began, which its paint goes over: list(art, decoded, key), or null. |
| graffiti_painter | The freehand session or paint job painting the poster: one at a time. |
| printable | Whether the poster should be printable from library management computer. |
Procs | |
| add_context | Adds contextual screentips |
| apply_holiday | allows for posters to become festive posters during holidays |
| check_tearability | Check to see if this poster is tearable and gives the user feedback if it is not. |
| graffiti_begin | Lets a freehand session or paint job paint over the poster, over the graffiti it shows now. |
| graffiti_end | Ends a painter's work on the poster. |
| graffiti_hang | Shows the graffiti a rolled-up poster carried on the pixels the poster shows now, which a festive poster rolled up plain may have changed. |
| graffiti_paint | Shows a painter's piece merged over the graffiti beneath it. |
| graffiti_show | Shows an art as the poster's graffiti, or takes the graffiti off. |
| on_placed_poster | Also shows the graffiti a rolled-up poster carried, now that it hangs. |
| return_to_poster_item | Re-creates the poster item from the poster structure |
| roll_and_drop | Also takes the poster's finished graffiti along in the rolled-up poster, to show again once it is hung. A piece still being painted stays behind: its painter's work there ends. |
| update_overlays | Also draws the graffiti from the icon every poster and wall showing that art shares, with its glow. |
| wash | Also washes the graffiti off, as cleaning takes it off a wall. A piece being painted goes with it, which ends its painter's work there. |
Var Details
blacklisted_types 
Exclude posters of these types from being added to the random pool
cutdown_type 
What type should we put back in the rolled poster when we get cut down
graffiti 
The graffiti sprayed over the poster this round, its pieces merged into one: list("art", "decoded" = graffiti_art_decode(), "key" = graffiti_art_hash(), "glow" = graffiti_art_glow_kind()), or list("art", "decoded", "rolled" = TRUE) while a rolled-up poster carries it to be hung. Null without any.
graffiti_base 
The graffiti as it was when graffiti_painter began, which its paint goes over: list(art, decoded, key), or null.
graffiti_painter 
The freehand session or paint job painting the poster: one at a time.
printable 
Whether the poster should be printable from library management computer.
Proc Details
add_context
Adds contextual screentips
apply_holiday
allows for posters to become festive posters during holidays
check_tearability
Check to see if this poster is tearable and gives the user feedback if it is not.
graffiti_begin
Lets a freehand session or paint job paint over the poster, over the graffiti it shows now.
Arguments:
- painter: The session or job.
graffiti_end
Ends a painter's work on the poster.
Arguments:
- painter: The session or job.
- keep: Whether its paint stays. Without it the poster shows what it did before the painter began.
graffiti_hang
Shows the graffiti a rolled-up poster carried on the pixels the poster shows now, which a festive poster rolled up plain may have changed.
graffiti_paint
Shows a painter's piece merged over the graffiti beneath it.
Arguments:
- painter: The session or job.
- art: The piece as far as it is painted, one tile wide.
- decoded: The art's graffiti_art_decode().
Returns:
- TRUE/FALSE: Whether the poster shows the piece's paint: FALSE while the piece paints nothing, or once the painter isn't the poster's, as after a wash.
graffiti_show
Shows an art as the poster's graffiti, or takes the graffiti off.
Arguments:
- art: The merged art, or null. An art that paints nothing takes the graffiti off.
- decoded: The art's graffiti_art_decode().
on_placed_poster
Also shows the graffiti a rolled-up poster carried, now that it hangs.
return_to_poster_item
Re-creates the poster item from the poster structure
roll_and_drop
Also takes the poster's finished graffiti along in the rolled-up poster, to show again once it is hung. A piece still being painted stays behind: its painter's work there ends.
Arguments:
- location: Where the rolled-up poster goes.
- user: Who took it down, whose hands it goes in.
Returns:
- /obj/item/poster: The rolled-up poster.
update_overlays
Also draws the graffiti from the icon every poster and wall showing that art shares, with its glow.
Returns:
- list: The overlays.
wash
Also washes the graffiti off, as cleaning takes it off a wall. A piece being painted goes with it, which ends its painter's work there.
Arguments:
- clean_types: The CLEAN_TYPE_ flags the poster is washed with.
Returns:
- The wash() flags.