Automatically merge contextmenu.xml files for UI design.
Disclaimer
This is for alpha testing only. The intended audience are custom content creators that know what they are doing and want to provide feedback. Do not use this program if you do not understand how to modify Neverwinter Nights 2 UI xml files. This first version is only partially tested and unlikely to be fit for final use.
Description
The contextmenu.xml is the UI file that determines what appears on the right-click menu in Neverwinter Nights 2. As independent custom content creators add to the UI, conflicts arise in how the context menu is used. This has been discussed <a href=http://nwn2forums.bioware.com/forums/myviewtopic.html?
topic=548088&forum=119>here</a>.
The first phase of this project has produced a program that can take the context menus from two UI modifications and merge them into one contextmenu.xml.
The next phase will be to develop a .dll that can be used with self installing UI modifications. This will allow an enabled installer to combine the required entries into whatever existing context menu is in use, without the end user needing to manually adjust files.
Installation
The download contains a rar archive of one .exe and two .xml files for testing. After unarchiving, double click the program to launch it.
Use
From either the menu or the 'tool bar' Select Load/Merge File. A dialog will open for you to choose a file to open. Select the first contextmenu.xml you wish to merge. Once you OK the selection the file will be loaded and processed. It takes some time for the file to be processed and there is no status bar yet, so the program will seem to pause for a bit (about 30 seconds on my machine, but give it a couple of minutes first time). This is mostly to populate the preview window.
You can then select further contextmenu.xml files to merge in the same manner.
When you have merged all the files you want, save your combined contextmenu.xml by selecting either the 'Save Output' button or File->Save.
|