Omnimaga
Calculator Community => TI Calculators => Lua => Topic started by: Goran on September 30, 2012, 11:56:42 am
-
Hello,
I am delighted with ability to specify my own menu for a script page using toolpalete:register() call.
I followed the example given in the Lua Scripting API Reference Guide.
Everything worked as described, except for separation lines (section dividers), specified by hyphen ("-"):
Instead of some kind of separation line, I get in the menu a disabled menu item (gray text) saying: "<number>: English (U.S.)".
Did anyone else experienced such a behavior?
Best regards,
Goran
-
I've checked, and this is indeed a bug.
I assume that the grey line has a resource id, and that the code handling the menu system in Lua used a static number for it.
This resource ID most likely changed because of some updates to resource files, but the lua coders didn't change it.
Well, that's my theory.
I'll report it to TI.
-
So we do have contact with TI here? Wow that's quite nice.
-
Several members have ;)
-
Don't worry I have reported it already :)
(About 1,5 months ago.)
The technical explanation behind this, is (thanks to levak for pointing this out) : the string loaded is probably non-valid and returns 0, which corresponds to the current language.
It is planned as fixed for the next major release (just got that confirmed a few days ago actually)
also :
So we do have contact with TI here? Wow that's quite nice.
Yes, from programmers (to which we report these kinds of bugs) to executives (useful for sharing "higher" feedback, ideas etc.)