Updated Object (markdown)
10
Object.md
10
Object.md
@@ -5,6 +5,16 @@ Here is a list of possible functions:
|
||||
shows the object (only if the parent frame is already visible)
|
||||
````lua
|
||||
local mainFrame = NyoUI.createFrame("myFirstFrame"):show()
|
||||
local button = mainFrame:addButton("myFirstButton")
|
||||
button:show()
|
||||
````
|
||||
**args:** -<br>
|
||||
**returns:** the object<br>
|
||||
|
||||
## hide
|
||||
hides the object
|
||||
````lua
|
||||
local mainFrame = NyoUI.createFrame("myFirstFrame"):show()
|
||||
local button = mainFrame:addButton("myFirstButton"):setText("Close"):onClick(function() mainFrame:hide() end)
|
||||
button:show()
|
||||
````
|
||||
|
||||
Reference in New Issue
Block a user