Layout editor: Difference between revisions

From OpenMW Wiki
Jump to navigation Jump to search
(Created page with "Currently a git master version of MyGUI is required, but the needed features will be included in the next release 3.2.2. When 3.2.2 is released, compiling will no longer be ne...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Currently a git master version of MyGUI is required, but the needed features will be included in the next release 3.2.2. When 3.2.2 is released, compiling will no longer be necessary and a package can be used.
NOTE: The MyGUI resource plugin is currently disabled as of the OSG port / master. Maintaining this plugin would require a dependency on Ogre3D in its current form. You can however still grab a build of the older OpenMW 0.36.1 and use the included plugin to edit layouts.


* Download, compile and install the latest git master version of MyGUI from https://github.com/MyGUI/mygui.
NOTE: MyGUI does not support plugins for Mac OSX yet (https://github.com/MyGUI/mygui/issues/42), so editing OpenMW layouts is currently not possible on that platform.
* Rebuild OpenMW against the new MyGUI version you just installed. An OpenMW version from git master is currently required, which includes a MyGUI Plugin library called Plugin_MyGUI_OpenMW_Resources.
 
* Install MyGUI version 3.2.2 from https://github.com/MyGUI/mygui.
* Make sure you are using OpenMW 0.35 or later and have the Plugin_MyGUI_OpenMW_Resources library available in your OpenMW install.
* Copy the Plugin_MyGUI_OpenMW_Resources library file from the OpenMW build folder to the directory you will be running the MyGUI Layout Editor from (most likely the "bin" subdirectory in MyGUI's build directory).
* Copy the Plugin_MyGUI_OpenMW_Resources library file from the OpenMW build folder to the directory you will be running the MyGUI Layout Editor from (most likely the "bin" subdirectory in MyGUI's build directory).
* Create a file called ''OpenMWResourcePlugin.xml'' and place it in ''Media/Tools/LayoutEditor/Settings''. Paste the following content:
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI>
<MyGUI type="Plugin">
<Plugin>
<Source>./Plugin_MyGUI_OpenMW_Resources</Source>
</Plugin>
</MyGUI>
</MyGUI>
</pre>
* Edit ''Media/Tools/LayoutEditor/EditorPlugin.xml'', adding the following line:
<pre>
<List file="OpenMWResourcePlugin.xml"/>
</pre>
* Start the MyGUI LayoutEditor.
* Start the MyGUI LayoutEditor.
* Go to ''File -> Settings -> Folders'', press ''Add'' and select the folder in your OpenMW repository containing the MyGUI layouts (''files/mygui'')
* Go to ''File -> Settings -> Folders'', press ''Add'' and select the folder in your OpenMW repository containing the MyGUI layouts (''files/mygui'')
* Go to ''File -> Settings -> Resources'', press ''Add'', type ''core_layouteditor.xml'', then press Enter.
* Go to ''File -> Settings -> Resources'', press ''Add'', type ''core_layouteditor.xml'', then press Enter.
* Restart the LayoutEditor and try to load a .layout file from OpenMW. It should be working now!
* Restart the LayoutEditor and try to load a .layout file from OpenMW. It should be working now!
* Note that when you save a layout, you need to run OpenMW's cmake script in order to copy it to OpenMW's build folder.
* Note that when you save a layout, you need to run OpenMW's cmake script in order to copy it to OpenMW's build folder, so that the new layout is used when you start OpenMW.
[[File:Layouteditor.png]]
[[File:Layouteditor.png]]

Latest revision as of 12:42, 19 August 2015

NOTE: The MyGUI resource plugin is currently disabled as of the OSG port / master. Maintaining this plugin would require a dependency on Ogre3D in its current form. You can however still grab a build of the older OpenMW 0.36.1 and use the included plugin to edit layouts.

NOTE: MyGUI does not support plugins for Mac OSX yet (https://github.com/MyGUI/mygui/issues/42), so editing OpenMW layouts is currently not possible on that platform.

  • Install MyGUI version 3.2.2 from https://github.com/MyGUI/mygui.
  • Make sure you are using OpenMW 0.35 or later and have the Plugin_MyGUI_OpenMW_Resources library available in your OpenMW install.
  • Copy the Plugin_MyGUI_OpenMW_Resources library file from the OpenMW build folder to the directory you will be running the MyGUI Layout Editor from (most likely the "bin" subdirectory in MyGUI's build directory).
  • Start the MyGUI LayoutEditor.
  • Go to File -> Settings -> Folders, press Add and select the folder in your OpenMW repository containing the MyGUI layouts (files/mygui)
  • Go to File -> Settings -> Resources, press Add, type core_layouteditor.xml, then press Enter.
  • Restart the LayoutEditor and try to load a .layout file from OpenMW. It should be working now!
  • Note that when you save a layout, you need to run OpenMW's cmake script in order to copy it to OpenMW's build folder, so that the new layout is used when you start OpenMW.

Layouteditor.png