displays.module
README.md
displays (productionKit)
What floats above a working building, drawn crisp in screen space by a UiPanel in projected mode on a small internal, temporary entity kept at the building's position plus a height. Four styles fed the same view: ring (a round dial filling as the cycle runs, the product's icon in the middle, its rate under it, coloured by status), badge (a pill with the icon, the town's stock "34/150" and a level chip, tinted by status), float (nothing until a cycle finishes, then "+5" with the icon rising and fading; several stack) and minimal (a thin bar and a status dot), plus none. A starved, full, paused or idle building says what is wrong ("Needs 2 Wood"). D.attach(building, { style, height, maxDistance }) returns a handle; D.update(h, view) is cheap to call 5-10 times a second (the tree is only rebuilt when something visible changed, progress rounded to 1/60); D.pop(h, amounts) marks a finished cycle; D.setStyle, D.setHeight, D.detach, D.detachAll. Every word a display shows ("Needs 2 Wood", "3 queued") is read from locales/en/productionkit_ui.json in the player's language, and a display redraws when the language changes. Called by productionKit's building host on every peer.