Containers - AnnisVeryGoodCode/screentop-wiki GitHub Wiki
Use containers to define areas of the table or game components that other components will be placed on top of. Common uses of containers include boards, player hands, player mats, and zones for decks or resources.
Follow the steps above under Adding Components 🎲 to create a new container.
Here are the most common attributes to configure:
- Name
- Orientations: If this is greater than 1, players can rotate the container using the q and e keys or by right-clicking and selecting Rotate. If set to 2, the container will rotate 180°. If set to 4, the container will rotate 90°, and so on. When a container rotates, everything inside it rotates together (even if the contained items do not have the same defined orientations).
- Height & Width: Define the dimensions of the container. For example:
- A 20” by 30” game board could be 1000 x 1500, if you have decided that your components and assets will be based on a resolution of 200 pixels per inch.
- A horizontal hand for 10 playing cards (sized 125 x 175) could be 1270 x 195, if you wish to have 10 pixels of “margin” around the cards.
To control which components can be placed in containers and in what locations, see Dropzones.
To hide the objects in a container from some players, see View Policies.
To control the look of your containers, see Adding Assets & Variants 🖼️.
To add text to your containers, see Fields.