Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 47b50fcd-5…

hui

The hangout's interface kit: one look for every screen, and the shared pieces each object draws through instead of registering screens of its own.

by◐Deata·posted 3d ago
What it does

hui

The hangout's interface kit: one look for every screen, and the shared pieces each object draws through instead of registering screens of its own.

  • Look: warm frosted glass panels, cream ink, an amber accent for the hangout and a phosphor green for anything a console shows. Headings in Bricolage Grotesque, text in Arimo, keys in JetBrains Mono on raised keycaps, small retro kickers in Press Start 2P.
  • Hui.prompt(owner, key, verb, object?) / Hui.unprompt(owner): the one interaction prompt on screen. The most recent offer wins; withdrawing it brings back the one under it, so prompts never stack or stick.
  • Hui.controls(owner, title, items) / Hui.uncontrols(owner): the controls bar for whatever the player is doing (holding the Game Boy, a controller, seated). items = { { keys = { "Z" }, label = "A" }, ... }.
  • Hui.toast(kicker, title, body?): a card that drops in at the top and leaves by itself.
  • Building blocks for screens: Hui.glass, Hui.text, Hui.keycap, Hui.keys, Hui.kicker, Hui.bar, Hui.button, Hui.T (tokens).

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

focusRing(style: any, radius: number?) → any

Copy the focus ring into a style table (returns it).

argtypedescription
styleany
radiusnumber?

screen( ) → void

The canvas the hangout's screens lay out on, in logical points (follows a phone's size and turn).

barReserve( ) → number

Height the controls bar takes at the bottom of the screen (it wraps to two rows on a narrow one): a panel keeps its buttons above it.

text(text: string, style: any?, wrap: boolean?) → any

argtypedescription
textstring
styleany?
wrapboolean?

kicker(text: string, colour: string?) → any

argtypedescription
textstring
colourstring?

device( ) → string

onDevice(fn: (string) → void

Call `fn(device)` whenever the player switches between keyboard, pad and touch.

argtypedescription
fn(string

padFamily( ) → string

padLabel(button: string) → string

argtypedescription
buttonstring

keyName(code: string) → string

argtypedescription
codestring

keycap(key: string, size: number?) → any

One key as a raised keycap.

argtypedescription
keystring
sizenumber?

svgNode(svg: string, w: number, h: number) → any

argtypedescription
svgstring
wnumber
hnumber

faceButton(button: string, h: number) → any

argtypedescription
buttonstring
hnumber

pill(text: string, h: number, trigger: boolean?) → any

argtypedescription
textstring
hnumber
triggerboolean?

dpad(dir: string?, h: number) → any

argtypedescription
dirstring?
hnumber

a(name: string, d: string) → string

argtypedescription
namestring
dstring

stick(side: string, h: number, click: boolean?) → any

argtypedescription
sidestring
hnumber
clickboolean?

mouse(part: string?, h: number) → any

argtypedescription
partstring?
hnumber

fill(p: string) → string

argtypedescription
pstring

padGlyph(button: string, h: number) → any

argtypedescription
buttonstring
hnumber

padGlyph(spec: string, size: number?) → any

One pad button by its canonical name: "south", "left_shoulder", "dpad_up", "start", "stick:left".

argtypedescription
specstring
sizenumber?

kbmGlyph(spec: string, size: number?) → any

One keyboard/mouse input: a key code ("KeyE", "Space"), "mouse:left", "mouse:wheel", "mouse", "wasd", "arrows".

argtypedescription
specstring
sizenumber?

specsOf(b: any, out: { string }, pad: boolean) → void

a binding entry (what an .inputBinding's kbm / gamepad list holds) as glyph specs

argtypedescription
bany
out{ string }
padboolean

binding(path: string) → any

argtypedescription
pathstring

specs(item: any, device: string?) → void

The glyph specs an item shows on `device`: from its `bind` (an .inputBinding path or alias, or a list of them) unless `kbm` / `pad` spell them out.

argtypedescription
itemany
devicestring?

glyphs(item: any, size: number?, device: string?) → any

The glyph row for one item on the current device (nil on touch or when nothing is bound).

argtypedescription
itemany
sizenumber?
devicestring?

keys(keys: { string }, size: number?) → any

legacy: keycaps for literal keys

argtypedescription
keys{ string }
sizenumber?

glass(children: { any }, style: any?, props: any?) → any

argtypedescription
children{ any }
styleany?
propsany?

bar(frac: number, width: number, colour: string?) → any

argtypedescription
fracnumber
widthnumber
colourstring?

ring(frac: number, size: number, text: string, colour: string?) → any

A ring filled to `frac` around `text` (the level ring).

argtypedescription
fracnumber
sizenumber
textstring
colourstring?

button(id: string, text: string, callback: string, on: boolean?, style: any?) → any

argtypedescription
idstring
textstring
callbackstring
onboolean?
styleany?

enter(dy: number, delay: number?) → any

argtypedescription
dynumber
delaynumber?

promptItem(key: string) → any

argtypedescription
keystring

renderPrompt(force: boolean?) → void

argtypedescription
forceboolean?

prompt(owner: string, key: string, verb: string, object: string?) → void

Offer the prompt: `key` is a control (alias such as "interact", or an .inputBinding path).

argtypedescription
ownerstring
keystring
verbstring
objectstring?

promptSide(side: string) → void

Where the prompt stands along the bottom: "center" (default) or "left", so a panel on the right (the controls overlay on a narrow screen) never covers it.

argtypedescription
sidestring

unprompt(owner: string) → void

argtypedescription
ownerstring

topBar( ) → Bar

currentControls( ) → void

The items the bar shows right now: the top context's, plus what others added to it.

isGameButton(item: any) → boolean

Whether a controls item is a button of the game being played (`game = true`, or a console button's name) rather than an interaction with the room.

argtypedescription
itemany

renderBar(force: boolean?) → void

argtypedescription
forceboolean?

controls(owner: string, title: string, items: { any }, priority: number?) → void

Push (or replace) the controls bar for a context. `items` = `{ { label, bind } | { label, kbm, pad } }`. `priority` (default 0) puts a modal overlay's bar (menu, shelf: 10) over the world's contexts.

argtypedescription
ownerstring
titlestring
items{ any }
prioritynumber?

setBarFolded(on: boolean) → void

Fold the world's controls bar down to its title and the Controls key (true), or show it in full.

argtypedescription
onboolean

barFolded( ) → boolean return S

uncontrols(owner: string) → void

argtypedescription
ownerstring

extend(context: string, owner: string, items: { any }?) → void

Add `items` from `owner` to the `context` bar while that context is on top (nil removes them).

argtypedescription
contextstring
ownerstring
items{ any }?

toast(kicker: string, title: string, body: string?, colour: string?) → void

argtypedescription
kickerstring
titlestring
bodystring?
colourstring?

hideNameLabels( ) → void

restoreNameLabels( ) → void

panel(owner: string, on: boolean) → void

Say that a full panel `owner` opened (`on`) or closed: while any is open, other players' name labels are hidden on this peer (checked again each second, so a player who joins meanwhile is hidden too).

argtypedescription
ownerstring
onboolean

deviceChanged( ) → void

⌬ Types
Item = { label: string, bind: (string | { string })?, kbm: { string }?, pad: { string }?, keys: { string }? }

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.