UI kit

Black glass, drawn by the server.

These are the components a gamemode can put on a player's screen. The look was chosen for the NG-RP sign-in: one centered glass panel over the game world. The previews below are live HTML; in game the same pieces are drawn by the client from the server's description.

Panel with tabs and fields

UI.Panel, panel.Tabs, panel.Field, panel.Button. Try the tabs.

NG-RP

Next Generation Roleplay

Error and loading states

panel.Error marks the field and says what to do next. panel.Busy(true) disables input while the server checks.

That password doesn't match. 4 tries left.

Checking your account…

Buttons

ButtonKind.Primary, Secondary, Danger, Ghost.

Toasts

player.Toast(text, kind). They stack in the top right and fade after a few seconds.

Welcome to NG-RP, Mila_Navarro.
Account created. You're signed in.
Server restarts in 5 minutes.
Couldn't reach the server. Retrying…