|
1 | 1 | ---GUI API documentation |
2 | | ----GUI core hooks, functions, messages, properties and constants for |
3 | | ----creation and manipulation of GUI nodes. The "gui" namespace is |
4 | | ----accessible only from gui scripts. |
| 2 | +---GUI API documentation |
5 | 3 | ---@class gui |
6 | 4 | gui = {} |
7 | 5 | ---This is a callback-function, which is called by the engine when a gui component is finalized (destroyed). It can |
@@ -327,7 +325,7 @@ function gui.get_height() end |
327 | 325 | ---@return hash the id of the node |
328 | 326 | function gui.get_id(node) end |
329 | 327 |
|
330 | | ----Retrieve the index of the specified node. |
| 328 | +---Retrieve the index of the specified node among its siblings. |
331 | 329 | ---The index defines the order in which a node appear in a GUI scene. |
332 | 330 | ---Higher index means the node is drawn on top of lower indexed nodes. |
333 | 331 | ---@param node node the node to retrieve the id from |
@@ -537,8 +535,9 @@ function gui.hide_keyboard() end |
537 | 535 | ---Returns true if a node is enabled and false if it's not. |
538 | 536 | ---Disabled nodes are not rendered and animations acting on them are not evaluated. |
539 | 537 | ---@param node node node to query |
| 538 | +---@param recursive boolean check hierarchy recursively |
540 | 539 | ---@return boolean whether the node is enabled or not |
541 | | -function gui.is_enabled(node) end |
| 540 | +function gui.is_enabled(node, recursive) end |
542 | 541 |
|
543 | 542 | ---Alters the ordering of the two supplied nodes by moving the first node |
544 | 543 | ---above the second. |
|
0 commit comments