Log inGet started
Package

ComicShowcase.component

Newest version

README.md

ComicShowcase

The in-game controls of the Comic Book Looks showcase. Put it on one synced entity (the main scene's Showcase); it needs no sibling components, only the installed styleKit, comicBlocks, toneScreens and comicPanels packages.

On every machine it draws its own comic-styled panel (top right; collapsed to a tab on a phone-sized screen) and listens for keys. Every action is one synced change to the scene's StyleStack, so whatever any player picks is the page every player sees:

  • 1-9 / the eight look buttons: ComicPanels.applyLook(id) for goldenAgeFourColour, comicNoir, sundayStrip, dailyStrip, modernFlatColour, oneColourSpot, popArtDots, misprintedPulp (the panel page stays). 0 / Plain: removes the look but keeps the panel page. The current look is highlighted and named in the "Now printing" caption.
  • P / Panels: toggles the page, on as defaultLayout (tallSplit) with several cameras (the main view plus two per-player views).
  • L layout, B border style, G gutter colour, C one camera / several: cycle the page's settings (turning the page on first when it is off).
  • H / Hide: collapse or expand this player's panel (local only).

When the scene starts with an empty stack, the machine that owns the Showcase entity applies defaultLook once (panels stay off). Each machine also paints its own player's avatar body with the heroSuit material (showcase.heroSuit, a saturated red) so the hero reads under every look; set heroSuit = "" to leave avatars alone.

public:report() answers what this machine's panel shows.