Ok, well. In this project, I have 3 source files:
1. Menu.js - object I created for easily editing the menu
2. Window.js - object I created for keeping track of PlusWnds
3. Main.js - creates objects and stuff
In Main.js, when I create a global variable like so:
code:
var windows;
the OnGetScriptMenu function isn't called when I click on the menu. Commenting this line out, or changing the name, fixes the problem. The variable is not referenced anywhere.
Now, I had this same problem a few days ago, in a different script, with a different variable name, which was "scriptMenuCache", which works fine in this script. (global both times) Wtf is going on?