I came up with something rather simple that should do the job !
- a syntax for declaring variables in properties:
VAR{variableName, defaultValue}
- two functions for playing with these variables from any widget's script:
getVar(widgetId, variableName)
setVar(widgetId, variableName, newValue)
Properties containing VAR{}
blocks will update automatically when setVar() is used.