Log inGet started
Package

ScreensHost.component

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

README.md

ScreensHost

The Pocket Putt Islands screen host. pocketPutt.screens.start() spawns it on a local temporary entity at play start; it needs no sibling components and has no fields.

It registers and updates the HUD (pp_hud), hole toast (pp_toast), hole-in-one banner (pp_ace), title gear (pp_gear) and one overlay screen (pp_overlay: results, scorecard or friends), rebuilding a screen only when what it shows changes. It drives menusKit's title and pause (look pocketPutt), pauses the round while a menu is up, plays music and sounds through pocketPutt.audio.sound, and on pp.holeInOne fires trophyKit confetti at the cup and a juiceKit shake. Button callbacks (pp_pause, pp_card, pp_card_close, pp_friends_close, pp_settings, pp_again) land in its onCallback.