The library creates a custom panel
object which can be implemented in any mod.
Have a read at the DOCS to understand how it works; it also contains an example file.
Constructs:
new({params})
: creates a new panelshow()
: makes the panel appearhide()
: makes the panel disappear (but it's still assigned to the player)remove()
: deletes itupdate(panel_params, txt_elems, img_elems)
: updates only the mentioned parameters- (and more)
Functions:
panel_lib.get_panel(player_name)
: returns the panel associated with a playerpanel_lib.has_panel(player_name, panel_name)
: returns true if the player has the specified panel