Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1413

Lua Scripting • Re: Calling table-based functions via inline Lua: not possible? (namespaces, etc)

$
0
0
However in just a simple test of calling such table functions via inline Lua, separate than any dofile imports, it seems Rainmeter doesn't handle table based function names for inline Lua, with an error about 'Not a valid function name'.
It seems you can't use dots in names of lua functions. Foo.Txt is not a valid function name. Use FooTxt:

Skin:

Code:

[String]...Text=[&S:FooTxt('Hello')]...
Script file:

Code:

Foo = {}FooTxt = function(str)    return strend

Statistics: Posted by balala — Yesterday, 6:58 pm



Viewing all articles
Browse latest Browse all 1413

Trending Articles