ComicControls.component
README.md
ComicControls
Drop-in controls for a comic world: keys and on-screen buttons that cycle the look, the panel layout, the border and whole page presets, and turn the panels on and off. Add it to any entity in a scene:
local e = entity.spawn("ComicControls")
e.component.add("comicPanels.ComicControls", {})
| Key | Button | Does |
|---|---|---|
] / [ | Look | Next / previous comicBlocks look (keeps the panel page) |
P | Panels | Panels on (ComicPanels.on(), the default page) or off |
L | Layout | Next layout |
B | Border | Next border style |
K | Page | Next page preset (ComicPanels.PAGE_ORDER) |
Fields: looks (comma-separated look ids to cycle; empty cycles every installed comicBlocks look), keys and buttons (switch either off). Every press is one synced change, so every player sees the page any player picks; each machine draws its own buttons at the bottom left, after the look, so they always read. Its source is short and is meant to be copied into your own HUD when you want your own buttons.