tts-community / tts-community-bug-tracker

Community maintained list of Tabletop Simulator bugs.
2 stars 0 forks source link

XML lua calls cannot call functions from inside tables #18

Open dore0062 opened 4 years ago

dore0062 commented 4 years ago

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.