Updated Button (markdown)
13
Button.md
13
Button.md
@@ -1,16 +1,7 @@
|
|||||||
Buttons are objects, which execute function by clicking on them
|
Buttons are objects, which execute function by clicking on them
|
||||||
|
|
||||||
Here is a example of how to create a standard button:
|
The following list is only available to buttons: <br>
|
||||||
|
Remember button also inherits from [object](https://github.com/NoryiE/basalt/wiki/Object):
|
||||||
````lua
|
|
||||||
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
|
||||||
local aButton = mainFrame:addButton("myFirstButton"):show()
|
|
||||||
````
|
|
||||||
|
|
||||||
This will create a default button 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. The default vertical and horizontal text aligns are "center" - but there is no default text.
|
|
||||||
|
|
||||||
Here are all possible functions available for buttons. Remember button inherit from [object](https://github.com/NoryiE/basalt/wiki/Object):
|
|
||||||
|
|
||||||
## setText
|
## setText
|
||||||
Sets the displayed button text
|
Sets the displayed button text
|
||||||
|
|||||||
Reference in New Issue
Block a user