Skip to content

Commit f2025a8

Browse files
committed
update to 1.2.187
1 parent 54cffcb commit f2025a8

4 files changed

Lines changed: 1946 additions & 1915 deletions

File tree

DefoldDocs/api/gui.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---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
53
---@class gui
64
gui = {}
75
---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
327325
---@return hash the id of the node
328326
function gui.get_id(node) end
329327

330-
---Retrieve the index of the specified node.
328+
---Retrieve the index of the specified node among its siblings.
331329
---The index defines the order in which a node appear in a GUI scene.
332330
---Higher index means the node is drawn on top of lower indexed nodes.
333331
---@param node node the node to retrieve the id from
@@ -537,8 +535,9 @@ function gui.hide_keyboard() end
537535
---Returns true if a node is enabled and false if it's not.
538536
---Disabled nodes are not rendered and animations acting on them are not evaluated.
539537
---@param node node node to query
538+
---@param recursive boolean check hierarchy recursively
540539
---@return boolean whether the node is enabled or not
541-
function gui.is_enabled(node) end
540+
function gui.is_enabled(node, recursive) end
542541

543542
---Alters the ordering of the two supplied nodes by moving the first node
544543
---above the second.

0 commit comments

Comments
 (0)