-
Notifications
You must be signed in to change notification settings - Fork 20
Library Reference
This section contains reference information about the custom Lua libraries available with Windower.
Function signatures in the Library Reference are specified with some additional information about parameter types and default values.
Example:
ui.button
function signaturefunction ui.button(id : string, text : string, checked : boolean = false, enabled : boolean = true) : boolean
From this example, we can see that the function takes four parameters:
-
id : a
string
-
text : a
string
-
checked : an optional
boolean
value that defaults tofalse
-
enabled : an optional
boolean
value that defaults totrue
We can also see that the function itself returns a single boolean
value.
By removing all the additional parameter type information from the signature, we are left with valid Lua syntax.
For example, removing : string
from the id
parameter, and so on, gives us this:
Example:
ui.button
function signature, with type information removedfunction ui.button(id, text, checked, enabled)
This function definition can be used to assign the return value to a variable in standard Lua:
Example:
ui.button
Lua usagelocal button_checked = ui.button(id, text, checked, enabled)
- Background and Architecture
- Windower Data Locations
- Code Standards and Guidelines
- Addon Development
- Windower Commands
- Packet Tutorial
- burdometer
- config
- delay_me_not
- distance
- dress_up
- enternity
- fps
- ime
- logger
- party_time
- paste
- pouches
- send
- shortcuts
- speedometer
- target_info
- terminate
- timestamp
- window_title
- Game
- Windower
- General