Module 01_base
Mostly default lua function overrides
Functions
loadfile (file) | Override Lua's loadfile to use lua.ReadFile. |
dofile (file) | Override Lua's dofile to use our loadfile. |
ivalues (t) | Like ipairs(), but returns only values. |
Var (varname) | lua.GetThreadVariable alias Mostly used for noteskins |
Functions
- loadfile (file)
-
Override Lua's loadfile to use lua.ReadFile.
Parameters:
- file string
Returns:
- dofile (file)
-
Override Lua's dofile to use our loadfile.
Parameters:
- file string filename
Returns:
- ivalues (t)
-
Like ipairs(), but returns only values.
Parameters:
- t table
Returns:
-
function
iterator
Usage:
for v in ivalues({1,2}) do print(tostring(v)) end
- Var (varname)
-
lua.GetThreadVariable alias
Mostly used for noteskins
Parameters:
- varname string
Returns:
-
any
value
Usage:
local x = Var Var "Button"