more additions to API
This commit is contained in:
36
API.md
36
API.md
@@ -6,7 +6,7 @@ parent(UIBase parent, UIBase child)
|
||||
unparent(UIBase parent, UIBase child)
|
||||
```
|
||||
|
||||
#### UIBase class
|
||||
### UIBase class
|
||||
|
||||
*This class is abstracted and exists only for inheritance.*
|
||||
|
||||
@@ -26,7 +26,7 @@ string getName() -- name defaults to 16-character random string
|
||||
setName(string name)
|
||||
```
|
||||
|
||||
### UIContainer class
|
||||
### JUIScene class
|
||||
|
||||
*Inherits UIBase*
|
||||
|
||||
@@ -72,7 +72,9 @@ mouseExit()
|
||||
|
||||
*Inherits UIRect*
|
||||
|
||||
### TextBox class
|
||||
*This class is abstracted and exists only for inheritance.*
|
||||
|
||||
### Label class
|
||||
|
||||
*Inherits UIRect*
|
||||
|
||||
@@ -86,6 +88,34 @@ setText(string text)
|
||||
setTextSize(number size)
|
||||
```
|
||||
|
||||
### UIButton class
|
||||
|
||||
*Inherits UIRect*
|
||||
|
||||
Methods:
|
||||
```lua
|
||||
|
||||
```
|
||||
|
||||
Events:
|
||||
```lua
|
||||
|
||||
```
|
||||
|
||||
### Button class
|
||||
|
||||
*Inherits UIButton*
|
||||
|
||||
Methods:
|
||||
```lua
|
||||
|
||||
```
|
||||
|
||||
Events:
|
||||
```lua
|
||||
|
||||
```
|
||||
|
||||
### Event class
|
||||
Events provide a way for *listeners*, user-defined functions, to be called when certain things happen with JUI objects.
|
||||
When an event is "connected", the function given will be called whenever this event is fired by JUI.
|
||||
|
Reference in New Issue
Block a user