The Sweep node was modified by Karsten to have a right click on the Sweep node bring up the "info" menu button for the Sweep.html documentation file.
The "Docupath" is already defined by Karsten in a recent version of basicFunctions.js.
LineWeb.js node file was used as an example of how to modify one node, to get the "Info" menu selection, for the node documentation, by right clicking on the node.
After the two lines in LineWeb.js:
LineWeb.title = "LineWeb";
LineWeb.desc = "LineWeb";
It is necessary to modify the Node code by adding the following: (Comment lines are not needed.)
// Start: New code for Info menu and LineWeb.html link.
LineWeb.prototype.getExtraMenuOptions = function ()
{
var that = this;
return [
{content: lang.getTranslation("Info"), callback: function () {
moi.UI.createDialog(docupath+"LineWeb.html");
}}
];
};
// End: New code for Info menu and LineWeb.html link.
(This section of the Sweep node code is a little more elaborate because it has two additional extra menu options.)
Now it is necessary to create LineWeb.html documentation, similar to Sweep.html, and place the LineWeb.html file in the EN folder of %appdate% /nodeeditor/nodes/extensions/Documentation/EN folder. (or Mac equivalent folder)
For other language, use the appropriate folder...(?)
Notepad++ with the "Preview HTML" plugin was used to modify the Sweep.html file, renamed LineWeb.html.
https://moi3d.com/forum/index.php?webtag=MOI&msg=9517.2
(Closing nodeeditor does not close the popup html window, but the window does have an X close button.)
- Brian
(My LineWeb.html file is just a rough draft, so far., but its window pops up just fine when the Info menu item is selected.)
So all of the nodes would have to be modified, quite a bit of copy and edit work, but pretty repetitive.
Also .html documentation files would need to be written for each node. Quite a lot more work.