setup

open override fun setup(polyUI: PolyUI): Boolean

give this a PolyUI reference.

You can also use this method to do some calculations (such as text widths) that are not dependent on other sizes, or operations that require access to PolyUI things, like PolyUI.settings or PolyUI.translator

this method is called once, and only once.

See also

TextInput.initialized