roblox-gui
Installation
SKILL.md
roblox gui
When to Load
Where UI goes and how it adapts: containers, scale, safe areas, mobile-first layout, console and TV, gamepad focus. Menus, shops, dialogs, HUD widgets, text entry, lists and effects: roblox-gui-components.
Quick Reference
- Mobile first: design on the smallest landscape phone with touch controls, then grow (full.md §7).
- Reserve top bar, thumbstick, jump, chat. Interactive UI in
CoreUISafeInsets; the canvas is smaller than the screen, so lay out on the ScreenGui'sAbsoluteSize. AbsolutePositionis measured from below the top bar for every ScreenGui: screen Y =AbsolutePosition.Y + GetGuiInset().Y. Compare elements in that shared space (§7.4).- Check element pairs that can show together; reflow, don't shrink.
UITextSizeConstraintignoresUIScale; scale the caps with the stage.- Rotated or
UICornercontainers don't clip; use aCanvasGroup(§5). - Gamepad: one
SelectedObjectowner,SelectionGroupbounds, deferred focus restore, layered Back (§6). - Console/TV: TV-safe area,
ViewportDisplaySize, no chat window; TV remote = D-pad, centre, back. - Contrast:
Color3:GetContrastRatio,GetContrastingColor. - Test: Device Simulator + Controller Emulator; set the device before Play.