Add panel:get_info()
This commit is contained in:
parent
c02d7ba31a
commit
4503417438
3
DOCS.md
3
DOCS.md
@ -39,6 +39,9 @@ Install it as any other mod `¯\_(ツ)_/¯`
|
||||
## 2.1. Functions
|
||||
|
||||
* `new({params})`: creates a new panel
|
||||
* `get_info()`: returns a table containing the following fields:
|
||||
* `bg`: (table) a copy of the HUD of the background (with MT values such as `hud_elem_type`, `position`, `scale` etc.)
|
||||
* `title`: (table) same as `bg` but for the title HUD
|
||||
* `show()`: makes the panel appear
|
||||
* `hide()`: makes the panel disappear (but it's still assigned to the player)
|
||||
* `is_visible()`: whether the panel is currently displayed
|
||||
|
Loading…
x
Reference in New Issue
Block a user