Register
Replaces the accent. See Customization.
Keeps your
position when the player chose others in their settings.label, description (shown while selected), icon, iconColor, values (side-scroll labels), defaultIndex, checked (makes a checkbox, not with values), progress, close (default true) and args. scrollIndex is nil for items without values.
Keys
ug-lib owns the keys: up, down, left, right, select and back, withsettings.menuKeys as defaults. Players MAY rebind them. They do nothing while a modal is open.
- Select on a checkbox toggles it. Select on an item with
close = falsecallsonSelectand stays open. Otherwise the menu closes afteronSelect. - One menu at a time: a new menu from any resource replaces the open one, and the old one’s
onCloseruns. SetItemchangeslabel,description,icon,iconColor,values,checkedorprogressof an item. An open menu updates in place and keeps its selection.
Example
client.lua