Originally Posted by starlon
Fixed a nasty bug (not really a bug, and not really a fix). But every widget needs a unique name. The examples I've shown here didn't give them a name. I was giving them all the name of ScriptableBar and ScriptableText. It'll go for ("ScriptableText" .. random()) now if nothing else is provided.
|
Wouldn't it be better to use the name of the parent add-on combined with a internal counter? That way you are sure you won't get any conflicts. Using random() seems to beg for hard to reproduce bugs.