General
General information that you should know
How to include pui?
There are two ways of including this library
Perfect strings or pui.string(s)
pui.string(s)
While Neverlose supports multicolored text and icons, pui makes the use of them much more convenient.
You can use perfect string almost everywhere: names of elements, groups, sidebar, and even the values of a list (though, not recommended). If you want to force perfect string, use pui.string(text)
. You don't need to use if it's already supported.
\v
Accent color. Can be overridden via setting pui.accent
\aFFFFFFFF
or \a[name]
Custom color. You can use macroses using \a[name]
\r
Shortened \aDEFAULT
\f<icon>
Icons. Example: \f<cog>
\bFFFFFF...[text]
Gradient text. Example: \bFF0000\b00FF00[Happy new year!]
. You can set alpha too.
Study these examples to learn more:
pui.find(..., *children)
pui.find(..., *children)
pui.find
is not really different from ui.find
. It just returns a pui::element(s)
or a pui::group
.
It also supports retrieving of multiple elements from a gear. See the example below:
pui.create(tab, name, align)
or pui.create(tab, groups)
pui.create(tab, name, align)
or pui.create(tab, groups)
pui.create
works just as its built-in version ui.create
. But there is also a feature that might come in handy for you.
pui.translate(text, translations)
pui.translate(text, translations)
Since Neverlose supports strings localization, pui can make this much faster and more convenient:
The name of the switch will automatically change to the language selected in Neverlose.
Last updated