Ids

The rules for screen and entry ids, what they are used for, and the derived ids that dropdowns, color pickers and list editors reserve.

Last updated

On this page

Every screen and every entry has an id. Players never see ids; tests and logs use them.

The rules#

What ids are for#

Derived ids#

Composite widgets build their parts from ordinary entries, with ids derived from their own. Keep these free on the same screen:

Widget with id x Reserves
Dropdown x.picker (picker screen), x.list, x.cancel
ColorPicker x.editor (editor screen), x.preview, x.red, x.green, x.blue, x.alpha, x.hex, x.done, x.cancel
StringListEditor x.list, x.input, x.add, x.remove
Section none: the header uses x itself

A good habit is to use dotted ids for your own related entries too, such as zoomKey and zoomKey.reset.

Next steps#