poster 
The graffiti editor on a poster: a freehand session whose canvas takes paint only on the poster's own pixels, as the hair and markings editors keep paint to the body, with the poster and its graffiti beneath the canvas. The piece goes on the poster rather than in the map's graffiti, one tile wide, and resumes nowhere: an unsaved piece is kept as a plain draft.
Vars | |
| painted | Whether the poster shows the piece's paint, as the last composite left it. |
|---|---|
| poster | The poster painted. |
Procs | |
| New | Opens a freehand session on a poster. |
| editor_act | A poster takes one tile, so the width never changes. |
| end_surface | Ends the session on the poster: a kept piece stays there (leave_surface()), and none resumes there. |
| leave_surface | Leaves the piece over the poster as the session ends, composited one last time, as on a wall: with paint left, the can is charged once, the poster is marked as the painter's work and the painter given the graffiti achievement. A piece that paints nothing leaves the poster as it was. |
| place_art | Shows the piece over the poster's graffiti. |
| poster_gone | Lets go of the poster as it is deleted, as ripping or rolling it up does: the session ends at its next check. |
| surface_problem | Returns why the poster can't take the session's paint any more. |
| tile_background | Returns the poster as it shows beneath the session's piece, its graffiti over it, which the window draws under the canvas. |
| ui_data | Also says the paint lasts the round at most, on one tile. |
Var Details
painted 
Whether the poster shows the piece's paint, as the last composite left it.
poster 
The poster painted.
Proc Details
New
Opens a freehand session on a poster.
Arguments:
- preferences: The owner's preferences, or null.
- piece: The canonical piece to open, or null for a blank one.
- piece_id: The library piece it is, or null.
- can: The spray can it was opened from.
- surface: The poster's tile.
- poster: The poster.
editor_act
A poster takes one tile, so the width never changes.
end_surface
Ends the session on the poster: a kept piece stays there (leave_surface()), and none resumes there.
Arguments:
- user: The painter.
- piece: The piece as it ends, or null when nothing is painted.
- keep: Whether the piece is kept.
Returns:
- null: A poster's piece resumes nowhere.
leave_surface
Leaves the piece over the poster as the session ends, composited one last time, as on a wall: with paint left, the can is charged once, the poster is marked as the painter's work and the painter given the graffiti achievement. A piece that paints nothing leaves the poster as it was.
Arguments:
- user: The painter.
- piece: The piece as it ends, or null when nothing is painted.
Returns:
- list: Empty: no placement holds a poster's piece.
place_art
Shows the piece over the poster's graffiti.
poster_gone
Lets go of the poster as it is deleted, as ripping or rolling it up does: the session ends at its next check.
surface_problem
Returns why the poster can't take the session's paint any more.
Returns:
- text: Why the session ends, to tell the painter.
- null: It still takes it.
tile_background
Returns the poster as it shows beneath the session's piece, its graffiti over it, which the window draws under the canvas.
Arguments:
- tile: The poster's tile.
- packed: Unused: a poster's graffiti has no placements.
Returns:
- list: The art.
- null: The poster is gone.
ui_data
Also says the paint lasts the round at most, on one tile.