Title says it all. Am busy creating a standalone version of my "panorama" on MacOS using nwjs, but am anything but an expert. Managed to get the baby running nicely, but would love to get some custom menus in the MacOS menu bar, accessing some functions created in the panorama.
This, for instance, doesn't work. The submenu item is created, the shortcut shown, but the krpano.call doesn't yield a result. The pano.js has been called up earlier, and i am not aware of anything else I would have to do. Or do I?
QuoteDisplay More// Bind a callback to item
submenu.append(new nw.MenuItem({
label: "Randomize Horizon",
click: function() {
krpano.call("action(randomizehorizon);");
},
key: "s",
modifiers: "ctrl+alt",
}));
I also get a "unknown version" when using krpano.version from the sample code given in the docs, so I am stumped, as it looks as if krpano has NOT been loaded.
Any help is appreciated.
Happy days,
Helmar