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