Log inGet started
Package

JungleControls.component

This package holds more than this page lists. See all of its files in its world.

README.md

JungleControls

An on-screen time and weather panel for a jungle scene. Put one on any entity of a scene that has a jungleKit.JungleAtmosphere (and worldClockKit's WorldClock). Every player gets a "Time & Weather" button at the bottom left; the button, T on a keyboard or Select on a gamepad (the toggle control of jungleKit.controls) opens a panel with Dawn, Day, Dusk, Night and Clear, Rain, Downpour. Each press goes through jungleKit.Atmos.setTime / setWeather, which set worldClockKit's shared clock and weather, so the change reaches every player. In play the mouse is freed while the panel is open; on a gamepad the d-pad moves between the buttons, South presses and East closes. Styled after navUiKit's fantasy theme, the route guide's HUD.

Fields: inputMap (default jungleKit.controls), keyLabel (the key named on the button), startOpen, showInEditor, clockRunning (false holds the clock at the picked time). Methods: press(action) with "toggle", "open", "close", "time:dawn|day|dusk|night", "weather:clear|rain|downpour", and isOpen().