From 5bbcf944ca683733b4103c19573963f999796504 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 2 Apr 2022 16:09:01 +0200 Subject: [PATCH] Updated Object (markdown) --- Object.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Object.md b/Object.md index 96d5979..d9107b8 100644 --- a/Object.md +++ b/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:** -
+**returns:** the object
+ +## 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() ````