View Single Post
05/12/14, 04:21 PM   #7
Kith
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 49
Originally Posted by CrazyDutchGuy View Post
You can just give a nil value for the name. I am not sure it is bad behavior to do so. But if you never going to reference the control by name, why name it then, and pollute the namespace.
Unless ESO is doing something weird, its not bad behavior to leave the window with a nil name. As you say, it is one less entry in the global namespace and you can still reference those via internally saved variables. There may be some ZO_TEMPLATES that don't function properly without a name though (as some use something along the lines of GetControl(namehere) to access internal components.

Other than my options menus (using LAM), I never name any controls other than the 'base' that serves as my mods main addon table.
  Reply With Quote