Quantcast
Viewing all articles
Browse latest Browse all 1573

Lua Scripting • Re: Lua for conditional operators with strings as result.

So I've created this little testing skin:
ConditionalExample_1.0.rmskin

The idea is a little radio button that enables and disables by clicking it. The conditional function is used on certain options, clicking the button will set a ButtonState variable from 0 to 1 and the button will enable, when it enables the button changes color and the text changes from disabled to enabled as well as its colors. This is pretty nice because it saves from having a measure and multiple set option bangs.

The only problem I've noticed so far is on the Shape's Fill option. On first load and on refresh, it will log Invalid shape modifier: 0 (ConditionalExample\Example.ini - [Button])

Any idea to solve this would be appreciated.

This happens with any of the conditional functions. While the example is using the first conditional function, the script.lua file contains all three functions for testing. Just remember each of them requires a somewhat different syntax on the condition.

Statistics: Posted by RicardoTM — 55 minutes ago



Viewing all articles
Browse latest Browse all 1573

Trending Articles