Page 1 of 1

the main differences between a script written for version 11, from one written for version 13.5

Posted: Thu May 20, 2021 3:46 pm
by gilcartunista
Hello! please friends i am wanting to modify a script, and i would like to know what are the main differences between a script written for version 11, from one written for version 13.5. Grateful.

Re: the main differences between a script written for version 11, from one written for version 13.5

Posted: Thu May 20, 2021 5:05 pm
by synthsin75
I think the Lua version used in both is the same, so there shouldn't be any significant difference, aside from mew stuff added to Moho.

Re: the main differences between a script written for version 11, from one written for version 13.5

Posted: Thu May 20, 2021 10:07 pm
by hayasidist
yeah - as Wes says - I think V11 was LUA 5.2; and we still are on that version (the latest release of LUA is 5.4 - make sure you use the right LUA documentation); and about the few new features added since V11: this link will help you identify them -- if the V11 script you have only touches areas that haven't changed, updating it is straightforward.

From a cosmetic point of view, Moho 12 introduced a script:ColorizeIcon() function - that tells moho whether or not to use the preferences / appearances "highlights" colour on the tool icon.

If you get stuck - just shout!

Re: the main differences between a script written for version 11, from one written for version 13.5

Posted: Fri May 21, 2021 9:15 pm
by gilcartunista
Thank you very much for the valuable tips; you are my heroes. Grateful.