grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetTopModal()
|
Version 2.0
|
Description
The GetTopModal Lua function returns a handle for the modal at the top. Modal is the internal name for pop-ups that interrupt the system's normal operation. A modal blocks other UI elements from being used while it is open.
For example, when opening a window's settings pop-up, it is not possible to use the command line. The settings pop-up is a modal. Modals can also be identified by the rest of the UI, which darkens a bit when it is open.
Argument
This function does not have any arguments.
Return
- Handle | nil:
The function returns a handle to the top modal UI object if there is one.
Example
This example uses the Dump() function to show information about the StagePopup selection pop-up.
Dump()
The Dump() function returns a string with information about the object, for instance, the name, class, path of the object, its properties, and children.
Learn more in the Dump() topic.
Lua |
return function() |