Description
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 panel
show(): makes the panel appear
hide(): makes the panel disappear (but it's still assigned to the player)
remove(): deletes it
update(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 player
panel_lib.has_panel(player_name, panel_name): returns true if the player has the specified panel
Releases
2026-04-07 10:10 UTC
3.2.3
update(..): gracefully fail if sub-element doesn't exist (instead of crashing)
minetest. -> core.
2025-09-09 17:17 UTC
3.2.2
CRASHFIX: return nil instead of crashing if the player in get_panel(..) is not online
2024-09-01 23:05 UTC
3.2.1
- Avoid
hud_elem_type deprecation warnings if MT 5.9+
2024-06-29 17:24 UTC
3.2.0 - "Che stile!"
What's new
- Add
title_style to support text styling
2023-08-23 23:45 UTC
3.1.0
No release notes
All releases
Threads
New thread
Information
Provides
panel_lib
Dependencies
- Required
-
No required dependencies
Information
- Type
- Mod
- Technical Name
- panel_lib
- Languages
-
English
- License
-
AGPL-3.0-or-later
- Maintenance State
- Maintenance Only
- Added
- 2020-04-23 10:54 UTC
- Maintainers
-
Zughy
Used By