View Single Post
08-08-11, 12:34 PM   #10
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by starlon View Post
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.
__________________
「貴方は1人じゃないよ」
  Reply With Quote