From a962c306d6b8829120f9ece5bab9300b3092252c Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Mon, 2 May 2022 18:32:01 +0200 Subject: [PATCH] Updated Input (markdown) --- Input.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Input.md b/Input.md index 6f09569..2be5377 100644 --- a/Input.md +++ b/Input.md @@ -1,14 +1,7 @@ -Inputs are objects, where the user can write something and you can read it.
-Here is a example of how to create a standard input: +With input's you are able to create a object where the user can type something in.
-````lua -local mainFrame = CreateFrame("myFirstFrame"):show() -local aInput = mainFrame:addInput("myFirstInput"):show() -```` - -This will create a default input with the size 5 width and 1 height on position 1 1 (relative to its parent frame), the default background is colors.lightBlue, the default text color is colors.black and the default zIndex is 5. - -Here are all possible functions available for inputs. Remember input inherit from [object](https://github.com/NoryiE/NyoUI/wiki/Object): +Here are all possible functions available for inputs:
+Remember input inherits from [object](https://github.com/NoryiE/NyoUI/wiki/Object): ## setInputType changes the input type @@ -16,5 +9,5 @@ changes the input type local mainFrame = CreateFrame("myFirstFrame"):show() local aInput = mainFrame:addInput("myFirstInput"):setInputType("password"):show() ```` -**args:** "text", "password", "number" are the possible input types - default is text
-**returns:** the object
+**parameters:** string value ("text", "password", "number")
+**returns:** self