Code: Select all
var musket = function() {
var w;
var title;
return {
init: function(thisObj){
w = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Musket", undefined, {resizeable:true, orientation:'column', alignChildren:['left','top']});
w.title = w.add("statictext", [10,10,30,30], 'Musket 2.0');
//~ projDDlist = w.add("dropdownlist",undefined,["option","option","option"]);
//~ projDDlist.preferredSize = [125,20];
//~ shotDDlist = w.add("dropdownlist",undefined,["option","option","option"], {preferredSize:[-1,-1]});
return w;
}
}
}();
musket.init(this);
As a side note I love how the entire scriptUI tools guide chapters use code based examples then they introduce Res Strings, and every following example, as it moves to advanced topics, is only in Res Strings ignoring the entire chapter that preceded it which was code-based. ARGH!