How can I get code completion for external javascript libraries like Lime JS?
The files are organised like this:
C:\LimeJS
- /bin
- /box2d
- /closure
- /lime
- /my_limejs_project1
- /my_limejs_project2
|
All of the javascript files seem to be in
"C:\LimeJS\lime\src" (and sub-directories). I added that directory to "Additional Directories" within Project Properties but code completion still isn't working.
I set the project "Root directory" as "C:\LimeJS\my_limejs_project1"
Example JS code:
//set main namespace
goog.provide('my_limejs_project1');
//get requirements
goog.require('lime.Director');
goog.require('lime.Scene');
goog.require('lime.fill.LinearGradient');
// entrypoint
chapter4.start = function(){
var director = new lime.Director(document.body,1024,768);
director.makeMobileWebAppCapable();
director.setDisplayFPS(false);
var scene1 = new lime.Scene();
var sky_gradient = new lime.fill.LinearGradient().setDirection(0, 0, 1, 1);
scene1.appendChild(sky_gradient);
director.replaceScene(scene1);
}
goog.exportSymbol('my_limejs_project1.start', my_limejs_project1.start);
|
Thanks!