Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

XML lua calls cannot call functions from inside tables #18

Open
dore0062 opened this issue Feb 13, 2020 · 0 comments
Open

XML lua calls cannot call functions from inside tables #18

dore0062 opened this issue Feb 13, 2020 · 0 comments
Labels
enhancement New feature or request lua Lua scripting xml XML scripting

Comments

@dore0062
Copy link
Collaborator

Describe the bug
XML LUA calls cannot call a function from a table.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Lua Scripts & XML UI:
If applicable, Lua:

myFunc = {}
function myFunc.F()
print("F")
end

If applicable, XML:

<button onClick="myFunc.F"/>

Known workarounds
Don't use tables for functions, or have a function that can take another value and call it from that table.

Additional context
Probably an oversight more then a bug.

@dore0062 dore0062 added enhancement New feature or request lua Lua scripting xml XML scripting labels Feb 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request lua Lua scripting xml XML scripting
Projects
None yet
Development

No branches or pull requests

1 participant