-
Notifications
You must be signed in to change notification settings - Fork 43
Input
Robert Jelic edited this page Apr 2, 2022
·
8 revisions
Inputs are a objects, where the user can make inputs Here is a example of how to create a standard input:
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:
changes the input type
local mainFrame = CreateFrame("myFirstFrame"):show()
local aButton = mainFrame:addButton("myFirstButton"):setInputType("password"):show()
args: "text", "password", "number" are the possible input types - default is text
returns: the object
Thanks for checking out our wiki, join our discord for more help: discord.gg/yM7kndJdJJ