Log inGet started
Package

LookSwitcher.component

README.md

LookSwitcher

The Woodblock Valley showcase's live switcher: a small panel at the top right plus keys, for every player.

  • 1-9 apply look 1-9 of the list, L / ] the next look, K / [ the previous one.
  • T cycles the time of day: dawn, day, dusk, night.
  • Y cycles the weather: clear, rain, snow.
  • H hides or shows the panel (this machine only).

Looks come from require("~ukiyoeBlocks.Woodblock").looks() and are applied with Woodblock.apply(id); until that package is installed it falls back to every whole look StyleKit.looks() lists, applied with StyleKit.applyLook(id). Both go through styleKit's synced StyleStack, so every player sees the switch. Time and weather go through alpineKit's Atmos on worldClockKit's shared clock (Atmos.setTime, Atmos.setWeather), so they are shared too, and the switcher tells the look (Woodblock.timeOfDay, Woodblock.weather) when those functions exist. The panel reads the shared state every half second, so it shows a change another player made.

Put one on a plain (non-synced) entity of the scene; it runs on every machine in play. Its controls are woodblockShowcase.switcher (an input map that suppresses nothing).