UI kit

The black-glass components a Godfather gamemode can put on a player's screen: panel, tabs, fields, buttons, errors, loading and toasts.

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. It is final; don't redesign it unless the owner asks.

The previews below are live HTML. In game, the client draws the same pieces from the server's description (see UI).

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…